For Windows Developers who need to capture image from scanner, digital camera that has a TWAIN device driver and save to Docx, TIFF , PDF/A with C#, C++ ,VB.NET , VB, Delphi, VFP, MS Access.
For Windows Developers who need to capture image from scanner, digital camera or capture card that has a TWAIN device driver with C++, C#, VB.NET , VB, Delphi, Vfp, MS Access.
Platform : Windows 10, Windows 8, Vista, Windows 7, XP
For Windows Developers who need to video capture SDK for Adobe Director, C++, C#, VB.net , VB, Delphi, VFP, MS Access.
Step 1: Install the VideoCap SDK ActiveX, begin by launching the setup file (http://www.viscomsoft.com/demo/videocapsetup.exe). Select the desired installation folder for the VideoCap SDK ActiveX and continue with the installation on your development computer.
Step 2: Create New MFC Application Project, select MFC Application in Visual C - MFC.Step 3: Select Dialog based on Application type. Click Finish button.Step 4: In Toolbox, right click the mouse , then select Choose Item...
Step 5: Select COM Components, select VideoCap Control, click OK
Step 6: Now you will see the VideoCap Control 's icon on Toolbox, drag it on form.
Step 7: Select Class Wizard, select Add Class - MFC Class From ActiveX Control
Step 8: Select VideoCap Control in Available ActiveX Controls, Click > button. You may changed the name of Class, .h file, cpp file.Class - CVideoCap.h file - VideoCap.h.cpp file VideoCap.cpp
Step 9: VS 2015 generated VideoCap Class files is not correctly, Some properties cannot use. so you need download the correct VideoCap Class files from http://www.viscomsoft.com/doc/videocap/videocap-class-files.zip , unzip it and copy all files to your application folder and replace original videocap.h and videocap.cpp.Step 10: Selected VideoCap Control , right click the mouse, select Add Variable...
Step 10: enter m_VideoCap in Variable name , click Finish.
Step 11: add button on form, change the caption to "Snapshot" Step 12: In OnInitDialog(), add the following code to preview the webcam. It will use first video device for preview, if you want to use second video device , you may call m_VideoCap1.SetDevice(1) first.m_VideoCap.Start();
Step 13: In Button 1 click event, add the following code to snapshot the image.m_VideoCap.Snapshot(L"c:\\temp\\myoutput.jpg",99);
Download this sample source code from http://www.viscomsoft.com/doc/videocap/MFCApplication1.zip
email@example.com (General information)
Copyright © 2009-2021 Viscom Softwares. All rights reserved.