Home › Forums › TWAIN Specification › TWAIN Specification Discussion › Kodak DOCUMENT SIZE CAP
- This topic has 6 replies, 3 voices, and was last updated 6 years, 10 months ago by Srivatsan.
- AuthorPosts
Hi,
I’m creating a small interface in Delphi to use a twain source with Envision component.
The driver of “kodak i2600”, have in your profile/config an TAB called “Size” -> in side the combobox “DOCUMENT” with the options: “Automatically Detect and Straighten“, “Automatically Detect” and “Manually Select“.I need set to “Manually Select” to use DAT_IMAGELAYOUT definitions. I want set this option via twain.
I read 2.2 spec, and tryed several caps… But, no one work 🙁 Which CAP_ should I use?I already used (disable/turn off): ICAP_MAXFRAMES, ICAP_UNDEFINEDIMAGESIZE, ICAP_AUTOMATICLENGTHDETECTION, ICAP_AUTOSIZE, ICAP_SUPPORTEDSIZES, ICAP_OVERSCAN, ICAP_AUTOMATICDESKEW, ICAP_AUTOMATICCROPUSESFRAME …
Any help is welcome 🙁
Thanks,
Setting ICAP_AUTOMATICBORDERDETECTION to FALSE and ICAP_AUTOMATICDESKEW to FALSE should be enough to make the change you want.
You can also try the custom ICAP_CROPPINGMODE, setting it to TWCR_TRANSPORT.
The GUI always reflects changes made in state 4, so if you bring it up after setting these values you should be able to confirm that your app code is working.
@MarkM wrote:
Setting ICAP_AUTOMATICBORDERDETECTION to FALSE …
Very thanks Mark, setting ICAP_AUTOMATICBORDERDETECTION to false solved my problem. 😀
Cya
There is no hardware specification. Nearly any scanner hardware can be supported by a TWAIN DS which supports the TWAIN spec.
SrivatsanUsing Twain API with Kodak i2620
I am facing an issue using the Twain APi with Kodak i2620 scanner. I am not able to scan more than 20 sheets. It scans for 20 and then fails with Out of Memory Exception. It is a C# application and x86 platform. Request your kind help on the same. Thank you.Regards,
S.Srivatsan
Srivatsan SeshadriHi,
Good News, the issue is resolved. It was a Memory issue. Running a x86 application in an x64 processor would reserve only 1.3GB of memory to the Process and since ours is a thread based solution the memory is always under use. So, once the memory level is reached, it explodes. See the below link for more info:
Do contact me over my email for any further discussions. Thank you.
Regards,
S.Srivatsan
SrivatsanGuys, one more addition to this. Ensure that the “size in Kb” of the image which you are trying to scan is lesser. This also holds a point in continuous scanning as the images are continuously maintained in the memory till the scan process is complete. I changed the Compression mode of the Images in the Settings ans was able to see improvements in the scanning process. Thank you.
- AuthorPosts