Commit 29a1cd958e70f06004798e0736a5c84adbb5d6c1
合并冲突
Showing
4 changed files
with
13 additions
and
17 deletions
src/Makefile
src/ai_platform/MultiSourceProcess.cpp
@@ -365,16 +365,14 @@ bool CMultiSourceProcess::AddTask(task_param _cur_task_param){ | @@ -365,16 +365,14 @@ bool CMultiSourceProcess::AddTask(task_param _cur_task_param){ | ||
365 | dec->setSnapTimeInterval(frame_stride * 1000); | 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 | LOG_INFO("started task {} successed!", config.name); | 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,11 +490,9 @@ int CMultiSourceProcess::snapshot_task(std::string& uri_or_name, const std::stri | ||
492 | delete devMem; | 490 | delete devMem; |
493 | devMem = nullptr; | 491 | devMem = nullptr; |
494 | 492 | ||
495 | - LOG_INFO("snap successed!"); | ||
496 | return SUCCESS; | 493 | return SUCCESS; |
497 | } | 494 | } |
498 | 495 | ||
499 | - LOG_ERROR("failed! \n"); | ||
500 | return FAILED; | 496 | return FAILED; |
501 | } | 497 | } |
502 | 498 | ||
@@ -532,7 +528,7 @@ int CMultiSourceProcess::SnapShot(task_param _cur_task_param) { | @@ -532,7 +528,7 @@ int CMultiSourceProcess::SnapShot(task_param _cur_task_param) { | ||
532 | #endif | 528 | #endif |
533 | LOG_INFO("SnapShot task: {} success", task_id); | 529 | LOG_INFO("SnapShot task: {} success", task_id); |
534 | } else { | 530 | } else { |
535 | - LOG_INFO("SnapShot task: {} failed !", task_id); | 531 | + LOG_ERROR("SnapShot task: {} failed !", task_id); |
536 | } | 532 | } |
537 | 533 | ||
538 | return bSnapShot; | 534 | return bSnapShot; |
@@ -1672,7 +1668,7 @@ void CMultiSourceProcess::face_locus_finished(const OBJ_KEY obj_key) { | @@ -1672,7 +1668,7 @@ void CMultiSourceProcess::face_locus_finished(const OBJ_KEY obj_key) { | ||
1672 | 1668 | ||
1673 | #ifdef POST_USE_RABBITMQ | 1669 | #ifdef POST_USE_RABBITMQ |
1674 | json_str = helpers::gen_json::gen_face_detection_json( obj_key.video_id, obj_key.obj_id, fpath_snapShotLittle, fpath_src, | 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 | #endif | 1672 | #endif |
1677 | 1673 | ||
1678 | ImgSaveInfo roi_save_info; | 1674 | ImgSaveInfo roi_save_info; |
@@ -1711,4 +1707,4 @@ int CMultiSourceProcess::recode_thread() { | @@ -1711,4 +1707,4 @@ int CMultiSourceProcess::recode_thread() { | ||
1711 | } | 1707 | } |
1712 | 1708 | ||
1713 | LOG_INFO("recode_thread end."); | 1709 | LOG_INFO("recode_thread end."); |
1714 | -} | ||
1715 | \ No newline at end of file | 1710 | \ No newline at end of file |
1711 | +} |
src/demo/Makefile
src/reprocessing_module/save_snapshot_reprocessing.cpp
@@ -103,7 +103,7 @@ void save_snapshot_reprocessing::save_img_process() { | @@ -103,7 +103,7 @@ void save_snapshot_reprocessing::save_img_process() { | ||
103 | if (callback_ != nullptr && cur_image.json_str.length() > 0) { | 103 | if (callback_ != nullptr && cur_image.json_str.length() > 0) { |
104 | // LOG_INFO("mq publish process begin"); | 104 | // LOG_INFO("mq publish process begin"); |
105 | callback_(cur_image.json_str.c_str()); | 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 | #endif | 108 | #endif |
109 | 109 |