public static interface Label.Builder extends SdkPojo, CopyableBuilder<Label.Builder,Label>
| Modifier and Type | Method and Description |
|---|---|
Label.Builder |
aliases(Collection<LabelAlias> aliases)
A list of potential aliases for a given label.
|
Label.Builder |
aliases(Consumer<LabelAlias.Builder>... aliases)
A list of potential aliases for a given label.
|
Label.Builder |
aliases(LabelAlias... aliases)
A list of potential aliases for a given label.
|
Label.Builder |
categories(Collection<LabelCategory> categories)
A list of the categories associated with a given label.
|
Label.Builder |
categories(Consumer<LabelCategory.Builder>... categories)
A list of the categories associated with a given label.
|
Label.Builder |
categories(LabelCategory... categories)
A list of the categories associated with a given label.
|
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.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildLabel.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.
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.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.
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.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.
Instance.Builder avoiding the need to create one
manually via Instance.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #instances(List.
instances - a consumer that will call methods on
Instance.Builder#instances(java.util.Collection) Label.Builder parents(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.Label.Builder parents(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.Label.Builder parents(Consumer<Parent.Builder>... parents)
The parent labels for a label. The response includes all ancestor labels.
This is a convenience method that creates an instance of theParent.Builder avoiding the need to create one
manually via Parent.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #parents(List.
parents - a consumer that will call methods on
Parent.Builder#parents(java.util.Collection) Label.Builder aliases(Collection<LabelAlias> aliases)
A list of potential aliases for a given label.
aliases - A list of potential aliases for a given label.Label.Builder aliases(LabelAlias... aliases)
A list of potential aliases for a given label.
aliases - A list of potential aliases for a given label.Label.Builder aliases(Consumer<LabelAlias.Builder>... aliases)
A list of potential aliases for a given label.
This is a convenience method that creates an instance of theLabelAlias.Builder avoiding the need to create one
manually via LabelAlias.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #aliases(List.
aliases - a consumer that will call methods on
LabelAlias.Builder#aliases(java.util.Collection) Label.Builder categories(Collection<LabelCategory> categories)
A list of the categories associated with a given label.
categories - A list of the categories associated with a given label.Label.Builder categories(LabelCategory... categories)
A list of the categories associated with a given label.
categories - A list of the categories associated with a given label.Label.Builder categories(Consumer<LabelCategory.Builder>... categories)
A list of the categories associated with a given label.
This is a convenience method that creates an instance of theLabelCategory.Builder avoiding the need to create
one manually via LabelCategory.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #categories(List.
categories - a consumer that will call methods on
LabelCategory.Builder#categories(java.util.Collection) Copyright © 2023. All rights reserved.