From 10f5ba2db3e89076bc81de113ee0ee3ad8c40923 Mon Sep 17 00:00:00 2001 From: Zhao Zuohong Date: Fri, 13 Oct 2023 17:43:52 +0800 Subject: [PATCH] =?UTF-8?q?read=5Fscreen=E8=AF=BB=E5=90=8D=E5=AD=97?= =?UTF-8?q?=EF=BC=8COCR=E6=97=A0=E7=BB=93=E6=9E=9C=E6=97=B6=E5=B0=9D?= =?UTF-8?q?=E8=AF=95SIFT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- arknights_mower/solvers/base_schedule.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arknights_mower/solvers/base_schedule.py b/arknights_mower/solvers/base_schedule.py index 9a42f87d8..948fef035 100644 --- a/arknights_mower/solvers/base_schedule.py +++ b/arknights_mower/solvers/base_schedule.py @@ -922,6 +922,8 @@ def read_screen(self, img, type="mood", limit=24, cord=None): ret = rapidocr.engine(img, use_det=False, use_cls=False, use_rec=True)[0] logger.debug(ret) if not ret or not ret[0][0]: + if 'name' in type: + return character_recognize.agent_name(img, self.recog.h) raise Exception("识别失败") ret = ret[0][0] if "赤金完成" in ret: