OpenCV with Network Cameras(带有网络摄像机的 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.
这篇关于带有网络摄像机的 OpenCV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:带有网络摄像机的 OpenCV
基础教程推荐
- GDB 显示调用堆栈上函数地址的当前编译二进制文 2022-09-05
- 为什么 RegOpenKeyEx() 在 Vista 64 位上返回错误代码 2021-01-01
- 通过引用传递 C++ 迭代器有什么问题? 2022-01-01
- 如果我为无符号变量分配负值会发生什么? 2022-01-01
- 我应该对 C++ 中的成员变量和函数参数使用相同的名称吗? 2021-01-01
- 为什么 typeid.name() 使用 GCC 返回奇怪的字符以及如 2022-09-16
- 为什么派生模板类不能访问基模板类的标识符? 2021-01-01
- 非静态 const 成员,不能使用默认赋值运算符 2022-10-09
- CString 到 char* 2021-01-01
- 初始化列表*参数*评估顺序 2021-01-01
