From f88077fa21a88227569ffa34c4f2eeab75e513f1 Mon Sep 17 00:00:00 2001 From: 孙天宇 <suntianyu@aiotlink.com> Date: 星期二, 12 七月 2022 17:34:17 +0800 Subject: [PATCH] del logs mp4 --- src/h_interface.cpp | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/h_interface.cpp b/src/h_interface.cpp index 9c52bcb..32d519e 100644 --- a/src/h_interface.cpp +++ b/src/h_interface.cpp @@ -8,6 +8,8 @@ using namespace std; string m_staticStruct::model_path = "path"; +string m_staticStruct::model_cfg = "0"; // 鍒濆鍖栫粨鏋勪綋闈欐�佸彉閲忓�� +string m_staticStruct::model_wts = "0"; // 鍒濆鍖栫粨鏋勪綋闈欐�佸彉閲忓�� int m_staticStruct::type = 1; bool m_staticStruct::isTrack= true; int m_staticStruct::max_cam_num = 0; @@ -60,10 +62,11 @@ } h->single_SDK(chan, img, t_result, const_cast<char*>(timestamp), mode); + std::string mode_type = mode; DEBUG("--cam id:" + to_string(chan) + " image human_count:" + to_string(t_result->count)); for (int i = 0; i < t_result->count; ++i) { - if(mode == "video"){ + if(mode_type == "video"){ DEBUG("--human_id:" + to_string(t_result->targets[i].id)+" human_confidence:" + to_string(t_result->targets[i].confidence) + " human_attribute:" + std::string(t_result->targets[i].attribute) + " human_top:" + to_string(t_result->targets[i].rect.top)+" human_left:" + to_string(t_result->targets[i].rect.left) + " human_right:" + to_string(t_result->targets[i].rect.right)+ " human_bottom:" + to_string(t_result->targets[i].rect.bottom)); } else{ @@ -115,6 +118,8 @@ if(reader.parse(in,root)) { std::string model_path = root["param"]["model_path"].asString(); + std::string model_cfg= root["param"]["model_cfg"].asString(); + std::string model_wts = root["param"]["model_wts"].asString(); int type = root["param"]["type"].asInt(); bool isTrack = root["param"]["isTrack"].asBool(); int max_cam_num = root["param"]["max_cam_num"].asInt(); @@ -122,6 +127,8 @@ int mv_velocity = root["param"]["mv_velocity"].asFloat(); int fall_rate = root["param"]["fall_rate"].asFloat(); m_staticStruct::model_path = model_path; + m_staticStruct::model_cfg = model_cfg; + m_staticStruct::model_wts = model_wts; m_staticStruct::type = type; m_staticStruct::isTrack = isTrack; m_staticStruct::max_cam_num = max_cam_num; -- Gitblit v1.8.0