From ed7186f89434ff9a19a5abdce8252d69460677ee Mon Sep 17 00:00:00 2001
From: chenshijun <chenshijun@aiotlink.com>
Date: 星期五, 15 三月 2019 13:50:04 +0800
Subject: [PATCH] 将算法的进程以多进程方式启动

---
 QiaoJiaSystem/StructureApp/main.cpp |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/QiaoJiaSystem/StructureApp/main.cpp b/QiaoJiaSystem/StructureApp/main.cpp
index c820521..7d62bc9 100644
--- a/QiaoJiaSystem/StructureApp/main.cpp
+++ b/QiaoJiaSystem/StructureApp/main.cpp
@@ -18,7 +18,7 @@
     std::string src_path = "/home/basic/瑙嗛/test";
 
 
-    appPref.setLongData("gpu.index", 0);
+    appPref.setIntData("gpu.index", 0);
     appPref.setIntData("show.image", 0);
 
     //yolo server
@@ -88,21 +88,21 @@
     auto size = vec.size();
 //    int size = 1;
     int pos = 0;
-    AppPipeController _AppPipeController("test12344", json, true);
+ //   AppPipeController _AppPipeController("test12344", json, true);
 //    AppPipeController _AppPipeController(src_path, json);
-    _AppPipeController.setfdfsClient(&fdfsClient);
+//    _AppPipeController.setfdfsClient(&fdfsClient);
 //    for (; pos < size;) {
 //
 //        //#todo
 //        _AppPipeController.resetVideoCapturePath(vec[pos++]);
 //        _AppPipeController.resetVideoCapturePath(
 //            "/home/basic/work/qiaojia/cut/DS-7808N-SN0820161208AARR691369356WCVU/34/201810/11/DS-7808N-SN0820161208AARR691369356WCVU-34-20181011090000/2018-10-11 09:48:05.mp4");
-    _AppPipeController.start();
-    while (_AppPipeController.getRunning()) {
-        usleep(40000);
-    }
-    _AppPipeController.stop();
-    _AppPipeController.wait();
+//    _AppPipeController.start();
+//    while (_AppPipeController.getRunning()) {
+//        usleep(40000);
+//    }
+//    _AppPipeController.stop();
+//    _AppPipeController.wait();
     DBG("finish file");
 //    }
 //    }

--
Gitblit v1.8.0