NanoOCR 🚀
A lightning-fast, production-ready Convolutional Recurrent Neural Network (CRNN) OCR engine optimized for edge devices.
Built from scratch, trained on over 2.3 million synthetic and real-world images, and packaged into a tiny 18.3 MB footprint.
Features
- Ultra-Lightweight: 4.8M parameters, under 20 MB on disk.
- Blazing Fast: 1.74 ms latency (~575 FPS) on a T4 GPU.
- Dual-Domain Mastery: Bridged the gap between synthetic data (MJSynth) and messy real-world photography (IIIT5K).
- High Accuracy: 78.37% exact match and 8.56% Character Error Rate (CER) on real-world scene text.
Installation
pip install nano-ocr
Quick Start
from nano_ocr import NanoOCR
# Initialize the engine (automatically loads the bundled 18MB ftr weights)
ocr = NanoOCR()
# 1. Standard Read
text = ocr.read("image.png")
print(text)
# Output: Hello World
# 2. Detailed Prediction (Confidence & Latency)
result = ocr.predict("image.png")
print(result)
# Output:
# Text: Hello World
# Confidence: 0.94
# Time: 31.2 ms
# 3. Batch Processing
images = ["img1.png", "img2.png", "img3.png"]
results = ocr.read_batch(images)
print(results)
# 4. System Hardware Benchmark
ocr.benchmark()
Architecture
NanoOCR utilizes a 7-layer VGG-style CNN for feature extraction (with asymmetric max-pooling), a Bidirectional LSTM (256 hidden size) for sequence context, and CTC loss for decoding.
Author
Developed by Arshvir
Metadata
Release files for nano-ocr 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nano_ocr-0.1.0.tar.gz | 17.9 MB | With provenance | Details for nano_ocr-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nano_ocr-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for nano_ocr-0.1.0-py3-none-any.whl |
Total release size: 35.9 MB
Release files / nano_ocr-0.1.0.tar.gz
| Download URL | nano_ocr-0.1.0.tar.gz |
|---|---|
| Size | 17.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ada336263191f2fb1ef3d378b08022851d70b2395776e396a9e435d6933b343
|
|
BLAKE2b-256 checksum How to use checksums |
ba5c0bd27648f0844d8ce9f30f6b7088130e43a75c491e3c1ec40fc8435be29e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency logRelease files / nano_ocr-0.1.0-py3-none-any.whl
| Download URL | nano_ocr-0.1.0-py3-none-any.whl |
|---|---|
| Size | 17.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7246e23c29ded72b5808e09f18c5954184c71f664deb025ed52dde248eee0eff
|
|
BLAKE2b-256 checksum How to use checksums |
cc87a0e3972df1b208e97215e12f523701fc0ab909f9cf6289c897523c1da324
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency logSecurity for nano-ocr 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for nano_ocr-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.