@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Instance extends Object implements Serializable, Cloneable, StructuredPojo
An instance of a label returned by Amazon Rekognition Image (DetectLabels) or by Amazon Rekognition Video (GetLabelDetection).
| Constructor and Description |
|---|
Instance() |
| Modifier and Type | Method and Description |
|---|---|
Instance |
clone() |
boolean |
equals(Object obj) |
BoundingBox |
getBoundingBox()
The position of the label instance on the image.
|
Float |
getConfidence()
The confidence that Amazon Rekognition has in the accuracy of the bounding box.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setBoundingBox(BoundingBox boundingBox)
The position of the label instance on the image.
|
void |
setConfidence(Float confidence)
The confidence that Amazon Rekognition has in the accuracy of the bounding box.
|
String |
toString()
Returns a string representation of this object.
|
Instance |
withBoundingBox(BoundingBox boundingBox)
The position of the label instance on the image.
|
Instance |
withConfidence(Float confidence)
The confidence that Amazon Rekognition has in the accuracy of the bounding box.
|
public void setBoundingBox(BoundingBox boundingBox)
The position of the label instance on the image.
boundingBox - The position of the label instance on the image.public BoundingBox getBoundingBox()
The position of the label instance on the image.
public Instance withBoundingBox(BoundingBox boundingBox)
The position of the label instance on the image.
boundingBox - The position of the label instance on the image.public void setConfidence(Float confidence)
The confidence that Amazon Rekognition has in the accuracy of the bounding box.
confidence - The confidence that Amazon Rekognition has in the accuracy of the bounding box.public Float getConfidence()
The confidence that Amazon Rekognition has in the accuracy of the bounding box.
public Instance withConfidence(Float confidence)
The confidence that Amazon Rekognition has in the accuracy of the bounding box.
confidence - The confidence that Amazon Rekognition has in the accuracy of the bounding box.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2020. All rights reserved.