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

Feat: Reset idDisplay and configurable fast delete #18

Closed vsaw closed 4 years ago

vsaw commented 4 years ago

Reset idDisplay

Resetting the tracker did not affect the item ID. Therefore multiple tests runs on the same file were difficult to evaluate as one had to offset the later runs to get the actual number of the items tracked.

This pull request fixes this. As it introduces a new reset function for ItemsTracked.

To prove it is working, jasmine tests with GitHub Actions are included. As GitHub does not run the checks in the opendatacam repository see the passing checks in my fork here: https://github.com/vsaw/node-moving-things-tracker/actions/runs/202256302

Configurable Fast Delete

This allows to configure if detections should be removed quickly in cases where they were detected and could not be matched afterwards.

Fast deletion can be enabled/disabled via

Tracker.setParams({ items: { fastDelete: false } });

Again passing tests can be see here https://github.com/vsaw/node-moving-things-tracker/pull/2/checks

vsaw commented 4 years ago

Obsolete. new Pull request https://github.com/opendatacam/node-moving-things-tracker/pull/19