From 8dcef6cb154130e346d4089a798613f1cde3542b Mon Sep 17 00:00:00 2001 From: cmhu <2657262686@qq.com> Date: Thu, 27 Mar 2025 16:18:02 +0800 Subject: [PATCH] 修复detect_score值不对的问题 --- src/ai_engine_module/VehiclePlate.cpp | 1 + src/demo/demo.cpp | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/ai_engine_module/VehiclePlate.cpp b/src/ai_engine_module/VehiclePlate.cpp index 3aaeb30..c496b24 100644 --- a/src/ai_engine_module/VehiclePlate.cpp +++ b/src/ai_engine_module/VehiclePlate.cpp @@ -84,6 +84,7 @@ vector VehiclePlate::process(vector vec_gpuMe res.top_ = plate_info.rect.top_; res.width_ = plate_info.rect.width_; res.height_ = plate_info.rect.height_; + res.detect_score = plate_info.detect_score; memcpy(res.recg, plate_info.recg, sizeof(PlateNum) * 8); res.num_score = plate_info.num_score; res.type = plate_info.type; diff --git a/src/demo/demo.cpp b/src/demo/demo.cpp index 320bb1e..babbeb7 100755 --- a/src/demo/demo.cpp +++ b/src/demo/demo.cpp @@ -215,6 +215,7 @@ void show_result(ObjectData obj) printf("type: %d \n", plate_info.type); printf("state:%d %f\n", plate_info.state, plate_info.state_score); } + printf("\n"); string result_path = "./res/result/" + obj.task_id + "_" + to_string(obj.object_id) + ".jpg"; cv::imwrite(result_path, image); -- libgit2 0.21.4