Skip to content

Commit

Permalink
改为按钮识别邮件界面
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawnsdaddy committed Dec 6, 2024
1 parent 60ed6ba commit 9d298ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file removed arknights_mower/resources/mail.png
Binary file not shown.
5 changes: 3 additions & 2 deletions arknights_mower/utils/recognize.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ def get_scene(self) -> int:
self.scene = Scene.FACTORY_ROOMS
elif self.find("nav_bar"):
self.scene = Scene.NAVIGATION_BAR
elif self.find("mail"):
elif self.find("read_mail"):
logger.info(self.find("read_mail"))
self.scene = Scene.MAIL
elif self.find("navigation/record_restoration"):
self.scene = Scene.OPERATOR_CHOOSE_LEVEL
Expand Down Expand Up @@ -680,7 +681,7 @@ def find(
"login_connecting": (760, 881),
"login_loading": (920, 388),
"login_logo": (601, 332),
"mail": (305, 33),
"read_mail": (1541, 947),
"mission_trainee_on": (690, 17),
"nav_bar": (655, 0),
"nav_button": (26, 20),
Expand Down

0 comments on commit 9d298ce

Please sign in to comment.