Using Amazon Textract for the accurate extraction of specialized documents
Amazon Textract can support the accurate extraction of specialized document types such as a United States (US) driver’s license, a US passport, invoices, and receipts. Now, we will walk you through the steps to accurately extract elements from these documents using Amazon Textract.
Accurate extraction of ID document (driver’s license)
In this section, we will use Amazon Textract for a US driver’s license document extraction. Now, let’s dive into the code sample, as follows:
- We are using
"dl.png"
as a sample US driver’s license document. Let’s use the following code to display the document:# Document documentName = "dl.png" display(Image(filename=documentName)
Now, check the result, as follows:
Figure 3.15 – Sample driver’s license
- We are using the
analyze_id
synchronous API of Amazon...