QOCR / README.md
Qarvexium's picture
Update README.md
8e840d9 verified
|
Raw
History Blame Contribute Delete
888 Bytes
metadata
license: mit
pipeline_tag: image-to-text
tags:
  - ocr
  - ctc
  - pytorch
  - text-recognition
  - lightweight
language:
  - en

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.