473,320 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Using a Web Cam in .Net

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
4 2459
"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
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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: beliavsky | last post by:
Many of my C++ programs have the line using namespace std; but the "Accelerated C++" book of Koenig and Moo has many examples where the library names are included one at a time, for example ...
5
by: Enos Meroka | last post by:
Hallo, I am a student doing my project in the university.. I have been trying to compile the program using HP -UX aCC compiler, however I keep on getting the following errors. ...
12
by: Calum Grant | last post by:
In older C++ computer books, you'll often see using namespace std; even in my 1996 copy of Stroustrup. Nowadays, it seems to be considered better to qualify names to make it clearer what...
0
by: canasdaq | last post by:
Can anyone please help me. I was looking at the article "http://www.eggheadcafe.com/articles/20030603.asp". I am new to .net and know nothing in c#. I want to write a menu in asp.net. Can anyone...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
3
by: John Spiegel | last post by:
Hi All, I've been working on building a .dll in C# (framework 1.1) and using it in VFP8. As always, the example that runs so smoothly in the article fails at a rather basic point in practice. ...
8
by: acb | last post by:
Hi, I wrote a DLL Component (using Visual Studio 2005) and managed to include it into a C# Console application. I am now trying to include this component into a Web project. I copy the DLL...
0
by: Eugene Anthony | last post by:
The problem with my coding is that despite removing the records stored in the array list, the rptPages repeater control is still visible. The rptPages repeater control displayes the navigation...
3
by: JDeats | last post by:
I have some .NET 1.1 code that utilizes this technique for encrypting and decrypting a file. http://support.microsoft.com/kb/307010 In .NET 2.0 this approach is not fully supported (a .NET 2.0...
8
by: =?Utf-8?B?Q2hyaXMgSGFsY3Jvdw==?= | last post by:
Hi there I've successfully added some .NET validation controls to a page (using <asp:RequiredFieldValidator ...), however when I try to set the 'display' property to 'dynamic', my page then...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.