473,657 Members | 2,592 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Controlling Webcam

Hopefully this is a good group to ask this question. I'm trying to
programmaticall y 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 ShowSetupBefore Scan 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.FileTy pe = ScanLibCtl.File TypeConstants.J PG_File

scanCtrl.PageOp tion = ScanLibCtl.Page OptionConstants .OverwriteAllPa ges

scanCtrl.ScanTo = ScanLibCtl.Scan ToConstants.Fil eOnly

If scanCtrl.Scanne rAvailable Then

Try

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

scanCtrl.MultiP age = True

scanCtrl.ShowSe tupBeforeScan = False

scanCtrl.OpenSc anner()

scanCtrl.Zoom = 100

scanCtrl.StartS can()

Catch ex As Exception

MsgBox("Error scanning:" + vbCrLf + ex.Message,
MsgBoxStyle.Inf ormation + MsgBoxStyle.OKO nly, "Error")

End Try

End If


Nov 20 '05 #1
2 7050
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****@mcclell on.com> wrote in message
news:fL******** ***********@new ssvr25.news.pro digy.com...
Hopefully this is a good group to ask this question. I'm trying to
programmaticall y 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 ShowSetupBefore Scan 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.FileTy pe = ScanLibCtl.File TypeConstants.J PG_File

scanCtrl.PageOp tion = ScanLibCtl.Page OptionConstants .OverwriteAllPa ges

scanCtrl.ScanTo = ScanLibCtl.Scan ToConstants.Fil eOnly

If scanCtrl.Scanne rAvailable Then

Try

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

scanCtrl.MultiP age = True

scanCtrl.ShowSe tupBeforeScan = False

scanCtrl.OpenSc anner()

scanCtrl.Zoom = 100

scanCtrl.StartS can()

Catch ex As Exception

MsgBox("Error scanning:" + vbCrLf + ex.Message,
MsgBoxStyle.Inf ormation + MsgBoxStyle.OKO nly, "Error")

End Try

End If

Nov 20 '05 #2
Ken - Thanks, these look like great references.
"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:uT******** ******@TK2MSFTN GP09.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****@mcclell on.com> wrote in message
news:fL******** ***********@new ssvr25.news.pro digy.com...
Hopefully this is a good group to ask this question. I'm trying to
programmaticall y 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 ShowSetupBefore Scan 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.FileTy pe = ScanLibCtl.File TypeConstants.J PG_File

scanCtrl.PageOp tion = ScanLibCtl.Page OptionConstants .OverwriteAllPa ges

scanCtrl.ScanTo = ScanLibCtl.Scan ToConstants.Fil eOnly

If scanCtrl.Scanne rAvailable Then

Try

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

scanCtrl.MultiP age = True

scanCtrl.ShowSe tupBeforeScan = False

scanCtrl.OpenSc anner()

scanCtrl.Zoom = 100

scanCtrl.StartS can()

Catch ex As Exception

MsgBox("Error scanning:" + vbCrLf + ex.Message,
MsgBoxStyle.Inf ormation + MsgBoxStyle.OKO nly, "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
3936
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 me that "Its intended for server" stuff... thanks! :-) Now that is out of the way lets get to it: I have Windows 2003 Server Enterprise and a Logitech Quickcam Web. I plugged it in and it loaded all the drivers automatically, yet I do not...
4
11983
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 problems with... Could you recommend the best way to capture a Webcam picture from .NET? Do I need device specific drivers or is there a standardized way to do it? Any recommended brand of Webcam?
0
2223
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 streaming) from different webcams. We would like to set up a Webcam server on which we would connect several webcams (at least 12) and stream the output of each webcam on the web. That way, our client application could choose which webcam streams...
4
15173
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 I want to do), I would be thanksfull.
0
879
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
2753
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 webcams so that I can play them on my fake webcam. Does any one know about any good webcam recorder software? Thank you for your help. Newbie
13
7194
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 webcam. First I tried webcamspy (http://webcamspy.sourceforge.net/). That requires pySerial and pyParallel, and optionally pyI2C. Runing WebCamSpy results in: Exception exceptions.AttributeError: "Parallel instance has no attribute '_fd'" in...
5
2939
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 know how to manage a webcam from it's basic functions? Where can i find a SIMPLE, VERY SIMPLE example project? Doesn't matter the what is the OS or the language, i just need it is easy portable source code...
1
8522
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8622
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7355
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6177
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5647
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4333
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2745
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 we have to send another system
2
1973
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.