hybridgroup / gocv

Go package for computer vision using OpenCV 4 and beyond. Includes support for DNN, CUDA, and OpenCV Contrib.
https://gocv.io
Other
6.63k stars 863 forks source link

How to use gocv with other transport protocols than RTSP, such as SRT, WebRTC or HLS? #1097

Open pedrohba1 opened 1 year ago

pedrohba1 commented 1 year ago

Using RTSP with gocv is pretty straightforward. However, it might be necessary to use SRT or WebRTC.

Description

Some devices are using WebRTC and I'm not being able to parse the image directly. What should be the best approach? I might be able to convert the protocols in a proxy to RTSP, but a way to use the protocol directly might be better suited. How can I achieve this? This not necessarily has to be implemented directly in gocv.

entrehuihui commented 10 months ago

gocv-receive is a simple application that shows how to receive media using Pion and then do motion detection with GoCV. https://github.com/pion/example-webrtc-applications/tree/master/gocv-receive