@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Geometry extends Object implements Serializable, Cloneable, StructuredPojo
Information about where an object (DetectCustomLabels) or text (DetectText) is located on an image.
| Constructor and Description |
|---|
Geometry() |
| Modifier and Type | Method and Description |
|---|---|
Geometry |
clone() |
boolean |
equals(Object obj) |
BoundingBox |
getBoundingBox()
An axis-aligned coarse representation of the detected item's location on the image.
|
List<Point> |
getPolygon()
Within the bounding box, a fine-grained polygon around the detected item.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setBoundingBox(BoundingBox boundingBox)
An axis-aligned coarse representation of the detected item's location on the image.
|
void |
setPolygon(Collection<Point> polygon)
Within the bounding box, a fine-grained polygon around the detected item.
|
String |
toString()
Returns a string representation of this object.
|
Geometry |
withBoundingBox(BoundingBox boundingBox)
An axis-aligned coarse representation of the detected item's location on the image.
|
Geometry |
withPolygon(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 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 BoundingBox getBoundingBox()
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.
boundingBox - An axis-aligned coarse representation of the detected item's location on the image.public List<Point> getPolygon()
Within the bounding box, a fine-grained polygon around the detected item.
public void setPolygon(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.
NOTE: This method appends the values to the existing list (if any). Use
setPolygon(java.util.Collection) or withPolygon(java.util.Collection) if you want to override
the existing values.
polygon - Within the bounding box, a fine-grained polygon around the detected item.public Geometry withPolygon(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 String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.