Start Segment Detection
rekognition_start_segment_detection | R Documentation |
Starts asynchronous detection of segment detection in a stored video¶
Description¶
Starts asynchronous detection of segment detection in a stored video.
Amazon Rekognition Video can detect segments in a video stored in an
Amazon S3 bucket. Use Video to specify the bucket name and the filename
of the video. start_segment_detection
returns a job identifier
(JobId
) which you use to get the results of the operation. When
segment detection is finished, Amazon Rekognition Video publishes a
completion status to the Amazon Simple Notification Service topic that
you specify in NotificationChannel
.
You can use the Filters
(StartSegmentDetectionFilters) input parameter
to specify the minimum detection confidence returned in the response.
Within Filters
, use ShotFilter
(StartShotDetectionFilter) to filter
detected shots. Use TechnicalCueFilter
(StartTechnicalCueDetectionFilter) to filter technical cues.
To get the results of the segment detection operation, first check that
the status value published to the Amazon SNS topic is SUCCEEDED
. if
so, call get_segment_detection
and pass the job identifier (JobId
)
from the initial call to start_segment_detection
.
For more information, see Detecting video segments in stored video in the Amazon Rekognition Developer Guide.
Usage¶
rekognition_start_segment_detection(Video, ClientRequestToken,
NotificationChannel, JobTag, Filters, SegmentTypes)
Arguments¶
Video |
[required] |
ClientRequestToken |
Idempotent token used to identify the start request. If you use
the same token with multiple |
NotificationChannel |
The ARN of the Amazon SNS topic to which you want Amazon Rekognition Video to publish the completion status of the segment detection operation. Note that the Amazon SNS topic must have a topic name that begins with AmazonRekognition if you are using the AmazonRekognitionServiceRole permissions policy to access the topic. |
JobTag |
An identifier you specify that's returned in the completion
notification that's published to your Amazon Simple Notification Service
topic. For example, you can use |
Filters |
Filters for technical cue or shot detection. |
SegmentTypes |
[required] An array of segment types to detect in the video. Valid values are TECHNICAL_CUE and SHOT. |
Value¶
A list with the following syntax:
list(
JobId = "string"
)
Request syntax¶
svc$start_segment_detection(
Video = list(
S3Object = list(
Bucket = "string",
Name = "string",
Version = "string"
)
),
ClientRequestToken = "string",
NotificationChannel = list(
SNSTopicArn = "string",
RoleArn = "string"
),
JobTag = "string",
Filters = list(
TechnicalCueFilter = list(
MinSegmentConfidence = 123.0,
BlackFrame = list(
MaxPixelThreshold = 123.0,
MinCoveragePercentage = 123.0
)
),
ShotFilter = list(
MinSegmentConfidence = 123.0
)
),
SegmentTypes = list(
"TECHNICAL_CUE"|"SHOT"
)
)