Commit 8dcef6cb154130e346d4089a798613f1cde3542b
1 parent
dd705b5c
修复detect_score值不对的问题
Showing
2 changed files
with
2 additions
and
0 deletions
src/ai_engine_module/VehiclePlate.cpp
@@ -84,6 +84,7 @@ vector<VehiclePlateResult> VehiclePlate::process(vector<DeviceMemory*> vec_gpuMe | @@ -84,6 +84,7 @@ vector<VehiclePlateResult> VehiclePlate::process(vector<DeviceMemory*> vec_gpuMe | ||
84 | res.top_ = plate_info.rect.top_; | 84 | res.top_ = plate_info.rect.top_; |
85 | res.width_ = plate_info.rect.width_; | 85 | res.width_ = plate_info.rect.width_; |
86 | res.height_ = plate_info.rect.height_; | 86 | res.height_ = plate_info.rect.height_; |
87 | + res.detect_score = plate_info.detect_score; | ||
87 | memcpy(res.recg, plate_info.recg, sizeof(PlateNum) * 8); | 88 | memcpy(res.recg, plate_info.recg, sizeof(PlateNum) * 8); |
88 | res.num_score = plate_info.num_score; | 89 | res.num_score = plate_info.num_score; |
89 | res.type = plate_info.type; | 90 | res.type = plate_info.type; |
src/demo/demo.cpp
@@ -215,6 +215,7 @@ void show_result(ObjectData obj) | @@ -215,6 +215,7 @@ void show_result(ObjectData obj) | ||
215 | printf("type: %d \n", plate_info.type); | 215 | printf("type: %d \n", plate_info.type); |
216 | printf("state:%d %f\n", plate_info.state, plate_info.state_score); | 216 | printf("state:%d %f\n", plate_info.state, plate_info.state_score); |
217 | } | 217 | } |
218 | + printf("\n"); | ||
218 | 219 | ||
219 | 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) + ".jpg"; |
220 | cv::imwrite(result_path, image); | 221 | cv::imwrite(result_path, image); |