Giter Site home page Giter Site logo

ingressocr's Introduction

ingressocr

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

ingressocr's People

Contributors

bvenable avatar blizzardblue avatar anyofyou avatar

Watchers

Andreas Schlaupitz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.