Gets the label detection results of a Amazon Rekognition Video analysis
The label detection operation is started by a call to
returns a job identifier (
JobId). When the label detection operation
finishes, Amazon Rekognition publishes a completion status to the Amazon
Simple Notification Service topic registered in the initial call to
StartlabelDetection. To get the results of the label detection
operation, first check that the status value published to the Amazon SNS
SUCCEEDED. If so, call
get_label_detection and pass the
job identifier (
JobId) from the initial call to
get_label_detection returns an
array of detected labels (
Labels) sorted by the time the labels were
detected. You can also sort by the label name by specifying
SortBy input parameter.
The labels returned include the label name, the percentage confidence in the accuracy of the detected label, and the time the label was detected in the video.
The returned labels also include bounding box information for common objects, a hierarchical taxonomy of detected labels, and the version of the label model used for detection.
Use MaxResults parameter to limit the number of labels returned. If
there are more results than specified in
MaxResults, the value of
NextToken in the operation response contains a pagination token for
getting the next set of results. To get the next page of results, call
GetlabelDetection and populate the
NextToken request parameter with
the token value returned from the previous call to
rekognition_get_label_detection(JobId, MaxResults, NextToken, SortBy)
[required] Job identifier for the label detection operation for which you want
results returned. You get the job identifer from an initial call to
Maximum number of results to return per paginated call. The largest value you can specify is 1000. If you specify a value greater than 1000, a maximum of 1000 results is returned. The default value is 1000.
If the previous response was incomplete (because there are more labels to retrieve), Amazon Rekognition Video returns a pagination token in the response. You can use this pagination token to retrieve the next set of labels.
Sort to use for elements in the
A list with the following syntax:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
list( JobStatus = "IN_PROGRESS"|"SUCCEEDED"|"FAILED", StatusMessage = "string", VideoMetadata = list( Codec = "string", DurationMillis = 123, Format = "string", FrameRate = 123.0, FrameHeight = 123, FrameWidth = 123 ), NextToken = "string", Labels = list( list( Timestamp = 123, Label = list( Name = "string", Confidence = 123.0, Instances = list( list( BoundingBox = list( Width = 123.0, Height = 123.0, Left = 123.0, Top = 123.0 ), Confidence = 123.0 ) ), Parents = list( list( Name = "string" ) ) ) ) ), LabelModelVersion = "string" )
1 2 3 4 5 6
svc$get_label_detection( JobId = "string", MaxResults = 123, NextToken = "string", SortBy = "NAME"|"TIMESTAMP" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.