Commit 3e3215bb authored by oscar's avatar oscar

update

parent c03b5980
......@@ -98,17 +98,24 @@ double Track3DEx::CalculateIou(const std::vector<float>& data)
int obj_cameraId = m_obj->cameraId;
int obj_trackingId = m_obj->trackingId;
if(obj_cameraId > 0 && obj_trackingId > 0)
if(input_dataSource == obj_dataSource && obj_cameraId > 0 && obj_trackingId > 0)
{
if(obj_cameraId == input_cameraId && input_trackingId == obj_trackingId)
{
return 1.0f;
}
}
else if(obj_cameraId > 0 && obj_trackingId > 0)
{
if(obj_cameraId == input_cameraId && input_trackingId == obj_trackingId)
{
return 0.1f;
}
}
int input_type = data[0];
int obj_type = m_obj->type;
if (input_type != obj_type)
return 0.0f;
// if (input_type != obj_type)
// return 0.0f;
std::vector<float> states;
GetStateData(states);
......
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