Vincentzyx / DouZero_For_HLDDZ_FullAuto

将DouZero用于欢乐斗地主自动化
Apache License 2.0
680 stars 168 forks source link

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

Open cat9999sss opened 1 year ago

cat9999sss commented 1 year ago

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

linkerlin commented 10 months ago

截图时出现错误: 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) :-1: error: (-5:Bad argument) in function 'cvtColor'

Overload resolution failed:

  • src data type = 17 is not supported
  • Expected Ptr for argument 'src'
linkerlin commented 10 months ago

不知道为何报错。。。

linkerlin commented 10 months ago

能自动截图成功。。。