Interface PersonMatch.Builder

    • Method Detail

      • timestamp

        PersonMatch.Builder timestamp​(Long timestamp)

        The time, in milliseconds from the beginning of the video, that the person was matched in the video.

        Parameters:
        timestamp - The time, in milliseconds from the beginning of the video, that the person was matched in the video.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • person

        PersonMatch.Builder person​(PersonDetail person)

        Information about the matched person.

        Parameters:
        person - Information about the matched person.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • faceMatches

        PersonMatch.Builder faceMatches​(Collection<FaceMatch> faceMatches)

        Information about the faces in the input collection that match the face of a person in the video.

        Parameters:
        faceMatches - Information about the faces in the input collection that match the face of a person in the video.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • faceMatches

        PersonMatch.Builder faceMatches​(FaceMatch... faceMatches)

        Information about the faces in the input collection that match the face of a person in the video.

        Parameters:
        faceMatches - Information about the faces in the input collection that match the face of a person in the video.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • faceMatches

        PersonMatch.Builder faceMatches​(Consumer<FaceMatch.Builder>... faceMatches)

        Information about the faces in the input collection that match the face of a person in the video.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #faceMatches(List).

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