OCR receipt
Try it interactively →POST /api/ocr-prep-receiptPre-process a paper-receipt photo: deskew, normalise contrast, sharpen, and crop tight. Handles wrinkled and angled receipts that confuse a naive OCR pass.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| image* | file | — | Receipt photo (PNG/JPEG/WebP/AVIF). |
| granularity | enum (text | word | line | word+line) | "text" | OCR detail level passed through to document-ocr. |
| returnPrepImage | boolean | false | When true, include the prep'd PNG in the response (base64). |
Response
Modes: json. Cache: yes (24h TTL).