From 3218b4814853915750b34d12c9aa63df164fcaa0 Mon Sep 17 00:00:00 2001 From: lgcy <865562216@qq.com> Date: Thu, 24 Sep 2020 17:35:54 +0800 Subject: [PATCH] fix lite crash bug --- deploy/lite/db_post_process.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/lite/db_post_process.cc b/deploy/lite/db_post_process.cc index 495016bc..0c1c8b92 100644 --- a/deploy/lite/db_post_process.cc +++ b/deploy/lite/db_post_process.cc @@ -112,7 +112,7 @@ OrderPointsClockwise(std::vector> pts) { } std::vector> GetMiniBoxes(cv::RotatedRect box, float &ssid) { - ssid = std::max(box.size.width, box.size.height); + ssid = std::min(box.size.width, box.size.height); cv::Mat points; cv::boxPoints(box, points); -- GitLab