Update README.md

This commit is contained in:
LE DUC ANH 2020-07-08 11:17:33 +09:00 committed by GitHub
parent 30210f5a5a
commit e38fed17db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -21,11 +21,11 @@ For text line recognition, we employ the attention-based encoder-decoder on our
## Running Kindai OCR
You should first download the pre_trained models and put them into ./pretrain/ folder.
Copy your images into ./data/test/ folder
run the following script to recognize images:
python test.py
The recognized text transcription is in ./data/result.xml and the result images are in ./data/result/
If you may have to check the path to Japanese font for correct visualization results.
fontPIL = '/usr/share/fonts/truetype/fonts-japanese-gothic.ttf' # japanese font
You should first download the pre_trained models and put them into ./pretrain/ folder.
Copy your images into ./data/test/ folder
run the following script to recognize images:
python test.py
The recognized text transcription is in ./data/result.xml and the result images are in ./data/result/
If you may have to check the path to Japanese font for correct visualization results.
fontPIL = '/usr/share/fonts/truetype/fonts-japanese-gothic.ttf' # japanese font