views:

94

answers:

3

I'm working on a Win32 application in C++ and would like to add the ability to output the default web cam onto the screen. I was wondering if there was a Win32 API for this, or a way to do this without coding the whole thing.

Thanks

A: 

Using OpenCV you can access webcam.

Tony
+2  A: 

Yes, it is really simple with capCreateCaptureWindow. That googles really well, you'll have no trouble finding code samples.

Hans Passant
Hi - did you find any code examples that worked...?
A: 

I'd recommend DirectShow. capXXX API is really old and obsolete. OpenCV is based on Win32 API.

dominolog