Interface LabelDetection.Builder

    • Method Detail

      • timestamp

        LabelDetection.Builder timestamp​(Long timestamp)

        Time, in milliseconds from the start of the video, that the label was detected. Note that Timestamp is not guaranteed to be accurate to the individual frame where the label first appears.

        Parameters:
        timestamp - Time, in milliseconds from the start of the video, that the label was detected. Note that Timestamp is not guaranteed to be accurate to the individual frame where the label first appears.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • label

        LabelDetection.Builder label​(Label label)

        Details about the detected label.

        Parameters:
        label - Details about the detected label.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • startTimestampMillis

        LabelDetection.Builder startTimestampMillis​(Long startTimestampMillis)

        The time in milliseconds defining the start of the timeline segment containing a continuously detected label.

        Parameters:
        startTimestampMillis - The time in milliseconds defining the start of the timeline segment containing a continuously detected label.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • endTimestampMillis

        LabelDetection.Builder endTimestampMillis​(Long endTimestampMillis)

        The time in milliseconds defining the end of the timeline segment containing a continuously detected label.

        Parameters:
        endTimestampMillis - The time in milliseconds defining the end of the timeline segment containing a continuously detected label.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • durationMillis

        LabelDetection.Builder durationMillis​(Long durationMillis)

        The time duration of a segment in milliseconds, I.e. time elapsed from StartTimestampMillis to EndTimestampMillis.

        Parameters:
        durationMillis - The time duration of a segment in milliseconds, I.e. time elapsed from StartTimestampMillis to EndTimestampMillis.
        Returns:
        Returns a reference to this object so that method calls can be chained together.