Skip to content

Commit 6d58fda

Browse files
committed
image name
1 parent 308330e commit 6d58fda

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pyautogui/get-numbers-from-screen/main.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,21 @@ def find(screenshot):
1919
found[y] = dict()
2020
found[y][x] = digit
2121

22-
# create numbers
22+
# recreate values
2323

2424
result = []
2525

2626
for row in sorted(found):
2727
cols = sorted(found[row])
28-
number = ''.join(str(found[row][col]) for col in cols)
29-
result.append(number)
28+
value = ''.join(str(found[row][col]) for col in cols)
29+
result.append(value)
3030

3131
return result
3232

3333
if __name__ == '__main__':
34+
3435
#img = pyautogui.screenshot(region=(0, 0, 300, 400))
35-
img = 'screenshot.png'
36+
img = 'screenshot-example.png'
3637

3738
result = find(img)
3839

0 commit comments

Comments
 (0)