Skip to content

Commit

Permalink
改进猜测分数计算
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoZuohong committed Sep 30, 2023
1 parent e21f3c3 commit 57d08e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arknights_mower/utils/character_recognize.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ def paddle_recog(__img):
best = None
best_score = 0
for x in agent_sorted:
score = 0
score = -abs(len(x) - len(recog_text))
for c in set(x):
score += 1 if c in recog_text else -1
score += 2 if c in recog_text else 0
if score > best_score:
best = x
best_score = score
Expand Down

0 comments on commit 57d08e1

Please sign in to comment.