Commit 2506230a authored by oscar's avatar oscar

提交iou计算范围调整

parent a0f7c794
......@@ -278,8 +278,8 @@ double Track3DEx::CalculateIou(const std::vector<float>& data)
float v = sqrt(states[7] * states[7] + states[8] * states[8]);
cv::RotatedRect rect1 = cv::RotatedRect(cv::Point2f(states[0], states[1]), cv::Size2f(states[4] + v, states[5]*1.5f), states[3]*180 / 3.1415926);
cv::RotatedRect rect2 = cv::RotatedRect(cv::Point2f(data[1], data[2]), cv::Size2f(data[5], data[6]), data[4]*180/3.1415926);
cv::RotatedRect rect1 = cv::RotatedRect(cv::Point2f(states[0], states[1]), cv::Size2f(states[4]*1.5f + v, states[5]*2.0f), states[3]*180 / 3.1415926);
cv::RotatedRect rect2 = cv::RotatedRect(cv::Point2f(data[1], data[2]), cv::Size2f(data[5]*1.5f, data[6]*2.0f), data[4]*180/3.1415926);
uint64_t begin = GetCurTime();
double iou_3d = 0.0f;
......
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