Reference documentation and code samples for the Google Cloud Document Ai V1 Client class Layout.
Visual element describing a layout unit on a page.
Generated from protobuf message google.cloud.documentai.v1.Document.Page.Layout
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ text_anchor
↳ confidence
float
Confidence of the current Layout
within context of the object this layout is for. e.g. confidence can be for a single token, a table, a visual element, etc. depending on context. Range [0, 1]
.
↳ bounding_poly
↳ orientation
getTextAnchor
Text anchor indexing into the Document.text .
Generated from protobuf field .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;
hasTextAnchor
clearTextAnchor
setTextAnchor
Text anchor indexing into the Document.text .
Generated from protobuf field .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;
$this
getConfidence
Confidence of the current Layout
within context of the object this
layout is for. e.g. confidence can be for a single token, a table,
a visual element, etc. depending on context. Range [0, 1]
.
Generated from protobuf field float confidence = 2;
float
setConfidence
Confidence of the current Layout
within context of the object this
layout is for. e.g. confidence can be for a single token, a table,
a visual element, etc. depending on context. Range [0, 1]
.
Generated from protobuf field float confidence = 2;
var
float
$this
getBoundingPoly
The bounding polygon for the Layout .
Generated from protobuf field .google.cloud.documentai.v1.BoundingPoly bounding_poly = 3;
hasBoundingPoly
clearBoundingPoly
setBoundingPoly
The bounding polygon for the Layout .
Generated from protobuf field .google.cloud.documentai.v1.BoundingPoly bounding_poly = 3;
$this
getOrientation
Detected orientation for the Layout .
Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout.Orientation orientation = 4;
int
setOrientation
Detected orientation for the Layout .
Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout.Orientation orientation = 4;
var
int
$this