mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-14 15:26:06 +08:00
Fix: use appear_on for ROLE_SELECT_ENTER
This commit is contained in:
@@ -319,6 +319,7 @@ class Button(Resource):
|
||||
res = cv2.matchTemplate(self.image_luma, image_luma, cv2.TM_CCOEFF_NORMED)
|
||||
_, sim, _, point = cv2.minMaxLoc(res)
|
||||
self._button_offset = area_offset(self._button, offset[:2] + np.array(point))
|
||||
print(sim, similarity)
|
||||
return sim > similarity
|
||||
|
||||
def match_template_color(self, image, offset=(20, 20), similarity=0.85, threshold=30):
|
||||
|
||||
Reference in New Issue
Block a user