Google AutoML v1 API - Class Document.Types.Layout (3.2.0)

public sealed class Document.Types.Layout : IMessage<Document.Types.Layout>, IEquatable<Document.Types.Layout>, IDeepCloneable<Document.Types.Layout>, IBufferMessage, IMessage

Reference documentation and code samples for the Google AutoML v1 API class Document.Types.Layout.

Describes the layout information of a [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the document.

Inheritance

object > Document.Types.Layout

Namespace

Google.Cloud.AutoML.V1

Assembly

Google.Cloud.AutoML.V1.dll

Constructors

Layout()

public Layout()

Layout(Layout)

public Layout(Document.Types.Layout other)
Parameter
NameDescription
otherDocumentTypesLayout

Properties

BoundingPoly

public BoundingPoly BoundingPoly { get; set; }

The position of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the page. Contains exactly 4 [normalized_vertices][google.cloud.automl.v1p1beta.BoundingPoly.normalized_vertices] and they are connected by edges in the order provided, which will represent a rectangle parallel to the frame. The [NormalizedVertex-s][google.cloud.automl.v1p1beta.NormalizedVertex] are relative to the page. Coordinates are based on top-left as point (0,0).

Property Value
TypeDescription
BoundingPoly

PageNumber

public int PageNumber { get; set; }

Page number of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the original document, starts from 1.

Property Value
TypeDescription
int

TextSegment

public TextSegment TextSegment { get; set; }

Text Segment that represents a segment in [document_text][google.cloud.automl.v1p1beta.Document.document_text].

Property Value
TypeDescription
TextSegment

TextSegmentType

public Document.Types.Layout.Types.TextSegmentType TextSegmentType { get; set; }

The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.

Property Value
TypeDescription
DocumentTypesLayoutTypesTextSegmentType