public static interface Label.Builder extends SdkPojo, CopyableBuilder<Label.Builder,Label>
Modifier and Type | Method and Description |
---|---|
Label.Builder |
confidence(Float confidence)
Level of confidence.
|
Label.Builder |
instances(Collection<Instance> instances)
If
Label represents an object, Instances contains the bounding boxes for each
instance of the detected object. |
Label.Builder |
instances(Consumer<Instance.Builder>... instances)
If
Label represents an object, Instances contains the bounding boxes for each
instance of the detected object. |
Label.Builder |
instances(Instance... instances)
If
Label represents an object, Instances contains the bounding boxes for each
instance of the detected object. |
Label.Builder |
name(String name)
The name (label) of the object or scene.
|
Label.Builder |
parents(Collection<Parent> parents)
The parent labels for a label.
|
Label.Builder |
parents(Consumer<Parent.Builder>... parents)
The parent labels for a label.
|
Label.Builder |
parents(Parent... parents)
The parent labels for a label.
|
copy
applyMutation, build
Label.Builder name(String name)
The name (label) of the object or scene.
name
- The name (label) of the object or scene.Label.Builder confidence(Float confidence)
Level of confidence.
confidence
- Level of confidence.Label.Builder instances(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.
Amazon Rekognition Video does not support bounding box information for detected labels. The value of
Instances
is returned as null
by GetLabelDetection
.
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
.
Label.Builder instances(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
.
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
.
Label.Builder instances(Consumer<Instance.Builder>... 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
.
List.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #instances(List)
.instances
- a consumer that will call methods on List.Builder
#instances(List)
Label.Builder parents(Collection<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
.
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
.
Label.Builder parents(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
.
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
.
Label.Builder parents(Consumer<Parent.Builder>... 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
.
List.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #parents(List)
.parents
- a consumer that will call methods on List.Builder
#parents(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.