Driver License
The Python SDK supports the Mindee V1 Driver License API.
Product Specifications
Endpoint Name
driver_license
Recommended Version
v1.0
Supports Polling/Webhooks
✔️ Yes
Support Synchronous HTTP Calls
❌ No
Geography
🌐 Global
Quick-Start
Using the sample below, we are going to illustrate how to extract the data that we want using the SDK.

Sample Code
Sample Output (rST)
Standard Fields
These fields are generic and used in several products.
BaseField
Each prediction object contains a set of fields that inherit from the generic BaseField class. A typical BaseField object will have the following attributes:
value (
Union[float, str]): corresponds to the field value. Can beNoneif no value was extracted.confidence (
float): the confidence score of the field prediction.bounding_box (
[Point, Point, Point, Point]): contains exactly 4 relative vertices (points) coordinates of a right rectangle containing the field in the document.polygon (
List[Point]): contains the relative vertices coordinates (Point) of a polygon containing the field in the image.page_id (
int): the ID of the page, alwaysNonewhen at document-level.reconstructed (
bool): indicates whether an object was reconstructed (not extracted as the API gave it).
Aside from the previous attributes, all basic fields have access to a custom __str__ method that can be used to print their value as a string.
DateField
Aside from the basic BaseField attributes, the date field DateField also implements the following:
date_object (
Date): an accessible representation of the value as a python object. Can beNone.
StringField
The text field StringField only has one constraint: its value is an Optional[str].
Attributes
The following fields are extracted for Driver License V1:
Category
category (StringField): The category or class of the driver license.
Country Code
country_code (StringField): The alpha-3 ISO 3166 code of the country where the driver license was issued.
Date of Birth
date_of_birth (DateField): The date of birth of the driver license holder.
DD Number
dd_number (StringField): The DD number of the driver license.
Expiry Date
expiry_date (DateField): The expiry date of the driver license.
First Name
first_name (StringField): The first name of the driver license holder.
ID
id (StringField): The unique identifier of the driver license.
Issued Date
issued_date (DateField): The date when the driver license was issued.
Issuing Authority
issuing_authority (StringField): The authority that issued the driver license.
Last Name
last_name (StringField): The last name of the driver license holder.
MRZ
mrz (StringField): The Machine Readable Zone (MRZ) of the driver license.
Place of Birth
place_of_birth (StringField): The place of birth of the driver license holder.
State
state (StringField): Second part of the ISO 3166-2 code, consisting of two letters indicating the US State.
Last updated
Was this helpful?

