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

Create standalone dist/moving-things-tracker.js #7

Open b-g opened 6 years ago

b-g commented 6 years ago

Hi @tdurand. Do you mind if we add to package.json something like this?

"bundle": "browserify main.js --standalone tracker -o dist/moving-things-tracker.js",
"dist": "npm run bundle && browserify main.js --standalone gd | uglifyjs > dist/moving-things-tracker.min.js"

That way I believe people could use it out of the box in the browser via tracker.Tracker.updateTrackedItemsWithNewFrame ... which would be great as e.g. the create coding audience might not always be into node.js.

tdurand commented 6 years ago

Yes no problem, could you send a PR or I can do it ?