views:

133

answers:

2

While I have got some leads from an older SO post and from this site, I haven't been able to figure out how to capture each frame of a web-cam.

What I would like to do is something like this capture a frame then do some image processing on it and display the output and then move on to the next frame.
Can I can access to web-cam frame events or is there any efficient way to achieve this?

+1  A: 

Sounds like the perfect job for OpenCV or AForge image processing.

kenny
Have you worked on any of these which one would you recommend to start of with consider that I'm a noob in .net and image processing...
Kevin Boyd
While I would have a look at the above links is there any specific solution using avicap32.dll I mean read each webcam frame, I mean get some events for each frame of the webcam. Is that possible?
Kevin Boyd
I haven't used AForge, but I found emgu port of OpenCV very easy to use. I'm sure it's easy to look at frames with the MS apis, but they don't have much image processing built-in. The libraries I've suggested have lots of image processing and camera capture.
kenny
A: 

This article will help you a lot: http://www.codeproject.com/KB/directx/prototypingdsfilters.aspx

It shows how you can create your own DirectShow video filters in .NET

Ovidiu Pacurar
Haven't done much of C# so can't figure out what's going on out there, any thing in vb.net would be of great help...
Kevin Boyd
There are web sites that will convert C# into VB.NET. Also there is almost a 1-1 matching of small syntax for > 90% of it.
kenny