Note: Following steps are for Ubuntu/Debian
sudo apt-get install g++ libxrandr-dev libfox-1.6-dev python-pippip install pipenv- Add
$HOME/.local/binto PATH pipenv install
aocr export --format=frozengraph ./exported-model-frozen
Note: you need to have a frozengraph model inside ./exported-model-frozen from the previous step
FLASK_APP=app.py pipenv run flask run
POST /predict
Encoding: form-data
| name | description |
|---|---|
file |
PNG/JPG/GIF file with the text image |
curl --request POST \
--url http://localhost:5000/predict \
--form file=@local_file.png
{
"text": "Some recognized text"
}