public class Instance
extends java.lang.Object
implements java.io.Serializable
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 |
---|---|
boolean |
equals(java.lang.Object obj) |
BoundingBox |
getBoundingBox()
The position of the label instance on the image.
|
java.lang.Float |
getConfidence()
The confidence that Amazon Rekognition has in the accuracy of the
bounding box.
|
int |
hashCode() |
void |
setBoundingBox(BoundingBox boundingBox)
The position of the label instance on the image.
|
void |
setConfidence(java.lang.Float confidence)
The confidence that Amazon Rekognition has in the accuracy of the
bounding box.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Instance |
withBoundingBox(BoundingBox boundingBox)
The position of the label instance on the image.
|
Instance |
withConfidence(java.lang.Float confidence)
The confidence that Amazon Rekognition has in the accuracy of the
bounding box.
|
public BoundingBox getBoundingBox()
The position of the label instance on the image.
The position of the label instance on the image.
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 Instance withBoundingBox(BoundingBox boundingBox)
The position of the label instance on the image.
Returns a reference to this object so that method calls can be chained together.
boundingBox
- The position of the label instance on the image.
public java.lang.Float getConfidence()
The confidence that Amazon Rekognition has in the accuracy of the bounding box.
Constraints:
Length: 0 - 100
The confidence that Amazon Rekognition has in the accuracy of the bounding box.
public void setConfidence(java.lang.Float confidence)
The confidence that Amazon Rekognition has in the accuracy of the bounding box.
Constraints:
Length: 0 - 100
confidence
- The confidence that Amazon Rekognition has in the accuracy of the bounding box.
public Instance withConfidence(java.lang.Float confidence)
The confidence that Amazon Rekognition has in the accuracy of the bounding box.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 100
confidence
- The confidence that Amazon Rekognition has in the accuracy of the bounding box.
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.