diff --git a/deploy/lite/db_post_process.cc b/deploy/lite/db_post_process.cc index 495016bc7df5e2a901983fa8d78aecbc471f1166..0c1c8b9278a1f74857a8848a1ad6d7606e8d6415 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);