Home › Forums › TWAIN Classic › Live Preview
- This topic has 1 reply, 2 voices, and was last updated 13 years, 6 months ago by Kaij.
- AuthorPosts
Hi guys,
let me ask you a question. I have Leica DFC camera and I need to develop a app which would show “live preview”.
Here’s what I think could work for me. (simplified)
I would acquire images from the DS in an infinite loop and display the in the window.while (preview_enabled)
{
AcquireImg(hdib);
DrawDIBToWindow(hdib);
}
My question is, whether the TWAIN acquisition is fast enough (that means at min 20images per sec) to make the preview “smooth”.
In lower resolution of course (800×600 ??) – using FireWireI’ve tried using EZTwain library – but the best results I achieved was 3-5 imgs/sec.
Is TWAIN suitable to do this? Or is there any different way how to do it?
Thanks a lot
Basically the TWAIN architecture is designed to acquire up to hundreds of images per minute but I do not expect that you can reach 20 images per minute.
The influencing factors are the TWAIN driver itself (I assume you are using Leica DFC Twain – V7.1.0. or V7.2.0), the performance of the TWAIN application library and the PC system performance.
You may reach 6 – 8 images per second if you use for preview a smaller resolution.
If you really need 20 frames per second you have to think about alternatives. Have you considered to use LAS for preview and TWAIN for acquire only?
Best regards,
Kaij
http://www.jse.de- AuthorPosts