OCRRouterЗеми API клуч

Passport OCR API

Extract the machine-readable zone and the printed fields from passport photos and scans for KYC and onboarding flows.

Резултат

Вашиот Markdown или JSON ќе се појави тука.

What makes passports hard to read

  • Glare from the laminate and holograms
  • MRZ check digits must validate
  • Names with diacritics or non-Latin scripts

What you can pull out

passport fields
{
  "document_number": "PA1234567",
  "surname": "CITIZEN",
  "given_names": "JANE",
  "nationality": "AUS",
  "date_of_birth": "1990-04-12",
  "sex": "F",
  "expiry_date": "2031-06-30",
  "mrz": "P<AUSCITIZEN<<JANE<<<<<<<<<<<<<<<<<<<<<<<<<<<"
}

Best models for passports

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