We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
截图时出现错误: error(1400, 'GetWindowRect', '无效的窗口句柄。') 截图时出现错误: error(1400, 'GetWindowRect', '无效的窗口句柄。') 截图时出现错误: error(1400, 'GetWindowRect', '无效的窗口句柄。') Traceback (most recent call last): File "H:\Code Files\Python\Pycharm\DouZero_For_HLDDZ_FullAuto\DouZero_For_HLDDZ_FullAuto-main\debug_screenshot.py", line 7, in img = gh.DrawRectWithText(img, (313, 747, 1144, 200), "test") File "H:\Code Files\Python\Pycharm\DouZero_For_HLDDZ_FullAuto\DouZero_For_HLDDZ_FullAuto-main\GameHelper.py", line 29, in DrawRectWithText img = cv2.cvtColor(image, cv2.COLOR_RGB2BGR) cv2.error: OpenCV(4.5.5) 👎 error: (-5:Bad argument) in function 'cvtColor'
Overload resolution failed: src data type = 17 is not supported Expected Ptrcv::UMat for argument 'src'
Overload resolution failed:
The text was updated successfully, but these errors were encountered:
用管理员身份运行
Sorry, something went wrong.
main函数里 176行 self.Handle = win32gui.FindWindow("Hlddz", None), 需要把里面“hlddz”改成你自己运行的斗地主的代码
No branches or pull requests
截图时出现错误: error(1400, 'GetWindowRect', '无效的窗口句柄。')
截图时出现错误: error(1400, 'GetWindowRect', '无效的窗口句柄。')
截图时出现错误: error(1400, 'GetWindowRect', '无效的窗口句柄。')
Traceback (most recent call last):
File "H:\Code Files\Python\Pycharm\DouZero_For_HLDDZ_FullAuto\DouZero_For_HLDDZ_FullAuto-main\debug_screenshot.py", line 7, in
img = gh.DrawRectWithText(img, (313, 747, 1144, 200), "test")
File "H:\Code Files\Python\Pycharm\DouZero_For_HLDDZ_FullAuto\DouZero_For_HLDDZ_FullAuto-main\GameHelper.py", line 29, in DrawRectWithText
img = cv2.cvtColor(image, cv2.COLOR_RGB2BGR)
cv2.error: OpenCV(4.5.5) 👎 error: (-5:Bad argument) in function 'cvtColor'
The text was updated successfully, but these errors were encountered: