public class Geometry extends Object implements Serializable
Information about where a recognized text, key, value, table, or table cell is located on a document page.
| Constructor and Description |
|---|
Geometry() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
BoundingBox |
getBoundingBox()
An axis-aligned coarse representation of the location of the recognized
text on the document page.
|
List<Point> |
getPolygon()
Within the bounding box, a fine-grained polygon around the recognized
text.
|
int |
hashCode() |
void |
setBoundingBox(BoundingBox boundingBox)
An axis-aligned coarse representation of the location of the recognized
text on the document page.
|
void |
setPolygon(Collection<Point> polygon)
Within the bounding box, a fine-grained polygon around the recognized
text.
|
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
text on the document page.
|
Geometry |
withPolygon(Collection<Point> polygon)
Within the bounding box, a fine-grained polygon around the recognized
text.
|
Geometry |
withPolygon(Point... polygon)
Within the bounding box, a fine-grained polygon around the recognized
text.
|
public BoundingBox getBoundingBox()
An axis-aligned coarse representation of the location of the recognized text on the document page.
An axis-aligned coarse representation of the location of the recognized text on the document page.
public void setBoundingBox(BoundingBox boundingBox)
An axis-aligned coarse representation of the location of the recognized text on the document page.
boundingBox - An axis-aligned coarse representation of the location of the recognized text on the document page.
public Geometry withBoundingBox(BoundingBox boundingBox)
An axis-aligned coarse representation of the location of the recognized text 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 text on the document page.
public List<Point> getPolygon()
Within the bounding box, a fine-grained polygon around the recognized text.
Within the bounding box, a fine-grained polygon around the recognized text.
public void setPolygon(Collection<Point> polygon)
Within the bounding box, a fine-grained polygon around the recognized text.
polygon - Within the bounding box, a fine-grained polygon around the recognized text.
public Geometry withPolygon(Point... polygon)
Within the bounding box, a fine-grained polygon around the recognized text.
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 text.
public Geometry withPolygon(Collection<Point> polygon)
Within the bounding box, a fine-grained polygon around the recognized text.
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 text.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.