MICR Code recognition

Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.

Moderator: Alex

Post Reply
vistiors99
Posts: 3
Joined: Sat Jun 30, 2012 7:14 pm

MICR Code recognition

Post by vistiors99 » Sat Jun 30, 2012 7:23 pm

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.

vistiors99
Posts: 3
Joined: Sat Jun 30, 2012 7:14 pm

Re: MICR Code recognition

Post by vistiors99 » Sun Jul 01, 2012 5:07 pm

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.

Alex
Site Admin
Posts: 1461
Joined: Thu Jul 10, 2008 2:21 pm

Re: MICR Code recognition

Post by Alex » Mon Jul 02, 2012 6:44 pm

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

vistiors99
Posts: 3
Joined: Sat Jun 30, 2012 7:14 pm

Re: MICR Code recognition

Post by vistiors99 » Mon Jul 02, 2012 8:55 pm

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

Alex
Site Admin
Posts: 1461
Joined: Thu Jul 10, 2008 2:21 pm

Re: MICR Code recognition

Post by Alex » Mon Jul 16, 2012 4:22 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest