Merge pull request #840 from lgcy/lgc_dev

fix lite crash bug
This commit is contained in:
Double_V 2020-09-25 10:31:53 +08:00 committed by GitHub
commit 0c8bdc0885
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,7 @@ OrderPointsClockwise(std::vector<std::vector<int>> pts) {
}
std::vector<std::vector<float>> 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);