| | |
| | | #include "IndustryCapture.h" |
| | | #include "TradeListCapture.h" |
| | | #include "CurrentPriceCapture.h" |
| | | #include "log4cpp/Category.hh" |
| | | #include "log4cpp/FileAppender.hh" |
| | | #include "log4cpp/StringQueueAppender.hh" |
| | | #include "log4cpp/BasicLayout.hh" |
| | | using namespace log4cpp; |
| | | |
| | | void gray(); |
| | | void ths(); |
| | | /* |
| | |
| | | } |
| | | |
| | | int main() { |
| | | |
| | | cout << "开始程序" << endl; |
| | | ImgUtil::init(); |
| | | CurrentPriceCapture* currentPriceCapture = new CurrentPriceCapture(); |
| | | currentPriceCapture->init(NULL,NULL); |
| | | list<CurrentPriceData> resultList= currentPriceCapture->capture(); |
| | | for (list<CurrentPriceData>::iterator ele = resultList.begin();ele != resultList.end();++ele) { |
| | | cout<<(*ele).code<<":"<< (*ele).price <<endl; |
| | | } |
| | | bool dead= THSActionUtil::thsIsDead(); |
| | | |
| | | |
| | | //cv::imshow("test",cv::Mat(cv::imread("C:\\Users\\Administrator\\Desktop\\ocr\\limit_up\\企业微信截图_16624495173041.png"), cv::Rect(619, 123, 34, 10))); |
| | | |
| | | cv::Mat img = ImgUtil::grayImage(cv::imread("C:\\Users\\Administrator\\Desktop\\ocr\\时间.png")); |
| | | cv::imwrite("C:\\Users\\Administrator\\Desktop\\ocr\\时间_gray.png", cv::Mat( img,cv::Rect(img.cols-60,0,60,19))); |
| | | |
| | | |
| | | cv::waitKey(0); |