When I was working on my gun detection neural network I needed a way to test it. Every off-the-shelf surveillance camera that I have used comes with a video streaming technology called the real time streaming protocol, aka, RTSP. Using RTSP, Python and OpenCV I was able to easily stream video to my gun detection neural network.

Code to stream with RTSP and Python.

Streaming video in Python is