ocr'ing application text (not scanned, NOT captchas)

假装没事ソ 提交于 2020-01-13 19:37:27

问题


I'd like to interface an application by reading the text it displays.

I've had success in some applications when windows isn't doing any font smoothing by typing in a phrase manually, rendering it in all windows fonts, and finding a match - from there I can map each letter image to a letter by generating all letters in the font.

This won't work if any font smoothing is being done, though, either by Windows or by the application. What's the state of the art like in OCRing computer-generated text? It seems like it should be easier than breaking CAPTCHAs or OCRing scanned text. Where can I find resources about this? So far I've only found articles on CAPTCHA breaking or OCRing scanned text.

I prefer solutions easily accessible from Python, though if there's a good one in some other lang I'll do the work to interface it.


回答1:


I'm not exactly sure what you mean, but I think just reading the text with an OCR program would work well.

Tesseract is amazingly accurate for scanned documents, so a specific font would be a breeze for it to read. Here's my Python OCR solution: Python OCR Module in Linux?.

But you could generate each character as an image and find the locations on the image. It (might) work, but I have no idea how accurate it would be with smoothing.



来源:https://stackoverflow.com/questions/5811550/ocring-application-text-not-scanned-not-captchas

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!