minor fixes

This commit is contained in:
2022-06-13 16:42:41 +02:00
parent 2930eb04b1
commit 5e25b8303f
5 changed files with 10 additions and 5 deletions

View File

@@ -83,7 +83,7 @@ def run():
#cv.waitKey(150)
#continue
spawn_1 = vision_stun.find(screenshot, cv.imread("magic/spawn_1.jpg", cv.IMREAD_UNCHANGED), 0.5, 1)
spawn_1 = vision_stun.find(screenshot, cv.imread("magic/spawn_1.jpg", cv.IMREAD_UNCHANGED), 0.5, 1, True, cv.imread("magic/spawn_1-mask.png", cv.IMREAD_UNCHANGED))
if len(spawn_1) == 1:
spawn_button_active = True
points = vision_stun.get_click_points(spawn_1)
@@ -121,7 +121,7 @@ def run():
cv.imshow("output_needle", processed_needle)
cv.waitKey(150)
rectangles = vision_stun.find(processed_screenshot, processed_needle, 0.70, 2)
rectangles = vision_stun.find(processed_screenshot, processed_needle, 0.90, 2, True, None)
# draw the detection results onto the original image
#output_image = vision_stun.draw_rectangles(screenshot, rectangles)
#cv.imshow("output_image", output_image)