opendatacam / node-moving-things-tracker

javascript implementation of "tracker by detections" for realtime multiple object tracking (MOT)
MIT License
105 stars 25 forks source link

Tracker fails to track objects that are close to each other but distinct from another #29

Open vsaw opened 2 years ago

vsaw commented 2 years ago

Looking at the following Darknet JSON Stream, the one can see that darknet detects two persons close to each other, yet clearly distinct from another. The tracker however merges both objects into one, thus erasing one object from the scene.

{
 "frame_id":1137132, 
 "objects": [ 
  {"class_id":0, "name":"person", "relative_coordinates":{"center_x":0.447100, "center_y":0.315462, "width":0.033928, "height":0.115056}, "confidence":0.670621}, 
  {"class_id":0, "name":"person", "relative_coordinates":{"center_x":0.472682, "center_y":0.296385, "width":0.028619, "height":0.118678}, "confidence":0.289695}
 ] 
}, 
{
 "frame_id":1137133, 
 "objects": [ 
  {"class_id":0, "name":"person", "relative_coordinates":{"center_x":0.447339, "center_y":0.313765, "width":0.035581, "height":0.126710}, "confidence":0.582253}, 
  {"class_id":0, "name":"person", "relative_coordinates":{"center_x":0.471141, "center_y":0.292986, "width":0.028312, "height":0.126107}, "confidence":0.308533}
 ] 
}, 
{
 "frame_id":1137134, 
 "objects": [ 
  {"class_id":0, "name":"person", "relative_coordinates":{"center_x":0.452491, "center_y":0.302588, "width":0.030738, "height":0.136299}, "confidence":0.546889}, 
  {"class_id":0, "name":"person", "relative_coordinates":{"center_x":0.469706, "center_y":0.294295, "width":0.027532, "height":0.124118}, "confidence":0.533913}
 ] 
}