Skip to content

Commit

Permalink
维娜·维多利亚 识别修复
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawnsdaddy committed Oct 9, 2024
1 parent 78cb477 commit 80f78c0
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ArknightsGameResource
Binary file modified arknights_mower/models/avatar.pkl
Binary file not shown.
Binary file modified arknights_mower/models/operator_select.model
Binary file not shown.
Binary file modified arknights_mower/models/recruit.pkl
Binary file not shown.
10 changes: 8 additions & 2 deletions auto_get_res_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import pickle
import re
from datetime import datetime

import cv2
import numpy as np
from PIL import Image, ImageDraw, ImageFont
Expand Down Expand Up @@ -491,6 +490,10 @@ def 训练选中的干员名的模型(self):
"arknights_mower/fonts/SourceHanSansCN-Medium.otf", 25
)

font26 = ImageFont.truetype(
"arknights_mower/fonts/SourceHanSansCN-Medium.otf", 26
)

data = {}

kernel = np.ones((10, 10), np.uint8)
Expand All @@ -500,7 +503,10 @@ def 训练选中的干员名的模型(self):
for idx, operator in enumerate(agent_list):
font = font31
if not operator[0].encode().isalpha():
if len(operator) == 7:
if "·" in operator:
# 维娜·维多利亚 识别的临时解决办法
font = font26
elif len(operator) == 7:
font = font25
elif len(operator) == 6:
font = font30
Expand Down
Binary file added ui/public/avatar/凯瑟琳.webp
Binary file not shown.
Binary file added ui/public/avatar/波卜.webp
Binary file not shown.
Binary file added ui/public/avatar/维娜·维多利亚.webp
Binary file not shown.

0 comments on commit 80f78c0

Please sign in to comment.