From 53630c440d592792dcdd86f8d5b2c59da4f3c359 Mon Sep 17 00:00:00 2001 From: pans <pansen626@sina.com> Date: 星期一, 28 一月 2019 20:35:35 +0800 Subject: [PATCH] Merge branch 'ywv1.2' into ywv1.2_布控feature --- QiaoJiaSystem/DataManagerServer/http_configserver.cpp | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/QiaoJiaSystem/DataManagerServer/http_configserver.cpp b/QiaoJiaSystem/DataManagerServer/http_configserver.cpp index ad5ae68..d8099c8 100644 --- a/QiaoJiaSystem/DataManagerServer/http_configserver.cpp +++ b/QiaoJiaSystem/DataManagerServer/http_configserver.cpp @@ -2632,7 +2632,8 @@ subJson.append("\"uuid\":\"" + item.second.uuid + "\","); subJson.append("\"tableName\":\"" + TableName + "\","); subJson.append("\"idcard\":\"" + t_faceInfoCache[item.second.uuid].idCard + "\","); - subJson.append("\"enable\":\"" + item.second.enable + "\","); + subJson.append("\"enable\":\"" + t_faceInfoCache[item.second.uuid].enable + "\","); + subJson.append("\"monLevel\":\"" + t_faceInfoCache[item.second.uuid].monLevel + "\","); subJson.append("\"imgUrl\":\"" + item.second.faceurl + "\""); // subJson.append("\"feature\":\"" + item.second.feature + "\","); //#todo modifysvn upda svn comm @@ -3475,7 +3476,8 @@ str_imgName += "-"; str_imgName += "snapshot.jpg"; //admin:a1234567@192.168.1.201:554/h264/ch1/main/av_stream -r 1/25 -f image2 -s 1920*1080 /home/basic/work_src/a.jpg - std::string cmd("ffmpeg -i " + rtsp_url + " -r 1/25 -f image2 -s 1920*1080 -y " + str_imgName); + std::string cmd("ffmpeg -i " + rtsp_url + " -vf select='eq(pict_type\\,I)',setpts='N/(25*TB)' -f image2 -s 1920*1080 -y " + str_imgName); +// std::string cmd("ffmpeg -i " + rtsp_url + " -r 1/25 -f image2 -s 1920*1080 -y " + str_imgName); DBG(cmd); system(cmd.c_str()); @@ -3492,13 +3494,14 @@ CvUtil::cvMat2Buffer(img, buffer); std::string strImgUrlTmp = ""; fdfsClient.fastFds->uploadFile(buffer, strImgUrlTmp, "jpg"); - strImgUrl.append(fdfsClient.fastFds->getIp() + "/" + strImgUrlTmp); + // strImgUrl.append(fdfsClient.fastFds->getIp() + "/" + strImgUrlTmp); strImgUrl.clear(); strImgUrl = strImgUrlTmp; } fdfsClient.rwLock.unlock(); Json::Value result; result["imgUrl"] = strImgUrl; + db_c.updateCamDevSnapshot(QString::fromStdString(ip),QString::fromStdString(strImgUrl)); return result.toStyledString(); -- Gitblit v1.8.0