ocr.server¶
Minimal OCR HTTP service: POST an image, get text lines with confidence.
Internal only (docker network); RewakeAPI’s Celery worker calls it and does the field extraction (api/services/label_ocr.py).
Attributes¶
Functions¶
Module Contents¶
- ocr.server.app¶
- ocr.server.MAX_BYTES = 10485760¶
- ocr.server.engine() rapidocr_onnxruntime.RapidOCR¶
- ocr.server.health()¶
- async ocr.server.ocr(file: fastapi.UploadFile)¶