Skip to content

unixorn/ocr-screenshots-macos

Repository files navigation

ocr-screenshots-macos

OCR all screenshots on macOS

Status

License Superlinter

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.

Table of Contents

Install Instructions

You must have homebrew installed to use this Makefile.

  1. Checkout this repository
  2. make ocr-screenshots

Details

When you run make ocr-screenshots, make will:

  1. Create ~/bin, ~/Dropbox/Screenshots/OCR, ~/Dropbox/Screenshots/Processing and ~/Dropbox/Screenshots/Raw if they don't exist
  2. Install tesseract with brew
  3. Copy screenshots-sync to ~/bin
  4. Create a sync.ocr.plist file that's aware of your specific directory paths
  5. 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.