MerchantryTidbits

doc-parsing / library

Ollama OCR

Capability: Ollama OCR

Use it when

  • I need to extract text or structured output from an image or PDF with a local Ollama vision model.
  • I need to batch OCR a folder of images and collect per-file results and processing statistics.

What it solves

Not the fit when

  • Guaranteed-correct extraction, the README notes that LLaVA can generate wrong output sometimes.
  • OCR without Ollama and a pulled compatible vision model.
  • OCR without a local Ollama installation
  • guaranteed-correct vision extraction

Install

pip install ollama-ocr

Invoke

Pull an Ollama vision model, then call OCRProcessor(...).process_image(image_path="path/to/your/image.png", format_type="markdown").

Alternatives

No reviewed alternatives recorded yet.