Key value extraction can be used to identify values for predefined keys in a
MRZ-supported passport. For example, if a passport includes nationality and date of issue,
Document Understanding can identify these values and
return them as a key value pair.
The supported features are:
Extract values for predefined key value pairs
Confidence score
The supported fields are:
Supported Fields
Field
Description
API Response Value
FirstName
First name (given name) listed on the document.
Extracted Text
LastName
Last name (family name) listed on the document.
Extracted Text
Country
Country listed on the document.
Extracted ISO 3166-1 country code
Nationality
Nationality of the document owner.
Extracted ISO 3166-1 country code
BirthDate
Date of birth.
Date in YYYY/MM/DD format
Else: <
ExpiryDate
Date of expiration listed on the document.
Date in YYYY/MM/DD format
Else: <
Gender
Gender listed on the document.
Extracted Text
DocumentType
Document type, often listed as a single character, such as "P"
for passport or "V" for Visa.
Extracted Text
DocumentNumber
Document identification number.
Extracted Text
Key Value Extraction (Passport) Example
An example of the use of key value extraction from a passport in Document Understanding.
Input document
Figure 1. Key Value Extraction (Passport) InputAPI Request: