Today, I was looking for some screenshots I wanted to use for a presentation, and rather than looking through all 1478 of my uploaded camera photos ( ls -1 ~/Dropbox/Camera\ Uploads/ | wc -l
), I decided to write a quick bash script to use the tesseract OCR tool to help me out.
I wanted to use https://github.com/jbochi/python-tesseract so first I installed the dependencies.
sudo pip install PIL
brew install tesseract
cd ~/Dropbox/git/
git clone [email protected]:jbochi/python-tesseract.git
~/Dropbox/git/python-tesseract/tesseract.py ~/Dropbox/Camera\ Uploads/2013-06-06\ 21.55.03.png
chmod 700 ~/Desktop/find-images-with-text.sh