Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yashladha/parsy
Messenger chat bot for goto OCR. Handy when we need to share details from images
https://github.com/yashladha/parsy
aws cloudvision flask ocr python
Last synced: 24 days ago
JSON representation
Messenger chat bot for goto OCR. Handy when we need to share details from images
- Host: GitHub
- URL: https://github.com/yashladha/parsy
- Owner: yashLadha
- Created: 2018-12-04T11:51:41.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-15T21:30:40.000Z (over 1 year ago)
- Last Synced: 2023-02-28T09:52:17.979Z (over 1 year ago)
- Topics: aws, cloudvision, flask, ocr, python
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Parsy
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](https://m.me/894199580971244)
## Steps for setting up backend server
1. Install python dependencies, assuming that you have pip already setup.
```bash
pip install -r requirements.txt
```
2. Run the flask application using
```bash
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:
```bash
./start.sh
```
This shell file start the WSGI server at port 8000, *nothing fancy*## Steps for setting up Google Cloud Vision
Set the environment variable `GOOGLE_APPLICATION_CREDENTIALS` to the file path of the JSON file that contains your service account key.
```bash
export GOOGLE_APPLICATION_CREDENTIALS="[PATH]"
```## Resources Used
* [Secure Deployment](https://medium.com/@samuel.ngigi/deploying-python-flask-to-aws-and-installing-ssl-1216b41f8511)
* [Message Events](https://developers.facebook.com/docs/messenger-platform/reference/webhook-events/messages)## Author
* [yashLadha](https://twitter.com/yashLadha_)