Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cross-Platform webcam access [closed]

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 or C++ is preferred, but I can work in Java or Python if those have better options for libraries.

like image 661
Branan Avatar asked Mar 27 '09 01:03

Branan


3 Answers

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

like image 100
f3lix Avatar answered Oct 23 '22 12:10

f3lix


Openframeworks has a video grabbing component which is meant to be cross platform, perhaps you could just use the framework for that piece :)

like image 43
Andrew Griffiths Avatar answered Oct 23 '22 12:10

Andrew Griffiths


Two other projects that let you access Webcams from Java:

  1. LTI-Civil
  2. Xuggler
like image 29
Art Clarke Avatar answered Oct 23 '22 13:10

Art Clarke