| | |
| | | #include "ScreenDataCapture.h" |
| | | #include "CaptureUtil.h" |
| | | #include "THSActionUtil.h" |
| | | #include "Win32Util.h" |
| | | void gray(); |
| | | void ths(); |
| | | /* |
| | |
| | | } |
| | | |
| | | int main() { |
| | | HWND win = HWND(0x000313FE); |
| | | RECT wrect; |
| | | GetWindowRect(win, &wrect); |
| | | |
| | | cv::Mat img= CaptureUtil::capture(win); |
| | | cv::Mat grayImg= ImgUtil::grayImage(img); |
| | | GPCodeArea area= THSActionUtil::recognitionPlateContentArea(grayImg); |
| | | |
| | | //SendMessage(win, WM_MOUSEMOVE,0, MAKEWORD(area.startx+50, area.starty + 100)); |
| | | for (int i = 0;i < 5;i++) |
| | | { |
| | | SendMessage(win, WM_MOUSEWHEEL, 0, MAKEWORD(wrect.right - 50, wrect.top + 50)); |
| | | Sleep(1000); |
| | | } |
| | | |
| | | /* |
| | | ImgUtil::init(); |
| | | |
| | | ScreenDataCapture* capture = new ScreenDataCapture(); |
| | | capture->init(notify,nullptr); |
| | | capture->start(); |
| | | capture->startAll(); |
| | | */ |
| | | |
| | | |
| | | /* |
| | | RecognitionUtil::init(); |
| | | CaptureUtil::init("同花顺(v9.10.50) - 热门股888");// 热门股888 |