Class Document.Types.Layout
Describes the layout information of a [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the document.
Inheritance
Inherited Members
Namespace: Google.Cloud.AutoML.V1
Assembly: Google.Cloud.AutoML.V1.dll
Syntax
public sealed class Layout : IMessage<Document.Types.Layout>, IEquatable<Document.Types.Layout>, IDeepCloneable<Document.Types.Layout>, IBufferMessage, IMessage
Constructors
Layout()
Declaration
public Layout()
Layout(Document.Types.Layout)
Declaration
public Layout(Document.Types.Layout other)
Parameters
Type | Name | Description |
---|---|---|
Document.Types.Layout | other |
Properties
BoundingPoly
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).
Declaration
public BoundingPoly BoundingPoly { get; set; }
Property Value
Type | Description |
---|---|
BoundingPoly |
PageNumber
Page number of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in the original document, starts from 1.
Declaration
public int PageNumber { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
TextSegment
Text Segment that represents a segment in [document_text][google.cloud.automl.v1p1beta.Document.document_text].
Declaration
public TextSegment TextSegment { get; set; }
Property Value
Type | Description |
---|---|
TextSegment |
TextSegmentType
The type of the [text_segment][google.cloud.automl.v1.Document.Layout.text_segment] in document.
Declaration
public Document.Types.Layout.Types.TextSegmentType TextSegmentType { get; set; }
Property Value
Type | Description |
---|---|
Document.Types.Layout.Types.TextSegmentType |