Using a Web Cam in .Net

G

Guest

Hi,

I'm trying to work out how to use a Philipps web cam in VB.Net, what I would
like to do is select a web cam, display the image on screen, edit the
properties of the web cam and also capture an image.

Can anyone help with some code examples please?

Thanks




Chris
 
M

Michael C

Chris101 said:
Hi,

I'm trying to work out how to use a Philipps web cam in VB.Net, what I
would
like to do is select a web cam, display the image on screen, edit the
properties of the web cam and also capture an image.

Can anyone help with some code examples please?

This is not an easy task, I spent many an hour doing exactly this (120 hours
at least). You need to use directshow which means creating a whole heap of
com interfaces in code. There is a site that has a lot of this already done
but i'm not sure what it's called. There are also many samples, which is
what I was working from. The other altenative is to use the older Video For
Windows which is much simpler but gives less functionality.

Regards,
Michael
 
M

Michael C

Tom Leylan said:

The first 2 are Video for windows and I believe the third is also. The last
is WIA. VFW is an ok option if the webcam supports it. Most tv tuners and
capture cards don't, or at least not very well but if this is a simple
project then it could be the easiest way to go.

This was more what I was thinking, although using directshow is
significantly more complicated and might not gain any functionality if
nothing advanced is required:

http://www.codeproject.com/cs/media/directshownet.asp

Michael
 
G

Guest

Thanks for this, I'll have a look and see if the sites will help.

As far as complicated is conscerned, I'm not positive at the moment how far
I need to go, I was going to try to build a telescope autoguider, this would
require the need to identify an object and then work out where it is moving
on screen. So I suppose it should be a fun thing to do.

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top