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

程序报错 #21

Closed
yxyuni opened this issue Jan 5, 2018 · 3 comments
Closed

程序报错 #21

yxyuni opened this issue Jan 5, 2018 · 3 comments

Comments

@yxyuni
Copy link

yxyuni commented Jan 5, 2018

OpenCV Error: Assertion failed (ssize.area() > 0) in cv::resize, file ........\opencv\modules\imgproc\src\imgwarp.cpp, line 1968
Traceback (most recent call last):
File "play.py", line 170, in
AI.run()
File "play.py", line 156, in run
self.play()
File "play.py", line 145, in play
self.target_pos = self.get_target_position(self.state, self.player_pos)
File "play.py", line 96, in get_target_position
pos = multi_scale_search(target, state_cut, 0.4, 15)
File "play.py", line 18, in multi_scale_search
resized = cv2.resize(screen, (int(W * scale), int(H * scale)))
cv2.error: ........\opencv\modules\imgproc\src\imgwarp.cpp:1968: error: (-215) ssize.area() > 0 in function cv::resize
这啥情况?

@Prinsphield
Copy link
Owner

应该是没有获取到手机截图。
你在命令行输入adb devices看看有没有设备,或者确定一下你的手机是否允许调试

@yxyuni
Copy link
Author

yxyuni commented Jan 6, 2018

每次到300多分就死了,可能跑分和机型有关

@Prinsphield
Copy link
Owner

不同机型需要调一下sensitivity或者其他的参数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants