class Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout
Visual element describing a layout unit on a page.
Attributes
A bounding polygon for the detected image annotation. Corresponds to the JSON property `boundingPoly` @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2BoundingPoly]
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]
Detected orientation for the Layout. Corresponds to the JSON property `orientation` @return [String]
Text reference indexing into the Document.text. Corresponds to the JSON property `textAnchor` @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentTextAnchor]
Public Class Methods
# File lib/google/apis/documentai_v1/classes.rb, line 5370 def initialize(**args) update!(**args) end
Public Instance Methods
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