带有网络摄像机的 OpenCV

OpenCV with Network Cameras(带有网络摄像机的 OpenCV)
本文介绍了带有网络摄像机的 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

Unable to access non-const member functions of objects in C++ std::set(无法访问 C++ std::set 中对象的非常量成员函数)
Constructing std::function argument from lambda(从 lambda 构造 std::function 参数)
STL BigInt class implementation(STL BigInt 类实现)
Sync is unreliable using std::atomic and std::condition_variable(使用 std::atomic 和 std::condition_variable 同步不可靠)
Move list element to the end in STL(在 STL 中将列表元素移动到末尾)
Why is overloading operatoramp;() prohibited for classes stored in STL containers?(为什么禁止对存储在 STL 容器中的类重载 operatoramp;()?)