Skip to content

Latest commit

 

History

History
296 lines (182 loc) · 16.1 KB

File metadata and controls

296 lines (182 loc) · 16.1 KB
title titleSuffix description author manager ms.service ms.topic ms.date ms.author ms.custom
Identity document (ID) processing – Document Intelligence
Azure AI services
Automate identity document (ID) processing of driver licenses, passports, and more with Document Intelligence.
laujan
nitinme
azure-ai-document-intelligence
conceptual
10/16/2024
lajanuar
references.regions

Document Intelligence ID document model

::: moniker range="doc-intel-4.0.0" [!INCLUDE preview-version-notice]

[!INCLUDE applies to v4.0] ::: moniker-end

::: moniker range="doc-intel-3.1.0" [!INCLUDE applies to v3.1] ::: moniker-end

::: moniker range="doc-intel-3.0.0" [!INCLUDE applies to v3.0] ::: moniker-end

::: moniker range="doc-intel-2.1.0" [!INCLUDE applies to v2.1] ::: moniker-end

::: moniker range=">=doc-intel-3.0.0"

Document Intelligence Identity document (ID) model combines Optical Character Recognition (OCR) with deep learning models to analyze and extract key information from identity documents. The API analyzes identity documents (including the following) and returns a structured JSON data representation:

  • Passport book, passport card worldwide
  • Driver's license from United States, Europe, India, Canada, and Australia
  • United States identification cards, residency permit (green card), social security card, military ID
  • European identification cards, residency permits
  • India PAN card, Aadhaar card
  • Canada identification cards, residency permit (maple card)
  • Australia photo card, key-pass ID (including digital version)

::: moniker-end

::: moniker range="doc-intel-2.1.0"

Document Intelligence can analyze and extract information from government-issued identification documents (IDs) using its prebuilt IDs model. It combines our powerful Optical Character Recognition (OCR) capabilities with ID recognition capabilities to extract key information from Worldwide Passports and U.S. Driver's Licenses (all 50 states and D.C.). The IDs API extracts key information from these identity documents, such as first name, surname, date of birth, document number, and more. This API is available in the Document Intelligence v2.1 as a cloud service.

::: moniker-end

Identity document processing

Identity document processing involves extracting data from identity documents either manually or by using OCR-based technology. ID document processing is an important step in any business operation that requires proof of identity. Examples include customer verification in banks and other financial institutions, mortgage applications, medical visits, claim processing, hospitality industry, and more. Individuals provide some proof of their identity via driver licenses, passports, and other similar documents so that the business can efficiently verify them before providing services and benefits.

::: moniker range=">=doc-intel-3.0.0"

Sample U.S. Driver's License processed with Document Intelligence Studio

:::image type="content" source="../media/studio/analyze-drivers-license.png" alt-text="Image of a sample driver's license.":::

::: moniker-end

::: moniker range="doc-intel-2.1.0"

Data extraction

The prebuilt IDs service extracts the key values from worldwide passports and U.S. Driver's Licenses and returns them in an organized structured JSON response.

Driver's license example

Sample Driver's License

Passport example

Sample Passport

::: moniker-end

Development options

::: moniker range="doc-intel-4.0.0"

Document Intelligence v4.0 (2024-07-31-preview) supports the following tools, applications, and libraries:

Feature Resources Model ID
ID document model Document Intelligence Studio
REST API
C# SDK
Python SDK
Java SDK
JavaScript SDK
prebuilt-idDocument
::: moniker-end

::: moniker range="doc-intel-3.1.0"

Document Intelligence v3.1 supports the following tools, applications, and libraries:

Feature Resources Model ID
ID document model Document Intelligence Studio
REST API
C# SDK
Python SDK
Java SDK
JavaScript SDK
prebuilt-idDocument
::: moniker-end

::: moniker range="doc-intel-3.0.0"

Document Intelligence v3.0 supports the following tools, applications, and libraries:

Feature Resources Model ID
ID document model Document Intelligence Studio
REST API
C# SDK
Python SDK
Java SDK
JavaScript SDK
prebuilt-idDocument
::: moniker-end

::: moniker range="doc-intel-2.1.0"

Document Intelligence v2.1 supports the following tools, applications, and libraries:

Feature Resources
ID document model Document Intelligence labeling tool
REST API
Client-library SDK
Document Intelligence Docker container
::: moniker-end

Input requirements

::: moniker range=">=doc-intel-3.0.0"

[!INCLUDE input requirements]

::: moniker-end

::: moniker range="doc-intel-2.1.0"

  • Supported file formats: JPEG, PNG, PDF, and TIFF.

  • Supported number of pages for PDF and TIFF files: up to 2,000 pages or only the first two pages for free-tier subscribers.

  • Supported file size: less than 50 MB TOTAL; minimum pixels: 50 x 50 px; maximum pixels 10,000 x 10,000 px.

::: moniker-end

ID document model data extraction

Extract data, including name, birth date, and expiration date, from ID documents. You need the following resources:

  • An Azure subscription—you can create one for free.

  • A Document Intelligence instance in the Azure portal. You can use the free pricing tier (F0) to try the service. After your resource deploys, select Go to resource to get your key and endpoint.

:::image type="content" source="../media/containers/keys-and-endpoint.png" alt-text="Screenshot of keys and endpoint location in the Azure portal.":::

::: moniker range=">=doc-intel-3.0.0"

Note

Document Intelligence Studio is available with v3.1 and v3.0 APIs and later versions.

  1. On the Document Intelligence Studio home page, select Identity documents.

  2. You can analyze the sample invoice or upload your own files.

  3. Select the Run analysis button and, if necessary, configure the Analyze options:

    :::image type="content" source="../media/studio/run-analysis-analyze-options.png" alt-text="Screenshot of Run analysis and Analyze options buttons in the Document Intelligence Studio.":::

    [!div class="nextstepaction"] Try Document Intelligence Studio.

::: moniker-end

::: moniker range="doc-intel-2.1.0"

Document Intelligence Sample Labeling tool

  1. Navigate to the Document Intelligence Sample Tool.

  2. On the sample tool home page, select the Use prebuilt model to get data tile.

    :::image type="content" source="../media/label-tool/prebuilt-1.jpg" alt-text="Screenshot of the layout model analyze results operation.":::

  3. Select the Form Type to analyze from the dropdown menu.

  4. Choose a URL for the file you would like to analyze from the below options:

  5. In the Source field, select URL from the dropdown menu, paste the selected URL, and select the Fetch button.

    :::image type="content" source="../media/label-tool/fott-select-url.png" alt-text="Screenshot of source location dropdown menu.":::

  6. In the Document Intelligence service endpoint field, paste the endpoint that you obtained with your Document Intelligence subscription.

  7. In the key field, paste the key you obtained from your Document Intelligence resource.

    :::image type="content" source="../media/fott-select-form-type.png" alt-text="Screenshot of select document type dropdown menu.":::

  8. Select Run analysis. The Document Intelligence Sample Labeling tool calls the Analyze Prebuilt API and analyzes the document.

  9. View the results - see the key-value pairs extracted, line items, highlighted text extracted, and tables detected.

    :::image type="content" source="../media/id-example-drivers-license.jpg" alt-text="Screenshot of the identity model analyze results operation.":::

  10. Download the JSON output file to view the detailed results.

    • The "readResults" node contains every line of text with its respective bounding box placement on the page.
    • The "selectionMarks" node shows every selection mark (checkbox, radio mark) and whether its status is selected or unselected.
    • The "pageResults" section includes the tables extracted. For each table, Document Intelligence extracts the text, row, and column index, row and column spanning, bounding box, and more.
    • The "documentResults" field contains key/value pairs information and line items information for the most relevant parts of the document.

Note

The Sample Labeling tool does not support the BMP file format. This is a limitation of the tool not the Document Intelligence Service.

::: moniker-end

::: moniker range=">=doc-intel-3.0.0"

Supported document types

Region Document types
Worldwide Passport Book, Passport Card
United States Driver License, Identification Card, Residency Permit (Green card), Social Security Card, Military ID
Europe Driver License, Identification Card, Residency Permit
India Driver License, PAN Card, Aadhaar Card
Canada Driver License, Identification Card, Residency Permit (Maple Card)
Australia Driver License, Photo Card, Key-pass ID (including digital version)

Field extractions

For supported document extraction fields, refer to the ID document model schema page in our GitHub sample repository.

::: moniker-end

::: moniker range="doc-intel-2.1.0"

Supported document types

The ID document model currently supports US driver licenses and the biographical page from international passports (excluding visa and other travel documents) extraction.

Fields extracted

Name Type Description Value
Country country Country code compliant with ISO 3166 standard "USA"
DateOfBirth date DOB in YYYY-MM-DD format "1980-01-01"
DateOfExpiration date Expiration date in YYYY-MM-DD format "2019-05-05"
DocumentNumber string Relevant passport number, driver's license number, etc. "340020013"
FirstName string Extracted given name and middle initial if applicable "JENNIFER"
LastName string Extracted surname "BROOKS"
Nationality country Country code compliant with ISO 3166 standard "USA"
Sex gender Possible extracted values include "M" "F" "X" "F"
MachineReadableZone object Extracted Passport MRZ including two lines of 44 characters each "P<USABROOKS<<JENNIFER<<<<<<<<<<<<<<<<<<<<<<< 3400200135USA8001014F1905054710000307<715816"
DocumentType string Document type, for example, Passport, Driver's License "passport"
Address string Extracted address (Driver's License only) "123 STREET ADDRESS YOUR CITY WA 99999-1234"
Region string Extracted region, state, province, etc. (Driver's License only) "Washington"

Migration guide

::: moniker-end

Next steps

::: moniker range=">=doc-intel-3.0.0"

::: moniker-end

::: moniker range="doc-intel-4.0.0"

:::moniker-end

::: moniker range="doc-intel-3.1.0"

:::moniker-end

::: moniker range="doc-intel-2.1.0"

::: moniker-end