xtract.bot
POST /api/ocr-prep-whiteboard

Pre-process a whiteboard or poster photo: rectify perspective, normalise lighting, suppress reflections. Reads markers more reliably and survives glare.

Specialised pre-processing for whiteboard / poster / flipchart photos — typically taken at an oblique angle, with reflections and uneven lighting. The pipeline rectifies perspective so the board is rectangular, normalises lighting across the surface, and suppresses specular reflections that would otherwise blank out parts of the writing. Output is a clean PNG ready for `document-ocr`.

Inputs

NameTypeDefaultDescription
image*fileWhiteboard photo (PNG/JPEG/WebP/AVIF).
granularityenum (text | word | line | word+line)"text"OCR detail level.
returnPrepImagebooleanfalseReturn the prep'd PNG as base64.

Response

Modes: json. Cache: yes (24h TTL).