mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 11:39:03 +08:00
Upd: revert test code
This commit is contained in:
parent
238428f7b9
commit
1bbda48bce
@ -319,7 +319,6 @@ 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):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user