Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4 tasks done
XYMPHONY opened this issue Sep 29, 2024 · 2 comments
Open
4 tasks done

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

XYMPHONY opened this issue Sep 29, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@XYMPHONY
Copy link

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

  • 我已阅读项目使用说明,并且按照要求更改了游戏配置
  • 我已经搜索过已有的issue,确认当前问题没有被提出过
  • 我已经知晓并同意,若由于个人未按要求配置导致的问题,将不会被处理
  • 我已经知晓并同意,若该问题与程序无关,将不会被处理

项目版本

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

@XYMPHONY XYMPHONY added the bug Something isn't working label Sep 29, 2024
@wxdlpxt
Copy link

wxdlpxt commented Oct 9, 2024

一样,等修复

@sMythicalBird
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants