updated mask on pixel level
This commit is contained in:
@@ -100,7 +100,7 @@ def run():
|
||||
c_mask = cv.imread("equip/chests/chest_4_32-mask.png", cv.IMREAD_COLOR)
|
||||
k_needle = cv.imread("equip/keys/key_4_32.jpg", cv.IMREAD_UNCHANGED)
|
||||
k_mask = cv.imread("equip/keys/key_4_32-mask.png", cv.IMREAD_COLOR)
|
||||
|
||||
dig_button = cv.imread("dig/ok_button.jpg", cv.IMREAD_UNCHANGED)
|
||||
|
||||
while True:
|
||||
if keyboard.is_pressed('p') == True:
|
||||
@@ -170,8 +170,7 @@ def run():
|
||||
if (time() - loop_time) >= 60:
|
||||
break
|
||||
screenshot = capture_window.get_screenshot_by_area(config.returnOKWindowPos())
|
||||
rectangles = vision_stun.find(screenshot, cv.imread("dig/ok_button.jpg", cv.IMREAD_UNCHANGED), 0.5,
|
||||
1)
|
||||
rectangles = vision_stun.find(screenshot, dig_button, 0.5, 1)
|
||||
if len(rectangles) == 1:
|
||||
pointis = vision_stun.get_click_points(rectangles)
|
||||
for pointi in pointis:
|
||||
|
||||
Reference in New Issue
Block a user