Google AutoML v1 API - Class Document.Types.Layout (3.4.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
Name Description
other DocumentTypesLayout

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
Type Description
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
Type Description
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
Type Description
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
Type Description
DocumentTypesLayoutTypesTextSegmentType