By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,343 Members | 925 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,343 IT Pros & Developers. It's quick & easy.

Using a Web Cam in .Net

P: n/a
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
Nov 14 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"Chris101" <Ch******@discussions.microsoft.comwrote in message
news:22**********************************@microsof t.com...
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
Nov 15 '06 #2

P: n/a
Would one of these work?

http://www.devx.com/dotnet/Article/30375

http://www.planet-source-code.com/vb...1339&lngWId=10

http://www.gotdotnet.com/Community/U...3-c664ae2f91f8

http://www.codeproject.com/dotnet/wi...tingdotnet.asp
"Michael C" <no****@nospam.comwrote in message
news:uE**************@TK2MSFTNGP03.phx.gbl...
"Chris101" <Ch******@discussions.microsoft.comwrote in message
news:22**********************************@microsof t.com...
>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

Nov 15 '06 #3

P: n/a
"Tom Leylan" <ge*@iamtiredofspam.comwrote in message
news:O0**************@TK2MSFTNGP03.phx.gbl...
Would one of these work?

http://www.devx.com/dotnet/Article/30375

http://www.planet-source-code.com/vb...1339&lngWId=10

http://www.gotdotnet.com/Community/U...3-c664ae2f91f8

http://www.codeproject.com/dotnet/wi...tingdotnet.asp
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
Nov 15 '06 #4

P: n/a
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

--
Chris
"Michael C" wrote:
"Tom Leylan" <ge*@iamtiredofspam.comwrote in message
news:O0**************@TK2MSFTNGP03.phx.gbl...
Would one of these work?

http://www.devx.com/dotnet/Article/30375

http://www.planet-source-code.com/vb...1339&lngWId=10

http://www.gotdotnet.com/Community/U...3-c664ae2f91f8

http://www.codeproject.com/dotnet/wi...tingdotnet.asp

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
Nov 15 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.