#3838th of 69 in Data and scraping for AIFor data and documents, documents and ocr
tesserocr
Python wrapper around the Tesseract OCR C++ API, Pillow-friendly
- Stars
- 2.2k
- License
- MIT
- Last commit
- Nov 2026
- Last release
- Nov 2026
- Language
- Python
2,148 on 25 Apr 20262,182 on 14 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
tesserocr binds directly to Tesseract's C++ API through Cython and exposes it to Python as PyTessBaseAPI plus helpers like image_to_text and file_to_text. It accepts PIL images or file paths, releases the GIL during recognition, and supports free-threaded CPython. Pre-built wheels for Linux, macOS and 64-bit Windows bundle Tesseract and Leptonica.
Who it is for: Python developers adding Tesseract OCR to applications or pipelines
Strengths
- Calls the C++ API directly via Cython, avoiding subprocess calls to the tesseract CLI
- Releases the GIL during recognition, so threads run OCR concurrently
- Wheels bundle Tesseract and Leptonica; no separate install needed
- Exposes layout iterators, word confidences, orientation/script detection and symbol choices
Weaknesses
- Language .traineddata files must be installed separately and match the Tesseract version
- Each worker needs its own PyTessBaseAPI instance; instances have no internal lock
- Some Tesseract parameters are process-wide and cannot change during parallel OCR
- Source builds need libtesseract, libleptonica and Cython >=3.1.8,<3.4
What it needs
- no GPU
- Docker
- Needs Tesseract (libtesseract >=3.04), Leptonica (>=1.71), Cython (build only), Pillow (optional), tessdata language files
- Models: Tesseract traineddata, LSTM engine
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Also in Data and scraping for AI
See all 69| Rank | Project | Score |
|---|---|---|
| 1 | mineruParses PDFs, images and Office files into Markdown and structured JSON | 91 out of 100 |
| 2 | doclingPython library that converts PDFs, Office files and more into structured text | 91 out of 100 |
| 3 | opendataloader-pdfPDF parser that outputs Markdown, JSON with bounding boxes, and Tagged PDF | 91 out of 100 |
| #4 | agent-reachCLI that gives coding agents read access to login-gated and Chinese web platforms | 88 out of 100 |
| #5 | markitdownPython library and CLI that converts office files, PDFs and audio to Markdown | 87 out of 100 |