473,473 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Controlling Webcam

Hopefully this is a good group to ask this question. I'm trying to
programmatically control a micro innovations IC50C webcam with VB.NET.
Specifically I'm using the Kodak scanner control. My problem is, despite
setting the control's ShowSetupBeforeScan property to false, when I execute
the StartScan method, I get a dialog box with several setup options and a
"Snapshot" button which I have to push to get an actual snapshot. I want
this to be fully automated without the need to stop and click a dialog
button obviously.

My questions:

1) Is the Kodak Scanner control the appropriate control to be using?
2) Are there any other ways to do this?
3) Is this an issue specific to my webcam's drivers that it won't let me
automate the picture taking?

Here's my code in case anyone is wondering ......

scanCtrl.FileType = ScanLibCtl.FileTypeConstants.JPG_File

scanCtrl.PageOption = ScanLibCtl.PageOptionConstants.OverwriteAllPages

scanCtrl.ScanTo = ScanLibCtl.ScanToConstants.FileOnly

If scanCtrl.ScannerAvailable Then

Try

scanCtrl.Image = "c:\webcam.jpg"

scanCtrl.MultiPage = True

scanCtrl.ShowSetupBeforeScan = False

scanCtrl.OpenScanner()

scanCtrl.Zoom = 100

scanCtrl.StartScan()

Catch ex As Exception

MsgBox("Error scanning:" + vbCrLf + ex.Message,
MsgBoxStyle.Information + MsgBoxStyle.OKOnly, "Error")

End Try

End If


Nov 20 '05 #1
2 7038
Hi,

Here are some links.
http://www.codeproject.com/dotnet/wi...asp?target=wia
http://www.codeproject.com/dotnet/tw...asp?target=wia
http://www.vb-helper.com/howto_net_video_capture.html

Ken
-----------------------
"Pat Mac" <do****@mcclellon.com> wrote in message
news:fL*******************@newssvr25.news.prodigy. com...
Hopefully this is a good group to ask this question. I'm trying to
programmatically control a micro innovations IC50C webcam with VB.NET.
Specifically I'm using the Kodak scanner control. My problem is, despite
setting the control's ShowSetupBeforeScan property to false, when I
execute
the StartScan method, I get a dialog box with several setup options and a
"Snapshot" button which I have to push to get an actual snapshot. I want
this to be fully automated without the need to stop and click a dialog
button obviously.

My questions:

1) Is the Kodak Scanner control the appropriate control to be using?
2) Are there any other ways to do this?
3) Is this an issue specific to my webcam's drivers that it won't let me
automate the picture taking?

Here's my code in case anyone is wondering ......

scanCtrl.FileType = ScanLibCtl.FileTypeConstants.JPG_File

scanCtrl.PageOption = ScanLibCtl.PageOptionConstants.OverwriteAllPages

scanCtrl.ScanTo = ScanLibCtl.ScanToConstants.FileOnly

If scanCtrl.ScannerAvailable Then

Try

scanCtrl.Image = "c:\webcam.jpg"

scanCtrl.MultiPage = True

scanCtrl.ShowSetupBeforeScan = False

scanCtrl.OpenScanner()

scanCtrl.Zoom = 100

scanCtrl.StartScan()

Catch ex As Exception

MsgBox("Error scanning:" + vbCrLf + ex.Message,
MsgBoxStyle.Information + MsgBoxStyle.OKOnly, "Error")

End Try

End If

Nov 20 '05 #2
Ken - Thanks, these look like great references.
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:uT**************@TK2MSFTNGP09.phx.gbl...
Hi,

Here are some links.
http://www.codeproject.com/dotnet/wi...asp?target=wia
http://www.codeproject.com/dotnet/tw...asp?target=wia
http://www.vb-helper.com/howto_net_video_capture.html

Ken
-----------------------
"Pat Mac" <do****@mcclellon.com> wrote in message
news:fL*******************@newssvr25.news.prodigy. com...
Hopefully this is a good group to ask this question. I'm trying to
programmatically control a micro innovations IC50C webcam with VB.NET.
Specifically I'm using the Kodak scanner control. My problem is, despite setting the control's ShowSetupBeforeScan property to false, when I
execute
the StartScan method, I get a dialog box with several setup options and a "Snapshot" button which I have to push to get an actual snapshot. I want this to be fully automated without the need to stop and click a dialog
button obviously.

My questions:

1) Is the Kodak Scanner control the appropriate control to be using?
2) Are there any other ways to do this?
3) Is this an issue specific to my webcam's drivers that it won't let me
automate the picture taking?

Here's my code in case anyone is wondering ......

scanCtrl.FileType = ScanLibCtl.FileTypeConstants.JPG_File

scanCtrl.PageOption = ScanLibCtl.PageOptionConstants.OverwriteAllPages

scanCtrl.ScanTo = ScanLibCtl.ScanToConstants.FileOnly

If scanCtrl.ScannerAvailable Then

Try

scanCtrl.Image = "c:\webcam.jpg"

scanCtrl.MultiPage = True

scanCtrl.ShowSetupBeforeScan = False

scanCtrl.OpenScanner()

scanCtrl.Zoom = 100

scanCtrl.StartScan()

Catch ex As Exception

MsgBox("Error scanning:" + vbCrLf + ex.Message,
MsgBoxStyle.Information + MsgBoxStyle.OKOnly, "Error")

End Try

End If


Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Kelowna | last post by:
Yes... Its a server os... i kno! i hav xp yea but tis system is for screwing with.. Im sure theres alot of ppl here tat kno tis stuff inside-out! im doing this for educational purposes so dont give...
4
by: Joakim Rylander | last post by:
Hi all, I need to create a public booth where people can look at themselves in a webcam and snap a picture which will be seen on a webpage. The backend is easy, it's the webcam part that I have...
0
by: Elp | last post by:
Hi, We have developped an client application in C#. Among other things, this application should display in 4 different windows (or 4 different panels in the same window), 4 webcam streams (web...
4
by: Mathieu Chavoutier | last post by:
Hi. Is it possible to do a program that show the "film" that is currently on our webcam ? I do not have a Webcam for the moment, so, if you have advices to chose a Webcam compliant (with what...
0
by: addoty | last post by:
I have a Logitech USB webcam attached to my computer. It has pan, tile and zoom. Is there any way I can control these functions through VB? Thanks.
3
by: DillonCzerny | last post by:
Hello Many times I see a lot of people post webcam videos on google video or youtube. I wonder how do they record it from those people’s webcam? I have a fake webcam and I want to record some...
13
by: Berco Beute | last post by:
I've been trying to access my webcam using Python, but I failed miserably. The camera works fine under Ubuntu (using camora and skype), but I am unable to get WebCamSpy or libfg to access my...
5
by: frakie | last post by:
Hi there, I need a simple and stupid few line source code to access my webcam. I found lots of huge projects (c++ c and other) which are so big that they are impossible to be used. Does somebody...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.