You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Rekognition::Types::SegmentDetection

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

A technical cue or shot detection segment detected in a video. An array of SegmentDetection objects containing all segments detected in a stored video is returned by GetSegmentDetection.

Instance Attribute Summary collapse

Instance Attribute Details

#duration_millisInteger

The duration of the detected segment in milliseconds.

Returns:

  • (Integer)

    The duration of the detected segment in milliseconds.

#duration_smpteString

The duration of the timecode for the detected segment in SMPTE format.

Returns:

  • (String)

    The duration of the timecode for the detected segment in SMPTE format.

#end_timecode_smpteString

The frame-accurate SMPTE timecode, from the start of a video, for the end of a detected segment. EndTimecode is in HH:MM:SS:fr format (and ;fr for drop frame-rates).

Returns:

  • (String)

    The frame-accurate SMPTE timecode, from the start of a video, for the end of a detected segment.

#end_timestamp_millisInteger

The end time of the detected segment, in milliseconds, from the start of the video. This value is rounded down.

Returns:

  • (Integer)

    The end time of the detected segment, in milliseconds, from the start of the video.

#shot_segmentTypes::ShotSegment

If the segment is a shot detection, contains information about the shot detection.

Returns:

  • (Types::ShotSegment)

    If the segment is a shot detection, contains information about the shot detection.

#start_timecode_smpteString

The frame-accurate SMPTE timecode, from the start of a video, for the start of a detected segment. StartTimecode is in HH:MM:SS:fr format (and ;fr for drop frame-rates).

Returns:

  • (String)

    The frame-accurate SMPTE timecode, from the start of a video, for the start of a detected segment.

#start_timestamp_millisInteger

The start time of the detected segment in milliseconds from the start of the video. This value is rounded down. For example, if the actual timestamp is 100.6667 milliseconds, Amazon Rekognition Video returns a value of 100 millis.

Returns:

  • (Integer)

    The start time of the detected segment in milliseconds from the start of the video.

#technical_cue_segmentTypes::TechnicalCueSegment

If the segment is a technical cue, contains information about the technical cue.

Returns:

#typeString

The type of the segment. Valid values are TECHNICAL_CUE and SHOT.

Possible values:

  • TECHNICAL_CUE
  • SHOT

Returns:

  • (String)

    The type of the segment.