def findFishingIcon():
#fish color
low = np.array([93,119,84])
high = np.array([121,255,255])
mask, mm_x, mm_y = get_mini_map_mask(low, high)
_, contours, _ = cv2.findContours(mask, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
for c in contours:
(x, y, w, h) = cv2.boundingRect(c)
x += mm_x
y += mm_y
x2 = x + w
y2 = y + h
Mouse.randMove(x,y,x2,y2,1)
run= 0
RandTime.randTime(1,0,0,1,9,9)
return 0
return 1
评论列表
文章目录