Decode punched tape from image

Is there a library that could help decode the punched tape from an image? Punched tape is like this: 穿孔胶带

The dots have different color than background. The image is just a white rectangle with black dots. I need to locate the dots and then decode the text. The desired output is for example an array ("00011", "11001", ...) where 1 is the dot, 0 is the missing dot.

What approach would you recommend? I would prefer something easy to use like python's PIL or ImageMagick or something in ruby.

链接地址: http://www.djcxy.com/p/86312.html

上一篇: gcc和clang在编译时给我一个错误

下一篇: 从图像解码穿孔带