I'm using Leadtools 20 API to control the scanner and scan some documents. I have 2 questions.
1 - When using L_TwainAcquire with a callback function that receives the images from the scanner and keeps returning SUCCESS to get the next image. Is there anyway inside the callback function to determine if the image is from the front camera or the back camera?
2 - Is there a way to force the scanner to use only the back camera for scanning?
Thank you
Sam
If you mean the 2 sides of a scanned document when using a duplex scanner, the answer is as follows:
Quoting from that document:
If you mean you have a computer with 2 Twain camera sources (back and front), the answer becomes as follows:
L_TwainAcquire()was called, you can use theL_TwainGetSources()function with theLTWAIN_SOURCE_ENUMERATE_DEFAULTflag to get the currently-selected Twain device. This can be done inside the Bitmap Callback as shown in the following code:L_TwainSelectSource()function before scanning, as follows:To find the name of all devices, you can use this code:
The Source Info Callback will be triggered once for each Twain source. It can be implemented like this: