OCR ID card
Try it interactively →POST /api/ocr-prep-id-cardPre-process a passport, drivers licence, or other ID card photo: detect the card edges, crop, deskew, and normalise lighting for clean OCR.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| image* | file | — | Photo of an ID card / passport / driver's license. |
| granularity | enum (text | word | line | word+line) | "text" | OCR detail level. |
| returnPrepImage | boolean | false | Return the prep'd PNG as base64. |
Response
Modes: json. Cache: yes (24h TTL).