Reference documentation and code samples for the Cloud AutoML V1beta1 API class Google::Cloud::AutoML::V1beta1::Document::Layout.
Describes the layout information of a text_segment in the document.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#bounding_poly
def bounding_poly() -> ::Google::Cloud::AutoML::V1beta1::BoundingPoly
-
(::Google::Cloud::AutoML::V1beta1::BoundingPoly) — The position of the text_segment in the page.
Contains exactly 4
normalized_vertices and they are connected by edges in the order provided, which will represent a rectangle parallel to the frame. The NormalizedVertex-s are relative to the page. Coordinates are based on top-left as point (0,0).
#bounding_poly=
def bounding_poly=(value) -> ::Google::Cloud::AutoML::V1beta1::BoundingPoly
-
value (::Google::Cloud::AutoML::V1beta1::BoundingPoly) — The position of the text_segment in the page.
Contains exactly 4
normalized_vertices and they are connected by edges in the order provided, which will represent a rectangle parallel to the frame. The NormalizedVertex-s are relative to the page. Coordinates are based on top-left as point (0,0).
-
(::Google::Cloud::AutoML::V1beta1::BoundingPoly) — The position of the text_segment in the page.
Contains exactly 4
normalized_vertices and they are connected by edges in the order provided, which will represent a rectangle parallel to the frame. The NormalizedVertex-s are relative to the page. Coordinates are based on top-left as point (0,0).
#page_number
def page_number() -> ::Integer
- (::Integer) — Page number of the text_segment in the original document, starts from 1.
#page_number=
def page_number=(value) -> ::Integer
- value (::Integer) — Page number of the text_segment in the original document, starts from 1.
- (::Integer) — Page number of the text_segment in the original document, starts from 1.
#text_segment
def text_segment() -> ::Google::Cloud::AutoML::V1beta1::TextSegment
- (::Google::Cloud::AutoML::V1beta1::TextSegment) — Text Segment that represents a segment in document_text.
#text_segment=
def text_segment=(value) -> ::Google::Cloud::AutoML::V1beta1::TextSegment
- value (::Google::Cloud::AutoML::V1beta1::TextSegment) — Text Segment that represents a segment in document_text.
- (::Google::Cloud::AutoML::V1beta1::TextSegment) — Text Segment that represents a segment in document_text.
#text_segment_type
def text_segment_type() -> ::Google::Cloud::AutoML::V1beta1::Document::Layout::TextSegmentType
- (::Google::Cloud::AutoML::V1beta1::Document::Layout::TextSegmentType) — The type of the text_segment in document.
#text_segment_type=
def text_segment_type=(value) -> ::Google::Cloud::AutoML::V1beta1::Document::Layout::TextSegmentType
- value (::Google::Cloud::AutoML::V1beta1::Document::Layout::TextSegmentType) — The type of the text_segment in document.
- (::Google::Cloud::AutoML::V1beta1::Document::Layout::TextSegmentType) — The type of the text_segment in document.