OCR(光学字符识别)为屏幕上的文字 [英] OCR (Optical Character Recognition) for on-screen text

查看:359
本文介绍了OCR(光学字符识别)为屏幕上的文字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图创建的软件,通过捕获屏幕截图,然后OCR(光学字符识别)自动化PC它寻找一个特定的按钮,单击(例如)。我有鼠标和键盘控制部分,但现在,我需要一个OCR处理的屏幕截图。我发现的是,OCR的tesseract不会似乎与屏幕上的文字工作得很好。文字是不是太小了,或者说一些文本似乎要连接,例如像K和X.我应该如何去吗?

I'm trying to create a piece of software that automate the PC by capturing the screenshot, then OCR (Optical Character Recognition) it looking for a particular button to click (for example). I've got the mouse and keyboard control part, but now, I needed an OCR to process the screenshot. What I discovered is that Tesseract OCR does not seems to work very well with on-screen text. The text is either too small, or that some of text seems to be connected, like for example K and X. How should I go about this?

P / S:这是用于自动测试程序

p/s: this is for an automated test program.

推荐答案

也许看<一个href=\"http://stackoverflow.com/questions/142743/what-software-would-you-recommend-for-image-enhancement-prior-to-ocr-optical-cha\">this 的问题事先到OCR图像增强。
否则,这个问题是类似 prettyOCR为.NET

Perhaps look at this question on image enhancement prior to OCR. Otherwise this question is pretty similar to "OCR for .NET".

如果你感觉真的大胆你总是可以掀起一个简单的基于感知或神经网络方法: - )

If you are feeling really bold you can always whip up a simple Perceptron or Neural Network based approach :-)

这篇关于OCR(光学字符识别)为屏幕上的文字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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