From 9c1dbad3fcf04c4c797437531031cfaefe28bfcf Mon Sep 17 00:00:00 2001 From: chenshijun <chenshijun@aiotlink.com> Date: 星期二, 19 三月 2019 18:05:57 +0800 Subject: [PATCH] Merge branch 'yw.1.2.fixbug' of ssh://192.168.1.226:29418/development/c++ into yw.1.2.fixbug --- QiaoJiaSystem/StructureApp/FaceExtractElement.cpp | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/QiaoJiaSystem/StructureApp/FaceExtractElement.cpp b/QiaoJiaSystem/StructureApp/FaceExtractElement.cpp index 679aaf6..b6cbc28 100644 --- a/QiaoJiaSystem/StructureApp/FaceExtractElement.cpp +++ b/QiaoJiaSystem/StructureApp/FaceExtractElement.cpp @@ -38,7 +38,7 @@ appPref.getIntData("faceSear.port"), "tcp"), // faceSearchRpcClient("faceCmServer", "", 10004, "tcp") m_sdkRule(rule), - m_rpcClient("RtspAnalysServer", "127.0.0.1", appPref.getIntData("RpcServerPort"), "tcp") { + m_rpcClient("RtspAnalysServer", "127.0.0.1", appPref.getIntData("RpcVTIMPort"), "tcp") { sharedMemory = new QSharedMemory(QString(shareMemoryName.c_str())); if (!sharedMemory->create(4608 * 2592 * 4)) { sharedMemory->attach(); @@ -123,6 +123,9 @@ strImgUrl = strImgUrlTmp; // strImgUrl.append("/").append(strImgUrlTmp); fdfsClient->rwLock.unlock(); + } else { + strImgUrl = ""; + ERR("fdfsClient is nullptr ???"); } //鎷兼帴json @@ -136,8 +139,11 @@ Json::Value t_json; t_json["Id"] = str_uuid; //涓婚敭 + std::string feature_base64; + feature_base64 = base64.Encode(feature.data(), feature.size()); + //#鍦ㄥ姣斾腑娣诲姞鐗瑰緛鍊� - t_json["FaceFeature"] = "base64"; + t_json["FaceFeature"] = feature_base64; t_json["personId"] = "";//鍏宠仈搴曞簱浜哄憳id,浜鸿劯id t_json["BaseName"] = "";//鍏宠仈搴曞簱琛ㄥ悕 //#end -- Gitblit v1.8.0