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

Acquiring multiple images from camera

Forums › TWAIN Classic › Acquiring multiple images from camera

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 5 months ago by pu.mpkin.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 15, 2009 at 9:24 am #22511 Reply
    bano
    Participant
    • Topics - 1
    • Replies - 1
    • Total Posts - 2

    Hello,

    I am programming an application which uses twain to communicate with a digital camera. The acquisition of single images is ok, but I can’t acquire several images one after another.

    What I want is to implement an autofocus algorithm. On it, I acquire an image, and loop moving the camera (with a motorized arm) and acquiring another image). My problem is that after the first acquisition I get pendingXfers.Count = 0, and I turn back to state 5. What I want is to remain at state 6, on which I could acquire more images without waiting for XFERREADY again.

    I have tried to set CAP_XFERCOUNT to -1, and after that I receive a TWRC_SUCCESS code. After that I check this value with MSG_GET, and it is 65535 (which is also enough for my purpose), but when I enable the camera and check pendingXfers.Count, its value is always 1 before I send MSG_ENDXFER, and 0 after that.

    Is there any way to tell the source the amount of images that I want to acquire, so that pendingXfers.Count is set to that value?

    If I have not explained well, feel free to comment and I’ll try to explain it better.

    Thanks in advance

    July 15, 2009 at 2:03 pm #24965 Reply
    bano
    Participant
    • Topics - 1
    • Replies - 1
    • Total Posts - 2

    I forgot to tell: I am working without the source’s UI.

    ¿Any idea of how to remain in state 6 after transferring an image?

    Thanks.

    October 29, 2010 at 3:29 pm #24966 Reply
    pu.mpkin
    Participant
    • Topics - 2
    • Replies - 1
    • Total Posts - 3

    Hi bano,

    one year after you I am stucked with the same problem as you were
    http://www.twainforum.org/viewtopic.php?t=4076

    I want my camera to deliver “endless” amount of images, so that I set the XferCount to -1 (as you did) and always I get pendingXfers=0 (as you got :D) therefore I must go back to state 5 … it exactly same problem you discribed.

    Is there any solution? Have you finished your project?

    Please reply
    Thanks

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Reply #24966 in Acquiring multiple images from camera
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

  • TWAIN for dental imaging integration
  • PDF/R For who and where?
  • Making searchable PDF with PDF/R
  • Backward compatibility with PDF/A and traditional PDF
  • could not open the twain source. Make sure there is a valid source for your sca
  • 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.