Struct aws_sdk_rekognition::types::LabelDetection
source · #[non_exhaustive]pub struct LabelDetection {
pub timestamp: i64,
pub label: Option<Label>,
pub start_timestamp_millis: Option<i64>,
pub end_timestamp_millis: Option<i64>,
pub duration_millis: Option<i64>,
}
Expand description
Information about a label detected in a video analysis request and the time the label was detected in the video.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.timestamp: i64
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.
label: Option<Label>
Details about the detected label.
start_timestamp_millis: Option<i64>
The time in milliseconds defining the start of the timeline segment containing a continuously detected label.
end_timestamp_millis: Option<i64>
The time in milliseconds defining the end of the timeline segment containing a continuously detected label.
duration_millis: Option<i64>
The time duration of a segment in milliseconds, I.e. time elapsed from StartTimestampMillis to EndTimestampMillis.
Implementations§
source§impl LabelDetection
impl LabelDetection
sourcepub fn timestamp(&self) -> i64
pub fn timestamp(&self) -> i64
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.
sourcepub fn start_timestamp_millis(&self) -> Option<i64>
pub fn start_timestamp_millis(&self) -> Option<i64>
The time in milliseconds defining the start of the timeline segment containing a continuously detected label.
sourcepub fn end_timestamp_millis(&self) -> Option<i64>
pub fn end_timestamp_millis(&self) -> Option<i64>
The time in milliseconds defining the end of the timeline segment containing a continuously detected label.
sourcepub fn duration_millis(&self) -> Option<i64>
pub fn duration_millis(&self) -> Option<i64>
The time duration of a segment in milliseconds, I.e. time elapsed from StartTimestampMillis to EndTimestampMillis.
source§impl LabelDetection
impl LabelDetection
sourcepub fn builder() -> LabelDetectionBuilder
pub fn builder() -> LabelDetectionBuilder
Creates a new builder-style object to manufacture LabelDetection
.
Trait Implementations§
source§impl Clone for LabelDetection
impl Clone for LabelDetection
source§fn clone(&self) -> LabelDetection
fn clone(&self) -> LabelDetection
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LabelDetection
impl Debug for LabelDetection
source§impl PartialEq<LabelDetection> for LabelDetection
impl PartialEq<LabelDetection> for LabelDetection
source§fn eq(&self, other: &LabelDetection) -> bool
fn eq(&self, other: &LabelDetection) -> bool
self
and other
values to be equal, and is used
by ==
.