Sennevds / video-stream-with-gpio-trigger

Supporting code for my article on video streaming with Flask.

Home Page:http://blog.miguelgrinberg.com/post/video-streaming-with-flask

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Video stream with flask and trigger GPIO when someone watching

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.

How to use

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

About

Supporting code for my article on video streaming with Flask.

http://blog.miguelgrinberg.com/post/video-streaming-with-flask

License:MIT License


Languages

Language:Python 98.1%Language:HTML 1.9%