@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)
Marshalls this structured data using the given
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 Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.