Class Document.Types.Layout (2.6.0)

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

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(Document.Types.Layout)

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

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
Int32

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
Document.Types.Layout.Types.TextSegmentType