Scripts for OCRing Ingress profile images into text files and CSVs
usage:
Check out the repo to a Linux box and copy the scripts to somewhere in your path, e.g.:
git clone https://github.com/Crytix/ingressocr
cd ingressocr
sudo install -m 0755 ingressocr /usr/local/bin/ingressocr
sudo install -m 0755 ingresscsv /usr/local/bin/ingresscsv
Install tesseract OCR, e.g. on Ubuntu: https://github.com/Crytix/tesseract
sudo apt-get install tesseract-ocr tesseract-ocr-eng
Add to tesseract configuration file:
textord_heavy_nr 1
Note: you may need to add the Universe repository first.
Make sure you have Ingress 1.131.2 installed. Go to your Agent profile and use the share button in the top right. Save the file somewhere and copy it to your Linux box where you've put the ingressocr and ingresscsv scripts.
This will output a human-readable text version of your stats:
ingressocr <screenshot.png>
To turn it into a CSV (for spreadsheets) and put that into a file:
ingressocr <screenshot.png> | ingresscsv > myprofile.csv
You can also get just the CSV values if you're going to be updating/appending an existing CSV:
ingressocr <screenshot.png> | ingresscsv | tail -1 > myprofilenumbers.csv