From 963090c963b367333cd4f1b173cb51ae227551a5 Mon Sep 17 00:00:00 2001 From: zhangjixing <775834166@qq.com> Date: 星期六, 12 一月 2019 18:34:40 +0800 Subject: [PATCH] YOLO修改,行为算法优化,视频编辑接口修改 --- QiaoJiaSystem/StructureApp/NewRecordVideoElement.cpp | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/QiaoJiaSystem/StructureApp/NewRecordVideoElement.cpp b/QiaoJiaSystem/StructureApp/NewRecordVideoElement.cpp index b9e696c..0ba53a9 100644 --- a/QiaoJiaSystem/StructureApp/NewRecordVideoElement.cpp +++ b/QiaoJiaSystem/StructureApp/NewRecordVideoElement.cpp @@ -10,7 +10,8 @@ // basicPath(); m_cutPath= appPref.getStringData("user.loop.absolute.path"); - recordInit(60,360); + + recordInit(appPref.getIntData("n_cut_min_duration"),appPref.getIntData("n_cut_max_duration")); } NewRecordVideoElement::~NewRecordVideoElement() { @@ -27,7 +28,7 @@ getImg(info); std::string srcPath= getFileName(info.time); m_filename=srcPath; - DBG("m_filename: " << m_filename); + // DBG("m_filename: " << m_filename); m_hiredisTool.pushImageBuf(m_filename,info.img); m_hiredisTool.addFileInfo(m_filename,RECORD_DOING); @@ -80,7 +81,7 @@ QDateTime dt = QDateTime::fromString(QString::fromStdString(timeStamp), "yyyy-MM-dd hh:mm:ss:zzz"); std::string t_strTime=dt.toString("yyyyMMddhh").toStdString(); - DBG("t_strTime="<<t_strTime); + // DBG("t_strTime="<<t_strTime); t_FilePath.append(camID + "/" + t_strTime.substr(0, 6)+ "/" +t_strTime.substr(6, 2) + "/"); //YYYYMMDDHH t_FilePath.append(t_strTime.substr(0,10)+ "/"); @@ -213,8 +214,8 @@ void NewRecordVideoElement::recordInit(int videoMin, int videoMax) { sdkTrigger = false; - fileMin = videoMin; - fileMax = videoMax; + fileMin = videoMin*8;//fps=8 + fileMax = videoMax*8; triggerDelay = fileMin/2; recordStatus = RECORD_STOP; -- Gitblit v1.8.0