Appears to be a nice wrapper around Tesseract: https://github.com/tesseract-ocr/tessdata https://en.wikipedia.org/wiki/Tesseract_(software) The demo of course works perfectly on a Mac as this is already built into Ventura. 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. In November 2020, Brewster Kahle from the Internet Archive pr…
Frog: OCR Tool for Linux
31–40 of 49 posts
Re: Frog: OCR Tool for Linux
#32Earlier quoted context omitted.
I use https://kebekus.gitlab.io/scantools for scanning, it builds on top of tesseract and works great for pdf enhancements
You might be interested in https://github.com/ocrmypdf/OCRmyPDF then. It does quite some preprocessing on the PDF pages before passing it on to tesseract.
Re: Frog: OCR Tool for Linux
#33Appears to be a nice wrapper around Tesseract: https://github.com/tesseract-ocr/tessdata https://en.wikipedia.org/wiki/Tesseract_(software) The demo of course works perfectly on a Mac as this is already built into Ventura. 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. In November 2020, Brewster Kahle from the Internet Archive pr…
On a Mac, for ad-hoc OCR, I use the immensely useful CleanShot X https://cleanshot.com/ (which is well worth paying for). Among many other things, it offes OCR of any region on the screen for larger-scale OCR processing of pdfs and other files, I love how s3-ocr https://simonwillison.net/2022/Jun/30/s3-ocr/ makes working with AWS Textract OCR more accessible (though, somehow, Textract refuses to fully OCR larger pdfs…
Try Command+Shift+4, grab part of the screen, click the pop-up, and just select text.
Re: Frog: OCR Tool for Linux
#34I 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. Seems dishonest to me, but maybe I'm just too strict.
Re: Frog: OCR Tool for Linux
#35This 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: #!/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
Re: Frog: OCR Tool for Linux
#36Earlier quoted context omitted.
Nice! Didn't know about maim. This looks better than what I currently use (found it somewhere on the internet). #!/bin/bash SRC_IMG=$(mktemp -u /tmp/ocr_XXXXXXXXX.png) scrot --select "$SRC_IMG" -q 100 mogrify -modulate 100,0 -resize 400% "$SRC_IMG" tesseract "$SRC_IMG" "$SRC_IMG" &> /dev/null OCR_RESULT=$(cat "$SRC_IMG.txt") echo "$OCR_RESULT" notify-send "$OCR_RESULT" xsel -bi
I mean don't scrot and maim do the same? It can write to stdout as well. Is the resize really worth it?
Re: Frog: OCR Tool for Linux
#37Appears to be a nice wrapper around Tesseract: https://github.com/tesseract-ocr/tessdata https://en.wikipedia.org/wiki/Tesseract_(software) The demo of course works perfectly on a Mac as this is already built into Ventura. 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. In November 2020, Brewster Kahle from the Internet Archive pr…
Last I compared them, (1-2 years ago), Google OCR was much much better and supported more languages than tesseract. There was also an OCR in openCV, which was slightly better than tesseract, but not good enough to be useful.
Back in the days, Cuneiform got close to Tesseract's performance, but AFAIK it wasn't developed further...
Does anyone else know other promising open-source OCR engines?
Re: Frog: OCR Tool for Linux
#38Oh nice. There hasn't been a good ocr screenshot tool with Wayland support yet so look forward to trying this. IIRC there's been.. Linux: dpScreenOCR - x11 only last I checked in and now Frog MacOS: screenotate, prizmo Windows: screenotate 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.
Re: Frog: OCR Tool for Linux
#39This 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: #!/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
Re: Frog: OCR Tool for Linux
#40Earlier quoted context omitted.
What are these projects are you referring to? AFAIK Tesseract is sponsored by Google, from what I understand it is state of the art, ie it is Google OCR. Searching for OCR with OpenCV only reveals using OpenCV with Tesseract, not rolling its own OCR, OpenCV being used to preprocess images to optimise them for Tesseract. Maybe I'm missing something, so I'm interested if you can point me in the right direction.
Google OCR is definitely not the same as Tesseract, although it's true that Tesseract is maintained by Google. Google OCR has definitely much higher accuracy and is significantly faster (basically always taking 1s for inference, while Tesseract can easily take 10s or more for dense pages). Source: I work in developing a competing OCR service and we keep an eye on competition (e.g. aside from Google, solutions by Azur…
It certainly beats Abbyy from 10 years ago - maybe a low bar to clear.
I had to spend some time setting up labeling then did some supplemental training on UB-Mannheim datasets.
Tesseract is the only OCR FOSS solution that has reasonable performance.