开发者

python image to number avoiding ocr

I have the following problem. A range of images should be assigned to numbers as soon as they appear. I made several attempts to ocr the images but failed. Is there a simpler solution? If I take a certain position from the screen (coordinates are alway开发者_Python百科s the same) process the pixels with some function and map a number manually to the output of the function as soon as the specific pixel pattern is found I get the same result. How would I do that in Python? Maybe with PIL?

Best, US


Although this would be classified as OCR, there are many out of the box Python machine learning libraries that may be useful to do the ocr for you, especially if you labelled examples of the digits. Take a look at http://scikit-learn.sourceforge.net/stable/auto_examples/plot_digits_classification.html, which may be what you need.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜