CS4804 Mini-Project OCR
Code Specifications
-
Language: Python3
-
Install third-party library
pip install -r requirements.txt
-
Trainning dataset:
- English Handwritten Characters Size: 13.7 MB / 25.2 MB(after unzip)
- Handwritten Digits and English Characters Size: 85 MB / 545.57 MB(after unzip)
Please place all unzipped dataset files under dataset folder
-
Usage
-
Train the model
train-ocr-model.py [-h] -d DATASET [-m MODEL] [-p PLOT] [-s] [-t]
Example:
python train-ocr-model.py -d dataset/dataset_mnist.csv -s -m model.keras -p result.png
-
Implement OCR by running model
run-ocr-model.py [-h] -m MODEL -i IMAGE -s SIZE
Example:
python run-ocr-model.py -m model.keras -i /test_cases/hand_writing/1-image.png -s 28
-