Skip to content

Commit

Permalink
chore: 初步完成在PC端的测试
Browse files Browse the repository at this point in the history
  • Loading branch information
weiduhuo authored and Night-stars-1 committed Oct 12, 2023
1 parent bb8832c commit 8316bc3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion utils/calculated.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ def part_ocr(self, points = (0,0,0,0), debug=False, left=False, number = False,
log.info(data)
# show_img(img_fp)
timestamp_str = str(int(datetime.timestamp(datetime.now())))
cv.imwrite(f"temp/relic_{str(points)}_{timestamp_str}.png", img_fp)
cv.imwrite(f"log/image/relic_{str(points)}_{timestamp_str}.png", img_fp)
else:
log.debug(data)
return data
Expand Down
9 changes: 6 additions & 3 deletions utils/relic.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ def relic_entrance(self):
1.识别遗器数据 (可打印增强信息,目前仅支持五星遗器)
2.保存人物配装
3.读取人物配装并装备 (遗器将强制替换,支持模糊匹配)
待解决问题:
1.OCR准确率过低 (对模型进行重训练)
(碎碎念:测试结果看PC端比模拟器的OCR准确率还低,但明明PC端的截图分辨率更高...不知道是否为本人的测试环境问题)
待开发功能:
1.保存队伍配装
2.读取队伍配装并装备
Expand All @@ -155,10 +158,10 @@ def relic_entrance(self):
5.模糊匹配成功后更新相关数据库
...
"""
option = _("保存人物配装") # 保存上一次的选择
title = _("遗器模块:")
options = [_("保存当前人物的配装"), _("读取当前人物的配装"), _("识别当前遗器的数据"), _("返回主菜单")]
option = options[0] # 保存上一次的选择
while True:
title = _("遗器模块:")
options = [_("保存当前人物的配装"), _("读取当前人物的配装"), _("识别当前遗器的数据"), _("返回主菜单")]
option = questionary.select(title, options, default=option).ask()
if option == _("保存当前人物的配装"):
self.save_loadout_for_char()
Expand Down

0 comments on commit 8316bc3

Please sign in to comment.