# Python OCR libraries

Python OCR (optical character recognition) libraries extract text from images and scanned documents. [pytesseract](#pytesseract) passes each image to Tesseract, an OCR engine installed separately from Python. [EasyOCR](#easyocr) and [PaddleOCR](#paddleocr) install with pip and bring their own deep learning models. The models download on first use and run faster on a GPU. These libraries turn scanned forms, receipts, and screenshots into text that search systems and AI agents can read.

## Popularity

| Library | Monthly downloads | Stars | Last release | License |
| --- | --- | --- | --- | --- |
| [pytesseract](#pytesseract) | 17.0M | 6.4K | Aug 2024 | Apache-2.0 |
| [RapidOCR](#rapidocr) | 3.8M | 8.5K | Oct 2026 | Apache-2.0 |
| [EasyOCR](#easyocr) | 1.9M | 30.1K | Sep 2024 | Apache-2.0 |
| [PaddleOCR](#paddleocr) | 1.2M | 92.4K | Jun 2026 | Apache-2.0 |
| [OCRmyPDF](#ocrmypdf) | 1.1M | 35.3K | Sep 2026 | MPL-2.0 |
| [tesserocr](#tesserocr) | 429.3K | 2.2K | Oct 2026 | MIT |
| [doctr](#doctr) | 204.7K | 6.4K | Aug 2026 | Apache-2.0 |
| [keras-ocr](#keras-ocr) | 8.7K | 1.5K | Nov 2023 | MIT |

Downloads: PyPI, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

[pytesseract](#pytesseract) has the most installs, while [PaddleOCR](#paddleocr) has the most GitHub stars.

## Capabilities

| Library | Detects tables | Detects page layout | Returns word boxes | Reads handwriting | Runs on a GPU | Output formats |
| --- | --- | --- | --- | --- | --- | --- |
| [pytesseract](#pytesseract) | Unsupported | Via plugin | Built-in | Via plugin | Unsupported | Text, TSV, PDF, hOCR |
| [RapidOCR](#rapidocr) |  | Unsupported | Built-in |  | Via plugin | Markdown, JSON |
| [EasyOCR](#easyocr) | Unsupported | Unsupported | Built-in | Unsupported | Built-in | JSON |
| [PaddleOCR](#paddleocr) | Built-in | Built-in | Unsupported | Built-in | Built-in | Markdown, JSON |
| [OCRmyPDF](#ocrmypdf) | Unsupported | Unsupported | Via plugin | Unsupported | Via plugin | Text, PDF |
| [tesserocr](#tesserocr) |  | Via plugin | Via plugin | Unsupported | Unsupported | Text |
| [doctr](#doctr) | Built-in | Built-in | Built-in | Unsupported | Built-in | Markdown, JSON |
| [keras-ocr](#keras-ocr) |  |  | Built-in |  | Built-in |  |

## Libraries

### pytesseract

[GitHub](https://github.com/madmaze/pytesseract) · [PyPI](https://pypi.org/project/pytesseract/)

pytesseract is a Python wrapper for [Tesseract](#what-is-tesseract), Google's open source OCR engine. The wrapper passes each image to the Tesseract command-line program, which has to be installed separately and be on the system path. For plain text, `image_to_string` returns everything Tesseract read as one string. A second function, `image_to_data`, returns one row per word with its position on the image, a confidence value, and its line and page. Other functions turn the same image into a searchable PDF, hOCR, or ALTO XML.

- Downloads / mo: 17.0M
- Stars: 6.4K
- Last release: 0.3.13, Aug 2024
- License: Apache-2.0
- Runs on: Tesseract, installed separately
- Capabilities: [From the pytesseract docs](https://github.com/madmaze/pytesseract)

**Strengths**

- **Reads over 100 languages.** Tesseract language packs cover more than 100 languages.
- **Text, boxes, or a searchable PDF.** One call returns plain text, word boxes, TSV, or a searchable PDF.

**Watch out for**

- **One process per call.** Each call starts a new Tesseract process. [tesserocr](#tesserocr) calls the engine's C++ API directly instead.
- **Installed languages only.** Each language needs its Tesseract language pack, selected with the `lang` argument, such as `lang='fra'` for French.

```sh
pip install pytesseract
```

**gramps-project/gramps-web-api** (231 stars)

[gramps-project/gramps-web-api](https://github.com/gramps-project/gramps-web-api) runs OCR on a stored image and returns text, boxes, word data, or hOCR with pytesseract.

```python
def get_ocr(self, lang: str, output_format: str = "string"):
    # ...
    if not self.mime.startswith("image"):
        return {}
    try:
        import pytesseract
    except ImportError:
        abort_with_message(501, "pytesseract is not installed")

    try:
        pytesseract.get_tesseract_version()
    except pytesseract.TesseractNotFoundError:
        abort_with_message(501, "Tesseract is not installed")
    fobj = self.get_file_object()
    image = open_image(fobj)
    if output_format == "string":
        data = pytesseract.image_to_string(image, lang=lang)
    elif output_format == "boxes":
        data = pytesseract.image_to_boxes(image, lang=lang, output_type="dict")
    elif output_format == "data":
        data = pytesseract.image_to_data(image, lang=lang, output_type="dict")
    elif output_format == "hocr":
        data = pytesseract.image_to_pdf_or_hocr(
            image, lang=lang, extension="hocr"
        ).decode("utf-8")
    else:
        raise ValueError(f"Unknown output format: {output_format}")
    return data
```

[file.py · get_ocr()](https://github.com/gramps-project/gramps-web-api/blob/57618907ce0529a893a02207115e3a3db79e0628/gramps_webapi/api/file.py#L161-L188) · pushed Nov 2026 · [More projects using pytesseract →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20pytesseract%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**gavrielc/Nano-PDF** (1.3K stars)

[gavrielc/Nano-PDF](https://github.com/gavrielc/Nano-PDF) turns a page image into a searchable PDF with a hidden text layer using pytesseract.

```python
def rehydrate_image_to_pdf(image: Image.Image, output_pdf_path: str):
    """
    Converts an image to a single-page PDF with a hidden text layer using Tesseract.
    This is the 'State Preservation' step.
    """
    pdf_bytes = pytesseract.image_to_pdf_or_hocr(image, extension='pdf')
    with open(output_pdf_path, 'wb') as f:
        f.write(pdf_bytes)
```

[pdf_utils.py · rehydrate_image_to_pdf()](https://github.com/gavrielc/Nano-PDF/blob/9b9ddae5833c72d19a28ce2a5712a2e6f35870be/nano_pdf/pdf_utils.py#L88-L95) · pushed Dec 2025 · [More projects using pytesseract →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20pytesseract%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**Quickstart**

```python
from PIL import Image
import pytesseract

# Simple image to string
print(pytesseract.image_to_string(Image.open('test.png')))
```

From [the README](https://github.com/madmaze/pytesseract/blob/master/README.rst)

### RapidOCR

[GitHub](https://github.com/RapidAI/RapidOCR) · [PyPI](https://pypi.org/project/rapidocr/) · [Docs](https://rapidai.github.io/RapidOCRDocs)

RapidOCR runs PaddleOCR's models after converting them to ONNX, a portable model format, so no PaddlePaddle install is needed. A single command, `pip install rapidocr onnxruntime`, installs everything. Calling the engine on an image path or URL returns the text it found with each box and score.

- Downloads / mo: 3.8M
- Stars: 8.5K
- Last release: 3.10.0, Oct 2026
- License: Apache-2.0
- Runs on: ONNX Runtime
- Capabilities: [From the RapidOCR docs](https://github.com/RapidAI/RapidOCR/blob/main/python/rapidocr/main.py)

**Strengths**

- **Choice of runtimes.** Runs on ONNX Runtime, OpenVINO, PaddlePaddle, or PyTorch.
- **Runs on a CPU.** A laptop or small server is enough.
- **Models included.** pip install rapidocr onnxruntime, and three lines of Python read an image.

**Watch out for**

- **Chinese and English by default.** Other languages need a different model from the project's model list.
- **Training happens elsewhere.** Custom models are fine-tuned in [PaddleOCR](#paddleocr) and then converted for RapidOCR.

```sh
pip install rapidocr
```

**xavctn/img2table** (903 stars)

[xavctn/img2table](https://github.com/xavctn/img2table) runs RapidOCR on each page image and collects every word with its confidence and box.

```python
def of(self, document: Document | MockDocument) -> OCRData | None:
    ocrs = cast("list[RapidOCROutput]", [self.engine(img) for img in document.images])
    content = [
        {
            "texts": res.txts,
            "scores": res.scores,
            "boxes": res.boxes,
        }
        if res.txts is not None and res.scores is not None and res.boxes is not None
        else {}
        for res in ocrs
    ]

    # Create dict of elements by page
    records = {}
    for page, ocr_result in enumerate(content):
        for idx, (word, conf, bbox) in enumerate(
            zip(
                cast("tuple[str, ...]", ocr_result["texts"]),
                cast("tuple[float, ...]", ocr_result["scores"]),
                cast("npt.NDArray", ocr_result["boxes"]),
                strict=True,
            )
        ):
            dict_word = {
                "id": f"word_{page + 1}_{idx + 1}",
                "parent": f"word_{page + 1}_{idx + 1}",
                "value": word,
                "confidence": int(100 * conf),
                "x1": int(min(bbox[:, 0])),
                "y1": int(min(bbox[:, 1])),
                "x2": int(max(bbox[:, 0])),
                "y2": int(max(bbox[:, 1])),
            }

            records.setdefault(page, []).append(dict_word)

    return OCRData(records=records) if records else None
```

[rapidocr.py · of()](https://github.com/xavctn/img2table/blob/ace000c980b49b253cb0ed8a126879087a8fe29f/src/img2table/ocr/rapidocr.py#L39-L76) · pushed Nov 2026 · [More projects using RapidOCR →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20rapidocr%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**marouane53/GeoINT** (228 stars)

[marouane53/GeoINT](https://github.com/marouane53/GeoINT) reads text from an image with RapidOCR and returns each line with its confidence and box.

```python
def run(self, im: Image.Image) -> list[dict]:
    import numpy as np
    res, _ = self.ocr(np.array(im.convert("RGB"))[:, :, ::-1])
    out = []
    for box, text, conf in res or []:
        xs = [p[0] for p in box]
        ys = [p[1] for p in box]
        out.append({"text": str(text), "conf": round(float(conf), 3), "box": [int(min(xs)), int(min(ys)), int(max(xs)), int(max(ys))]})
    return out
```

[ocr.py · run()](https://github.com/marouane53/GeoINT/blob/53ea6623153ee3aec9aa732d29a547776f13fd8c/scripts/ocr.py#L92-L100) · pushed Nov 2026 · [More projects using RapidOCR →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20rapidocr%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**Quickstart**

```python
from rapidocr import RapidOCR

engine = RapidOCR()

img_url = "https://www.modelscope.cn/models/RapidAI/RapidOCR/resolve/master/resources/test_files/ch_en_num.jpg"
result = engine(img_url)
print(result)

result.vis("vis_result.jpg")
```

From [the README](https://github.com/RapidAI/RapidOCR/blob/main/README.md)

### EasyOCR

[GitHub](https://github.com/JaidedAI/EasyOCR) · [PyPI](https://pypi.org/project/easyocr/) · [Docs](https://www.jaided.ai)

EasyOCR reads text with deep learning models built on PyTorch and supports more than eighty languages, including Latin, Chinese, Arabic, Devanagari, and Cyrillic scripts. Model weights for each language download automatically the first time a reader is created. Its main method, `readtext`, returns a list in which each item holds a bounding box, the detected text, and a confidence level, which [pytesseract](#pytesseract) gives only through `image_to_data`. Setting `detail` to zero returns the text alone.

- Downloads / mo: 1.9M
- Stars: 30.1K
- Last release: 1.7.2, Sep 2024
- License: Apache-2.0
- Runs on: PyTorch
- Capabilities: [From the EasyOCR docs](https://pypi.org/project/easyocr/)

**Strengths**

- **Works on messy images.** Finds and reads text in one call, with little image cleanup.
- **Reads 80+ languages.** Covers Latin, Chinese, Arabic, Devanagari, and Cyrillic scripts.
- **Short API.** Create a Reader with a language list, then call readtext() on the image.

**Watch out for**

- **GPU by default.** Machines without a GPU, or with little GPU memory, need `gpu=False` when the reader is created.
- **No handwriting yet.** The README lists handwritten text support as coming next.
- **PyTorch first on Windows.** Windows needs PyTorch installed from the PyTorch site, with the matching CUDA version, before EasyOCR.

```sh
pip install easyocr
```

**xavctn/img2table** (903 stars)

[xavctn/img2table](https://github.com/xavctn/img2table) runs EasyOCR readtext on each page image and turns the results into words with boxes.

```python
def of(self, document: Document | MockDocument) -> OCRData | None:
    # ...
    # Get OCR of all images
    content = [self.reader.readtext(image) for image in document.images]

    # Create dict of elements by page
    records = {}

    for page, ocr_result in enumerate(content):
        for idx, word in enumerate(ocr_result):
            dict_word = {
                "id": f"word_{page + 1}_{idx + 1}",
                "parent": f"word_{page + 1}_{idx + 1}",
                "value": word[1],
                "confidence": round(100 * word[2]),
                "x1": round(min([edge[0] for edge in word[0]])),
                "y1": round(min([edge[1] for edge in word[0]])),
                "x2": round(max([edge[0] for edge in word[0]])),
                "y2": round(max([edge[1] for edge in word[0]])),
            }

            records.setdefault(page, []).append(dict_word)

    return OCRData(records=records) if records else None
```

[easyocr.py · of()](https://github.com/xavctn/img2table/blob/ace000c980b49b253cb0ed8a126879087a8fe29f/src/img2table/ocr/easyocr.py#L47-L74) · pushed Nov 2026 · [More projects using EasyOCR →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20easyocr%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**docling-project/docling** (70.3K stars)

[docling-project/docling](https://github.com/docling-project/docling) reads text from each page region with EasyOCR readtext and keeps cells above a confidence threshold.

```python
def __call__(
    self, conv_res: ConversionResult, page_batch: Iterable[Page]
) -> Iterable[Page]:
    # ...
    for page in page_batch:
        assert page._backend is not None
        if not page._backend.is_valid():
            yield page
        else:
            with TimeRecorder(conv_res, "ocr"):
                ocr_rects = self.get_ocr_rects(page)

                all_ocr_cells = []
                for ocr_rect in ocr_rects:
                    # ...
                    high_res_image = page._backend.get_page_image(
                        scale=self.scale, cropbox=ocr_rect
                    )
                    im = numpy.asarray(high_res_image)

                    with warnings.catch_warnings():
                        # ...
                        result = self.reader.readtext(im)

                    # ...
                    cells = [
                        TextCell(
                            # ...
                        )
                        for ix, line in enumerate(result)
                        if line[2] >= self.options.confidence_threshold
                    ]
                    all_ocr_cells.extend(cells)

                # ...
                self.post_process_cells(all_ocr_cells, page, conv_res)

            # ...
            yield page
```

[easyocr_model.py · __call__()](https://github.com/docling-project/docling/blob/75a7dbc75caadddbdb1c283c8141fb1857ff8bc6/docling/models/stages/ocr/easyocr_model.py#L308-L375) · pushed Nov 2026 · [More projects using EasyOCR →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20easyocr%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**Quickstart**

```python
import easyocr
reader = easyocr.Reader(['ch_sim','en']) # this needs to run only once to load the model into memory
result = reader.readtext('chinese.jpg')
```

From [the README](https://github.com/JaidedAI/EasyOCR/blob/master/README.md)

### PaddleOCR

[GitHub](https://github.com/PaddlePaddle/PaddleOCR) · [PyPI](https://pypi.org/project/paddleocr/) · [Docs](https://www.paddleocr.com)

PaddleOCR is Baidu's OCR toolkit, built on the PaddlePaddle deep learning framework. Beyond reading lines of text, the toolkit converts PDFs and images into structured Markdown or JSON. Its PP-OCR models also read text in photos, such as IDs, street views, books, and industrial parts, and the README lists more than a hundred supported languages.

- Downloads / mo: 1.2M
- Stars: 92.4K
- Last release: 3.7.0, Jun 2026
- License: Apache-2.0
- Runs on: PaddlePaddle
- Capabilities: [From the PaddleOCR docs](https://github.com/PaddlePaddle/PaddleOCR/blob/main/docs/version3.x/module_usage/table_structure_recognition.en.md)

**Strengths**

- **Reads 100+ languages.** One model reads 50 languages, including Chinese, English, and Japanese.
- **Markdown or JSON with layout.** PP-StructureV3 turns PDFs and images into Markdown or JSON, with positions.
- **Small models.** Light enough for edge devices as well as servers.

**Watch out for**

- **Two installs.** The PaddlePaddle framework is installed separately from the `paddleocr` package, in a CPU or GPU build.
- **Lighter alternative.** [RapidOCR](#rapidocr) runs the same models without PaddlePaddle.

```sh
pip install paddleocr
```

**invoice-x/invoice2data** (2.2K stars)

[invoice-x/invoice2data](https://github.com/invoice-x/invoice2data) extracts text from a PDF or image with PaddleOCR, rendering PDF pages to images first.

```python
def to_text(
    path: str, area_details: dict[str, Any] | None = None, **kwargs: Any
) -> str:
    # ...
    if not paddleocr_available():
        logger.warning(
            "PaddleOCR is not available. "
            "Install with 'pip install invoice2data[paddleocr]'"
        )
        return ""
    ocr = _get_ocr(kwargs.get("lang", "en"))
    sources = _page_arrays(path) if path.lower().endswith(".pdf") else [path]
    pages = [_extract_text(ocr.ocr(source)) for source in sources]
    return "\n".join(page for page in pages if page)
```

[paddleocr.py · to_text()](https://github.com/invoice-x/invoice2data/blob/9423d939f8af35058aa3cd37dd1bdde5b9a2ab12/src/invoice2data/input/paddleocr.py#L101-L124) · pushed Nov 2026 · [More projects using PaddleOCR →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20paddleocr%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**xavctn/img2table** (903 stars)

[xavctn/img2table](https://github.com/xavctn/img2table) runs PaddleOCR predict on page images and collects each recognized word with its score and box.

```python
def of(self, document: Document | MockDocument) -> OCRData | None:
    ocrs = self.ocr.predict(input=document.images)
    content = [
        {
            "rec_texts": res["rec_texts"],
            "rec_scores": res["rec_scores"],
            "rec_boxes": [bbox.tolist() for bbox in res["rec_boxes"]],
        }
        for res in ocrs
    ]

    # Create dict of elements by page
    records = {}

    for page, ocr_result in enumerate(content):
        for idx, (word, conf, bbox) in enumerate(
            zip(
                ocr_result["rec_texts"],
                ocr_result["rec_scores"],
                ocr_result["rec_boxes"],
                strict=True,
            )
        ):
            dict_word = {
                "id": f"word_{page + 1}_{idx + 1}",
                "parent": f"word_{page + 1}_{idx + 1}",
                "value": word,
                "confidence": int(100 * conf),
                "x1": int(bbox[0]),
                "y1": int(bbox[1]),
                "x2": int(bbox[2]),
                "y2": int(bbox[3]),
            }

            records.setdefault(page, []).append(dict_word)

    return OCRData(records=records) if records else None
```

[paddle.py · of()](https://github.com/xavctn/img2table/blob/ace000c980b49b253cb0ed8a126879087a8fe29f/src/img2table/ocr/paddle.py#L44-L80) · pushed Nov 2026 · [More projects using PaddleOCR →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20paddleocr%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**Quickstart**

```python
# 使用 PaddlePaddle 进行推理
from paddleocr import TextDetection

model = TextDetection(engine="paddle")
output = model.predict("general_ocr_001.png")
for res in output:
    res.print()
    res.save_to_img(save_path="./output/")
    res.save_to_json(save_path="./output/res.json")
```

From [the docs](https://github.com/PaddlePaddle/PaddleOCR/blob/b03f46425e8ff4442b268ce449e3eef758146cd4/docs/quick_start.md)

### OCRmyPDF

[GitHub](https://github.com/ocrmypdf/OCRmyPDF) · [PyPI](https://pypi.org/project/ocrmypdf/) · [Docs](http://ocrmypdf.readthedocs.io/)

OCRmyPDF is a command-line program, also callable from Python, that adds a hidden text layer to scanned PDF files so they can be searched and copied. Tesseract reads each page, and OCRmyPDF places that text beneath the page image while keeping the original images at their exact resolution. Options rotate misaligned pages, straighten crooked scans with `--deskew`, and spread the work across every CPU core.

- Downloads / mo: 1.1M
- Stars: 35.3K
- Last release: 17.13.0, Sep 2026
- License: MPL-2.0
- Runs on: Tesseract, installed separately
- Capabilities: [From the OCRmyPDF docs](https://ocrmypdf.readthedocs.io/_/downloads/en/v16.0.1/pdf/)

**Strengths**

- **Searchable PDF plus a text file.** One run writes the searchable PDF and a separate text file.
- **Uses every CPU core.** Spreads pages across cores, so long scans finish faster.
- **Keeps image quality.** Adds the text layer without lowering image resolution.

**Watch out for**

- **PDF output.** The result is a searchable PDF/A file. Plain text needs the `--sidecar` option.
- **System install.** Tesseract and its language packs are system programs, so the README recommends a package manager, such as `apt install ocrmypdf`.

```sh
pip install ocrmypdf
```

**pd3f/pd3f** (336 stars)

[pd3f/pd3f](https://github.com/pd3f/pd3f) adds an OCR text layer to chosen PDF pages with ocrmypdf, straightening and rotating them first.

```python
def ocr(path, output, pages, language, progress=None):
    """Write `path` to `output` with the 0-based `pages` OCRed; their old text is replaced.
    Pages are straightened and turned upright first. `progress(step, done, total)` follows
    OCRmyPDF's steps; `done` and `total` count pages or are None."""
    token = PROGRESS.set(progress)
    try:
        ocrmypdf.ocr(
            path,
            output,
            language=language,
            pages=",".join(str(i + 1) for i in pages),
            mode="force",
            rotate_pages=True,
            rotate_pages_threshold=TURN_CONFIDENCE,
            deskew=True,
            clean=True,
            # PDF/A sends the pages kept as they are through Ghostscript, which drops
            # the text of ligatures in some versions
            output_type="pdf",
            progress_bar=progress is not None,
            plugins=[__name__],
        )
    finally:
        PROGRESS.reset(token)
```

[ocr.py · ocr()](https://github.com/pd3f/pd3f/blob/8fb928801c4b28d2070135fdf6ccd5a394b59413/pd3f/ocr.py#L103-L126) · pushed Oct 2026 · [More projects using OCRmyPDF →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20ocrmypdf%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**invoice-x/invoice2data** (2.2K stars)

[invoice-x/invoice2data](https://github.com/invoice-x/invoice2data) cleans and OCRs a scanned invoice PDF with ocrmypdf and returns the new file path.

```python
def pre_process_pdf(path: str, pre_conf: dict[str, Any] | None = None) -> str | None:
    # ...
    import ocrmypdf

    ocrmypdf_conf = OPTIONS_DEFAULT.copy()
    if pre_conf:
        ocrmypdf_conf.update(pre_conf)
    # ...

    if "output_file" not in ocrmypdf_conf:
        # ...
        out_dir = tempfile.mkdtemp(prefix="invoice2data_ocrmypdf_")
        ocrmypdf_conf["output_file"] = str(Path(out_dir) / Path(path).name)
        # ...
    exit_code = ocrmypdf.ocr(path, **ocrmypdf_conf)
    if exit_code == 0:
        logger.info("Text extraction performed with ocrmypdf")
        pre_proc_output = ocrmypdf_conf["output_file"]
        # ...
        return pre_proc_output  # Return the output file path
    logger.warning("ocrmypdf failed, stopping processing of this file")
    return None
```

[ocrmypdf.py · pre_process_pdf()](https://github.com/invoice-x/invoice2data/blob/9423d939f8af35058aa3cd37dd1bdde5b9a2ab12/src/invoice2data/input/ocrmypdf.py#L90-L146) · pushed Nov 2026 · [More projects using OCRmyPDF →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20ocrmypdf%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**Quickstart**

```python
import ocrmypdf
from ocrmypdf import OcrOptions

if __name__ == '__main__':  # To ensure correct behavior on Windows and macOS
    options = OcrOptions(
        input_file='input.pdf',
        output_file='output.pdf',
        deskew=True,
        languages=['eng'],
    )
    ocrmypdf.ocr(options)
```

From [the docs](https://github.com/ocrmypdf/OCRmyPDF/blob/6588e91a4eedce40f140dda9fdae9f7235419b40/docs/api.md)

### tesserocr

[GitHub](https://github.com/sirfz/tesserocr) · [PyPI](https://pypi.org/project/tesserocr/)

tesserocr also runs Tesseract, but calls its C++ API directly through Cython instead of starting the command-line program. Unlike [pytesseract](#pytesseract), the library releases Python's global interpreter lock while Tesseract works, so several threads can read images at the same time. Pillow images and image files both work as input.

- Downloads / mo: 429.3K
- Stars: 2.2K
- Last release: 2.12.0, Oct 2026
- License: MIT
- Runs on: Tesseract, installed separately
- Capabilities: [From the tesserocr docs](https://pypi.org/project/tesserocr/)

**Strengths**

- **Runs OCR in parallel threads.** Python threads can read several images at the same time.
- **Faster on many images.** PyTessBaseAPI keeps Tesseract loaded between images.
- **Tesseract included.** Prebuilt wheels for Linux, macOS, and Windows bundle Tesseract.

**Watch out for**

- **Builds against Tesseract.** Installing from source needs the Tesseract and Leptonica development libraries, such as `libtesseract-dev` and `libleptonica-dev` on Debian and Ubuntu.

```sh
pip install tesserocr
```

**alephdata/memorious** (316 stars)

[alephdata/memorious](https://github.com/alephdata/memorious) reads text from an image with a shared tesserocr PyTessBaseAPI, guarded by a lock.

```python
def read_text(image, languages=None):
    """OCR text from an image."""
    with lock:
        api = None
        currlocale = locale.getlocale()
        try:
            locale.setlocale(locale.LC_CTYPE, "C")
            api = get_ocr()
            if api is None or image is None:
                return ""
            api.SetImage(image)
            return api.GetUTF8Text() or ""
        finally:
            if api is not None:
                api.Clear()
            locale.setlocale(locale.LC_CTYPE, currlocale)
```

[ocr.py · read_text()](https://github.com/alephdata/memorious/blob/ec817fe43c433f7a3707b02e29c3c94252185268/memorious/helpers/ocr.py#L28-L43) · pushed May 2026 · [More projects using tesserocr →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20tesserocr%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**WeblateOrg/weblate** (6.2K stars)

[WeblateOrg/weblate](https://github.com/WeblateOrg/weblate) recognizes the lines and words in a screenshot with tesserocr and keeps each one's bounding box.

```python
def ocr_get_lines(
    api: PyTessBaseAPI, *, image: Image.Image, filename: str, resolution: int
) -> tuple[list[OCRLine], bool]:
    """Recognize lines and their words without losing original image coordinates."""
    from tesserocr import RIL, iterate_level  # ruff: ignore[import-outside-top-level]

    lines: list[OCRLine] = []
    truncated = False
    try:
        try:
            api.SetImage(image)
        except RuntimeError:
            return lines, truncated
        api.SetSourceResolution(resolution)
        with start_span(op="ocr.recognize", name=filename):
            api.Recognize()
        iterator = api.GetIterator()
        # ...
        for word_number, word in enumerate(iterate_level(iterator, RIL.WORD)):
            # ...
            try:  # ruff: ignore[too-many-statements-in-try-clause]
                if not lines or word.IsAtBeginningOf(RIL.TEXTLINE):
                    # ...
                    lines.append(
                        {
                            "text": word.GetUTF8Text(RIL.TEXTLINE)[
                                :OCR_TEXT_LENGTH_LIMIT
                            ],
                            "box": word.BoundingBox(RIL.TEXTLINE),
                            "words": [],
                        }
                    )
                # ...
            except RuntimeError:
                continue
    finally:
        api.Clear()
    return lines, truncated
```

[ocr.py · ocr_get_lines()](https://github.com/WeblateOrg/weblate/blob/da5749c4d04fad0132c4b4068979cfa358005902/weblate/screenshots/ocr.py#L388-L436) · pushed Nov 2026 · [More projects using tesserocr →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20tesserocr%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**Quickstart**

```python
import tesserocr
from PIL import Image

image = Image.open('sample.jpg')
print(tesserocr.image_to_text(image))  # print ocr text from image
# or
print(tesserocr.file_to_text('sample.jpg'))
```

From [the README](https://github.com/sirfz/tesserocr/blob/b93b93fa622313c981dabb3aa422672ffccc8085/README.rst)

### doctr

[GitHub](https://github.com/mindee/doctr) · [PyPI](https://pypi.org/project/python-doctr/) · [Docs](https://mindee.github.io/doctr/)

docTR reads documents in two stages: a detection model finds each word, and a recognition model reads its characters. Both stages run on PyTorch, and `ocr_predictor` lets a project choose the architecture for each one. PDFs and images both work as input, and the output groups words into lines, blocks, and pages.

- Downloads / mo: 204.7K
- Stars: 6.4K
- Last release: 1.1.0, Aug 2026
- License: Apache-2.0
- Runs on: PyTorch
- Capabilities: [From the doctr docs](https://mindee.github.io/doctr/latest/user_guide/layout_and_tables.html)

**Strengths**

- **Finds and reads words.** One predictor locates the words on a page, then reads them.
- **Exports searchable PDFs.** Results export as text, JSON, hOCR, or a searchable PDF.

```sh
pip install python-doctr
```

**invoice-x/invoice2data** (2.2K stars)

[invoice-x/invoice2data](https://github.com/invoice-x/invoice2data) extracts text from a PDF or image with a docTR OCR predictor.

```python
def to_text(
    path: str, area_details: dict[str, Any] | None = None, **kwargs: Any
) -> str:
    # ...
    if not doctr_available():
        logger.warning(
            "docTR is not available. Install with 'pip install invoice2data[doctr]'"
        )
        return ""
    from doctr.io import DocumentFile

    if path.lower().endswith(".pdf"):
        document = DocumentFile.from_pdf(path)
    else:
        document = DocumentFile.from_images(path)
    result = _get_model()(document)
    return _render(result)
```

[doctr.py · to_text()](https://github.com/invoice-x/invoice2data/blob/9423d939f8af35058aa3cd37dd1bdde5b9a2ab12/src/invoice2data/input/doctr.py#L74-L99) · pushed Nov 2026 · [More projects using doctr →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20python-doctr%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**xavctn/img2table** (903 stars)

[xavctn/img2table](https://github.com/xavctn/img2table) runs a docTR predictor on page images and collects each word with its confidence and box.

```python
def of(self, document: Document | MockDocument) -> OCRData | None:
    # ...
    # Apply OCR
    content = self.model(document.images)

    # Create dict of elements by page
    records = {}

    for page_id, page in enumerate(content.pages):
        dimensions = page.dimensions
        word_id = 0
        for block in page.blocks:
            for line_id, line in enumerate(block.lines):
                for word in line.words:
                    word_id += 1
                    dict_word = {
                        "id": f"word_{page_id + 1}_{line_id}_{word_id}",
                        "parent": f"word_{page_id + 1}_{line_id}",
                        "value": word.value,
                        "confidence": round(100 * word.confidence),
                        "x1": round(word.geometry[0][0] * dimensions[1]),
                        "y1": round(word.geometry[0][1] * dimensions[0]),
                        "x2": round(word.geometry[1][0] * dimensions[1]),
                        "y2": round(word.geometry[1][1] * dimensions[0]),
                    }

                    records.setdefault(page_id, []).append(dict_word)

    return OCRData(records=records) if records else None
```

[doctr.py · of()](https://github.com/xavctn/img2table/blob/ace000c980b49b253cb0ed8a126879087a8fe29f/src/img2table/ocr/doctr.py#L34-L66) · pushed Nov 2026 · [More projects using doctr →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20python-doctr%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**Quickstart**

```python
from doctr.io import DocumentFile
from doctr.models import ocr_predictor

model = ocr_predictor(pretrained=True)
# PDF
doc = DocumentFile.from_pdf("path/to/your/doc.pdf")
# Analyze
result = model(doc)
```

From [the README](https://github.com/mindee/doctr/blob/main/README.md)

### keras-ocr

[GitHub](https://github.com/faustomorales/keras-ocr) · [PyPI](https://pypi.org/project/keras-ocr/) · [Docs](https://keras-ocr.readthedocs.io/)

keras-ocr packages the CRAFT text detection model and a CRNN recognition model behind one TensorFlow pipeline. Creating a `Pipeline` downloads pretrained weights for both models. [EasyOCR](#easyocr) uses the same CRAFT detector on PyTorch, while keras-ocr also provides an API for training a custom detector and recognizer.

- Downloads / mo: 8.7K
- Stars: 1.5K
- Last release: 0.9.3, Nov 2023
- License: MIT
- Capabilities: [From the keras-ocr docs](https://keras-ocr.readthedocs.io/en/latest/api.html)

**Strengths**

- **Train custom models.** Includes a pipeline for training new detection and recognition models.
- **Finds and reads text in one pipeline.** One pipeline object runs detection and recognition.
- **Works on first run.** Downloads pretrained models automatically, with no training needed.

```sh
pip install keras-ocr
```

**Altaflux/agent-mimir** (112 stars)

[Altaflux/agent-mimir](https://github.com/Altaflux/agent-mimir) reads text from a screenshot with a keras-ocr pipeline and returns each word with its box.

```python
def extract_text(img, pipeline):

    prediction_groups = pipeline.recognize([img])
    textAreas = []
    for box in prediction_groups[0]:
        x0, y0 = box[1][0]
        x1, y1 = box[1][1] 
        x2, y2 = box[1][2]
        x3, y3 = box[1][3] 
        textAreas.append({
            "text": box[0],
            "bbox": {'x0': x0, 'y0': y0, 'x1': x1, 'y1': y1, 'x2': x2, 'y2': y2, 'x3': x3, 'y3': y3}
        })

    return textAreas
```

[server.py · extract_text()](https://github.com/Altaflux/agent-mimir/blob/ca002a70220b608cc7c2b718f5ec93dd77c1a94b/tools/desktop-control/python/server.py#L75-L89) · pushed Jun 2026 · [More projects using keras-ocr →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20keras-ocr%20for%20OCR%2C%20extracting%20text%20from%20images%20and%20scanned%20documents&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**Quickstart**

```python
import keras_ocr

pipeline = keras_ocr.pipeline.Pipeline()

images = [
    keras_ocr.tools.read(url) for url in [
        'https://upload.wikimedia.org/wikipedia/commons/b/bd/Army_Reserves_Recruitment_Banner_MOD_45156284.jpg',
        'https://upload.wikimedia.org/wikipedia/commons/e/e8/FseeG2QeLXo.jpg',
        'https://upload.wikimedia.org/wikipedia/commons/b/b4/EUBanana-500x112.jpg'
    ]
]

# Each list of predictions in prediction_groups is a list of
# (word, box) tuples.
prediction_groups = pipeline.recognize(images)
```

From [the README](https://github.com/faustomorales/keras-ocr/blob/9661d6f29c063eb1c9261029d3593e583b0abdac/README.md)

## FAQ

### What is the best Python OCR library?

[pytesseract](#pytesseract) has 17.0M downloads a month and suits clean typed documents. [PaddleOCR](#paddleocr) handles many languages, tables, and complex layouts, and [OCRmyPDF](#ocrmypdf) turns scanned PDFs into searchable ones.

### What is Tesseract?

Tesseract is an optical character recognition engine maintained by Google. [pytesseract](#pytesseract), [OCRmyPDF](#ocrmypdf), and [tesserocr](#tesserocr) all run it to read text. See the [Tesseract documentation](https://tesseract-ocr.github.io/) and the [Tesseract repository](https://github.com/tesseract-ocr/tesseract).

### PaddleOCR vs Tesseract: which is better?

[PaddleOCR](#paddleocr) reads hard images more accurately, and it returns tables and layout as Markdown or JSON. Tesseract, through [pytesseract](#pytesseract), suits clean typed pages and needs no deep-learning framework.

### EasyOCR vs Tesseract: which is better?

[EasyOCR](#easyocr) reads messy photos more accurately, with little image cleanup. Tesseract, through [pytesseract](#pytesseract), runs on a CPU without the large PyTorch install that EasyOCR needs.

### PaddleOCR vs EasyOCR: which is faster?

[PaddleOCR](#paddleocr) reads each image faster: 12.7 images a second against 4.2 for [EasyOCR](#easyocr) in one benchmark. EasyOCR starts up faster, so a script that reads a single image can finish first.

### Which Python OCR libraries work without installing Tesseract?

[RapidOCR](#rapidocr), [EasyOCR](#easyocr), [PaddleOCR](#paddleocr), [docTR](#doctr), and [keras-ocr](#keras-ocr) run their own deep-learning models and never call Tesseract. [tesserocr](#tesserocr) installs from prebuilt wheels that bundle Tesseract. [pytesseract](#pytesseract) and [OCRmyPDF](#ocrmypdf) need the Tesseract program installed first.

### How to extract text from an image in Python?

Open the image with Pillow and pass it to pytesseract.image_to_string(), which returns the text as a string. See the [pytesseract quickstart](#pytesseract-quickstart). [EasyOCR](#easyocr) needs no Tesseract: create a Reader with a language list, then call readtext() on the image.

## How this page was built

Data checked Nov 10, 2026.

Reproduce it with the Exa API:

```json
{
  "endpoint": "/search",
  "body": {
    "query": "open source Python libraries for OCR, extracting text from images and scanned documents",
    "numResults": 20,
    "type": "auto",
    "includeDomains": [
      "github.com"
    ]
  }
}
```

The other calls behind this page:

```
POST /search
Query: Python OCR library package
Within: github.com
```

```
POST /contents
Reads: https://github.com/madmaze/pytesseract, https://pypi.org/project/pytesseract/
```

```
POST /answer
Query: Can the Python library pytesseract (pytesseract on PyPI) detect tables in an image or scanned page and return their cells or structure? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library pytesseract (pytesseract on PyPI) detect document layout regions such as text blocks, columns, headings, and reading order? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library pytesseract (pytesseract on PyPI) return a bounding box and a confidence score for each recognized word or line? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library pytesseract (pytesseract on PyPI) recognize handwritten text, not only printed text? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library pytesseract (pytesseract on PyPI) run text recognition on a GPU with CUDA? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: What output formats can the Python library pytesseract (pytesseract) return or write as OCR results? Answer from its own documentation.
Returns:
  - formats
  - evidence
```

```
POST /search
Query: Python project that uses pytesseract for OCR, extracting text from images and scanned documents, application code
Within: github.com
```

```
POST /contents
Reads: https://github.com/robocorp/rpaframework/blob/2b6085a881712397d550d98b407e76fcb876fa3c/packages/recognition/src/RPA/recognition/ocr.py
```

```
POST /contents
Reads: https://github.com/python-geeks/Automation-scripts/blob/126b00fb84293fa800e0093f41f00117bc5fd882/auto_searcher/autosearcher.py
```

```
POST /contents
Reads: https://github.com/RapidAI/RapidOCR, https://rapidai.github.io/RapidOCRDocs, https://pypi.org/project/rapidocr/
```

```
POST /answer
Query: Can the Python library RapidOCR (rapidocr on PyPI) detect tables in an image or scanned page and return their cells or structure? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library RapidOCR (rapidocr on PyPI) detect document layout regions such as text blocks, columns, headings, and reading order? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library RapidOCR (rapidocr on PyPI) return a bounding box and a confidence score for each recognized word or line? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library RapidOCR (rapidocr on PyPI) recognize handwritten text, not only printed text? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library RapidOCR (rapidocr on PyPI) run text recognition on a GPU with CUDA? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: What output formats can the Python library RapidOCR (rapidocr) return or write as OCR results? Answer from its own documentation.
Returns:
  - formats
  - evidence
```

```
POST /search
Query: Python project that uses rapidocr for OCR, extracting text from images and scanned documents, application code
Within: github.com
```

```
POST /contents
Reads: https://github.com/weixin-omni/omni-bot-sdk-oss/blob/91abcc603112e0a4c3b6c3db6efe4374da5123eb/src/omni_bot_sdk/rpa/ocr_processor.py
```

```
POST /contents
Reads: https://github.com/JaidedAI/EasyOCR, https://www.jaided.ai, https://pypi.org/project/easyocr/
```

```
POST /answer
Query: Can the Python library EasyOCR (easyocr on PyPI) detect tables in an image or scanned page and return their cells or structure? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library EasyOCR (easyocr on PyPI) detect document layout regions such as text blocks, columns, headings, and reading order? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library EasyOCR (easyocr on PyPI) return a bounding box and a confidence score for each recognized word or line? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library EasyOCR (easyocr on PyPI) recognize handwritten text, not only printed text? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library EasyOCR (easyocr on PyPI) run text recognition on a GPU with CUDA? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: What output formats can the Python library EasyOCR (easyocr) return or write as OCR results? Answer from its own documentation.
Returns:
  - formats
  - evidence
```

```
POST /search
Query: Python project that uses easyocr for OCR, extracting text from images and scanned documents, application code
Within: github.com
```

```
POST /contents
Reads: https://github.com/yqchilde/JDMemberCloseAccount/blob/0f99decd00ae092b00253e7cfa87bfd75c49259d/captcha/easy_ocr.py
```

```
POST /contents
Reads: https://github.com/PaddlePaddle/PaddleOCR, https://www.paddleocr.com, https://pypi.org/project/paddleocr/
```

```
POST /answer
Query: Can the Python library PaddleOCR (paddleocr on PyPI) detect tables in an image or scanned page and return their cells or structure? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library PaddleOCR (paddleocr on PyPI) detect document layout regions such as text blocks, columns, headings, and reading order? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library PaddleOCR (paddleocr on PyPI) return a bounding box and a confidence score for each recognized word or line? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library PaddleOCR (paddleocr on PyPI) recognize handwritten text, not only printed text? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library PaddleOCR (paddleocr on PyPI) run text recognition on a GPU with CUDA? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: What output formats can the Python library PaddleOCR (paddleocr) return or write as OCR results? Answer from its own documentation.
Returns:
  - formats
  - evidence
```

```
POST /search
Query: Python project that uses paddleocr for OCR, extracting text from images and scanned documents, application code
Within: github.com
```

```
POST /contents
Reads: https://github.com/ctripcorp/flybirds/blob/c2365d1495a6d2676a04899d5e833a7ff73f815f/flybirds/core/plugin/plugins/default/screen.py
```

```
POST /contents
Reads: https://github.com/ocrmypdf/OCRmyPDF, http://ocrmypdf.readthedocs.io/, https://pypi.org/project/ocrmypdf/
```

```
POST /answer
Query: Can the Python library OCRmyPDF (ocrmypdf on PyPI) detect tables in an image or scanned page and return their cells or structure? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library OCRmyPDF (ocrmypdf on PyPI) detect document layout regions such as text blocks, columns, headings, and reading order? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library OCRmyPDF (ocrmypdf on PyPI) return a bounding box and a confidence score for each recognized word or line? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library OCRmyPDF (ocrmypdf on PyPI) recognize handwritten text, not only printed text? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library OCRmyPDF (ocrmypdf on PyPI) run text recognition on a GPU with CUDA? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: What output formats can the Python library OCRmyPDF (ocrmypdf) return or write as OCR results? Answer from its own documentation.
Returns:
  - formats
  - evidence
```

```
POST /search
Query: Python project that uses ocrmypdf for OCR, extracting text from images and scanned documents, application code
Within: github.com
```

```
POST /contents
Reads: https://github.com/sirfz/tesserocr, https://pypi.org/project/tesserocr/
```

```
POST /answer
Query: Can the Python library tesserocr (tesserocr on PyPI) detect tables in an image or scanned page and return their cells or structure? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library tesserocr (tesserocr on PyPI) detect document layout regions such as text blocks, columns, headings, and reading order? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library tesserocr (tesserocr on PyPI) return a bounding box and a confidence score for each recognized word or line? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library tesserocr (tesserocr on PyPI) recognize handwritten text, not only printed text? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library tesserocr (tesserocr on PyPI) run text recognition on a GPU with CUDA? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: What output formats can the Python library tesserocr (tesserocr) return or write as OCR results? Answer from its own documentation.
Returns:
  - formats
  - evidence
```

```
POST /search
Query: Python project that uses tesserocr for OCR, extracting text from images and scanned documents, application code
Within: github.com
```

```
POST /contents
Reads: https://github.com/apirrone/Memento/blob/378d4aa2d32d51b91f8a977978107794d8e86e79/memento/OCR.py
```

```
POST /contents
Reads: https://github.com/charslab/TranscriberBot/blob/59fbc21b39a729e8b5a6b0cb81179ef4ef17abc2/src/phototools/ocr.py
```

```
POST /contents
Reads: https://github.com/mindee/doctr, https://mindee.github.io/doctr/, https://pypi.org/project/python-doctr/
```

```
POST /answer
Query: Can the Python library doctr (python-doctr on PyPI) detect tables in an image or scanned page and return their cells or structure? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library doctr (python-doctr on PyPI) detect document layout regions such as text blocks, columns, headings, and reading order? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library doctr (python-doctr on PyPI) return a bounding box and a confidence score for each recognized word or line? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library doctr (python-doctr on PyPI) recognize handwritten text, not only printed text? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library doctr (python-doctr on PyPI) run text recognition on a GPU with CUDA? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: What output formats can the Python library doctr (python-doctr) return or write as OCR results? Answer from its own documentation.
Returns:
  - formats
  - evidence
```

```
POST /search
Query: Python project that uses python-doctr for OCR, extracting text from images and scanned documents, application code
Within: github.com
```

```
POST /contents
Reads: https://github.com/jolibrain/colette/blob/1ed439e64f2d2dbed4afea214f29a7866a187a84/tools/calibrate_vllm_ocr.py
```

```
POST /contents
Reads: https://github.com/faustomorales/keras-ocr, https://keras-ocr.readthedocs.io/, https://pypi.org/project/keras-ocr/
```

```
POST /answer
Query: Can the Python library keras-ocr (keras-ocr on PyPI) detect tables in an image or scanned page and return their cells or structure? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library keras-ocr (keras-ocr on PyPI) detect document layout regions such as text blocks, columns, headings, and reading order? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library keras-ocr (keras-ocr on PyPI) return a bounding box and a confidence score for each recognized word or line? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library keras-ocr (keras-ocr on PyPI) recognize handwritten text, not only printed text? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library keras-ocr (keras-ocr on PyPI) run text recognition on a GPU with CUDA? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: What output formats can the Python library keras-ocr (keras-ocr) return or write as OCR results? Answer from its own documentation.
Returns:
  - formats
  - evidence
```

```
POST /search
Query: Python project that uses keras-ocr for OCR, extracting text from images and scanned documents, application code
Within: github.com
```

```
POST /contents
Reads: https://tesseract-ocr.github.io/
```

Docs: https://exa.ai/docs/reference/search
