Skip to content

Commit

Permalink
fix: U-Offical 可能识别错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawnsdaddy committed Apr 15, 2023
1 parent c9c7ebc commit b960fdb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions arknights_mower/utils/character_recognize.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,12 @@ def agent(img, draw=False):
raise Exception("启动 Plan B")
except Exception as e:
# 大哥不行了,二哥上!
_msg = str(e)
ret_fail.append(poly)
if "Plan B" not in e:
if e in ocr_error.keys():
name = ocr_error[e]
elif "Off" in e:
if "Plan B" not in _msg:
if _msg in ocr_error.keys():
name = ocr_error[_msg]
elif "Off" in _msg:
name = 'U-Official'
else:
continue
Expand Down

0 comments on commit b960fdb

Please sign in to comment.