mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-25 04:42:39 +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:
|
Returns:
|
||||||
bool.
|
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]
|
diff = np.subtract(self.button, self._button)[:2]
|
||||||
area = area_offset(self.area, offset=diff)
|
area = area_offset(self.area, offset=diff)
|
||||||
color = get_color(image, area)
|
color = get_color(image, area)
|
||||||
|
|||||||
Reference in New Issue
Block a user