OCR all screenshots on macOS
Alexandru Nedelcu wrote a blog post, Organize and Index Your Screenshots (OCR) on macOS, showing how to set up automatic OCR for your screen shots.
This repo automates the setup steps detailed in their article so that all you have to do is install homebrew and then run make ocr
.
They wrote screenshots-sync
and did all the hard work, the LICENSE only applies to the Makefile
.
You must have homebrew installed to use this Makefile
.
- Checkout this repository
make ocr-screenshots
When you run make ocr-screenshots
, make
will:
- Create
~/bin
,~/Dropbox/Screenshots/OCR
,~/Dropbox/Screenshots/Processing
and~/Dropbox/Screenshots/Raw
if they don't exist - Install tesseract with
brew
- Copy
screenshots-sync
to~/bin
- Create a
sync.ocr.plist
file that's aware of your specific directory paths - Install the plist.
Per the original post, new screen shots will then automatically get written to ~/Dropbox/Screenshots/Processing
and macOS will trigger an OCR run with screenshots-sync
- processed PDFs with text annotations will be written to ~/Dropbox/Screenshots/OCR
, and the originals will be moved to ~/Dropbox/Screenshots/Raw
.