HWND hwndDesktop = GetDesktopWindow(); int key = 0; while (key != 30 ) { Mat src = hwnd2mat(hwndDesktop); // you can do some image processing here imshow("output", src); key = waitKey(30); // you can change wait time } ReleaseCapture(); destroyAllWindows(); return 0;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)