class Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout

Visual element describing a layout unit on a page.

Attributes

bounding_poly[RW]

A bounding polygon for the detected image annotation. Corresponds to the JSON property `boundingPoly` @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2BoundingPoly]

confidence[RW]

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]. Corresponds to the JSON property `confidence` @return [Float]

orientation[RW]

Detected orientation for the Layout. Corresponds to the JSON property `orientation` @return [String]

text_anchor[RW]

Text reference indexing into the Document.text. Corresponds to the JSON property `textAnchor` @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentTextAnchor]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/documentai_v1/classes.rb, line 5370
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/documentai_v1/classes.rb, line 5375
def update!(**args)
  @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
  @confidence = args[:confidence] if args.key?(:confidence)
  @orientation = args[:orientation] if args.key?(:orientation)
  @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
end