20230607
int main()
{
srand(time(0));
vector<Scalar> color;
for (int i = 0; i < class_names.size(); i++)
{
color.push_back(Scalar(rand() % 128 + 128, rand() % 128 + 128, rand() % 128 + 128));
}
string model_path = "./bestm.onnx";
Mat img1 = imread("./1.jpg");
Mat img2 = img1.clone();
vector<Obj> result;
if (detect_seg_dnn(model_path, img1, result))
{
draw_result(img1, result, color);
}
if (detect_seg_ort(model_path, img2, result))
{
draw_result(img2, result, color);
}
return 0;
}