https://github.com/chfoo/tppip
Twitch Plays Pokemon Image Processing Scripts
https://github.com/chfoo/tppip
Last synced: 11 months ago
JSON representation
Twitch Plays Pokemon Image Processing Scripts
- Host: GitHub
- URL: https://github.com/chfoo/tppip
- Owner: chfoo
- License: gpl-3.0
- Created: 2016-03-01T03:41:04.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-17T19:23:31.000Z (almost 10 years ago)
- Last Synced: 2025-01-23T12:37:27.281Z (about 1 year ago)
- Language: Python
- Size: 10.1 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tppip
Twitch Plays Pokemon Image Processing Scripts
## Quick Start
Requirements
* Python 3.4+
* Pillow (PIL fork)
### Token Analysis
Running:
python3 -m tppip.tokenanalyze
Will output something like:
{
"buttons": {
"a": {
"pixel_diff_max": 0.0,
"pixel_diff_mean": 0.0,
"row": 0,
"token_detected": false
},
"b": {
"pixel_diff_max": 0.0,
"pixel_diff_mean": 0.0,
"row": 1,
"token_detected": false
},
"down": {
"pixel_diff_max": 0.0,
"pixel_diff_mean": 0.0,
"row": 3,
"token_detected": false
},
[...]
"select": {
"pixel_diff_max": 255.0,
"pixel_diff_mean": 112.78571428571429,
"row": 7,
"token_detected": true
}
},
"filename": "/tmp/tmp7g3hs5sv-tppip/1456803062.png"
}