Driver's License OCR

Extract data from driver's licenses worldwide with high accuracy using our advanced OCR technology. We support front-side visual OCR and back-side PDF417 barcode parsing.

Supported Countries

Our driver's license OCR API supports the following countries and regions:

North America

Country Document Type API Value
United States Driver's License us_drivers_license
Canada Driver's License ca_drivers_license

Europe

Country Document Type API Value
Sweden Driver's License se_drivers_license

Asia

Country Document Type API Value
Japan Driver's License jp_drivers_license
Philippines Driver's License ph_drivers_license
Thailand Driver's License th_drivers_license

Oceania

Country Document Type API Value
Australia Driver's Licence au_drivers_licence
New Zealand Driver's License nz_drivers_license

Quick Start

Request Parameters

Parameter Type Required Description
image File Yes Driver's license image file (JPG, PNG, WebP, HEIC, HEIF, max 10MB)
documentType String Yes Use the API value from the table above (e.g., us_drivers_license)

Example Request (cURL)

curl -X POST "https://pictotext.io/api/v1/ocr" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "image=@drivers_license.jpg" \
  -F "documentType=us_drivers_license"

Example Response

Response fields vary by country. Here's a typical US driver's license response:

{
  "firstName": "JOHN",
  "lastName": "DOE",
  "licenseNumber": "D123456789012",
  "dateOfBirth": "1990-01-01",
  "expiryDate": "2025-01-01",
  "address": "123 MAIN STREET",
  "city": "LOS ANGELES",
  "state": "CA",
  "zipCode": "90001"
}

Key Features

PDF417 Barcode Support (US & Canada)

US and Canadian driver's licenses contain a PDF417 barcode on the back that encodes all license data. Our API can extract this data with 100% accuracy, even when the front side is damaged or unclear.

Structured Address Parsing

We automatically parse addresses into structured fields (street, city, state, ZIP) for easy database integration and address validation.

Vertical ID Support

We support both horizontal and vertical (under-21) license formats for all US states.

Related Documentation