From 91294556c5a1761a0e95aefcee4961a2295540c1 Mon Sep 17 00:00:00 2001 From: Zhao Zuohong Date: Fri, 13 Oct 2023 00:26:47 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=8A=8Aread=5Fscreen=E7=9A=84?= =?UTF-8?q?=E6=A3=80=E6=B5=8B=E5=8A=A0=E5=9B=9E=E6=9D=A5"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit de7fe9dcc2e6fe1218be314861a12ac30d832355. --- arknights_mower/solvers/base_schedule.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arknights_mower/solvers/base_schedule.py b/arknights_mower/solvers/base_schedule.py index 7425d4c35..7682243fe 100644 --- a/arknights_mower/solvers/base_schedule.py +++ b/arknights_mower/solvers/base_schedule.py @@ -919,11 +919,11 @@ def read_screen(self, img, type="mood", limit=24, cord=None): if cord is not None: img = img[cord[1]:cord[3], cord[0]:cord[2]] try: - ret = rapidocr.engine(img, use_det=True, use_cls=False, use_rec=True)[0] + ret = rapidocr.engine(img, use_det=False, use_cls=False, use_rec=True)[0] logger.debug(ret) - if not ret or not ret[0]: + if not ret or not ret[0][0]: raise Exception("识别失败") - ret = ret[0][1] + ret = ret[0][0] if "赤金完成" in ret: raise Exception("读取到赤金收取提示") elif "心情" in ret: