Video Streaming

This project is to provide real time video streaming for the Raspberry Pi. The code heavily borrows from MigeulGrinberg and Adrian’s blogs below.

I created an endpoint video_feed for the Flask Webserver and video streaming works great. I have also created another end point to take snap of current scene. This is useful when the internet connection is very slow.

I have placed Pi in my living room and the following image shows how it is displayed in the browser. This feature was super useful when I was out of town and wanted to see how my home looks at any moment.


Camera code
Camera code

References:

  1. https://blog.miguelgrinberg.com/post/video-streaming-with-flask
  2. https://blog.miguelgrinberg.com/post/flask-video-streaming-revisited
  3. https://www.pyimagesearch.com/2015/06/01/home-surveillance-and-motion-detection-with-the-raspberry-pi-python-and-opencv/