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

Make optional keeping all history in memory #11

Closed tdurand closed 4 years ago

tdurand commented 5 years ago

By default we store all the tracked item in a map that grows indefinitely.. Maybe an issue with tracking things for several hours..

This should be optional so we keep memory usage very low.

Need to add a condition to the call to mapOfAllItemsTracked.set() : https://github.com/opendatacam/node-moving-things-tracker/blob/master/tracker.js#L205

tdurand commented 5 years ago

https://github.com/opendatacam/node-moving-things-tracker/commit/b82d9c6b5dee6d03d1ce63773fe6603129666a30 shoud fix it.. But didn't get the time to properly monitor