Struct aws_sdk_rekognition::model::SegmentDetection
source · [−]#[non_exhaustive]pub struct SegmentDetection { /* private fields */ }Expand description
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.
Implementations
sourceimpl SegmentDetection
impl SegmentDetection
sourcepub fn type(&self) -> Option<&SegmentType>
pub fn type(&self) -> Option<&SegmentType>
The type of the segment. Valid values are TECHNICAL_CUE and SHOT.
sourcepub fn start_timestamp_millis(&self) -> i64
pub fn start_timestamp_millis(&self) -> i64
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.
sourcepub fn end_timestamp_millis(&self) -> i64
pub fn end_timestamp_millis(&self) -> i64
The end time of the detected segment, in milliseconds, from the start of the video. This value is rounded down.
sourcepub fn duration_millis(&self) -> Option<i64>
pub fn duration_millis(&self) -> Option<i64>
The duration of the detected segment in milliseconds.
sourcepub fn start_timecode_smpte(&self) -> Option<&str>
pub fn start_timecode_smpte(&self) -> Option<&str>
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).
sourcepub fn end_timecode_smpte(&self) -> Option<&str>
pub fn end_timecode_smpte(&self) -> Option<&str>
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).
sourcepub fn duration_smpte(&self) -> Option<&str>
pub fn duration_smpte(&self) -> Option<&str>
The duration of the timecode for the detected segment in SMPTE format.
sourcepub fn technical_cue_segment(&self) -> Option<&TechnicalCueSegment>
pub fn technical_cue_segment(&self) -> Option<&TechnicalCueSegment>
If the segment is a technical cue, contains information about the technical cue.
sourcepub fn shot_segment(&self) -> Option<&ShotSegment>
pub fn shot_segment(&self) -> Option<&ShotSegment>
If the segment is a shot detection, contains information about the shot detection.
sourcepub fn start_frame_number(&self) -> Option<i64>
pub fn start_frame_number(&self) -> Option<i64>
The frame number of the start of a video segment, using a frame index that starts with 0.
sourcepub fn end_frame_number(&self) -> Option<i64>
pub fn end_frame_number(&self) -> Option<i64>
The frame number at the end of a video segment, using a frame index that starts with 0.
sourcepub fn duration_frames(&self) -> Option<i64>
pub fn duration_frames(&self) -> Option<i64>
The duration of a video segment, expressed in frames.
sourceimpl SegmentDetection
impl SegmentDetection
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SegmentDetection.
Trait Implementations
sourceimpl Clone for SegmentDetection
impl Clone for SegmentDetection
sourcefn clone(&self) -> SegmentDetection
fn clone(&self) -> SegmentDetection
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more