public class Geometry
extends java.lang.Object
implements java.io.Serializable
Information about where the following items are located on a document page: detected page, text, key-value pairs, tables, table cells, and selection elements.
Constructor and Description |
---|
Geometry() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
BoundingBox |
getBoundingBox()
An axis-aligned coarse representation of the location of the recognized
item on the document page.
|
java.util.List<Point> |
getPolygon()
Within the bounding box, a fine-grained polygon around the recognized
item.
|
int |
hashCode() |
void |
setBoundingBox(BoundingBox boundingBox)
An axis-aligned coarse representation of the location of the recognized
item on the document page.
|
void |
setPolygon(java.util.Collection<Point> polygon)
Within the bounding box, a fine-grained polygon around the recognized
item.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Geometry |
withBoundingBox(BoundingBox boundingBox)
An axis-aligned coarse representation of the location of the recognized
item on the document page.
|
Geometry |
withPolygon(java.util.Collection<Point> polygon)
Within the bounding box, a fine-grained polygon around the recognized
item.
|
Geometry |
withPolygon(Point... polygon)
Within the bounding box, a fine-grained polygon around the recognized
item.
|
public BoundingBox getBoundingBox()
An axis-aligned coarse representation of the location of the recognized item on the document page.
An axis-aligned coarse representation of the location of the recognized item on the document page.
public void setBoundingBox(BoundingBox boundingBox)
An axis-aligned coarse representation of the location of the recognized item on the document page.
boundingBox
- An axis-aligned coarse representation of the location of the recognized item on the document page.
public Geometry withBoundingBox(BoundingBox boundingBox)
An axis-aligned coarse representation of the location of the recognized item on the document page.
Returns a reference to this object so that method calls can be chained together.
boundingBox
- An axis-aligned coarse representation of the location of the recognized item on the document page.
public java.util.List<Point> getPolygon()
Within the bounding box, a fine-grained polygon around the recognized item.
Within the bounding box, a fine-grained polygon around the recognized item.
public void setPolygon(java.util.Collection<Point> polygon)
Within the bounding box, a fine-grained polygon around the recognized item.
polygon
- Within the bounding box, a fine-grained polygon around the recognized item.
public Geometry withPolygon(Point... polygon)
Within the bounding box, a fine-grained polygon around the recognized item.
Returns a reference to this object so that method calls can be chained together.
polygon
- Within the bounding box, a fine-grained polygon around the recognized item.
public Geometry withPolygon(java.util.Collection<Point> polygon)
Within the bounding box, a fine-grained polygon around the recognized item.
Returns a reference to this object so that method calls can be chained together.
polygon
- Within the bounding box, a fine-grained polygon around the recognized item.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.