If the webcam has a TWAIN driver, it's supported by Dynamic Web TWAIN. You can refer to the link here to check if your device is TWAIN compatible.
If your device is not TWAIN compatible, below is a workaround for you:
Download and unzip VideoDS.ds, which is a generic webcam twain driver providing access to any windows video device, to C:\Windows\twain_32. more info
NOTE:
When using VideoDS to capture the images from webcam without showing UI (i.e. WebTWAIN.IfShowUI = false), Dynamic Web Twain might capture every frame of the output.
To solve this issue, you can:
Set the value of XferCount to 1, for example:
function btnScan_onclick() {
WebTWAIN.SelectSource();
WebTWAIN.IfShowUI = false;
WebTWAIN.XferCount = 1; // transfer 1 image per session
WebTWAIN.AcquireImage();
}
Or, you can add OnPostTransfer event to your scan function and include CloseSource method in it, for example:
function DynamicWebTWAIN_OnPostTransfer()
// the event will be triggered after each transfer
{
WebTWAIN.CloseSource();
}
For any questions, you can contact twainsupport@dynamsoft.com.
