Browse Source

change driver_clooud_grpc_thread.

yuchuli 3 years ago
parent
commit
766d0d1209

+ 1 - 1
src/detection/detection_lidar_PointPillars_MultiHead/nms.cu

@@ -218,7 +218,7 @@ void threadcapture()
             if((gpixel_format_name_ != "mjpeg")&&(gbcompress))
             {
                 std::vector<int> param = std::vector<int>(2);
-                param[0] = CV_IMWRITE_JPEG_QUALITY;
+                param[0] = 1;//CV_IMWRITE_JPEG_QUALITY;
                 param[1] = 95; // default(95) 0-100
                 std::vector<unsigned char> buff;
 

+ 2 - 1
src/driver/driver_cloud_grpc_thread/grpcclient.cpp

@@ -443,9 +443,10 @@ void grpcclient::threadpicupload(int nCamPos)
         int nSize = 0;
         mpicbuf[nCamPos].mMutex.lock();
         bUpdate = mpicbuf[nCamPos].mbRefresh;
-        if(bUpdate)
+        if(bUpdate == true)
         {
             nMsgTime = mpicbuf[nCamPos].mnMsgTime;
+            std::cout<<"upload "<<nMsgTime<<std::endl;
             mpicbuf[nCamPos].mbRefresh = false;
             pstr_ptr = mpicbuf[nCamPos].mpstrmsgdata;
             nSize = mpicbuf[nCamPos].mDataSize;

+ 1 - 1
src/driver/driver_cloud_grpc_thread/grpcclient.h

@@ -67,7 +67,7 @@ public:
     grpcclient(std::string stryamlpath);
 
 private:
-    std::string gstrserverip = "111.33.136.149";//"192.168.14.98";//"0.0.0.0";// "123.57.212.138";
+    std::string gstrserverip = "111.33.136.149";//"0.0.0.0";//"192.168.14.98";// "123.57.212.138";
     std::string gstrserverport = "50051";//"9000";
     std::string gstruploadinterval = "1000";
     void * gpa;