From 8e78127eeaa0d337178d85133c767dc05512db09 Mon Sep 17 00:00:00 2001 From: Zhao Zuohong Date: Fri, 13 Oct 2023 16:07:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=A4=E9=94=80read=5Fscreen=E7=9A=84?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- arknights_mower/solvers/base_schedule.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arknights_mower/solvers/base_schedule.py b/arknights_mower/solvers/base_schedule.py index 566b40f97..bc329e8eb 100644 --- a/arknights_mower/solvers/base_schedule.py +++ b/arknights_mower/solvers/base_schedule.py @@ -918,10 +918,6 @@ def double_read_time(self, cord, upperLimit=None, use_digit_reader=False): 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]] - if 'name' in type: - binary = cv2.threshold(img, 1, 255, cv2.THRESH_BINARY)[1] - x, y, w, h = cv2.boundingRect(binary) - img = img[x:x + w, y:y + h] try: ret = rapidocr.engine(img, use_det=False, use_cls=False, use_rec=True)[0] logger.debug(ret)