public class Geometry extends Object implements Serializable
Information about where text detected by is located on an image.
Constructor and Description |
---|
Geometry() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
BoundingBox |
getBoundingBox()
An axis-aligned coarse representation of the detected text's location on
the image.
|
List<Point> |
getPolygon()
Within the bounding box, a fine-grained polygon around the detected text.
|
int |
hashCode() |
void |
setBoundingBox(BoundingBox boundingBox)
An axis-aligned coarse representation of the detected text's location on
the image.
|
void |
setPolygon(Collection<Point> polygon)
Within the bounding box, a fine-grained polygon around the detected 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 detected text's location on
the image.
|
Geometry |
withPolygon(Collection<Point> polygon)
Within the bounding box, a fine-grained polygon around the detected text.
|
Geometry |
withPolygon(Point... polygon)
Within the bounding box, a fine-grained polygon around the detected text.
|
public BoundingBox getBoundingBox()
An axis-aligned coarse representation of the detected text's location on the image.
An axis-aligned coarse representation of the detected text's location on the image.
public void setBoundingBox(BoundingBox boundingBox)
An axis-aligned coarse representation of the detected text's location on the image.
boundingBox
- An axis-aligned coarse representation of the detected text's location on the image.
public Geometry withBoundingBox(BoundingBox boundingBox)
An axis-aligned coarse representation of the detected text's location on the image.
Returns a reference to this object so that method calls can be chained together.
boundingBox
- An axis-aligned coarse representation of the detected text's location on the image.
public List<Point> getPolygon()
Within the bounding box, a fine-grained polygon around the detected text.
Within the bounding box, a fine-grained polygon around the detected text.
public void setPolygon(Collection<Point> polygon)
Within the bounding box, a fine-grained polygon around the detected text.
polygon
- Within the bounding box, a fine-grained polygon around the detected text.
public Geometry withPolygon(Point... polygon)
Within the bounding box, a fine-grained polygon around the detected 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 detected text.
public Geometry withPolygon(Collection<Point> polygon)
Within the bounding box, a fine-grained polygon around the detected 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 detected text.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.