派生自 Algorithm/baseDetector

m
suntianyu
2021-08-12 bb93e55f060c801419d8b253ccc119765116ec13
m
1个文件已修改
3 ■■■■ 已修改文件
src/h_interface.cpp 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/h_interface.cpp
@@ -60,10 +60,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{