TrackObjects solves the problem of following and identifying objects over time and assigns a unique ID to them. Useful when you get blobs from some object detection routine that doesn’t care about IDs. Send your blobs through TrackObjects to get a stable result.

If you want to track objects other than Vector2 or Vector3 you only have to provide an implementation of the adaptive Distance node for your datatype.

Not tested in the real world! (20.6 KB)
Thoughts and prayers welcome.

See also: