-
Notifications
You must be signed in to change notification settings - Fork 111
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
temp1是'NoneType' object has no attribute 'shape' #5
Comments
模板图片没读取出来 |
@moneyDboat 这个问题是我没把模板图片拷到play.py同级目录下,解决了。 |
循环直到游戏失败结束for i in range(10000): |
cv2.imread()就是opencv加载图片的函数 |
你这个还是截屏没有获取到,我也出现过这个问题。这个程序是把截屏保存到手机SD卡然后传到电脑,如果手机没有SD卡就会这样。你可以直接把截屏保存到电脑,即把get_screenshot函数改成这样: |
@ShiningRuby 代码能解释一下吗? |
就是用adb获取截屏保存到某个路径,命名为%s.png ,保存时这里的%s用字符串id代替 |
The text was updated successfully, but these errors were encountered: