Appears to be a nice wrapper around Tesseract:<p><a href="https://github.com/tesseract-ocr/tessdata" rel="nofollow">https://github.com/tesseract-ocr/tessdata</a><p><a href="https://en.wikipedia.org/wiki/Tesseract_(software)" rel="nofollow">https://en.wikipedia.org/wiki/Tesseract_(software)</a><p>The demo of course works perfectly on a Mac as this is already built into Ventura.<p>If you haven't experienced it yet ye olde ctrl-f now seamlessly sneaks a peak into images on the page for example, surprisingly useful.<p><pre><code> In November 2020, Brewster Kahle from the Internet Archive praised Tesseract saying:
Tesseract has made a major step forward in the last few years. When we last evaluated the accuracy it was not as good as the proprietary OCR, but that has changed– we have done evaluations and it is just as good, and can get better for our application because of its new architecture.
</code></pre>
Anybody have an up to date breakdown of available OCR solutions?
On windows this is built into powertoys. win+shift+T is the default shortcut.<p><a href="https://learn.microsoft.com/en-us/windows/powertoys/text-extractor" rel="nofollow">https://learn.microsoft.com/en-us/windows/powertoys/text-ext...</a>
I probably shouldn't but I dislike using libraries for the main part of your project and then not even mentioning that you are using them.<p>Seems dishonest to me, but maybe I'm just too strict.
This looks like a nice app. I was looking for something like this a while back until I noticed that there are "one" liners that can you can setup for a hotkey:<p><pre><code> #!/usr/bin/env bash
langs=(eng ara fas chi_sim chi_tra deu ell fin heb hun jpn kor nld rus tur)
lang=$(printf '%s\n' "${langs[@]}" | dmenu "$@")
maim -us | tesseract --dpi 145 -l eng+${lang} - - | xsel -bi</code></pre>
Cool! I've seen similar ideas before and made my own inspired by these some years ago. It's a simple bash script based on Flameshot [0] for taking the screenshot and Tesseract:<p><pre><code> #!/usr/bin/env bash
rm -f /tmp/screen.png
flameshot gui -p /tmp/screen.png
tesseract \
-c page_separator="" \
-l "eng" \
--dpi 145 \
/tmp/screen.png /tmp/screen
if [ "$(wc -l < /tmp/screen.txt)" -eq 0 ]; then
notify-send "ocrmyscreen" "No text was detected!"
exit 1
fi
xclip /tmp/screen.txt
notify-send "ocrmyscreen" "$(cat /tmp/screen.txt)"
</code></pre>
[0]: <a href="https://flameshot.org/" rel="nofollow">https://flameshot.org/</a>
This is a nice app, thanks. I am using a similar a bit less UI-heavy tool based on Tesseract as well. It's called Normcap:
<a href="https://github.com/dynobo/normcap" rel="nofollow">https://github.com/dynobo/normcap</a>
Oh nice. There hasn't been a good ocr screenshot tool with Wayland support yet so look forward to trying this. IIRC there's been..<p>Linux: dpScreenOCR - x11 only last I checked in and now Frog<p>MacOS: screenotate, prizmo<p>Windows: screenotate<p>I don't get all the nitpick comments. OCR tools like this are extremely useful when dealing with excerpting text from certain websites (slack) or taking class notes from video.
FYI if you’re on a Mac, I’ve made this similar tool: <a href="https://github.com/schappim/macOCR" rel="nofollow">https://github.com/schappim/macOCR</a>
A useful tool and great UI work. A handy extension would be the ability to extract text of specific colour, e.g. the highlights in Kindle's Cloud Reader, to get around the 10% highlight export cap that Amazon puts on most books. I did this previously by running the screenshot through ImageMagick's colour filling and thresholding options before passing the output to Tesseract. A colour picker tool might be a nice addition.