Interface Label.Builder

    • Method Detail

      • name

        Label.Builder name​(String name)

        The name (label) of the object or scene.

        Parameters:
        name - The name (label) of the object or scene.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • confidence

        Label.Builder confidence​(Float confidence)

        Level of confidence.

        Parameters:
        confidence - Level of confidence.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instances

        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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instances

        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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instances

        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.

        This is a convenience method that creates an instance of the 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).

        Parameters:
        instances - a consumer that will call methods on Instance.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #instances(java.util.Collection)
      • parents

        Label.Builder parents​(Collection<Parent> parents)

        The parent labels for a label. The response includes all ancestor labels.

        Parameters:
        parents - The parent labels for a label. The response includes all ancestor labels.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • parents

        Label.Builder parents​(Parent... parents)

        The parent labels for a label. The response includes all ancestor labels.

        Parameters:
        parents - The parent labels for a label. The response includes all ancestor labels.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • parents

        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 the Parent.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).

        Parameters:
        parents - a consumer that will call methods on Parent.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #parents(java.util.Collection)
      • aliases

        Label.Builder aliases​(Collection<LabelAlias> aliases)

        A list of potential aliases for a given label.

        Parameters:
        aliases - A list of potential aliases for a given label.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • aliases

        Label.Builder aliases​(LabelAlias... aliases)

        A list of potential aliases for a given label.

        Parameters:
        aliases - A list of potential aliases for a given label.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • categories

        Label.Builder categories​(Collection<LabelCategory> categories)

        A list of the categories associated with a given label.

        Parameters:
        categories - A list of the categories associated with a given label.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • categories

        Label.Builder categories​(LabelCategory... categories)

        A list of the categories associated with a given label.

        Parameters:
        categories - A list of the categories associated with a given label.
        Returns:
        Returns a reference to this object so that method calls can be chained together.