traxelgraph._graph.nodes[(t,obj)]["value"] = len(trackSet)
for t in list(labels.keys()):
if t < max(list(labels.keys())):
for source in list(labels[t].keys()):
if(misdetectionLabel not in labels[t][source]) and t+1 in list(labels.keys()):
for dest in list(labels[t+1].keys()):
After Change
// check object ids in the following framefor destination_object_id in labels[t+1].keys():
// skip if misdetection insideif (misdetectionLabel in labels[t+1][destination_object_id]):
continue intersectSet = labels[t][source_object_id].intersection(labels[t+1][destination_object_id])
lenIntersectSet = len(intersectSet)
if lenIntersectSet > 0:
if ((t, source_object_id), (t+1, destination_object_id)) not in traxelgraph._graph.edges.keys():