Supporting code for Miguel Grinberg's article video streaming with Flask and its follow-up Flask Video Streaming Revisited.
Install into a virtual environment:
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Start with ONE of::
python app.py # stream 1-2-3 images
CAMERA=opencv python app.py # stream from webcam