Skip to content
Mark Sherstan edited this page Dec 20, 2019 · 2 revisions

Playing around with OpenCV, tesseract, and JSON files with a focus on Pokemon Go. I learned how to parse JSONs and relearned a lot about OpenCV and OCR. The project may be further optimized in the future for all proper error handling, region identification, program generalization, etc... If someone is actually going to use this I would recommend loading just the image data and manually inspecting the .csv before running the calculations and data acquisition from the json or using the selector/optimizer.

Requirements

Software requirements and install steps for MacOS.

brew install tesseract --HEAD


pip3 install pytesseract
pip3 install opencv-python
pip3 install imutils

Use

Photos must be 1125 × 2436 and *.PNG format (iPhone XS screenshot).

  1. Upload IV screenshot to a folder called screenShots
  2. Retrieve the most up to date GAME_MASTER.json file in your command line with: wget https://raw.githubusercontent.com/pokemongo-dev-contrib/pokemongo-game-master/master/versions/latest/GAME_MASTER.json
  3. Run main.py calling classes of interest

Links

Helpful links and code:

Home

MATLAB Functions

Mint Automation

Misc Arduino Sensors

openCV

PoGo

PWM

Python Sleep

Serial Port

Soil Humidity

Stocks

Clone this wiki locally