Key Info
A developer used Gemini 4 Neon and $25.50 of Hugging Face Jobs compute to train two fast page-script classifiers that take an image and predict its writing script, intended as a cheap pre-filter before OCR.
Highlights
- Supports 21 scripts plus an "unknown" class
- Runs in 11 ms on CPU and reaches 1,773 pages/s on an A10G
- Designed to route scanned or broken-encoding PDFs into the correct OCR pipeline at scale
- Processed 21,490 Common Crawl PDF pages via a CPU Job for 18 cents
- Models and a live CPU demo are available