getFaceLivenessSessionResults method
- required String sessionId,
Retrieves the results of a specific Face Liveness session. It requires the
sessionId as input, which was created using
CreateFaceLivenessSession. Returns the corresponding Face
Liveness confidence score, a reference image that includes a face bounding
box, and audit images that also contain face bounding boxes. The Face
Liveness confidence score ranges from 0 to 100.
The number of audit images returned by
GetFaceLivenessSessionResults is defined by the
AuditImagesLimit paramater when calling
CreateFaceLivenessSession. Reference images are always
returned when possible.
May throw AccessDeniedException.
May throw InternalServerError.
May throw InvalidParameterException.
May throw ProvisionedThroughputExceededException.
May throw SessionNotFoundException.
May throw ThrottlingException.
Parameter sessionId :
A unique 128-bit UUID. This is used to uniquely identify the session and
also acts as an idempotency token for all operations associated with the
session.
Implementation
Future<GetFaceLivenessSessionResultsResponse> getFaceLivenessSessionResults({
required String sessionId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'RekognitionService.GetFaceLivenessSessionResults'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'SessionId': sessionId,
},
);
return GetFaceLivenessSessionResultsResponse.fromJson(jsonResponse.body);
}