public class CustomLabel
extends java.lang.Object
implements java.io.Serializable
A custom label detected in an image by a call to DetectCustomLabels.
Constructor and Description |
---|
CustomLabel() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Float |
getConfidence()
The confidence that the model has in the detection of the custom label.
|
Geometry |
getGeometry()
The location of the detected object on the image that corresponds to the
custom label.
|
java.lang.String |
getName()
The name of the custom label.
|
int |
hashCode() |
void |
setConfidence(java.lang.Float confidence)
The confidence that the model has in the detection of the custom label.
|
void |
setGeometry(Geometry geometry)
The location of the detected object on the image that corresponds to the
custom label.
|
void |
setName(java.lang.String name)
The name of the custom label.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CustomLabel |
withConfidence(java.lang.Float confidence)
The confidence that the model has in the detection of the custom label.
|
CustomLabel |
withGeometry(Geometry geometry)
The location of the detected object on the image that corresponds to the
custom label.
|
CustomLabel |
withName(java.lang.String name)
The name of the custom label.
|
public java.lang.String getName()
The name of the custom label.
The name of the custom label.
public void setName(java.lang.String name)
The name of the custom label.
name
- The name of the custom label.
public CustomLabel withName(java.lang.String name)
The name of the custom label.
Returns a reference to this object so that method calls can be chained together.
name
- The name of the custom label.
public java.lang.Float getConfidence()
The confidence that the model has in the detection of the custom label. The range is 0-100. A higher value indicates a higher confidence.
Constraints:
Length: 0 - 100
The confidence that the model has in the detection of the custom label. The range is 0-100. A higher value indicates a higher confidence.
public void setConfidence(java.lang.Float confidence)
The confidence that the model has in the detection of the custom label. The range is 0-100. A higher value indicates a higher confidence.
Constraints:
Length: 0 - 100
confidence
- The confidence that the model has in the detection of the custom label. The range is 0-100. A higher value indicates a higher confidence.
public CustomLabel withConfidence(java.lang.Float confidence)
The confidence that the model has in the detection of the custom label. The range is 0-100. A higher value indicates a higher confidence.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 100
confidence
- The confidence that the model has in the detection of the custom label. The range is 0-100. A higher value indicates a higher confidence.
public Geometry getGeometry()
The location of the detected object on the image that corresponds to the custom label. Includes an axis aligned coarse bounding box surrounding the object and a finer grain polygon for more accurate spatial information.
The location of the detected object on the image that corresponds to the custom label. Includes an axis aligned coarse bounding box surrounding the object and a finer grain polygon for more accurate spatial information.
public void setGeometry(Geometry geometry)
The location of the detected object on the image that corresponds to the custom label. Includes an axis aligned coarse bounding box surrounding the object and a finer grain polygon for more accurate spatial information.
geometry
- The location of the detected object on the image that corresponds to the custom label. Includes an axis aligned coarse bounding box surrounding the object and a finer grain polygon for more accurate spatial information.
public CustomLabel withGeometry(Geometry geometry)
The location of the detected object on the image that corresponds to the custom label. Includes an axis aligned coarse bounding box surrounding the object and a finer grain polygon for more accurate spatial information.
Returns a reference to this object so that method calls can be chained together.
geometry
- The location of the detected object on the image that corresponds to the custom label. Includes an axis aligned coarse bounding box surrounding the object and a finer grain polygon for more accurate spatial information.
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.