OCRRouterGet API key

Driver's license OCR API

Extract name, license number, dates and address from driver's license photos for KYC, car rental and onboarding.

Result

Your Markdown or JSON shows up here.

What makes driver's licenses hard to read

  • Every state and country uses a different layout
  • Holograms and glare over key fields
  • Barcodes on the back carry data the front does not

What you can pull out

drivers-license fields
{
  "license_number": "D1234-56789-01234",
  "full_name": "MARIA L GARCIA",
  "date_of_birth": "1988-02-21",
  "address": "455 Oak St, Austin TX 78701",
  "issue_date": "2023-05-10",
  "expiry_date": "2031-02-21",
  "class": "C",
  "issuing_region": "TX"
}

Best models for driver's licenses

Call it from your code

curl https://api.ocrrouter.ai/v1/ocr \
  -H "Authorization: Bearer $OCRROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "azure/document-intelligence",
    "file_url": "https://example.com/invoice.pdf",
    "format": "json"
  }'

Questions

Other documents