Sign in to follow this  
Vincent_M

Multiplatform API For Webcams

Recommended Posts

Vincent_M    969

Does such an API exist in C or C++? I'm looking for something that works on Windows, Linux and Mac. From my own research, it seems like Video4Linux2 is the closest thing to a de-facto standard for Linux webcams. I'm not too sure how supported V4L is though. OS X provides AVFoundation/QTKit (QuickTime) which are nice, but they're not portable and are written in Objective-C making OS X-only wrappers a pain... I know Windows has their own solution that most-likely used to belong to DirectX once upon a time, but I haven't checked them out yet.

Edited by Vincent_M

Share this post


Link to post
Share on other sites
frob    44974
Flash has access with no platform specialization, assuming user consent.

Java and Python also have access but require a bit of setup for each platform.

Share this post


Link to post
Share on other sites
alh420    5995

If all you need is to grab the frames, OpenCV has a VideoCapture class and is multiplatform. (and has C, C++ and Python APIs)

It is very basic though.

But maybe you need some of the fancy image processing it contains too smile.png

Edited by Olof Hedman

Share this post


Link to post
Share on other sites
Vincent_M    969

Flash has access with no platform specialization, assuming user consent.

Java and Python also have access but require a bit of setup for each platform.

I'm actually working in C and C++. Sorry for being vague :) I added that detail in my original post.

 

 

If all you need is to grab the frames, OpenCV has a VideoCapture class and is multiplatform. (and has C, C++ and Python APIs)

It is very basic though.

But maybe you need some of the fancy image processing it contains too smile.png

This looks like something I could use! I'm downloading it, and going to test it out shortly.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this