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

先使用 debug_screenshot.py 确认自己的屏幕缩放比 #14

Open
cat9999sss opened this issue Dec 1, 2022 · 3 comments
Open

先使用 debug_screenshot.py 确认自己的屏幕缩放比 #14

cat9999sss opened this issue Dec 1, 2022 · 3 comments

Comments

@cat9999sss
Copy link

先使用 debug_screenshot.py 确认自己的屏幕缩放比
请问缩放比是什么 修改哪里?

@linkerlin
Copy link

截图时出现错误: error(1400, 'GetWindowRect', '无效的窗口句柄。')
截图时出现错误: error(1400, 'GetWindowRect', '无效的窗口句柄。')
截图时出现错误: error(1400, 'GetWindowRect', '无效的窗口句柄。')
Traceback (most recent call last):
File "C:\ai\DouZero_For_HLDDZ_FullAuto\debug_screenshot.py", line 11, in
img = cv2.cvtColor(np.asarray(img), cv2.COLOR_BGR2RGB)
cv2.error: OpenCV(4.8.0) 👎 error: (-5:Bad argument) in function 'cvtColor'

Overload resolution failed:

  • src data type = 17 is not supported
  • Expected Ptrcv::UMat for argument 'src'

@linkerlin
Copy link

不知道为何报错。。。

@linkerlin
Copy link

能自动截图成功。。。

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