我正在寻找一个跨平台的视频捕获库,用于网络摄像头访问。一种在 Linux 上封装 V4L/V4L2、在 Windows 上封装 DirectShow 和在 Mac 上封装 QuickTime。
首选 C 或 C++,但如果 Java 或 Python 有更好的库选项,我可以使用它们。
我正在寻找一个跨平台的视频捕获库,用于网络摄像头访问。一种在 Linux 上封装 V4L/V4L2、在 Windows 上封装 DirectShow 和在 Mac 上封装 QuickTime。
首选 C 或 C++,但如果 Java 或 Python 有更好的库选项,我可以使用它们。
The OpenCV (Open Source Computer Vision) works under Linux, Windows and Mac OS X.
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.
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...
Openframeworks有一个视频抓取组件,它是跨平台的,也许您可以只使用该框架:)
JMF (Java Media Framework) has libraries in Linux/Windows too, and has some support for webcam capture.
Formats
http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/formats.html