Skip to content

Commit 3851dd5

Browse files
committed
now can't find image will show can;t find what image
now can't find image will show can;t find what image
1 parent 216dd23 commit 3851dd5

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

.idea/workspace.xml

Lines changed: 14 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev_setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="je_auto_control_dev",
8-
version="0.0.49",
8+
version="0.0.50",
99
author="JE-Chen",
1010
author_email="zenmailman@gmail.com",
1111
description="auto testing",

je_auto_control/wrapper/auto_control_image.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def locate_all_image(image, detect_threshold: [float, int] = 1,
3030
record_action_to_list("locate_all_image", param)
3131
return image_data_array[1]
3232
else:
33-
raise ImageNotFoundException(cant_find_image)
33+
raise ImageNotFoundException(cant_find_image + " / " + repr(image))
3434
except Exception as error:
3535
record_action_to_list("locate_all_image", param, repr(error))
3636
print(repr(error), file=sys.stderr)
@@ -56,7 +56,7 @@ def locate_image_center(image, detect_threshold: [float, int] = 1, draw_image: b
5656
record_action_to_list("locate_image_center", param)
5757
return [int(image_data_array[1][0] + center[0]), int(image_data_array[1][1] + center[1])]
5858
else:
59-
raise ImageNotFoundException(cant_find_image)
59+
raise ImageNotFoundException(cant_find_image + " / " + repr(image))
6060
except Exception as error:
6161
record_action_to_list("locate_image_center", param, repr(error))
6262
print(repr(error), file=sys.stderr)
@@ -90,7 +90,7 @@ def locate_and_click(
9090
record_action_to_list("locate_and_click", param)
9191
return [image_center_x, image_center_y]
9292
else:
93-
raise ImageNotFoundException(cant_find_image)
93+
raise ImageNotFoundException(cant_find_image + " / " + repr(image))
9494
except Exception as error:
9595
record_action_to_list("locate_and_click", param, repr(error))
9696
print(repr(error), file=sys.stderr)

0 commit comments

Comments
 (0)