public class Geometry
extends java.lang.Object
implements java.io.Serializable
Information about where an object (DetectCustomLabels) or text (DetectText) is located on an image.
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 detected item's location on
the image.
|
java.util.List<Point> |
getPolygon()
Within the bounding box, a fine-grained polygon around the detected item.
|
int |
hashCode() |
void |
setBoundingBox(BoundingBox boundingBox)
An axis-aligned coarse representation of the detected item's location on
the image.
|
void |
setPolygon(java.util.Collection<Point> polygon)
Within the bounding box, a fine-grained polygon around the detected 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 detected item's location on
the image.
|
Geometry |
withPolygon(java.util.Collection<Point> polygon)
Within the bounding box, a fine-grained polygon around the detected item.
|
Geometry |
withPolygon(Point... polygon)
Within the bounding box, a fine-grained polygon around the detected item.
|
public BoundingBox getBoundingBox()
An axis-aligned coarse representation of the detected item's location on the image.
An axis-aligned coarse representation of the detected item's location on the image.
public void setBoundingBox(BoundingBox boundingBox)
An axis-aligned coarse representation of the detected item's location on the image.
boundingBox
- An axis-aligned coarse representation of the detected item's location on the image.
public Geometry withBoundingBox(BoundingBox boundingBox)
An axis-aligned coarse representation of the detected item'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 item's location on the image.
public java.util.List<Point> getPolygon()
Within the bounding box, a fine-grained polygon around the detected item.
Within the bounding box, a fine-grained polygon around the detected item.
public void setPolygon(java.util.Collection<Point> polygon)
Within the bounding box, a fine-grained polygon around the detected item.
polygon
- Within the bounding box, a fine-grained polygon around the detected item.
public Geometry withPolygon(Point... polygon)
Within the bounding box, a fine-grained polygon around the detected 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 detected item.
public Geometry withPolygon(java.util.Collection<Point> polygon)
Within the bounding box, a fine-grained polygon around the detected 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 detected 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.