update_operators中向match_avatar传灰图

This commit is contained in:
zhbaor 2024-10-29 12:40:01 +08:00
parent 3251274ae0
commit a12f777960

View file

@ -202,7 +202,7 @@ class FightMixin:
segment.append(scope)
cost_scope = sa(((-13, 19), (30, 44)), (x, y))
cost.append(self.number(cost_scope, 25, 80))
operators = match_avatar(config.recog.img, segment)
operators = match_avatar(config.recog.gray, segment)
for idx, (name, scope) in enumerate(operators):
name = self.replacements[name] if name in self.replacements else name
if name not in self.watching and name in agent_list: