Visual element describing a layout unit on a page.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#bounding_poly
def bounding_poly() -> ::Google::Cloud::DocumentAI::V1beta3::BoundingPoly
Returns
- (::Google::Cloud::DocumentAI::V1beta3::BoundingPoly) — The bounding polygon for the Layout.
#bounding_poly=
def bounding_poly=(value) -> ::Google::Cloud::DocumentAI::V1beta3::BoundingPoly
Parameter
- value (::Google::Cloud::DocumentAI::V1beta3::BoundingPoly) — The bounding polygon for the Layout.
Returns
- (::Google::Cloud::DocumentAI::V1beta3::BoundingPoly) — The bounding polygon for the Layout.
#confidence
def confidence() -> ::Float
Returns
- (::Float) — 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].
#confidence=
def confidence=(value) -> ::Float
Parameter
- value (::Float) — 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].
Returns
- (::Float) — 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
def orientation() -> ::Google::Cloud::DocumentAI::V1beta3::Document::Page::Layout::Orientation
Returns
- (::Google::Cloud::DocumentAI::V1beta3::Document::Page::Layout::Orientation) — Detected orientation for the Layout.
#orientation=
def orientation=(value) -> ::Google::Cloud::DocumentAI::V1beta3::Document::Page::Layout::Orientation
Parameter
- value (::Google::Cloud::DocumentAI::V1beta3::Document::Page::Layout::Orientation) — Detected orientation for the Layout.
Returns
- (::Google::Cloud::DocumentAI::V1beta3::Document::Page::Layout::Orientation) — Detected orientation for the Layout.
#text_anchor
def text_anchor() -> ::Google::Cloud::DocumentAI::V1beta3::Document::TextAnchor
Returns
- (::Google::Cloud::DocumentAI::V1beta3::Document::TextAnchor) — Text anchor indexing into the Document.text.
#text_anchor=
def text_anchor=(value) -> ::Google::Cloud::DocumentAI::V1beta3::Document::TextAnchor
Parameter
- value (::Google::Cloud::DocumentAI::V1beta3::Document::TextAnchor) — Text anchor indexing into the Document.text.
Returns
- (::Google::Cloud::DocumentAI::V1beta3::Document::TextAnchor) — Text anchor indexing into the Document.text.