Based on the following tutorial video streaming with Flask A python script to stream a webcam and activate a GPIO pin when this stream is watched.
Start the flask app with following params:
FLASK_APP=path-to/app.py CAMERA=opencv flask run
The camera variable can be:
- opencv
- v4l2
- pi