| | |
| | | #include "log4cpp/FileAppender.hh" |
| | | #include "log4cpp/StringQueueAppender.hh" |
| | | #include "log4cpp/BasicLayout.hh" |
| | | #include <log4cpp/PatternLayout.hh> |
| | | #include "TradeQueueCaptureManager.h" |
| | | #include "LogUtil.h" |
| | | using namespace log4cpp; |
| | | |
| | | void gray(); |
| | |
| | | { |
| | | //同花顺(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); |
| | | //list<TradeData> map = creenDataCapture->captureLevel2TradeData(cv::imread("C:\\Users\\Administrator\\Desktop\\ocr\\demo\\0_388.jpg"), p); |
| | | //break; |
| | | } |
| | | |
| | |
| | | return stoi(string(tmp_h)) * 3600 + stoi(string(tmp_m)) * 60 + stoi(string(tmp_s)); |
| | | } |
| | | |
| | | int testLog() { |
| | | LogUtil::getInstance()->getL2Logger().info("测试"); |
| | | return 0; |
| | | } |
| | | |
| | | void testL2() { |
| | | ImgUtil::init(); |
| | | OpenCLExcuter* openCLExcuter = new OpenCLExcuter(); |
| | | openCLExcuter->init(); |
| | | L2DataCapture* l2DataCapture = new L2DataCapture(); |
| | | try { |
| | | ; |
| | | // l2DataCapture->init(NULL, NULL, NULL); |
| | | } |
| | | catch (...) { |
| | | |
| | | } |
| | | |
| | | cv::Mat mat; |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | int main() { |
| | | |
| | | if (TRUE) { |
| | | return 0; |
| | | } |
| | | |
| | | cout << "开始程序" << endl; |
| | | ImgUtil::init(); |
| | |
| | | imwrite("E:\\temp\\506518_gray.jpg", img); |
| | | |
| | | clock_t time_2 = clock(); |
| | | LogUtil::debug("灰度完成"); |
| | | //图像分割 |
| | | list<int*> data; |
| | | try { |