Skip to content

Commit

Permalink
Merge pull request #349 from EightyDollars/dev_shawn
Browse files Browse the repository at this point in the history
fix:优化招募券识别以及支援机械邮件发送错误
  • Loading branch information
ZhaoZuohong authored Oct 17, 2023
2 parents 18d7a75 + 873bd3a commit 489ef0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arknights_mower/solvers/recruit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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"]
Expand Down

0 comments on commit 489ef0c

Please sign in to comment.