Capturing video from a usb webcam

Hi,

I want to build a program to process frames/images from a video in real time.
So, my first step is to build an application in Visual C++ in order to get images with my usb webcam and I should be able to see those images in a window in my computer. But I don't know how to do it. I suppose that there should be some code already available in the net, but where? Can anyone help me?


Thanks a lot
gabmorodAsked:
Who is Participating?
 
jhshuklaCommented:
another option: http://www.hitl.washington.edu/artoolkit/download.htm
samples or examples folder has a MSVC project in it. it's called "simple". does more than just displaying the captured image but it's pretty trivial to get rid of extraneous code.
0
 
gabmorodAuthor Commented:
Hola Jaime

I've been looking to the first example, but they use a program that i cannot find called GraphEdit.... where is that program?

Thanks very much for your help!
0
 
gabmorodAuthor Commented:
Well, I have found it...! No worries about that! The problem was my version of SDK (the Graphedit has disappear after the one of Summer 04!!!)   ;)

I have now two filters conected and I have managed so that I can see my camera... but how can I integrate this into a Visual C++ program??? I mean, how can I generate a code to put inside of a C++ program?
0
 
Jaime OlivaresSoftware ArchitectCommented:
Have you tried all examples or just first one?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.