ID card OCR API
Read national ID cards and driver licences from a phone photo and return the printed fields.
结果
识别出的 Markdown 或 JSON 会显示在这里。
What makes ID cards hard to read
- Small print over security patterns
- Front and back in one image
- Layouts differ by country and state
What you can pull out
id-card fields
{
"document_type": "driver_licence",
"id_number": "12345678",
"full_name": "Jane Citizen",
"date_of_birth": "1990-04-12",
"address": "14 Harbour St, Sydney NSW 2000",
"expiry_date": "2029-04-12"
}Best models for ID cards
1Azure Document IntelligenceAzure layout model with tables, selection marks and prebuilt invoice and ID readers.
azure/document-intelligence15 credits / page2Amazon TextractAWS OCR with form key-value pairs, tables and per-word confidence scores.aws/textract6 credits / page3Gemini FlashGeneral vision model with strong handwriting and layout understanding at a low price.google/gemini-flash3 credits / pageCall 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"
}'