Values.GetSegmentDetectionResponseSourceGets the segment detection results of a Amazon Rekognition Video analysis started by StartSegmentDetection. Segment detection with Amazon Rekognition Video is an asynchronous operation. You start segment detection by calling StartSegmentDetection which returns a job identifier (JobId). When the segment detection operation finishes, Amazon Rekognition publishes a completion status to the Amazon Simple Notification Service topic registered in the initial call to StartSegmentDetection. 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 GetSegmentDetection and pass the job identifier (JobId) from the initial call of StartSegmentDetection. GetSegmentDetection returns detected segments in an array (Segments) of SegmentDetection objects. Segments is sorted by the segment types specified in the SegmentTypes input parameter of StartSegmentDetection. Each element of the array includes the detected segment, the precentage confidence in the acuracy of the detected segment, the type of the segment, and the frame in which the segment was detected. Use SelectedSegmentTypes to find out the type of segment detection requested in the call to StartSegmentDetection. Use the MaxResults parameter to limit the number of segment detections 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 GetSegmentDetection and populate the NextToken request parameter with the token value returned from the previous call to GetSegmentDetection. For more information, see Detecting video segments in stored video in the Amazon Rekognition Developer Guide.
type nonrec t = {jobStatus : VideoJobStatus.t option;Current status of the segment detection job.
*)statusMessage : StatusMessage.t option;If the job fails, StatusMessage provides a descriptive error message.
*)videoMetadata : VideoMetadataList.t option;Currently, Amazon Rekognition Video returns a single object in the VideoMetadata array. The object contains information about the video stream in the input file that Amazon Rekognition Video chose to analyze. The VideoMetadata object includes the video codec, video format and other information. Video metadata is returned in each page of information returned by GetSegmentDetection.
*)audioMetadata : AudioMetadataList.t option;An array of objects. There can be multiple audio streams. Each AudioMetadata object contains metadata for a single audio stream. Audio information in an AudioMetadata objects includes the audio codec, the number of audio channels, the duration of the audio stream, and the sample rate. Audio metadata is returned in each page of information returned by GetSegmentDetection.
*)nextToken : PaginationToken.t option;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 text.
*)segments : SegmentDetections.t option;An array of segments detected in a video. The array is sorted by the segment types (TECHNICAL_CUE or SHOT) specified in the SegmentTypes input parameter of StartSegmentDetection. Within each segment type the array is sorted by timestamp values.
*)selectedSegmentTypes : SegmentTypesInfo.t option;An array containing the segment types requested in the call to StartSegmentDetection.
*)jobId : JobId.t option;Job identifier for the segment detection operation for which you want to obtain results. The job identifer is returned by an initial call to StartSegmentDetection.
*)video : Video.t option;jobTag : JobTag.t option;A job identifier specified in the call to StartSegmentDetection and returned in the job completion notification sent to your Amazon Simple Notification Service topic.
*)}type nonrec error = [ | `AccessDeniedException of AccessDeniedException.t| `InternalServerError of InternalServerError.t| `InvalidPaginationTokenException of InvalidPaginationTokenException.t| `InvalidParameterException of InvalidParameterException.t| `ProvisionedThroughputExceededException of
ProvisionedThroughputExceededException.t| `ResourceNotFoundException of ResourceNotFoundException.t| `ThrottlingException of ThrottlingException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `AccessDeniedException of unit
| `InternalServerError of unit
| `InvalidPaginationTokenException of unit
| `InvalidParameterException of unit
| `ProvisionedThroughputExceededException of unit
| `ResourceNotFoundException of unit
| `ThrottlingException of unit
| `Unknown_operation_error of string * string option ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `AccessDeniedException of unit
| `InternalServerError of unit
| `InvalidPaginationTokenException of unit
| `InvalidParameterException of unit
| `ProvisionedThroughputExceededException of unit
| `ResourceNotFoundException of unit
| `ThrottlingException of unit
| `Unknown_operation_error of string * string option ]val to_value :
t ->
[> `Structure of
(string
* [> `Enum of string
| `List of
[> `Structure of
(string
* [> `Enum of string
| `Float of Float_.t
| `Long of ULong.t
| `String of String_.t
| `Structure of
(string
* [> `Enum of string
| `Float of SegmentConfidence.t
| `Long of ULong.t ])
list ])
list ]
list
| `String of StatusMessage.t
| `Structure of
(string
* [> `Structure of (string * [> `String of S3Bucket.t ]) list ])
list ])
list ]