This is a messenger chat bot used for extracting text from images, so that you can copy them and can use at other places. It uses Google Cloud Vision API for OCR (Optical Character Recognition).
If you want to try it out, head over to Parsy Facebook page: Link
- Install python dependencies, assuming that you have pip already setup.
pip install -r requirements.txt
- Run the flask application using
python app.py
Now the backend is up and ready for serving requests.
I have used gunicorn
as my WSGI server and nginx
as reverse proxy on top of it.
To start the WSGI server at port 8000, execute the following command:
./start.sh
This shell file start the WSGI server at port 8000, nothing fancy
Set the environment variable GOOGLE_APPLICATION_CREDENTIALS
to the file path of the JSON file that contains your service account key.
export GOOGLE_APPLICATION_CREDENTIALS="[PATH]"