Commit 29a1cd958e70f06004798e0736a5c84adbb5d6c1

Authored by Zhao Shuaihua
2 parents 2c2868df aeb77c80

合并冲突

src/Makefile
1 1 XX = g++
2 2  
3 3  
4   -PROJECT_ROOT= /opt/shzhao/vpt_ascend
  4 +PROJECT_ROOT= /opt/cmhu/vpt_ascend_arm
5 5  
6 6 DEPEND_DIR = $(PROJECT_ROOT)/bin
7 7 SRC_ROOT = $(PROJECT_ROOT)/src
... ...
src/ai_platform/MultiSourceProcess.cpp
... ... @@ -365,16 +365,14 @@ bool CMultiSourceProcess::AddTask(task_param _cur_task_param){
365 365 dec->setSnapTimeInterval(frame_stride * 1000);
366 366 }
367 367 }
368   - }
369   -
370   - // 测试代码
371   - // auto task_other_params = m_task_param_manager->get_task_other_params();
372   -
373   - // const algor_basic_config_param_t *cur_param =
374   - // ((algor_init_config_param_t *)(task_other_params[task_id][algorithm_type_t::FACE_SNAPSHOT]))->basic_param;
375   -
376   - // LOG_INFO("face_snapshot, result_folder: {} result_folder_little: {}", cur_param->result_folder, cur_param->result_folder_little);
377 368  
  369 + // 测试代码
  370 + // auto algor_face = algor_map->find(algorithm_type_t::FACE_SNAPSHOT);
  371 + // if(algor_face != algor_map->end()){
  372 + // const algor_basic_config_param_t *cur_param = ((algor_init_config_param_t *)(algor_face->second))->basic_param;
  373 + // LOG_INFO("face_snapshot, result_folder: {} result_folder_little: {}", cur_param->result_folder, cur_param->result_folder_little);
  374 + // }
  375 + }
378 376  
379 377 LOG_INFO("started task {} successed!", config.name);
380 378  
... ... @@ -492,11 +490,9 @@ int CMultiSourceProcess::snapshot_task(std::string& uri_or_name, const std::stri
492 490 delete devMem;
493 491 devMem = nullptr;
494 492  
495   - LOG_INFO("snap successed!");
496 493 return SUCCESS;
497 494 }
498 495  
499   - LOG_ERROR("failed! \n");
500 496 return FAILED;
501 497 }
502 498  
... ... @@ -532,7 +528,7 @@ int CMultiSourceProcess::SnapShot(task_param _cur_task_param) {
532 528 #endif
533 529 LOG_INFO("SnapShot task: {} success", task_id);
534 530 } else {
535   - LOG_INFO("SnapShot task: {} failed !", task_id);
  531 + LOG_ERROR("SnapShot task: {} failed !", task_id);
536 532 }
537 533  
538 534 return bSnapShot;
... ... @@ -1672,7 +1668,7 @@ void CMultiSourceProcess::face_locus_finished(const OBJ_KEY obj_key) {
1672 1668  
1673 1669 #ifdef POST_USE_RABBITMQ
1674 1670 json_str = helpers::gen_json::gen_face_detection_json( obj_key.video_id, obj_key.obj_id, fpath_snapShotLittle, fpath_src,
1675   - obj_value.position, obj_value.confidence, obj_value.landmark_point, 25);
  1671 + obj_value.position, obj_value.confidence, obj_value.landmark_point, 25);
1676 1672 #endif
1677 1673  
1678 1674 ImgSaveInfo roi_save_info;
... ... @@ -1711,4 +1707,4 @@ int CMultiSourceProcess::recode_thread() {
1711 1707 }
1712 1708  
1713 1709 LOG_INFO("recode_thread end.");
1714   -}
1715 1710 \ No newline at end of file
  1711 +}
... ...
src/demo/Makefile
1 1 XX = g++
2 2  
3 3  
4   -PROJECT_ROOT= /opt/shzhao/vpt_ascend
  4 +PROJECT_ROOT= /opt/cmhu/vpt_ascend_arm
5 5  
6 6 DEPEND_DIR = $(PROJECT_ROOT)/bin
7 7 SRC_ROOT = $(PROJECT_ROOT)/src
... ...
src/reprocessing_module/save_snapshot_reprocessing.cpp
... ... @@ -103,7 +103,7 @@ void save_snapshot_reprocessing::save_img_process() {
103 103 if (callback_ != nullptr && cur_image.json_str.length() > 0) {
104 104 // LOG_INFO("mq publish process begin");
105 105 callback_(cur_image.json_str.c_str());
106   - // LOG_INFO("mq publish process end: {} ", cur_image.json_str);
  106 + LOG_INFO("mq publish process end: {} ", cur_image.json_str);
107 107 }
108 108 #endif
109 109  
... ...