@Generated(value="software.amazon.awssdk:codegen") public final class Label extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Label.Builder,Label>
Structure containing details about the detected label, including the name, and level of confidence.
The Amazon Rekognition Image operation operation returns a hierarchical taxonomy (Parents
) for detected
labels and also bounding box information (Instances
) for detected labels. Amazon Rekognition Video
doesn't return this information and returns null
for the Parents
and Instances
attributes.
Modifier and Type | Class and Description |
---|---|
static interface |
Label.Builder |
Modifier and Type | Method and Description |
---|---|
static Label.Builder |
builder() |
Float |
confidence()
Level of confidence.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<Instance> |
instances()
If
Label represents an object, Instances contains the bounding boxes for each instance
of the detected object. |
String |
name()
The name (label) of the object or scene.
|
List<Parent> |
parents()
The parent labels for a label.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Label.Builder> |
serializableBuilderClass() |
Label.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String name()
The name (label) of the object or scene.
public Float confidence()
Level of confidence.
public List<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.
Amazon Rekognition Video does not support bounding box information for detected labels. The value of
Instances
is returned as null
by GetLabelDetection
.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
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.
Amazon Rekognition Video does not support bounding box information for detected labels. The value of
Instances
is returned as null
by GetLabelDetection
.
public List<Parent> parents()
The parent labels for a label. The response includes all ancestor labels.
Amazon Rekognition Video does not support a hierarchical taxonomy of detected labels. The value of
Parents
is returned as null
by GetLabelDetection
.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
Amazon Rekognition Video does not support a hierarchical taxonomy of detected labels. The value of
Parents
is returned as null
by GetLabelDetection
.
public Label.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Label.Builder,Label>
public static Label.Builder builder()
public static Class<? extends Label.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.