| | |
| | | #include "Win32Util.h" |
| | | #include "LimitUpCapture.h" |
| | | #include "IndustryCapture.h" |
| | | #include "TradeSuccessCapture.h" |
| | | #include "TradeListCapture.h" |
| | | void gray(); |
| | | void ths(); |
| | | /* |
| | |
| | | |
| | | } |
| | | |
| | | void onTradeListCallBack(list<TradeSuccessData> dataList, void* contex) { |
| | | |
| | | } |
| | | |
| | | int main() { |
| | | cout << "开始程序" << endl; |
| | |
| | | //Win32Util::keyboardNum("000333", 10); |
| | | ImgUtil::init(); |
| | | |
| | | cv::Mat img = CaptureUtil::capture(HWND(0x00020E12)); |
| | | |
| | | |
| | | 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")); |
| | | TradeListCapture* tradeListCapture = new TradeListCapture(); |
| | | tradeListCapture->init(NULL,NULL,NULL); |
| | | tradeListCapture->refreshTradeDelegateHWND(); |
| | | //cv::Mat img= tradeListCapture->grayImgs(CaptureUtil::capture(HWND(0x00055B0E))); |
| | | //cv::imwrite("C:\\Users\\Administrator\\Desktop\\ocr\\trade\\gray_1.png",img); |
| | | |
| | | list<TradeDelegateData> dataList = tradeListCapture->captureTradeDelegateInfo(); |
| | | return 0; |
| | | |
| | | ImgUtil::init(); |
| | |
| | | //industryCapture->init(); |
| | | cout << "LimitUpCapture初始化完成" << endl; |
| | | |
| | | industryCapture->captureIndustryCodes(); |
| | | list<list<IndustryData>> datas= industryCapture->captureIndustryCodes(); |
| | | |
| | | |
| | | delete industryCapture; |