/craft-moran-ocr

An OCR system using CRAFT for text detection and MORAN for recognition

Primary LanguagePython

CRAFT-MORAN-OCR

An OCR system using CRAFT for text detection and MORAN for recognition

Inspiration

Testing

To get started, first download the trained weights:

$ sh init.sh

Create a virtual environment and install requirements:

$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt

To test an image:

$ python test.py -h
$ python test.py scan/1.jpg

Training

Modify train_MORAN.sh to generated trained weights, and replace moran_v2_demo.pth with it.