ConsoleApplication/CaptureUtil.cpp
@@ -111,12 +111,15 @@ } cv::Mat CaptureUtil::capture(int index, CaptureContentType type) { cv::Mat cap = capture(getHWND(index, type)); return cap; } cv::Mat CaptureUtil::capture(HWND hwnd) { clock_t starttime = clock(); cv::Mat cap = _wss::screen_shot_by_window(hwnd); std::cout << "截图耗时: threadid-" << std::this_thread::get_id() << " 耗时:" << clock() - starttime << endl; return cap; }