#pragma once #include #include #include #include #include #include "ImgUtil.h" using namespace std; struct FrameInfo { HWND frame; RECT position; }; class CaptureUtil { private: static std::list tempFrames; static HWND frames[8]; static BOOL CALLBACK EnumChildProc(HWND hwndChild, LPARAM lParam); static HWND getHWND(int index); public: //³õʼ»¯ static void init(std::string winName); //½ØÍ¼ static cv::Mat capture(int index); static cv::Mat capture(HWND frame); };