diff --git a/arknights_mower/solvers/base_schedule.py b/arknights_mower/solvers/base_schedule.py index 9c3565e3b..9a42f87d8 100644 --- a/arknights_mower/solvers/base_schedule.py +++ b/arknights_mower/solvers/base_schedule.py @@ -948,8 +948,6 @@ def read_screen(self, img, type="mood", limit=24, cord=None): name = ocr_error[ret] logger.debug(f"{ret} =====> {name}") return name - if name := character_recognize.paddle_guess_agent(ret): - return name return character_recognize.agent_name(img, self.recog.h) else: return ret diff --git a/arknights_mower/utils/character_recognize.py b/arknights_mower/utils/character_recognize.py index 7fd1dd0be..777ede1fe 100644 --- a/arknights_mower/utils/character_recognize.py +++ b/arknights_mower/utils/character_recognize.py @@ -158,12 +158,11 @@ def paddle_recog(__img): if r[0] in agent_list: op_name = r[0] return op_name + for r in res: if r[0] in ocr_error: op_name = ocr_error[r[0]] logger.debug(f"{r[0]} =====> {op_name}") return op_name - recog_text = res[0][0] - return paddle_guess_agent(recog_text) return None