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

release版本无法使用 #2

Closed
sup817ch opened this issue Jun 21, 2019 · 1 comment
Closed

release版本无法使用 #2

sup817ch opened this issue Jun 21, 2019 · 1 comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@sup817ch
Copy link
Contributor

2019-06-21 11:45:16,452 root        : INFO     python version: 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)]
2019-06-21 11:45:16,452 root        : INFO     UAC pass

选择游戏模式(Ctrl-C跳过并单刷):
0-单刷
1-本地双开
2-组队司机
3-组队打手
0

是否点怪?
0-不点怪
1-点中间怪
2-点右边怪
0

结束后如何处理?
0-退出
1-关机
0
2019-06-21 11:45:26,582 root        : INFO     Mode = 0
2019-06-21 11:45:26,582 root        : INFO     Emyc = 0
2019-06-21 11:45:26,592 root        : INFO     Postoperation = 0
2019-06-21 11:45:26,592 root        : INFO     registration successful
2019-06-21 11:45:26,592 root        : INFO     Activation successful
Traceback (most recent call last):
  File "onmyoji.py", line 92, in <module>
  File "onmyoji.py", line 67, in yuhun
  File "single_fight.py", line 21, in start
  File "game_ctl.py", line 236, in wait_game_img
  File "game_ctl.py", line 136, in find_img
cv2.error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\imgproc\src\templmatch.cpp:589: error: (-215:Assertion failed) corrsize.height <= img.rows + templ.rows - 1 && corrsize.width <= img.cols + templ.cols - 1 in function 'cv::crossCorr'

[9964] Failed to execute script onmyoji

建议打包成多文件的那种试试,单文件的好像容易出错。

直接使用run.bat可以使用。

AcademicDog added a commit that referenced this issue Jun 21, 2019
@AcademicDog
Copy link
Owner

这是因为程序打包到了单文件,但是并没有包含运行所依赖的/img/*文件,因此.exe文件应该和/img文件夹放在同一目录才能运行。目前已更新打包文件。

@AcademicDog AcademicDog added documentation Improvements or additions to documentation good first issue Good for newcomers labels Jun 21, 2019
@AcademicDog AcademicDog pinned this issue Jun 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants