| --- |
| tags: |
| - ocr |
| - text-recognition |
| - tesseract |
| - uv-script |
| - generated |
| dataset_info: |
| config_name: pp-ocrv6 |
| features: |
| - name: image |
| dtype: image |
| - name: volume |
| dtype: int64 |
| - name: volume_label |
| dtype: string |
| - name: leaf_number |
| dtype: int64 |
| - name: page_number |
| dtype: string |
| - name: page_number_confidence |
| dtype: int64 |
| - name: page_type |
| dtype: string |
| - name: width |
| dtype: int64 |
| - name: height |
| dtype: int64 |
| - name: ocr_text |
| dtype: string |
| - name: markdown |
| dtype: string |
| - name: pp_ocr_blocks |
| dtype: string |
| - name: inference_info |
| dtype: string |
| splits: |
| - name: train |
| num_bytes: 845744 |
| num_examples: 5 |
| download_size: 851169 |
| dataset_size: 845744 |
| configs: |
| - config_name: pp-ocrv6 |
| data_files: |
| - split: train |
| path: pp-ocrv6/train-* |
| --- |
| |
| # Document OCR using Tesseract |
|
|
| This dataset contains OCR results from images in [davanstrien/encyclopaedia-britannica-1771](https://huggingface.co/datasets/davanstrien/encyclopaedia-britannica-1771) using [Tesseract](https://github.com/tesseract-ocr/tesseract), the classical open-source CPU OCR engine — a cheap, no-GPU baseline alongside the VLM OCR recipes. |
|
|
| ## Processing Details |
|
|
| - **Source Dataset**: [davanstrien/encyclopaedia-britannica-1771](https://huggingface.co/datasets/davanstrien/encyclopaedia-britannica-1771) |
| - **Engine**: [Tesseract](https://github.com/tesseract-ocr/tesseract) `5.3.0` |
| - **Language(s)**: `eng` |
| - **Number of Samples**: 5 |
| - **Processing Time**: 0.5 min |
| - **Processing Date**: 2026-07-07 23:05 UTC |
|
|
| ### Configuration |
|
|
| - **Image Column**: `image` |
| - **Output Column**: `markdown` |
| - **Dataset Split**: `train` |
| - **Page Segmentation Mode (psm)**: 3 |
| - **OCR Engine Mode (oem)**: 3 |
| - **Workers**: 64 |
|
|
| ## Model Information |
|
|
| Tesseract is a classical (non-VLM) OCR engine: |
| - Runs on CPU — no GPU required |
| - v4+ uses an LSTM-based recognition engine |
| - 100+ languages via installable data packs |
| - Plain-text output (no markdown / table / formula structure) |
| - Apache-2.0 licensed |
|
|
| ## Dataset Structure |
|
|
| The dataset contains all original columns plus: |
| - `markdown`: The recognised text (plain text) |
| - `inference_info`: JSON list tracking all OCR models applied to this dataset |
|
|
| ## Reproduction |
|
|
| ```bash |
| uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/tesseract-ocr.py \ |
| davanstrien/encyclopaedia-britannica-1771 \ |
| <output-dataset> \ |
| --image-column image \ |
| --lang eng \ |
| --psm 3 |
| ``` |
|
|
| Generated with [UV Scripts](https://huggingface.co/uv-scripts) |
|
|