mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-07 07:26:46 +08:00
Opt: [ALAS] Match luma template in match_template_color
This is an untested change
This commit is contained in:
parent
62b3bd1390
commit
42b4eb38b7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user