refactor dig
This commit is contained in:
4
utils.py
4
utils.py
@@ -167,8 +167,8 @@ def dig_point(point1, point2, dig_time):
|
||||
def check_for_ok_button(cap_win, vis, conf):
|
||||
screenshot = cap_win.get_screenshot()
|
||||
rectangles = vis.find(screenshot, cv.imread("dig/ok_button.jpg", cv.IMREAD_UNCHANGED), 0.5, 1)
|
||||
offset_left = conf.returnDiggingWindowPos2()[2]
|
||||
offset_down = conf.returnDiggingWindowPos2()[3]
|
||||
offset_left = conf.returnOKWindowPos()[2]
|
||||
offset_down = conf.returnOKWindowPos()[3]
|
||||
if len(rectangles) == 1:
|
||||
pointis = vis.get_click_points(rectangles)
|
||||
for pointi in pointis:
|
||||
|
||||
Reference in New Issue
Block a user