mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 08:38:20 +08:00
Opt: [ALAS] Match luma template in match_template_color
This is an untested change
This commit is contained in:
@@ -334,7 +334,7 @@ class Button(Resource):
|
||||
Returns:
|
||||
bool.
|
||||
"""
|
||||
if self.match(image, offset=offset, similarity=similarity):
|
||||
if self.match_luma(image, offset=offset, similarity=similarity):
|
||||
diff = np.subtract(self.button, self._button)[:2]
|
||||
area = area_offset(self.area, offset=diff)
|
||||
color = get_color(image, area)
|
||||
|
||||
Reference in New Issue
Block a user