Does anyone have implemented the Twain functionality in parallel with MICR (CMC7) recognition?
We are using CMC7 recognition on a DLL module that implements MICR recognition from GdPicture alongside with engines. It combines the results for better performance.
We've just implemented the twain integration using GdPicture (v14.1.122) in a thread that save front and back images. When it finishes saving both images we move them to another folder where another thread read them and runs the MICR recognition.
We noticed that image indices returned by GdPicture aren't local: when running only the twain without the MICR recon, indexes are returned in sequential order (1,2,3,4 and so on). But when we enable the MICR on the other thread this sequence is broken: it returns something like 1,2,3,4,49,50,51 (since our MIRC solution does some image processing, it may request GDP many different images).
The thing is: when running with the MICR on parallel, the twain module fails to save the last image (the back from the last document): SaveAsTIFF returns 0 but with GetStat we get 2 (GdPictureStatus_InvalidParameter).
What gives?
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Cheers!