sMythicalBird / ZenlessZoneZero-Auto

绝区零 | ZenlessZoneZero | 零号空洞 | 自动战斗 | 自动化 | 图片分类 | OCR识别
https://fairy.autoscript.site/zh/
GNU General Public License v3.0
1.18k stars 88 forks source link

[Bug]: 进战斗ocr代码报错 #247

Open XYMPHONY opened 2 weeks ago

XYMPHONY commented 2 weeks ago

请确保您已经阅读并同意以下要求

项目版本

v2.4 (Default)

系统版本

Windows 10

bug情况描述

发生异常: IndexError index 9 is out of bounds for axis 0 with size 9 File "D:\vsc_project\ZenlessZoneZero-Auto-master 2.4\ZenlessZoneZero-Auto-master\utils\ocr\ocr.py", line 109, in ocr results = self.paddleOCR.ocr(img, cls=False)[0] File "D:\vsc_project\ZenlessZoneZero-Auto-master 2.4\ZenlessZoneZero-Auto-master\utils\ocr\ocr.py", line 162, in call return self.ocr(img) File "D:\vsc_project\ZenlessZoneZero-Auto-master 2.4\ZenlessZoneZero-Auto-master\event_handling\fight\fight_zero.py", line 73, in technique_full ocr_Results = task.ocr(img) # OCR识别 File "D:\vsc_project\ZenlessZoneZero-Auto-master 2.4\ZenlessZoneZero-Auto-master\event_handling\fight\fight_zero.py", line 256, in technique_detection and technique_full(zero_cfg.carry["point"]) # 判断终结技充满 IndexError: index 9 is out of bounds for axis 0 with size 9 更新完挂着打核心然后进boss关就这样了

上传截图

image

wxdlpxt commented 1 week ago

一样,等修复

sMythicalBird commented 1 week ago

不是有2.4.1吗,用那个啊,战斗相关的问题都是之前一份pr导致的,已经回滚发了2.4.1了,以前的版本是正常的