Skip to content

Commit a0d9b42

Browse files
authored
Update recog_pics.py
1 parent bb7c550 commit a0d9b42

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

recog_pics.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ def find_image_on_screen(screen_array, image_array, threshold):
1818
return max_val >= threshold
1919

2020
def main():
21-
test1_array = load_image_to_gray_array(r'G:\DevStuff\SelfTools\DoScreen\test.png')
22-
test2_array = load_image_to_gray_array(r'G:\DevStuff\SelfTools\DoScreen\test2.png')
21+
test1_array = load_image_to_gray_array(/path/to/file) #NEED TO EDIT
22+
test2_array = load_image_to_gray_array(/path/to/file) #NEED TO EDIT
2323

2424
# Set thresholds for each image
2525
threshold_test1 = 0.995 # Threshold for test1.png
@@ -32,13 +32,13 @@ def main():
3232
test2_found = find_image_on_screen(screen_array, test2_array, threshold_test2)
3333

3434
if test1_found and test2_found:
35-
print("Beide Bilder sind auf dem Bildschirm sichtbar.")
35+
print("Both images are visible on the screen.")
3636
elif test1_found:
37-
print("Test1-Bild ist auf dem Bildschirm sichtbar.")
37+
print("Test1 image is visible on the screen.")
3838
elif test2_found:
39-
print("Test2-Bild ist auf dem Bildschirm sichtbar.")
39+
print("Test2 image is visible on the screen.")
4040
else:
41-
print("Keines der Bilder ist auf dem Bildschirm sichtbar.")
41+
print("None of the images are visible on the screen.")
4242

4343
time.sleep(1)
4444

0 commit comments

Comments
 (0)