analyzeID method
Analyzes identity documents for relevant information. This information is
extracted and returned as IdentityDocumentFields, which
records both the normalized field and value of the extracted text. Unlike
other Amazon Textract operations, AnalyzeID doesn't return
any Geometry data.
May throw AccessDeniedException.
May throw BadDocumentException.
May throw DocumentTooLargeException.
May throw InternalServerError.
May throw InvalidParameterException.
May throw InvalidS3ObjectException.
May throw ProvisionedThroughputExceededException.
May throw ThrottlingException.
May throw UnsupportedDocumentException.
Parameter documentPages :
The document being passed to AnalyzeID.
Implementation
Future<AnalyzeIDResponse> analyzeID({
required List<Document> documentPages,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Textract.AnalyzeID'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DocumentPages': documentPages,
},
);
return AnalyzeIDResponse.fromJson(jsonResponse.body);
}