numpy
opencv 3
pytorch
cffi
editdistance
Warp-CTC: https://github.com/SeanNaren/warp-ctc
git clone https://github.com/cwig/prepare_font_data
cd prepare_font_data
bash run.sh
cd ..
python character_set.py prepare_font_data/training.json prepare_font_data/char_set.json
You will need to sign up for an IAM Database access account
git clone https://github.com/cwig/prepare_IAM_Lines
cd prepare_IAM_Lines
sh download_IAM_data.sh
python extract_all_words_lines.py
cd ..
python character_set.py prepare_IAM_Lines/raw_gts/lines/txt/training.json prepare_IAM_Lines/char_set.json
python train.py sample_config_iam.json
This will train indefienetely, interupt execution whenever at will.
python recognize.py sample_config_iam.json