Algorithm 3 Independent object tracking |
Input: Output: 1: 2: ► number of objects at previous frame 3: ► number of objects at current frame 4: ► An array that stores distances between all objects 5: 6: 7: 8: 9: 10: ► object k: closest object to object i 11: ► if below distance threshold: 12: ► assume k and i is the same object (tracking success) 13: ► Increase tracked length 14: 15: 16: ► Mark as lost if no object is nearby 17: 18: 19: ► assign new ID if new object is detected 20: 21: ► If tracked longer than threshold 22: ► Approve as true object 23: |