GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta2DocumentPageLayout (google_api_document_ai v0.21.0) View Source

Visual element describing a layout unit on a page.

Attributes

  • boundingPoly (type: GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta2BoundingPoly.t, default: nil) - The bounding polygon for the Layout.
  • confidence (type: number(), default: nil) - Confidence of the current Layout within context of the object this layout is for. e.g. confidence can be for a single token, a table, a visual element, etc. depending on context. Range [0, 1].
  • orientation (type: String.t, default: nil) - Detected orientation for the Layout.
  • textAnchor (type: GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta2DocumentTextAnchor.t, default: nil) - Text anchor indexing into the Document.text.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() ::
  %GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta2DocumentPageLayout{
    boundingPoly:
      GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta2BoundingPoly.t()
      | nil,
    confidence: number() | nil,
    orientation: String.t() | nil,
    textAnchor:
      GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta2DocumentTextAnchor.t()
      | nil
  }

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.