Interface FaceMatch.Builder

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

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

    • similarity

      FaceMatch.Builder similarity(Float similarity)

      Confidence in the match of this face with the input face.

      Parameters:
      similarity - Confidence in the match of this face with the input face.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • face

      FaceMatch.Builder face(Face face)

      Describes the face properties such as the bounding box, face ID, image ID of the source image, and external image ID that you assigned.

      Parameters:
      face - Describes the face properties such as the bounding box, face ID, image ID of the source image, and external image ID that you assigned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • face

      default FaceMatch.Builder face(Consumer<Face.Builder> face)

      Describes the face properties such as the bounding box, face ID, image ID of the source image, and external image ID that you assigned.

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

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

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