Linux下捕获网络摄像头流
我正在尝试从一个minoru3d网络摄像头获取图像,它实际上是两个Vimicro网络摄像头加上一个USB集线器在一个包中。 问题是,opencv 总是以最大分辨率获取流,因此无法同时从两个网络摄像头捕获(由于 USB 限制)。 如何设置分辨率或 FPS? 由于某种原因,opencv 调用
cvSetCaptureProperty( capture, CV_CAP_PROP_FRAME_WIDTH, 320 );
cvSetCaptureProperty( capture, CV_CAP_PROP_FRAME_HEIGHT, 240 );
不起作用。 我不需要使用 opencv,任何其他做同样工作的库对我都有好处。 网络摄像头使用内核 2.6.30 及 v4l2 的 uvc 驱动程序。 我在这里尝试了自定义模块: http://linuxtv.org/hg/~pinchartl/uvcvideo 在我的带有 2.6.27 内核的 Ubuntu 机器上。
I'm trying to get images from a minoru3d webcam, which is actually two Vimicro webcams plus a USB hub in a single package. The problem is, opencv always takes streams in maximum resolution, making simultaneous capture from two webcams impossible(due to usb constraints). How do I set resolution or FPS? For some reason, opencv calls
cvSetCaptureProperty( capture, CV_CAP_PROP_FRAME_WIDTH, 320 );
cvSetCaptureProperty( capture, CV_CAP_PROP_FRAME_HEIGHT, 240 );
don't work. I don't need to work with opencv, any other library doing the same job is good for me. The webcam uses uvc drivers from kernel 2.6.30, with v4l2. I tried the custom module here: http://linuxtv.org/hg/~pinchartl/uvcvideo on my Ubuntu box with 2.6.27 kernel.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我使用了 luvcview 和 v4l2cam 出于我的目的。 2 是专门为 Minoru 编写的。
I used luvcview and v4l2cam for my purposes. 2 is specifically written for the Minoru.