diff --git a/Code/TODO.md b/Code/TODO.md index b6c858b..1505c44 100644 --- a/Code/TODO.md +++ b/Code/TODO.md @@ -31,6 +31,7 @@ Rationale: De-risk unknowns (Docling OCR quality, Ollama CPU inference speed) be - [x] Test OCR on images (PNG) — works with `force_ocr=true` **Docling API Spec:** + - Image: `ds4sd/docling-serve:latest` - Port: `5001` - Endpoint: `POST /v1/convert/file` @@ -39,12 +40,14 @@ Rationale: De-risk unknowns (Docling OCR quality, Ollama CPU inference speed) be - OCR engine: `easyocr` (default), supports CJK **OCR Options:** + - `do_ocr=true` — enabled by default, processes bitmap content - `force_ocr=true` — use for images/scanned PDFs (replaces existing text with OCR) - `ocr_engine` — `easyocr` (default), `tesseract`, `rapidocr`, `tesserocr`, `ocrmac` - `ocr_lang` — language codes (engine-specific), e.g. `ch_sim` for Simplified Chinese **Tested Formats:** + - PDF (Filing Receipt) — extracted text, tables, CJK content ✅ - PNG (Email screenshot) — extracted subject, dates, recipient ✅ (CJK trademark garbled, may need `ocr_lang`) @@ -56,6 +59,7 @@ Rationale: De-risk unknowns (Docling OCR quality, Ollama CPU inference speed) be - [x] Validate extraction accuracy (deadline, doc type, etc.) **Ollama API Spec:** + - Image: `ollama/ollama:0.9.3` - Port: `11434` - Model: `qwen3:1.7b` (~1.4 GB, auto-pulled on startup)