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


基础教程推荐
- C++结构和函数声明。为什么它不能编译? 2022-11-07
- 这个宏可以转换成函数吗? 2022-01-01
- 如何在 C++ 中初始化静态常量成员? 2022-01-01
- 常量变量在标题中不起作用 2021-01-01
- 在 C++ 中计算滚动/移动平均值 2021-01-01
- 如何通过C程序打开命令提示符Cmd 2022-12-09
- 静态库、静态链接动态库和动态链接动态库的 .lib 文件里面是什么? 2021-01-01
- 如何将 std::pair 的排序 std::list 转换为 std::map 2022-01-01
- 我有静态或动态 boost 库吗? 2021-01-01
- 如何检查GTK+3.0中的小部件类型? 2022-11-30