Home › Forums › TWAIN Classic › How to design a Twain DS for a web cam
- This topic has 3 replies, 3 voices, and was last updated 6 months, 3 weeks ago by dhruv093.
- AuthorPosts
I would like to make a Twain data source for use with a web cam we use as part of our application.
We have been using a universal driver called Videods.ds which is usually ok but as it saves a temp file to the root of “C” it cant be used on tightly controlled computers.
We would like to write our own Twain data source file so we can simply drop the *.ds file into the Windowstwain32 folder, select it from our application.
We DO NOT want to talk to the web cam directly form our application as we often change web cams as companies like Logitech tend to drop older models quite regularly.
Please suggest. ❓ ❓
Hmm. A TWAIN driver is a complicated animal. Maybe the guy who wrote videods.ds would sell or give you the source code.
Wait, that’s me. 8)In fact looking at my own notes, that problem with the temp file was fixed, supposedly, in VideoDS version 1.06 back in 2009.
So I’m attaching a 1.06 copy of VideoDS.ds for you to try, and a .zip of the latest source code in case you want to try rebuilding or customizing it.
Obviously all the usual disclaimers apply – this code comes with no warranty express or implied, you are entirely responsible for anything you do with it and any consequences thereof.
Hi spike,
Not sure if you will see this since it is a pretty old thread! I appreciate you making available VideoDS driver. I am using it to live stream and capture an 1920X1080p image into a patient management system. It works great other than a couple of issues. Once I go into Acquire mode, the Video DataSource preview window comes up with a live image from my HD camera. The first time I brought it up, it correctly identified the image stream as 1920X1080. However, I went exploring and under the Format button clicked on the resolution drop down. I noticed it did not have a selectable resolution higher than 720X576. I unwisely selected that resolution and of course my live display and captures are now at that resolution. I have been unable to get VideoDS to forget this selected resolution and go back to displaying and capturing in my cameras native 1920X1080. I have tried removing the VideoDS.ds file, restarting the computer and then reinstalling it. I’m guessing it has something to do with Microsoft wdm image capture application being used by VideoDS, but I am unable to find any way to override this resolution setting and get back to 1920X1080. Also, I am running Win 7 Pro and occasionally, when I go to aquire, it errors out with some kind of message saying it stopped working. Any suggestions you can provide to help me get back to 1920X1080 capture would be greatly appreciated! Thanks
Peter ScaramuzzoAny chance I can get the videods.ds file? I would like to make my webcam look like a TWAIN compliant device. Thanks!!
- AuthorPosts