| | |
| | | #include "Win32Util.h" |
| | | #include "LimitUpCapture.h" |
| | | #include "IndustryCapture.h" |
| | | #include "TradeSuccessCapture.h" |
| | | void gray(); |
| | | void ths(); |
| | | /* |
| | |
| | | //SetWindowText(GetDlgItem(HWND(0x0002269E), 0x0000040A),TEXT("100")); |
| | | //Win32Util::focus(GetDlgItem(HWND(0x0002269E), 0x00000408)); |
| | | //Win32Util::keyboardNum("000333", 10); |
| | | ImgUtil::init(); |
| | | |
| | | cv::Mat img = CaptureUtil::capture(HWND(0x00020E12)); |
| | | cv::Mat grayImg = ImgUtil::grayImage(img); |
| | | string path = "C:\\Users\\Administrator\\Desktop\\ocr\\"; |
| | | path.append("order.jpg"); |
| | | cv::imwrite(path, grayImg); |
| | | |
| | | |
| | | BuySuccessCapture* buySuccessCapture = new BuySuccessCapture(); |
| | | //buySuccessCapture->init(Null,Null); |
| | | buySuccessCapture->captureTradeSuccessInfo(); |
| | | //cv::Mat grayImg = buySuccessCapture->grayImgs(cv::imread("C:\\Users\\Administrator\\Desktop\\ocr\\order_origin.jpg")); |
| | | return 0; |
| | | |
| | | ImgUtil::init(); |
| | |
| | | |
| | | IndustryCapture* industryCapture = new IndustryCapture(); |
| | | cout << "LimitUpCapture实例化" << endl; |
| | | industryCapture->init(); |
| | | //industryCapture->init(); |
| | | cout << "LimitUpCapture初始化完成" << endl; |
| | | |
| | | industryCapture->captureIndustryCodes(); |