From 873bd3abde5cda99d89a8242b84adc6017cc5920 Mon Sep 17 00:00:00 2001 From: EightyDollars Date: Tue, 17 Oct 2023 11:57:26 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BC=98=E5=8C=96=E6=8B=9B?= =?UTF-8?q?=E5=8B=9F=E5=88=B8=E8=AF=86=E5=88=AB=E4=BB=A5=E5=8F=8A=E6=94=AF?= =?UTF-8?q?=E6=8F=B4=E6=9C=BA=E6=A2=B0=E9=82=AE=E4=BB=B6=E5=8F=91=E9=80=81?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- arknights_mower/solvers/recruit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arknights_mower/solvers/recruit.py b/arknights_mower/solvers/recruit.py index 74cae42e2..c293b5399 100644 --- a/arknights_mower/solvers/recruit.py +++ b/arknights_mower/solvers/recruit.py @@ -123,7 +123,7 @@ def transition(self) -> bool: logger.info(f"刷新次数:{refresh_res}") if self.permit_count is None: - recruit_ticket_img = self.recog.img[20:80, 1290:1380] + recruit_ticket_img = self.recog.img[20:80, 1200:1390] recruit_ticket_gray = cv2.cvtColor(recruit_ticket_img, cv2.COLOR_BGR2GRAY) try: res = rapidocr.engine(recruit_ticket_gray, use_det=False, use_cls=False, use_rec=True)[0][0][0] @@ -481,7 +481,7 @@ def recruit_cal(self, tags: list[str]) -> (dict, bool): rarity_list["level"] = possible_list[key]["level"] rarity_list["possible"][key] = possible_list[key] elif possible_list[key]["isRobot"]: - robot_list[key] = possible_list[key] + rarity_list["possible"][key] = possible_list[key] = possible_list[key] else: if possible_list[key]["level"] > normal_list["level"]: normal_list["level"] = possible_list[key]["level"]