Class SegmentDetection
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SegmentDetection.Builder,SegmentDetection>
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.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SegmentDetection.Builderbuilder()final LongThe duration of a video segment, expressed in frames.final LongThe duration of the detected segment in milliseconds.final StringThe duration of the timecode for the detected segment in SMPTE format.final LongThe frame number at the end of a video segment, using a frame index that starts with 0.final StringThe frame-accurate SMPTE timecode, from the start of a video, for the end of a detected segment.final LongThe end time of the detected segment, in milliseconds, from the start of the video.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends SegmentDetection.Builder> final ShotSegmentIf the segment is a shot detection, contains information about the shot detection.final LongThe frame number of the start of a video segment, using a frame index that starts with 0.final StringThe frame-accurate SMPTE timecode, from the start of a video, for the start of a detected segment.final LongThe start time of the detected segment in milliseconds from the start of the video.final TechnicalCueSegmentIf the segment is a technical cue, contains information about the technical cue.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final SegmentTypetype()The type of the segment.final StringThe type of the segment.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
type
The type of the segment. Valid values are
TECHNICAL_CUEandSHOT.If the service returns an enum value that is not available in the current SDK version,
typewill returnSegmentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of the segment. Valid values are
TECHNICAL_CUEandSHOT. - See Also:
-
typeAsString
The type of the segment. Valid values are
TECHNICAL_CUEandSHOT.If the service returns an enum value that is not available in the current SDK version,
typewill returnSegmentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of the segment. Valid values are
TECHNICAL_CUEandSHOT. - See Also:
-
startTimestampMillis
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:
- 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.
-
endTimestampMillis
The end time of the detected segment, in milliseconds, from the start of the video. This value is rounded down.
- Returns:
- The end time of the detected segment, in milliseconds, from the start of the video. This value is rounded down.
-
durationMillis
The duration of the detected segment in milliseconds.
- Returns:
- The duration of the detected segment in milliseconds.
-
startTimecodeSMPTE
The frame-accurate SMPTE timecode, from the start of a video, for the start of a detected segment.
StartTimecodeis in HH:MM:SS:fr format (and ;fr for drop frame-rates).- Returns:
- The frame-accurate SMPTE timecode, from the start of a video, for the start of a detected segment.
StartTimecodeis in HH:MM:SS:fr format (and ;fr for drop frame-rates).
-
endTimecodeSMPTE
The frame-accurate SMPTE timecode, from the start of a video, for the end of a detected segment.
EndTimecodeis in HH:MM:SS:fr format (and ;fr for drop frame-rates).- Returns:
- The frame-accurate SMPTE timecode, from the start of a video, for the end of a detected segment.
EndTimecodeis in HH:MM:SS:fr format (and ;fr for drop frame-rates).
-
durationSMPTE
The duration of the timecode for the detected segment in SMPTE format.
- Returns:
- The duration of the timecode for the detected segment in SMPTE format.
-
technicalCueSegment
If the segment is a technical cue, contains information about the technical cue.
- Returns:
- If the segment is a technical cue, contains information about the technical cue.
-
shotSegment
If the segment is a shot detection, contains information about the shot detection.
- Returns:
- If the segment is a shot detection, contains information about the shot detection.
-
startFrameNumber
The frame number of the start of a video segment, using a frame index that starts with 0.
- Returns:
- The frame number of the start of a video segment, using a frame index that starts with 0.
-
endFrameNumber
The frame number at the end of a video segment, using a frame index that starts with 0.
- Returns:
- The frame number at the end of a video segment, using a frame index that starts with 0.
-
durationFrames
The duration of a video segment, expressed in frames.
- Returns:
- The duration of a video segment, expressed in frames.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<SegmentDetection.Builder,SegmentDetection> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-