Settings

Theme

NormCap: OCR powered screen-capture tool

github.com

72 points by kitschyred 3 years ago · 24 comments

Reader

maxlin 3 years ago

I created a basic similar app for my own use because I wanted to have an idea what people are conversing in russian in online lobbies. WPF, Tesseract OCR and Microsoft's translation API.

https://streamable.com/ykng5u

A fun side project that I do end up using a bit. Gonna bind the capture to some hotkey so I can use it without changing app focus. Most annoying problem though is that Tesseract OCR often gets confused when you make it read combined latin+cyrillic letters and the font isn't something Tesseract prefers. Especially when there's something behind the text. Kind of disappointed that the most popular API often has a lot worse results than a human would just transcribing the letters.

Wouldn't be surprised if OCR software would leap soon due to a product similar to Whisper.

Comes to mind that the best possible app that does this would be kind of like the old "word lens" iPhone application but on all screens, meaning it would replace text from the raw screen input with text of another language, while keeping the appearance/color/scale/rotation of the original text. This would free it from needing to be built-in to whatever UI library is producing the text, and would work on recorded video too. Immediate latency/performance problems come to mind though but could be a fun thing to try.

bjoli 3 years ago

I had my mind blown by the same functionality in Android. Being able to select text from an app in the app-switching context is amazing.

I will definitely use this.

yigitkonur35 3 years ago

It is very nice to have free alternatives to this kind of software. I wanted to ask because I already use terassect, the most basic feature I want in this type of software is that I want to be able to edit the text on the image I screenshot in order to use it while guiding designers, especially in design. I think teras supports this feature, but I have not seen it actively in any project other than Project Naptha, which is not an actively developed project in this regard. I would like to hear if there is a project you know about this and want to share.

csdvrx 3 years ago

Is there anything on Linux not based on tesseract for the OCR?

It's not very good. I miss being able to copy/paste from blurry or deformed screenshots of youtube on Windows.

  • ElectricalUnion 3 years ago

    Tesseract might be "not very good" but it is still state-of-the-art, often available, with many languages supported.

    The special sauce - what you need to get a better result - is good, adaptive thresholding (something more advanced that raw naive binary thresholding you get feeding naive color/grayscale images to OCR).

    As far as I know, once you get that nailed it doesn't matter that much what OCR you use - as long as it's available and supports your target language.

  • holbue 3 years ago

    As others mentioned, Tesseract is SOTA in FOSS OCR. It also still is being developed, improving slow but constantly.

    The main issue for a use-case like NormCap are the trained models: they are optimized for images of _printed_ text and layouts, which is different from on-screen-text in many aspects. Unfortunately, I don't have the resources to train my own models.

    Cuneiform was a long time competitor, but afaik development there is stalled.

  • m-p-3 3 years ago

    Is there any development on Tesseract, or at least on updating the trained models out there? Just curious.

    • chrispogeek 3 years ago

      I was just using tesseract.js and the repo looks active. Tesseract is still crap, but it's the free crap, so I'll just put up with it. Grayscale seems to improve the OCR. I'm sure there are tons of other techniques to improve the result

    • mmcwilliams 3 years ago

      I can't find anything backing this up at the moment but I was under the impression that Google had been upstreaming some development to the project. Open Sans recognition in particular got noticeably more reliable sometime in the last few years.

  • nicodjimenez 3 years ago

    Why not use a proprietary OCR tool like mathpix.com?

  • denimboy 3 years ago

    Keras-ocr

holbue 3 years ago

Author here, excited to find my tool on hn! Happy to answer any questions.

PS: People looking for (FOSS) alternatives, look here: https://github.com/dynobo/normcap#similar-open-source-tools

tough 3 years ago

Mac only but I am a happy user and can recommend

https://github.com/schappim/macOCR

Just rediscovered the Shortcuts a couple days ago while installing it on a friend's mac.

villgax 3 years ago

I thought this would use macOS' native API for text extraction which is leaps better for text in the wild than tesseract which is what this tool uses.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection