From 3680049029e6a193eae069596be04ce0fb2b1303 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期六, 05 十一月 2022 17:19:55 +0800
Subject: [PATCH] '增加l2稳定性'

---
 ConsoleApplication/main.cpp |   33 +++++++++++++++++++++++++++++++--
 1 files changed, 31 insertions(+), 2 deletions(-)

diff --git a/ConsoleApplication/main.cpp b/ConsoleApplication/main.cpp
index 2bcff7b..c8c1386 100644
--- a/ConsoleApplication/main.cpp
+++ b/ConsoleApplication/main.cpp
@@ -10,7 +10,9 @@
 #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();
@@ -31,7 +33,7 @@
 	{
 		//鍚岃姳椤�(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;
 	}
 
@@ -129,7 +131,35 @@
 	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();
@@ -247,7 +277,6 @@
 	imwrite("E:\\temp\\506518_gray.jpg", img);
 
 	clock_t time_2 = clock();
-	LogUtil::debug("鐏板害瀹屾垚");
 	//鍥惧儚鍒嗗壊
 	list<int*>  data;
 	try {

--
Gitblit v1.8.0