@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CustomLabel extends Object implements Serializable, Cloneable, StructuredPojo
A custom label detected in an image by a call to DetectCustomLabels.
Constructor and Description |
---|
CustomLabel() |
Modifier and Type | Method and Description |
---|---|
CustomLabel |
clone() |
boolean |
equals(Object obj) |
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.
|
String |
getName()
The name of the custom label.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setConfidence(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(String name)
The name of the custom label.
|
String |
toString()
Returns a string representation of this object.
|
CustomLabel |
withConfidence(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(String name)
The name of the custom label.
|
public void setName(String name)
The name of the custom label.
name
- The name of the custom label.public String getName()
The name of the custom label.
public CustomLabel withName(String name)
The name of the custom label.
name
- The name of the custom label.public void setConfidence(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.
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 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.
public CustomLabel withConfidence(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.
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 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 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.
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.
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 String toString()
toString
in class Object
Object.toString()
public CustomLabel clone()
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.