Page 1 of 1

MICR Code recognition

Posted: Sat Jun 30, 2012 7:23 pm
by vistiors99
Hi at all,
I am developing a software for acquire image from a TWAIN compatible scanner.

I have succesfully detected barcodes in my images.
In addition to barodes I need to recognize MICR code from acquired image.
I have tried with extended image info without success....

Is it possible detect MICR code from TWAIN scanner using Vistasoft SDK ?

Thanks in advance for help.

Re: MICR Code recognition

Posted: Sun Jul 01, 2012 5:07 pm
by vistiors99
Hi,
I need another suggestion about my problem.

I think a chance for address the issue should be:
1. set CAP_MICRENABLED custom capability to true (my scanner suports MICR code recognition).
2. recognize the MICR code from extended image info properties.

Do you think it should be the correct way to address the problem?

thanks in advance.

Re: MICR Code recognition

Posted: Mon Jul 02, 2012 6:44 pm
by Alex
Hello,

Yes, you are right. You need:
  • Enable MICR functionality, i.e. set value of the CAP_MICRENABLED capability to True.
  • Acquire image
  • Retrieve extended image information.
You can see how to retrieve extended image information in the "Programming - How to's - How to get extended information about acquired image?" topic in the documentation:
http://www.vintasoft.com/docs/vstwain-dotnet/

Best regards, Alexander

Re: MICR Code recognition

Posted: Mon Jul 02, 2012 8:55 pm
by vistiors99
Hi Alex,
thanks for your answer.

I am able to set MICR capability (CAP_MICRENABLED) and to retrieve extended image info (ExtendedImageInfoId.MagData)).

When I try to read the string value of MICR, the returned value (contained in ExtendedImageInfo.StringItems[0]) seems to be a non-ASCII encoding and i can't able to read the correct value.
When i print the string value i get a very strage value (with many dirty characters).

Furthermore I have the same behavior when I try to recognize the barcode detected value.

How can i decode the rigth value of extended image info (the value contained in ExtendedImageInfo.StringItems[0]))?

Thanks in advance

Re: MICR Code recognition

Posted: Mon Jul 16, 2012 4:22 pm
by Alex
Hello,

Today we have released version 8.2.1.1 of VintaSoftTwain.NET SDK which have fix for a bug in parser of extended image info.

Also in this version:
  • We optimized and changed the ExtendedImageInfo class, please see updated example how to extract information about barcodes in the documentation.
  • New demo - TwainExtendedImageInfoDemo, demonstrates how to get an extended image info about acquired image.
Please use this version and you will be able to read correct string values of MICR.

Let me know if you will have any questions or problems.

Best regards, Alexander