Invoke a scanner/video camera using VB.NET
Hi !!
My application is in VB.NET and it requires me to do the following things :
1) Invoke a scanning device and scan images. The idea is to just invoke the native software application used for scanning and display it to the user giving him the feel that it is "my" application which is doing the stuff.
2) Similarly I would like to invoke a web cam and a video camera plugged on to the computer.
3) With a video camera, I would like to freeze an image at any particular point and save it on to the hard disk. This could be the native feature provided by the software for the video camera itself. I just need to capture this feature in my application.
Also, my problem is how will my application know which is that program that it should invoke (either for a scanner or a web cam or a video cam) . I cannot hard-code the name of the exe because the scanning software will differ from scanner to scanner.
I have never used graphics to such an extent and am absolutely clueless about the whole thing. Any little help on this one would be highly appreciated.
Thank You All in Advance .
Kurt AmbrosePosted Dec 31, 2020, 10:15 PM
Below is link to a tutorial that would make a small application to choose a TWAIN device and then acquire the image using the manufactures user interface. Unfortunately this tutorial was written in C# .NET but it should be similar.
https://www.leadtools.com/help/sdk/v21/tutorials/scanning/windows/dotnet/winforms/acquire-an-image-from-twain-source.html
In regards to “freezing an image” at a particular point and saving it to the hard disk you could obtain this by using the LEAD Video Callback filter. Here is a forum post that would allow you to obtain every frame received. After which you could then save it to disk.
https://www.leadtools.com/help/sdk/v21/dh/multimedia/to/creating-a-basic-leadtools-directshow-capture-application.html
RasterCodec.Save() documentation
https://www.leadtools.com/help/sdk/v21/dh/co/rastercodecs-save(rasterimage,string,rasterimageformat,int).html
sonali_manohar2002Posted Dec 29, 2003, 4:08 AM
dwainsPosted Dec 20, 2003, 7:46 PM