TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

Help

Forums › TWAIN Classic › Help

  • This topic has 7 replies, 2 voices, and was last updated 12 years, 10 months ago by gabe.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • March 19, 2008 at 3:00 pm #22306 Reply
    Gabri
    Participant
    • Topics - 2
    • Replies - 4
    • Total Posts - 6

    Hello,

    I’m really new to using TWAIN… and I have a lot of questions. Here is one.
    I’m working to a project that requests multi image acquisition. More exactly the output of each single document scanning are 4 images (2 front and 2 rear) , more frames and a string (from a MICR codeline). The problem is that each image have is own setting (like resolution, gray level etc.)
    Any idea to do this with TWAIN 1.9.
    A optimal time for do the images acquisition is also requested.
    What about the string?

    Thank you

    March 19, 2008 at 7:35 pm #24429 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    Unless your device supports CAP_EXTENDEDCAPS seperate settings means seperate acquisition – you can’t renegotiate capabilities while an acquisition is underway without CAP_EXTENDEDCAPS.

    The mirc string via twain is trickier. If you post the model you may be more help from someone with (more) mirc experience.
    If I were trying to find it I would (start sweating, then) run a Msg_Get a few hundred past x8000 to see if there is a customCap out there waiting with string info I’d look thru all of the standard extednded imageinfo and another 2 or 300 hundered to see if the mirc string is there.

    Otherwise you’re at the mercy of the vendor’s support staff and documentation for how to get the info out.

    the part where you ask “A optimal time for do the images acquisition is also requested.” … you’ll have to try asking again with different word. I didn’t understand what you’re looking for there.

    .

    March 20, 2008 at 11:35 am #24430 Reply
    Gabri
    Participant
    • Topics - 2
    • Replies - 4
    • Total Posts - 6

    Sorry, I was not very clear before.

    The story is: one client have a library that manages check scanner. My job is to answer to this question: it is possible to add a level to this library for transform it in a TWAIN-compliant software?
    I find this quite difficult because my experience with TWAIN is 0.

    Some problems now:
    For each check the output is 2 front images, 2 rare images, few snippets images and one MICR string.

    First problem is that the images have different resolutions, grey depth etc. How can I model this with TWAIN? I think to create custom capabilities for each image for do this settings, but I don’t know if it is a good idea.

    With MICR string I think to do like this: do a custom capability for this and a custom event. If the MICR is ready the Source send this event and like this the application will know to get the string using MSG_GET. Is it possible with TWAIN, isn’t it?

    The client have also performance problems, my questions are:
    1) Is it heavy a negotiation in state 5 and 6?
    2) Of course, a TWAIN level on top of the existing library have is heavy, but how much?

    Thanks for any idea

    March 20, 2008 at 11:38 am #24431 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    Just so I’m sure I understand then – You’re writing the twain driver – you are not trying to connect to an existing driver.

    –

    March 20, 2008 at 1:12 pm #24432 Reply
    Gabri
    Participant
    • Topics - 2
    • Replies - 4
    • Total Posts - 6

    Correct, I’m writing the twain driver (the existing one is not TWAIN)

    March 20, 2008 at 1:29 pm #24433 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    Ah, then my advise comes from someone with experience consuming a driver not from one with experience writing one, but here it is.

    Are there really settings for each of the 4 images you are going to return? Or is it the case that you ‘re going to return 4 images and the user has no control? If you are always going to return 4 images and the user doesn’t control the resoltions (or need to) then I don’t think it is a very big deal – Report the resolution that you return in the twImageInfo after you send the image and it’ll get worked out.
    Or, support ExtendedCaps. But,.. I dunno. I could be the case that ExtendedCaps gets a lot more use from other developers but I don’t use it at all,.. and then again maybe I would use extendedCaps more if I saw it being supported by more vendors – hard to say from here

    I would put the mirc string in a custom extendedImageInfo, over 0x8000 is reserved for custom. Just return the twStr255 in there and I think a lot of people will bump into it even without your extremely well documented api available from your website or your spectacular support staff who know exactly what ‘custom extendedImageInfo’ means and what the Id is for your Mirc string.

    Also, (and this next part has nothing to do with your question) it wouldn’t hurt to include your twain header on your CD for people writing apps. Kodak does this and I gotta say, it helps a lot.

    If you haven’t looked thru the GenDs sample from Dosadi, it may help you.
    http://www.dosadi.com/gends.htm

    .

    March 20, 2008 at 2:09 pm #24434 Reply
    Gabri
    Participant
    • Topics - 2
    • Replies - 4
    • Total Posts - 6

    Thanks for your help

    What about performance & TWAIN, any idea?

    March 20, 2008 at 9:05 pm #24435 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    what are you wondering when you ask performance and twain?

    .

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Help
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • отрадный ресурс zarabotat-v-internete biz
  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.