如何阅读扫描支票的支票号码及银行路由号码 [英] How to read check number and bank routing number of scanned check

查看:847
本文介绍了如何阅读扫描支票的支票号码及银行路由号码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为扫描检查,我想读取扫描支票的支票和银行路由号码。请任何一个可以帮助我的样品code。

I m scanning the check and i want to read the check number and bank routing number of that scanned check. please can any one help me with sample code.

推荐答案

在美国和其他许多地方在世界各地使用的路由和帐户号码原来的计划是专门优化,其被机器读取的能力。早于它们使用单​​个信道读出磁头,以便执行这个读出,作为用于打印这些数字墨水是磁性的。这意味着,数字可能模糊,如果用邮票,写等其他印刷材料,甚至可以读。

The original scheme for the routing and account numbers used in the US and many other places around the world was optimized specifically for its ability to be machine read. Early on they used a single channel magnetic read head in order to perform this read, as the ink used to print these numbers was magnetic. This meant that the numbers could be read even if obscured with stamps, writing other other printed material.

事实上,一旦你了解的人物形成读取这些能力是相当简单的。大概明白最简单的方法就是看相关专利的第一页:

In fact, the ability to read these is rather simple once you understand how the characters are formed. Probably the easiest way to understand is to look at the first page of the related patent:

<一个href="http://www.freepatentsonline.com/3000000.pdf">http://www.freepatentsonline.com/3000000.pdf

所以,你有一个数字,而旁边的每个数字是一个简短的曲线图。此图描述墨水用作你横跨数目扫描水平打印的数量。

So you have a number, and next to each number is a short graph. This graph describes the amount of ink used to print the number as you scan across the number horizontally.

正如你可以很容易地看到,每一个号码都有一个非常独特的签名。实际的MICR字体(E-13B)甚至在这方面更加明显,以及特殊字符和周围的数字终端器具有相同的特点 - 他们有一个独特的签名,当你扫描沿水平方向他们,并找出多少黑用于每个垂直列

As you can readily see, each number has a very unique signature. The actual MICR font (E-13B) is even more distinct in this regard, and the special characters and terminators surrounding the numbers have the same characteristic - they have a unique signature when you scan horizontally along them and figure out how much "black" was used for each vertical column.

我没有在我面前的MICR规范,但其四四方方的外观发生了,我相信0.013英寸的网格。

I don't have the MICR spec in front of me, but its boxy appearance occurs on a grid of, I believe, 0.013 inches.

所以,你需要只是做一个小特征识别(发现检查的角落,因为数字总是印在同一个地点),那么你可以简单地扫描每个垂直列,加起来像素是黑色的数量形成了信号并查找功能。通过调整图像大小等你拿每0.013英寸四个像素,可以减少数据,你必须处理量。如果你做你的特征识别完美,可以减少你的分辨率为1个像素每0.013英寸并获得非常接近,每个数字比较了几个大的整数。

So you need merely do a little feature identification (find the corners of the check, as the numbers are always printed in the same spot) then you can simply scan each vertical column, add up the number of pixels that are black to form the "signal" and look for the features. By resizing the image so you get four pixels per 0.013 inches, you reduce the amount of data you have to process. If you do your feature identification perfectly, you can reduce your resolution to 1 pixel per 0.013 inches and get very close to comparing a few large integers per digit.

他们将有足够的截然不同,你应该能够蛮力,但如果你是一个数字信号处理(或方便的与谷歌和维基百科),那么你可以使用一个简单的相关很快识别位数,即使使用更高的分辨率。

They will be distinct enough that you should be able to brute force it, but if you are into digital signal processing (or handy with google and wikipedia) then you can use a simple correlator to identify the digits very quickly, even using a higher resolution.

其他资源:

  • <一个href="http://mdn.morovia.com/kb/entry/10616/Check-Processing-Fonts-Around-the-World/">http://mdn.morovia.com/kb/entry/10616/Check-Processing-Fonts-Around-the-World/
  • <一个href="http://en.wikipedia.org/wiki/Magnetic_ink_character_recognition">http://en.wikipedia.org/wiki/Magnetic_ink_character_recognition
  • <一个href="http://home.comcast.net/~hayosh/HISTMICR.pdf">http://home.comcast.net/~hayosh/HISTMICR.pdf
  • http://mdn.morovia.com/kb/entry/10616/Check-Processing-Fonts-Around-the-World/
  • http://en.wikipedia.org/wiki/Magnetic_ink_character_recognition
  • http://home.comcast.net/~hayosh/HISTMICR.pdf

这篇关于如何阅读扫描支票的支票号码及银行路由号码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆