I'm using raspberry pi with dedicated camera board and i'm trying to do some image processing simultaneously with streaming it to web server. To do this I created named pipe and I'm streaming video from raspivid -> named_pipe -> ffmpeg -> web server. This part works with no problems. Now I want to detect movement on this video feed. Any ideas how to read video stream from this named_pipe in python and then process it in opencv?
Installing this driver on the rpi will allow python-opencv to read the stream as if it were a webcam attached by usb. See this answer in order to remove the fullscreen preview.
The problem seems to be that the python-opencv cannot easily access the camera unless its in userspace.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With