by Arkar Min Aung
This repo contains a minimal Flask webserver will serve you a minimal web app which recognizes Myanmar handwritten digits and alphabets based on your drawings. Additionally, publicly accessible URL for the webserver is created using Ngrok.
The accompanying Jupyter Notebook is meant to be opened in Google CoLab. It contains procedures to:
- Download required libraries
- Augment data
- Build and train neural network
- Run the webserver with Ngrok
- Create a conda environment:
conda create -n flask_server python=3.7
- Activate environment:
conda activate flask_server
- Install requirements:
pip install -r requirements.txt
- Download weights file: alphabets | digits
- Note: The neural networks are trained minimally with very small training dataset. Their performance will be be subpar.
python webserver.py --type [alphabets|digits] --weights /path/of/downloaded/weight/file.pkl
- Navigate either to
localhost:5000
or public URL printed in console.