A Flask server that recieves images in base64 format, saves them, and pass them to a neural network for object reconition using OpenCV's YOLOv3.
Follow the instructions on OpenCV's tutorial to install and setup OpenCV on your OS.
- Python3
- (OPTIONAL) Generate a virtual enviroment to keep pip list install clean. Run :
python3 -m venv .venv
- (OPTIONAL) Activate virtual enviroment. Run:
. .venv/bin/activate
- Install required packages. Run:
pip install -r requirements.txt
- To start the Flask server on port 8080, run:
python app.py
- To change the port, modify port=8080 in app.run() function in app.py.