From e4c9b5bfb1d9000c08d84f2f044cd0c3605a2945 Mon Sep 17 00:00:00 2001
From: miyanhui <dennismi1024@gmail.com>
Date: 星期三, 13 二月 2019 14:17:13 +0800
Subject: [PATCH] 修复检测结果ImgKey不对应的问题

---
 QiaoJiaSystem/VideoAnalysFromHC/main.cpp |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/QiaoJiaSystem/VideoAnalysFromHC/main.cpp b/QiaoJiaSystem/VideoAnalysFromHC/main.cpp
index cfb0eba..a28cb72 100644
--- a/QiaoJiaSystem/VideoAnalysFromHC/main.cpp
+++ b/QiaoJiaSystem/VideoAnalysFromHC/main.cpp
@@ -42,8 +42,8 @@
 
 static void startRtspAnalysElement(LDBTool *_dbTool) {
     RtspAnalysElement rtspAnalysElement(_dbTool);
-    NewEncodeVideoManager  newEncodeVideoManager;
-    newEncodeVideoManager.start();
+//    NewEncodeVideoManager  newEncodeVideoManager;
+//    newEncodeVideoManager.start();
     while (1) {
         sleep(1 * 60 * 60 * 12);
     }
@@ -66,9 +66,12 @@
 
 int main(int argc, char **argv) {
     SAVE_APP_ARGS
-    ENABLEGLOG(GET_STR_CONFIG("logPath").c_str());
 
-    appPref.setLongData("gpu.index", 0);
+#ifdef GLOG
+        ENABLEGLOG(GET_STR_CONFIG("logPath").c_str());
+#endif
+
+    appPref.setLongData("gpu.index", 1);
     appPref.setIntData("show.image", 0);
 
     //#todo get from config File
@@ -126,7 +129,7 @@
     appPref.setStringData("fxDevID", rec.dev_id.toStdString());
     appPref.setStringData("fxDevNAME", rec.dev_name.toStdString());
     appPref.setStringData("user.loop.absolute.path", appConfig.getStringProperty("cutPath"));
-
+    appPref.setStringData("clusterID", appConfig.getStringProperty("clusterID"));
 
     bool loopRet = true;
     while (loopRet) {

--
Gitblit v1.8.0