9

我正在寻找一个跨平台的视频捕获库,用于网络摄像头访问。一种在 Linux 上封装 V4L/V4L2、在 Windows 上封装 DirectShow 和在 Mac 上封装 QuickTime。

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

4

4 回答 4

9

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...

于 2009-03-27T14:44:13.960 回答
6

Openframeworks有一个视频抓取组件,它是跨平台的,也许您可​​以只使用该框架:)

于 2009-12-01T12:11:10.010 回答
1

另外两个让您可以从 Java 访问网络摄像头的项目:

  1. LTI-民用
  2. 许格勒
于 2009-12-11T22:36:21.280 回答
0

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

于 2009-03-27T01:27:58.633 回答