Repository navigation
PoGo
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.
Software requirements and install steps for MacOS.
brew install tesseract --HEAD
pip3 install pytesseract
pip3 install opencv-python
pip3 install imutils
Photos must be 1125 × 2436 and *.PNG format (iPhone XS screenshot).
- Upload IV screenshot to a folder called
screenShots - 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 - Run
main.pycalling classes of interest
Helpful links and code: