ocr.server ========== .. py:module:: ocr.server .. autoapi-nested-parse:: 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 ---------- .. autoapisummary:: ocr.server.app ocr.server.MAX_BYTES Functions --------- .. autoapisummary:: ocr.server.engine ocr.server.health ocr.server.ocr Module Contents --------------- .. py:data:: app .. py:data:: MAX_BYTES :value: 10485760 .. py:function:: engine() -> rapidocr_onnxruntime.RapidOCR .. py:function:: health() .. py:function:: ocr(file: fastapi.UploadFile) :async: