amazonka-rekognition-1.6.1: Amazon Rekognition SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Rekognition.GetFaceDetection

Contents

Description

Gets face detection results for a Rekognition Video analysis started by .

Face detection with Rekognition Video is an asynchronous operation. You start face detection by calling which returns a job identifier (JobId ). When the face detection operation finishes, Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic registered in the initial call to StartFaceDetection . To get the results of the face 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 StartFaceDetection .

GetFaceDetection returns an array of detected faces (Faces ) sorted by the time the faces were detected.

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 GetFaceDetection and populate the NextToken request parameter with the token value returned from the previous call to GetFaceDetection .

Synopsis

Creating a Request

getFaceDetection Source #

Creates a value of GetFaceDetection with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gfdNextToken - If the previous response was incomplete (because there are more faces to retrieve), Rekognition Video returns a pagination token in the response. You can use this pagination token to retrieve the next set of faces.
  • gfdMaxResults - 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.
  • gfdJobId - Unique identifier for the face detection job. The JobId is returned from StartFaceDetection .

data GetFaceDetection Source #

See: getFaceDetection smart constructor.

Instances
Eq GetFaceDetection Source # 
Instance details

Defined in Network.AWS.Rekognition.GetFaceDetection

Data GetFaceDetection Source # 
Instance details

Defined in Network.AWS.Rekognition.GetFaceDetection

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetFaceDetection -> c GetFaceDetection #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetFaceDetection #

toConstr :: GetFaceDetection -> Constr #

dataTypeOf :: GetFaceDetection -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetFaceDetection) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetFaceDetection) #

gmapT :: (forall b. Data b => b -> b) -> GetFaceDetection -> GetFaceDetection #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetFaceDetection -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetFaceDetection -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetFaceDetection -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetFaceDetection -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetFaceDetection -> m GetFaceDetection #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetFaceDetection -> m GetFaceDetection #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetFaceDetection -> m GetFaceDetection #

Read GetFaceDetection Source # 
Instance details

Defined in Network.AWS.Rekognition.GetFaceDetection

Show GetFaceDetection Source # 
Instance details

Defined in Network.AWS.Rekognition.GetFaceDetection

Generic GetFaceDetection Source # 
Instance details

Defined in Network.AWS.Rekognition.GetFaceDetection

Associated Types

type Rep GetFaceDetection :: Type -> Type #

Hashable GetFaceDetection Source # 
Instance details

Defined in Network.AWS.Rekognition.GetFaceDetection

ToJSON GetFaceDetection Source # 
Instance details

Defined in Network.AWS.Rekognition.GetFaceDetection

AWSRequest GetFaceDetection Source # 
Instance details

Defined in Network.AWS.Rekognition.GetFaceDetection

Associated Types

type Rs GetFaceDetection :: Type #

ToHeaders GetFaceDetection Source # 
Instance details

Defined in Network.AWS.Rekognition.GetFaceDetection

ToPath GetFaceDetection Source # 
Instance details

Defined in Network.AWS.Rekognition.GetFaceDetection

ToQuery GetFaceDetection Source # 
Instance details

Defined in Network.AWS.Rekognition.GetFaceDetection

NFData GetFaceDetection Source # 
Instance details

Defined in Network.AWS.Rekognition.GetFaceDetection

Methods

rnf :: GetFaceDetection -> () #

type Rep GetFaceDetection Source # 
Instance details

Defined in Network.AWS.Rekognition.GetFaceDetection

type Rep GetFaceDetection = D1 (MetaData "GetFaceDetection" "Network.AWS.Rekognition.GetFaceDetection" "amazonka-rekognition-1.6.1-ELwOF0LSGWFp8S3Ef6QMe" False) (C1 (MetaCons "GetFaceDetection'" PrefixI True) (S1 (MetaSel (Just "_gfdNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_gfdMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)) :*: S1 (MetaSel (Just "_gfdJobId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs GetFaceDetection Source # 
Instance details

Defined in Network.AWS.Rekognition.GetFaceDetection

Request Lenses

gfdNextToken :: Lens' GetFaceDetection (Maybe Text) Source #

If the previous response was incomplete (because there are more faces to retrieve), Rekognition Video returns a pagination token in the response. You can use this pagination token to retrieve the next set of faces.

gfdMaxResults :: Lens' GetFaceDetection (Maybe Natural) Source #

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.

gfdJobId :: Lens' GetFaceDetection Text Source #

Unique identifier for the face detection job. The JobId is returned from StartFaceDetection .

Destructuring the Response

getFaceDetectionResponse Source #

Creates a value of GetFaceDetectionResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gfdrsNextToken - If the response is truncated, Amazon Rekognition returns this token that you can use in the subsequent request to retrieve the next set of faces.
  • gfdrsVideoMetadata - Information about a video that Rekognition Video analyzed. Videometadata is returned in every page of paginated responses from a Amazon Rekognition video operation.
  • gfdrsStatusMessage - If the job fails, StatusMessage provides a descriptive error message.
  • gfdrsFaces - An array of faces detected in the video. Each element contains a detected face's details and the time, in milliseconds from the start of the video, the face was detected.
  • gfdrsJobStatus - The current status of the face detection job.
  • gfdrsResponseStatus - -- | The response status code.

data GetFaceDetectionResponse Source #

See: getFaceDetectionResponse smart constructor.

Instances
Eq GetFaceDetectionResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.GetFaceDetection

Data GetFaceDetectionResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.GetFaceDetection

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetFaceDetectionResponse -> c GetFaceDetectionResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetFaceDetectionResponse #

toConstr :: GetFaceDetectionResponse -> Constr #

dataTypeOf :: GetFaceDetectionResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetFaceDetectionResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetFaceDetectionResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetFaceDetectionResponse -> GetFaceDetectionResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetFaceDetectionResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetFaceDetectionResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetFaceDetectionResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetFaceDetectionResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetFaceDetectionResponse -> m GetFaceDetectionResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetFaceDetectionResponse -> m GetFaceDetectionResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetFaceDetectionResponse -> m GetFaceDetectionResponse #

Read GetFaceDetectionResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.GetFaceDetection

Show GetFaceDetectionResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.GetFaceDetection

Generic GetFaceDetectionResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.GetFaceDetection

Associated Types

type Rep GetFaceDetectionResponse :: Type -> Type #

NFData GetFaceDetectionResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.GetFaceDetection

type Rep GetFaceDetectionResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.GetFaceDetection

type Rep GetFaceDetectionResponse = D1 (MetaData "GetFaceDetectionResponse" "Network.AWS.Rekognition.GetFaceDetection" "amazonka-rekognition-1.6.1-ELwOF0LSGWFp8S3Ef6QMe" False) (C1 (MetaCons "GetFaceDetectionResponse'" PrefixI True) ((S1 (MetaSel (Just "_gfdrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_gfdrsVideoMetadata") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe VideoMetadata)) :*: S1 (MetaSel (Just "_gfdrsStatusMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_gfdrsFaces") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [FaceDetection])) :*: (S1 (MetaSel (Just "_gfdrsJobStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe VideoJobStatus)) :*: S1 (MetaSel (Just "_gfdrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

gfdrsNextToken :: Lens' GetFaceDetectionResponse (Maybe Text) Source #

If the response is truncated, Amazon Rekognition returns this token that you can use in the subsequent request to retrieve the next set of faces.

gfdrsVideoMetadata :: Lens' GetFaceDetectionResponse (Maybe VideoMetadata) Source #

Information about a video that Rekognition Video analyzed. Videometadata is returned in every page of paginated responses from a Amazon Rekognition video operation.

gfdrsStatusMessage :: Lens' GetFaceDetectionResponse (Maybe Text) Source #

If the job fails, StatusMessage provides a descriptive error message.

gfdrsFaces :: Lens' GetFaceDetectionResponse [FaceDetection] Source #

An array of faces detected in the video. Each element contains a detected face's details and the time, in milliseconds from the start of the video, the face was detected.

gfdrsJobStatus :: Lens' GetFaceDetectionResponse (Maybe VideoJobStatus) Source #

The current status of the face detection job.