QOCR-Tiny v1
A compact CNN + BiGRU + CTC text recognition model. Built from scratch, no pretrained weights, released under MIT License.
Usage
Command line
python inference.py path/to/image.png
Prints the recognized text to stdout.
Python
from inference import ocr_file
text = ocr_file("path/to/image.png")
print(text)
Or, working directly with a PIL image:
from PIL import Image
from inference import ocr
image = Image.open("path/to/image.png")
text = ocr(image)
print(text)
Limitations
- No text detection — you supply the region to read; the model does not locate text within a larger image.
- Greedy CTC decoding only; no beam search or language model rescoring.
License
MIT License.