tags:

views:

95

answers:

1

how hard would it to make software for a webcam like gateway usb 2.0 web cam. i would like to ask it to give me pics when i ask. i know i could but how do i? what would i use, i can program in c++ so if i could use that it would be nice.

+3  A: 

The answer depends on what platform you are using. For example, if on Windows, you can retrieve data from the camera using the DirectX API, Linux has Video4Linux and Mac has QuickTime.

There are some cross-platform wrappers which provide a layer above the native video API, and therefore offer a common API across multiple platforms. One such project is OpenCV which - although not intended primarily for camera capture use cases - does support them via the cvCaptureFromCAM and cvQueryFrame functions.

The QtMobility Multimedia APIs will also offer cross-platform camera support, but this API is not yet implemented. Check back in Qt 4.7 if this library looks interesting to you.

Gareth Stockwell
hmm.. k xD tyvm
blood