How to capture the desktop in OpenCV (ie. turn a bitmap into a Mat)?
Hello,
Can anyone explain to me how I would use this code in OpenCV to capture the deskt
It seems you forgot to capture the return of hwnd2mat():
hwnd2mat()
HWND hwndDesktop = GetDesktopWindow(); Mat src = hwnd2mat(hwndDesktop); imshow("output", src); waitKey(0);