Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Starts asynchronous detection of labels in a stored video.
Rekognition Video can detect labels in a video. Labels are instances of real-world entities. This includes objects like flower, tree, and table; events like wedding, graduation, and birthday party; concepts like landscape, evening, and nature; and activities like a person getting out of a car or a person skiing.
The video must be stored in an Amazon S3 bucket. Use Video
to specify the bucket name and the filename of the video. StartLabelDetection
returns a job identifier (JobId
) which you use to get the results of the operation. When label detection is finished, Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic that you specify in NotificationChannel
.
To get the results of the label detection operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED
. If so, call and pass the job identifier (JobId
) from the initial call to StartLabelDetection
.
- startLabelDetection :: Video -> StartLabelDetection
- data StartLabelDetection
- sldJobTag :: Lens' StartLabelDetection (Maybe Text)
- sldNotificationChannel :: Lens' StartLabelDetection (Maybe NotificationChannel)
- sldClientRequestToken :: Lens' StartLabelDetection (Maybe Text)
- sldMinConfidence :: Lens' StartLabelDetection (Maybe Double)
- sldVideo :: Lens' StartLabelDetection Video
- startLabelDetectionResponse :: Int -> StartLabelDetectionResponse
- data StartLabelDetectionResponse
- sldrsJobId :: Lens' StartLabelDetectionResponse (Maybe Text)
- sldrsResponseStatus :: Lens' StartLabelDetectionResponse Int
Creating a Request
Creates a value of StartLabelDetection
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sldJobTag
- Unique identifier you specify to identify the job in the completion status published to the Amazon Simple Notification Service topic.sldNotificationChannel
- The Amazon SNS topic ARN you want Rekognition Video to publish the completion status of the label detection operation to.sldClientRequestToken
- Idempotent token used to identify the start request. If you use the same token with multipleStartLabelDetection
requests, the sameJobId
is returned. UseClientRequestToken
to prevent the same job from being accidently started more than once.sldMinConfidence
- Specifies the minimum confidence that Rekognition Video must have in order to return a detected label. Confidence represents how certain Amazon Rekognition is that a label is correctly identified.0 is the lowest confidence. 100 is the highest confidence. Rekognition Video doesn't return any labels with a confidence level lower than this specified value. If you don't specifyMinConfidence
, the operation returns labels with confidence values greater than or equal to 50 percent.sldVideo
- The video in which you want to detect labels. The video must be stored in an Amazon S3 bucket.
data StartLabelDetection Source #
See: startLabelDetection
smart constructor.
Request Lenses
sldJobTag :: Lens' StartLabelDetection (Maybe Text) Source #
Unique identifier you specify to identify the job in the completion status published to the Amazon Simple Notification Service topic.
sldNotificationChannel :: Lens' StartLabelDetection (Maybe NotificationChannel) Source #
The Amazon SNS topic ARN you want Rekognition Video to publish the completion status of the label detection operation to.
sldClientRequestToken :: Lens' StartLabelDetection (Maybe Text) Source #
Idempotent token used to identify the start request. If you use the same token with multiple StartLabelDetection
requests, the same JobId
is returned. Use ClientRequestToken
to prevent the same job from being accidently started more than once.
sldMinConfidence :: Lens' StartLabelDetection (Maybe Double) Source #
Specifies the minimum confidence that Rekognition Video must have in order to return a detected label. Confidence represents how certain Amazon Rekognition is that a label is correctly identified.0 is the lowest confidence. 100 is the highest confidence. Rekognition Video doesn't return any labels with a confidence level lower than this specified value. If you don't specify MinConfidence
, the operation returns labels with confidence values greater than or equal to 50 percent.
sldVideo :: Lens' StartLabelDetection Video Source #
The video in which you want to detect labels. The video must be stored in an Amazon S3 bucket.
Destructuring the Response
startLabelDetectionResponse Source #
Creates a value of StartLabelDetectionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sldrsJobId
- The identifier for the label detection job. UseJobId
to identify the job in a subsequent call toGetLabelDetection
.sldrsResponseStatus
- -- | The response status code.
data StartLabelDetectionResponse Source #
See: startLabelDetectionResponse
smart constructor.
Response Lenses
sldrsJobId :: Lens' StartLabelDetectionResponse (Maybe Text) Source #
The identifier for the label detection job. Use JobId
to identify the job in a subsequent call to GetLabelDetection
.
sldrsResponseStatus :: Lens' StartLabelDetectionResponse Int Source #
- - | The response status code.