Commit 3e7095cbf82d33429497a00f0c56ab28d7008f12
1 parent
8dcef6cb
添加时间戳字段
Showing
3 changed files
with
3 additions
and
1 deletions
src/ai_platform/header.h
src/ai_platform/mvpt.cpp
... | ... | @@ -576,6 +576,7 @@ void CMultiSourceProcess::vehicle_locus_finished(const OBJ_KEY obj_key) { |
576 | 576 | res_obj.ori_img_info = obj_value.snapShot; |
577 | 577 | res_obj.obj_pic_path = object_file_name; |
578 | 578 | res_obj.obj_img_info = obj_value.snapShotLittle; |
579 | + res_obj.str_ts_ms = cur_timestamp_ms; | |
579 | 580 | m_feature_analysis.update_object_info(res_obj, obj_value.snapShotLittle); |
580 | 581 | |
581 | 582 | bool bSaved = save_obj_pic(res_obj); | ... | ... |
src/demo/demo.cpp
... | ... | @@ -217,7 +217,7 @@ void show_result(ObjectData obj) |
217 | 217 | } |
218 | 218 | printf("\n"); |
219 | 219 | |
220 | - string result_path = "./res/result/" + obj.task_id + "_" + to_string(obj.object_id) + ".jpg"; | |
220 | + string result_path = "./res/result/" + obj.task_id + "_" + to_string(obj.object_id) + "_" + obj.str_ts_ms + ".jpg"; | |
221 | 221 | cv::imwrite(result_path, image); |
222 | 222 | image.release(); |
223 | 223 | } | ... | ... |