跨平台网络摄像头访问 [英] Cross-Platform webcam access

查看:124
本文介绍了跨平台网络摄像头访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找用于网络摄像头访问的跨平台视频捕获库.在Linux上包装V4L/V4L2,在Windows上包装DirectShow,在Mac上包装QuickTime.

I'm looking for a cross-platform video capture library, for webcam access. One that wraps V4L/V4L2 on Linux, DirectShow on Windows, and QuickTime on the Mac.

首选C或C ++,但如果库的选项更好,我可以使用Java或Python.

C or C++ is preferred, but I can work in Java or Python if those have better options for libraries.

推荐答案

OpenCV (开源计算机视觉)可在Linux,Windows和Mac OS X下运行.

The OpenCV (Open Source Computer Vision) works under Linux, Windows and Mac OS X.

我在Mac OS X下使用OpenCV,它与MacBook的内置iSight一起使用时效果很好,我相信它在其他平台上也能很好地工作.

I use OpenCV under Mac OS X and it works very well with the built-in iSight of my MacBook, and I believe it works equally well under the other platforms.

当然,OpenCV并非主要用作视频捕获库,但可以将其用作此类库.而且,如果您要处理从网络摄像头抓取的帧,OpenCV绝对可以帮助您实现这一目标……

Of course, OpenCV is not primarily intended as video capture library, but it can be used as such. And if you want to process the frames you grab from your webcam OpenCV will definitely help you with that...

这篇关于跨平台网络摄像头访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆