admin
2022-08-18 67a5e3d825fde17b7b00906ce42b0bd8cafebc4e
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;
}