自己随便练着写的,没测试,有问题请告知我修改!
#include <bits/stdc++.h>
using namespace std;
struct Bbox {
int x;
int y;
int w;
int h;
float conf;
};
bool cmp(Bbox& box1, Bbox& box2) {
return box1.conf > box2.conf;
}
float IoU(const Bbox& box1, const Bbox& box2) {
float InterBox[4