Commit dcfeed0622eedf60800e9b150ca79dcb4cb9e7b0
1 parent
9c03cbe4
代码恢复
Showing
4 changed files
with
13 additions
and
15 deletions
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 | ||
@@ -531,6 +527,8 @@ int CMultiSourceProcess::SnapShot(task_param _cur_task_param) { | @@ -531,6 +527,8 @@ int CMultiSourceProcess::SnapShot(task_param _cur_task_param) { | ||
531 | mq_manager_->publish(mq_type_t::SCREENSHORT_TASK_MQ, json_str.c_str(), true); | 527 | mq_manager_->publish(mq_type_t::SCREENSHORT_TASK_MQ, json_str.c_str(), true); |
532 | #endif | 528 | #endif |
533 | LOG_INFO("SnapShot task: {} success", task_id); | 529 | LOG_INFO("SnapShot task: {} success", task_id); |
530 | + } else { | ||
531 | + LOG_ERROR("SnapShot task: {} failed !", task_id); | ||
534 | } | 532 | } |
535 | 533 | ||
536 | return bSnapShot; | 534 | return bSnapShot; |
@@ -1543,7 +1541,7 @@ void CMultiSourceProcess::face_locus_finished(const OBJ_KEY obj_key) { | @@ -1543,7 +1541,7 @@ void CMultiSourceProcess::face_locus_finished(const OBJ_KEY obj_key) { | ||
1543 | std::to_string(obj_key.obj_id) + "_" + cur_time2 + ".jpg"; | 1541 | std::to_string(obj_key.obj_id) + "_" + cur_time2 + ".jpg"; |
1544 | 1542 | ||
1545 | #ifdef POST_USE_RABBITMQ | 1543 | #ifdef POST_USE_RABBITMQ |
1546 | - json_str = helpers::gen_json::gen_face_detection_json( obj_key.video_id, obj_key.obj_id, fpath_src, fpath_snapShotLittle, | 1544 | + json_str = helpers::gen_json::gen_face_detection_json( obj_key.video_id, obj_key.obj_id, fpath_snapShotLittle, fpath_src, |
1547 | obj_value.position, obj_value.confidence, obj_value.landmark_point, 25); | 1545 | obj_value.position, obj_value.confidence, obj_value.landmark_point, 25); |
1548 | #endif | 1546 | #endif |
1549 | 1547 |
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 |
src/tsl_aiplatform_jni/AiEngineNativeInterface.cpp
@@ -353,7 +353,7 @@ JNIEXPORT jint JNICALL Java_com_objecteye_nativeinterface_TSLAiEngineNativeInter | @@ -353,7 +353,7 @@ JNIEXPORT jint JNICALL Java_com_objecteye_nativeinterface_TSLAiEngineNativeInter | ||
353 | 353 | ||
354 | switch (static_cast<algorithm_type_t>(algorConfigParam_algorType)) { | 354 | switch (static_cast<algorithm_type_t>(algorConfigParam_algorType)) { |
355 | case algorithm_type_t::FACE_SNAPSHOT: | 355 | case algorithm_type_t::FACE_SNAPSHOT: |
356 | - printf("FACE_SNAPSHOT result_folder: %s result_folder_little: %s \n", algor_basic_param->result_folder, algor_basic_param->result_folder_little); | 356 | + // printf("FACE_SNAPSHOT result_folder: %s result_folder_little: %s \n", algor_basic_param->result_folder, algor_basic_param->result_folder_little); |
357 | case algorithm_type_t::HUMAN_SNAPSHOT: | 357 | case algorithm_type_t::HUMAN_SNAPSHOT: |
358 | case algorithm_type_t::VEHICLE_SNAPSHOT: | 358 | case algorithm_type_t::VEHICLE_SNAPSHOT: |
359 | case algorithm_type_t::NONMOTOR_VEHICLE_SNAPSHOT: { | 359 | case algorithm_type_t::NONMOTOR_VEHICLE_SNAPSHOT: { |
src/util/JpegUtil.cpp
@@ -64,7 +64,7 @@ int32_t JpegUtil::jpege_save(char* pcData , uint32_t dataLen, string out_file_na | @@ -64,7 +64,7 @@ int32_t JpegUtil::jpege_save(char* pcData , uint32_t dataLen, string out_file_na | ||
64 | FILE* fd = nullptr; | 64 | FILE* fd = nullptr; |
65 | fd = fopen(out_file_name.c_str(), "wb"); | 65 | fd = fopen(out_file_name.c_str(), "wb"); |
66 | if (fd == nullptr) { | 66 | if (fd == nullptr) { |
67 | - LOG_ERROR("open output file err\n"); | 67 | + LOG_ERROR("open output file err"); |
68 | return 1; | 68 | return 1; |
69 | } | 69 | } |
70 | 70 |