The leading provider of version control solution and TWAIN SDK

Does Dynamic Web TWAIN support Webcams?

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.



Article Details

Last Updated
10th o May, 2012

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favorites Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF

User Opinions (0 votes)

No users have voted.

How would you rate this answer?



Thank you for rating this answer.

Related Articles

No related articles were found.

Attachments

No attachments were found.

Visitor Comments

No visitor comments posted. Post a comment

Post a comment

To post a comment for this article, simply complete the form below. Fields marked with an asterisk are required.
   Name:
   Email:
* Comment:
* Enter the code below:
 

Continue