带有网络摄像机的 OpenCV
我在 Windows 下使用 openCV 1.1pre1.我有一个网络摄像机,我需要从 openCV 抓取帧.该相机可以通过 RTSP 或通过 http 传输 mjpeg 的标准 mpeg4 流.我已经看到很多讨论在 openCV 中使用 ffmpeg 的话题,但我无法让它工作.
I'm using openCV 1.1pre1 under Windows. I have a network camera and I need to grab frames from openCV. That camera can stream a standard mpeg4 stream over RTSP or mjpeg over http. I've seen many threads talking about using ffmpeg with openCV but I cannot make it work.
如何使用 openCV 从 IP 摄像机中抓取帧?
How I can grab frames from an IP camera with openCV?
谢谢
安德里亚
推荐答案
rtsp 协议对我不起作用.mjpeg 工作第一次尝试.我假设它内置于我的相机 (Dlink DCS 900) 中.
rtsp protocol did not work for me. mjpeg worked first try. I assume it is built into my camera (Dlink DCS 900).
在这里找到的语法:http://answers.opencv.org/问题/133/how-do-i-access-an-ip-camera/
我不需要编译支持 ffmpg 的 OpenCV.
I did not need to compile OpenCV with ffmpg support.
相关文章