From 2b1a3988c9fd35c39e3e43d0382d65a13c45efee Mon Sep 17 00:00:00 2001
From: xuxiuxi <554325746@qq.com>
Date: 星期四, 14 三月 2019 10:38:27 +0800
Subject: [PATCH] Merge branch 'yw.1.2.fixbug' of http://192.168.1.226:10010/r/development/c++ into yw.1.2.fixbug

---
 QiaoJiaSystem/YoloServer/main.cpp |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/QiaoJiaSystem/YoloServer/main.cpp b/QiaoJiaSystem/YoloServer/main.cpp
index a69beb9..68b22b9 100644
--- a/QiaoJiaSystem/YoloServer/main.cpp
+++ b/QiaoJiaSystem/YoloServer/main.cpp
@@ -7,6 +7,7 @@
 #include <basic/util/app/AppConfig.h>
 
 int main(int argc, char **argv) {
+    std::cout<<__DATE__<<" "<<__TIME__<<std::endl;
     SAVE_APP_ARGS;
     ENABLEGLOG(GET_STR_CONFIG("logPath").c_str());
     auto ich = Ice::initialize(argc, argv);
@@ -24,17 +25,17 @@
 //    adapter->activate();
 //    ich->waitForShutdown();
 
-    if (argc < 3) {
-        ERR("argc error");
-        return -1;
-    }
+//    if (argc < 3) {
+//        ERR("argc error");
+//        return -1;
+//    }
 
-    int gpuindex = atoi(argv[1]);
-    int poolNum = atoi(argv[2]);
-    int portNum = atoi(argv[3]);
+    int gpuindex = 0;
+    int poolNum = 1;
+    int portNum = 10003;
 
     appPref.setIntData("gpu.index", gpuindex);
-    appPref.setFloatData("thresh.detect", 0.7);
+    appPref.setFloatData("thresh.detect", 0.85);
     appPref.setIntData("poolNum", poolNum);
 
     IceRpcServer<YoloDetectServerI> server("yoloServer", portNum, "tcp");

--
Gitblit v1.8.0