Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- ocr
|
| 4 |
+
- text-recognition
|
| 5 |
+
- tesseract
|
| 6 |
+
- uv-script
|
| 7 |
+
- generated
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# Document OCR using Tesseract
|
| 11 |
+
|
| 12 |
+
This dataset contains OCR results from images in [davanstrien/moh-bench-sample](https://huggingface.co/datasets/davanstrien/moh-bench-sample) 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.
|
| 13 |
+
|
| 14 |
+
## Processing Details
|
| 15 |
+
|
| 16 |
+
- **Source Dataset**: [davanstrien/moh-bench-sample](https://huggingface.co/datasets/davanstrien/moh-bench-sample)
|
| 17 |
+
- **Engine**: [Tesseract](https://github.com/tesseract-ocr/tesseract) `5.3.0`
|
| 18 |
+
- **Language(s)**: `eng`
|
| 19 |
+
- **Number of Samples**: 50
|
| 20 |
+
- **Processing Time**: 0.5 min
|
| 21 |
+
- **Processing Date**: 2026-07-08 16:38 UTC
|
| 22 |
+
|
| 23 |
+
### Configuration
|
| 24 |
+
|
| 25 |
+
- **Image Column**: `image`
|
| 26 |
+
- **Output Column**: `markdown`
|
| 27 |
+
- **Dataset Split**: `train`
|
| 28 |
+
- **Page Segmentation Mode (psm)**: 3
|
| 29 |
+
- **OCR Engine Mode (oem)**: 3
|
| 30 |
+
- **Workers**: 64
|
| 31 |
+
|
| 32 |
+
## Model Information
|
| 33 |
+
|
| 34 |
+
Tesseract is a classical (non-VLM) OCR engine:
|
| 35 |
+
- Runs on CPU — no GPU required
|
| 36 |
+
- v4+ uses an LSTM-based recognition engine
|
| 37 |
+
- 100+ languages via installable data packs
|
| 38 |
+
- Plain-text output (no markdown / table / formula structure)
|
| 39 |
+
- Apache-2.0 licensed
|
| 40 |
+
|
| 41 |
+
## Dataset Structure
|
| 42 |
+
|
| 43 |
+
The dataset contains all original columns plus:
|
| 44 |
+
- `markdown`: The recognised text (plain text)
|
| 45 |
+
- `inference_info`: JSON list tracking all OCR models applied to this dataset
|
| 46 |
+
|
| 47 |
+
## Reproduction
|
| 48 |
+
|
| 49 |
+
```bash
|
| 50 |
+
uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/tesseract-ocr.py \
|
| 51 |
+
davanstrien/moh-bench-sample \
|
| 52 |
+
<output-dataset> \
|
| 53 |
+
--image-column image \
|
| 54 |
+
--lang eng \
|
| 55 |
+
--psm 3
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
Generated with [UV Scripts](https://huggingface.co/uv-scripts)
|