Copyright | (c) 2013-2021 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 |
Starts the asynchronous search for faces in a collection that match the faces of persons detected in a stored video.
The video must be stored in an Amazon S3 bucket. Use Video to specify
the bucket name and the filename of the video. StartFaceSearch
returns
a job identifier (JobId
) which you use to get the search results once
the search has completed. When searching is finished, Amazon Rekognition
Video publishes a completion status to the Amazon Simple Notification
Service topic that you specify in NotificationChannel
. To get the
search results, first check that the status value published to the
Amazon SNS topic is SUCCEEDED
. If so, call GetFaceSearch and pass the
job identifier (JobId
) from the initial call to StartFaceSearch
. For
more information, see procedure-person-search-videos.
Synopsis
- data StartFaceSearch = StartFaceSearch' {}
- newStartFaceSearch :: Video -> Text -> StartFaceSearch
- startFaceSearch_faceMatchThreshold :: Lens' StartFaceSearch (Maybe Double)
- startFaceSearch_jobTag :: Lens' StartFaceSearch (Maybe Text)
- startFaceSearch_notificationChannel :: Lens' StartFaceSearch (Maybe NotificationChannel)
- startFaceSearch_clientRequestToken :: Lens' StartFaceSearch (Maybe Text)
- startFaceSearch_video :: Lens' StartFaceSearch Video
- startFaceSearch_collectionId :: Lens' StartFaceSearch Text
- data StartFaceSearchResponse = StartFaceSearchResponse' {
- jobId :: Maybe Text
- httpStatus :: Int
- newStartFaceSearchResponse :: Int -> StartFaceSearchResponse
- startFaceSearchResponse_jobId :: Lens' StartFaceSearchResponse (Maybe Text)
- startFaceSearchResponse_httpStatus :: Lens' StartFaceSearchResponse Int
Creating a Request
data StartFaceSearch Source #
See: newStartFaceSearch
smart constructor.
StartFaceSearch' | |
|
Instances
Create a value of StartFaceSearch
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:faceMatchThreshold:StartFaceSearch'
, startFaceSearch_faceMatchThreshold
- The minimum confidence in the person match to return. For example,
don't return any matches where confidence in matches is less than 70%.
The default value is 80%.
$sel:jobTag:StartFaceSearch'
, startFaceSearch_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 JobTag
to group related jobs
and identify them in the completion notification.
$sel:notificationChannel:StartFaceSearch'
, startFaceSearch_notificationChannel
- The ARN of the Amazon SNS topic to which you want Amazon Rekognition
Video to publish the completion status of the search. 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.
$sel:clientRequestToken:StartFaceSearch'
, startFaceSearch_clientRequestToken
- Idempotent token used to identify the start request. If you use the same
token with multiple StartFaceSearch
requests, the same JobId
is
returned. Use ClientRequestToken
to prevent the same job from being
accidently started more than once.
$sel:video:StartFaceSearch'
, startFaceSearch_video
- The video you want to search. The video must be stored in an Amazon S3
bucket.
$sel:collectionId:StartFaceSearch'
, startFaceSearch_collectionId
- ID of the collection that contains the faces you want to search for.
Request Lenses
startFaceSearch_faceMatchThreshold :: Lens' StartFaceSearch (Maybe Double) Source #
The minimum confidence in the person match to return. For example, don't return any matches where confidence in matches is less than 70%. The default value is 80%.
startFaceSearch_jobTag :: Lens' StartFaceSearch (Maybe Text) Source #
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 JobTag
to group related jobs
and identify them in the completion notification.
startFaceSearch_notificationChannel :: Lens' StartFaceSearch (Maybe NotificationChannel) Source #
The ARN of the Amazon SNS topic to which you want Amazon Rekognition Video to publish the completion status of the search. 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.
startFaceSearch_clientRequestToken :: Lens' StartFaceSearch (Maybe Text) Source #
Idempotent token used to identify the start request. If you use the same
token with multiple StartFaceSearch
requests, the same JobId
is
returned. Use ClientRequestToken
to prevent the same job from being
accidently started more than once.
startFaceSearch_video :: Lens' StartFaceSearch Video Source #
The video you want to search. The video must be stored in an Amazon S3 bucket.
startFaceSearch_collectionId :: Lens' StartFaceSearch Text Source #
ID of the collection that contains the faces you want to search for.
Destructuring the Response
data StartFaceSearchResponse Source #
See: newStartFaceSearchResponse
smart constructor.
StartFaceSearchResponse' | |
|
Instances
newStartFaceSearchResponse Source #
Create a value of StartFaceSearchResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:jobId:StartFaceSearchResponse'
, startFaceSearchResponse_jobId
- The identifier for the search job. Use JobId
to identify the job in a
subsequent call to GetFaceSearch
.
$sel:httpStatus:StartFaceSearchResponse'
, startFaceSearchResponse_httpStatus
- The response's http status code.
Response Lenses
startFaceSearchResponse_jobId :: Lens' StartFaceSearchResponse (Maybe Text) Source #
The identifier for the search job. Use JobId
to identify the job in a
subsequent call to GetFaceSearch
.
startFaceSearchResponse_httpStatus :: Lens' StartFaceSearchResponse Int Source #
The response's http status code.