Interface CustomLabel.Builder

All Superinterfaces:
Buildable, CopyableBuilder<CustomLabel.Builder,CustomLabel>, SdkBuilder<CustomLabel.Builder,CustomLabel>, SdkPojo
Enclosing class:
CustomLabel

public static interface CustomLabel.Builder extends SdkPojo, CopyableBuilder<CustomLabel.Builder,CustomLabel>
  • Method Details

    • name

      The name of the custom label.

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

      CustomLabel.Builder confidence(Float confidence)

      The confidence that the model has in the detection of the custom label. The range is 0-100. A higher value indicates a higher confidence.

      Parameters:
      confidence - The confidence that the model has in the detection of the custom label. The range is 0-100. A higher value indicates a higher confidence.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • geometry

      CustomLabel.Builder geometry(Geometry geometry)

      The location of the detected object on the image that corresponds to the custom label. Includes an axis aligned coarse bounding box surrounding the object and a finer grain polygon for more accurate spatial information.

      Parameters:
      geometry - The location of the detected object on the image that corresponds to the custom label. Includes an axis aligned coarse bounding box surrounding the object and a finer grain polygon for more accurate spatial information.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • geometry

      default CustomLabel.Builder geometry(Consumer<Geometry.Builder> geometry)

      The location of the detected object on the image that corresponds to the custom label. Includes an axis aligned coarse bounding box surrounding the object and a finer grain polygon for more accurate spatial information.

      This is a convenience method that creates an instance of the Geometry.Builder avoiding the need to create one manually via Geometry.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to geometry(Geometry).

      Parameters:
      geometry - a consumer that will call methods on Geometry.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: