| | |
| | | //同花顺(v9.10.50) - 深圳Level-2分时走势 |
| | | //同花顺(v9.10.50) - pppp |
| | | list<TradeData> map = creenDataCapture->captureLevel2TradeData(cv::imread( "C:\\Users\\Administrator\\Desktop\\ocr\\demo\\0_388.jpg"),p); |
| | | break; |
| | | //break; |
| | | } |
| | | |
| | | return 0L; |
| | |
| | | } |
| | | */ |
| | | |
| | | void notify(int index,string code, list<TradeData> data,void *context) { |
| | | cout << index << endl; |
| | | } |
| | | |
| | | int main() { |
| | | //THSActionUtil::openSecondScreen(); |
| | | ImgUtil::init(); |
| | | |
| | | ScreenDataCapture* capture = new ScreenDataCapture(); |
| | | capture->init(notify,nullptr); |
| | | capture->start(); |
| | | capture->startAll(); |
| | | /* |
| | | RecognitionUtil::init(); |
| | | CaptureUtil::init("同花顺(v9.10.50) - 热门股888");// 热门股888 |
| | | ImgUtil::init(); |
| | | ths(); |
| | | std::list<string> codeList; |
| | | codeList.push_back("000333"); |
| | | bool setResult = THSActionUtil::setListenL2GP(4,"000333"); |
| | | printf("设置股票代码结果:%d\n", setResult); |
| | | cv::waitKey(0); |
| | | cv::destroyAllWindows(); |
| | | return 0; |
| | | |
| | | */ |
| | | |
| | | /* |
| | | RecognitionManager* recognitionManager = new RecognitionManager(); |
| | |
| | | } |
| | | */ |
| | | |
| | | |
| | | cv::waitKey(0); |
| | | cv::destroyAllWindows(); |
| | | return 0; |
| | | |
| | | |
| | | |
| | | string path = "C:\\Users\\Administrator\\Desktop\\ocr\\temp.jpg"; |
| | | |
| | | |
| | | cv::Mat img = CaptureUtil::capture(HWND(0x00010CA6)); |
| | | cv::imwrite(path, img); |
| | | |
| | | |
| | | |
| | | //return 0; |
| | | |
| | | /* |
| | | |
| | | RecognitionUtil::init(); |
| | | CaptureUtil::init("同花顺(v9.10.50) - 热门股888");// 热门股888 |
| | | ImgUtil::init(); |
| | | for (int i = 0;i < 1;i++) |
| | | { |
| | |
| | | |
| | | |
| | | system("PAUSE"); |
| | | |
| | | */ |
| | | system("PAUSE"); |
| | | cv::waitKey(0); |
| | | cv::destroyAllWindows(); |
| | | |
| | |
| | | |
| | | int main__() { |
| | | |
| | | CaptureUtil::init("同花顺(v9.10.50) - 我的页面13"); |
| | | for (int i =5;i < 6;i++) |
| | | { |
| | | cv::Mat img= CaptureUtil::capture(1); |