Best way to recognize characters in screenshot?

后端 未结 5 1459
有刺的猬
有刺的猬 2020-12-29 04:56

What would you recommend for recognizing all characters from a screenshot? The screenshot is perfectly clear (only black text on a white background), also I can choose any s

相关标签:
5条回答
  • 2020-12-29 05:32

    Since this is the first result on Google for tesseract recognize screenshot, let me do bit of necromancy and add a much simpler solution.

    Tesseract expects images at around 300 dpi or more and standard dpi for Windows is 96. Which means you need to rescale the image to 300%. After that, the results improve dramatically.

    100%

    Result: Whal would you recommend for recognizing all characters from a screensnor 7

    200%

    Result: What would you recommend for recognizing all chamcters from a screenth ?

    300%

    Result: What would you recommend for recognizing all characters from a screenshot ?

    Anything above 300% works just as well.

    0 讨论(0)
  • 2020-12-29 05:44

    I would be surprised if OCR would give so bad results on such a good quality input. Probably what you want to do is choose a font that has sharp edges, no anti-aliasing, bigger font size would also help.

    Also, if acceptable, try the OCR font given in this SO question:

    • What is the ideal font for OCR?

    This should give you the best possible results - if this doesn't go 100%, then I don't know what will...

    Don't know what you tried beside Tesseract, but if you did not, it might be worth trying some others. These seem to be updated recently (Tesseract was updated a year ago):

    • http://en.wikipedia.org/wiki/Ocrad
    • http://en.wikipedia.org/wiki/GOCR
    • http://en.wikipedia.org/wiki/OCRopus (this is also a bit old, but give it a try if you haven't)

    There are some online versions, too, such as:

    • http://www.cvisiontech.com/reference/ocr/top-ocr-software.html?lang=eng
    • http://www.makeuseof.com/tag/3-online-ocr-services-intelligently-scan-documents/

    that you can use to test a sample document. From this link:

    • http://www.makeuseof.com/tag/top-5-free-ocr-software-tools-to-convert-your-images-into-text-nb/

    it seems that you might need to go commercial to get what you want.

    Hope this helps.

    0 讨论(0)
  • 2020-12-29 05:45

    You can use Abby Fine Reader 12.0 for text extraction from PDF's and or Screenshot Images and directly save them into your desired file format.

    See through: Abby Fine Reader 15 - Free Trial

    0 讨论(0)
  • 2020-12-29 05:47

    Do you have the option to change text anti-aliasing on the OS level? Playing around with those settings (or even trying to turn it off) might give you better result with existing OCRs too.

    0 讨论(0)
  • 2020-12-29 05:54

    I know you already solved your problem, but in case this helps someone else: Two issues I found when dealing with screenshots is that OCR engines are sensitive to the following: (1) resolution incorrectly set in image file headers, and (2) transparency issues (what looks like white background is actually marked transparent). For some reason these problems tend to occur often in screenshot images.

    Also, aside from Tesseract, another possibility is to try the API at http://www.wisetrend.com/wisetrend_ocr_cloud.shtml based on the ABBYY OCR engine. (The advantage is that there's nothing to install/configure/etc to try it to make sure it will work on your images - just make an HTTP POST). Disclaimer: WiseTrend is my company's customer.

    0 讨论(0)
提交回复
热议问题