Commit 63dee96d authored by oscar's avatar oscar

提交计算2d的iou

parent 9b6822ef
......@@ -240,8 +240,9 @@ double Track3D::CalculateIou(const std::vector<float>& data)
}
if (interHeight > 0)
{
double inter3D = area * interHeight;
iou_3d = inter3D / (states[4] * states[5] * states[6] + data[5] * data[6] * data[7] - inter3D);
//double inter3D = area * interHeight;
//iou_3d = inter3D / (states[4] * states[5] * states[6] + data[5] * data[6] * data[7] - inter3D);
iou_3d = area / (states[4] * states[5] + data[5] * data[6]);
}
}
//SDK_LOG(SDK_INFO, "CuboidIoU time = %llu", GetCurTime() - begin);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment