Opt: [ALAS] Match luma template in match_template_color

This is an untested change
This commit is contained in:
LmeSzinc 2024-12-27 02:57:08 +08:00
parent 62b3bd1390
commit 42b4eb38b7

View File

@ -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)