Commit 8dcef6cb154130e346d4089a798613f1cde3542b

Authored by Hu Chunming
1 parent dd705b5c

修复detect_score值不对的问题

src/ai_engine_module/VehiclePlate.cpp
... ... @@ -84,6 +84,7 @@ vector<VehiclePlateResult> VehiclePlate::process(vector<DeviceMemory*> vec_gpuMe
84 84 res.top_ = plate_info.rect.top_;
85 85 res.width_ = plate_info.rect.width_;
86 86 res.height_ = plate_info.rect.height_;
  87 + res.detect_score = plate_info.detect_score;
87 88 memcpy(res.recg, plate_info.recg, sizeof(PlateNum) * 8);
88 89 res.num_score = plate_info.num_score;
89 90 res.type = plate_info.type;
... ...
src/demo/demo.cpp
... ... @@ -215,6 +215,7 @@ void show_result(ObjectData obj)
215 215 printf("type: %d \n", plate_info.type);
216 216 printf("state:%d %f\n", plate_info.state, plate_info.state_score);
217 217 }
  218 + printf("\n");
218 219  
219 220 string result_path = "./res/result/" + obj.task_id + "_" + to_string(obj.object_id) + ".jpg";
220 221 cv::imwrite(result_path, image);
... ...