@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Label extends Object implements Serializable, Cloneable, StructuredPojo
Structure containing details about the detected label, including the name, detected instances, parent labels, and level of confidence.
Constructor and Description |
---|
Label() |
Modifier and Type | Method and Description |
---|---|
Label |
clone() |
boolean |
equals(Object obj) |
Float |
getConfidence()
Level of confidence.
|
List<Instance> |
getInstances()
If
Label represents an object, Instances contains the bounding boxes for each instance
of the detected object. |
String |
getName()
The name (label) of the object or scene.
|
List<Parent> |
getParents()
The parent labels for a label.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setConfidence(Float confidence)
Level of confidence.
|
void |
setInstances(Collection<Instance> instances)
If
Label represents an object, Instances contains the bounding boxes for each instance
of the detected object. |
void |
setName(String name)
The name (label) of the object or scene.
|
void |
setParents(Collection<Parent> parents)
The parent labels for a label.
|
String |
toString()
Returns a string representation of this object.
|
Label |
withConfidence(Float confidence)
Level of confidence.
|
Label |
withInstances(Collection<Instance> instances)
If
Label represents an object, Instances contains the bounding boxes for each instance
of the detected object. |
Label |
withInstances(Instance... instances)
If
Label represents an object, Instances contains the bounding boxes for each instance
of the detected object. |
Label |
withName(String name)
The name (label) of the object or scene.
|
Label |
withParents(Collection<Parent> parents)
The parent labels for a label.
|
Label |
withParents(Parent... parents)
The parent labels for a label.
|
public void setName(String name)
The name (label) of the object or scene.
name
- The name (label) of the object or scene.public String getName()
The name (label) of the object or scene.
public Label withName(String name)
The name (label) of the object or scene.
name
- The name (label) of the object or scene.public void setConfidence(Float confidence)
Level of confidence.
confidence
- Level of confidence.public Float getConfidence()
Level of confidence.
public Label withConfidence(Float confidence)
Level of confidence.
confidence
- Level of confidence.public List<Instance> getInstances()
If Label
represents an object, Instances
contains the bounding boxes for each instance
of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture,
apparel or pets.
Label
represents an object, Instances
contains the bounding boxes for each
instance of the detected object. Bounding boxes are returned for common object labels such as people,
cars, furniture, apparel or pets.public void setInstances(Collection<Instance> instances)
If Label
represents an object, Instances
contains the bounding boxes for each instance
of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture,
apparel or pets.
instances
- If Label
represents an object, Instances
contains the bounding boxes for each
instance of the detected object. Bounding boxes are returned for common object labels such as people,
cars, furniture, apparel or pets.public Label withInstances(Instance... instances)
If Label
represents an object, Instances
contains the bounding boxes for each instance
of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture,
apparel or pets.
NOTE: This method appends the values to the existing list (if any). Use
setInstances(java.util.Collection)
or withInstances(java.util.Collection)
if you want to
override the existing values.
instances
- If Label
represents an object, Instances
contains the bounding boxes for each
instance of the detected object. Bounding boxes are returned for common object labels such as people,
cars, furniture, apparel or pets.public Label withInstances(Collection<Instance> instances)
If Label
represents an object, Instances
contains the bounding boxes for each instance
of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture,
apparel or pets.
instances
- If Label
represents an object, Instances
contains the bounding boxes for each
instance of the detected object. Bounding boxes are returned for common object labels such as people,
cars, furniture, apparel or pets.public List<Parent> getParents()
The parent labels for a label. The response includes all ancestor labels.
public void setParents(Collection<Parent> parents)
The parent labels for a label. The response includes all ancestor labels.
parents
- The parent labels for a label. The response includes all ancestor labels.public Label withParents(Parent... parents)
The parent labels for a label. The response includes all ancestor labels.
NOTE: This method appends the values to the existing list (if any). Use
setParents(java.util.Collection)
or withParents(java.util.Collection)
if you want to override
the existing values.
parents
- The parent labels for a label. The response includes all ancestor labels.public Label withParents(Collection<Parent> parents)
The parent labels for a label. The response includes all ancestor labels.
parents
- The parent labels for a label. The response includes all ancestor labels.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.