@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, detected instances, parent labels, and level of confidence.
| 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() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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.
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.public List<Parent> parents()
The parent labels for a label. The response includes all ancestor labels.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Label.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Label.Builder,Label>public static Label.Builder builder()
public static Class<? extends Label.Builder> serializableBuilderClass()
public String toString()
Copyright © 2019. All rights reserved.