Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! python3
- import sys
- import pyautogui
- # locate Power
- found = dict()
- for digit in range(10):
- positions = pyautogui.locateOnScreen('digits/{}.png'.format(digit), region=(888, 920, 150, 40), grayscale=True)
- for x, _, _, _ in positions:
- found[x] = str(digit)
- # without indentions
- cols = sorted(found)
- value = ''.join(found[col] for col in cols)
- print(value)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement