human/demo/tracker
Vladimir Mandic 42dfe18736 update face roll/pitch/yaw math 2024-09-11 12:13:03 -04:00
..
README.md initial work on tracker 2023-04-03 10:36:01 -04:00
index.html initial work on tracker 2023-04-03 10:36:01 -04:00
index.js update face roll/pitch/yaw math 2024-09-11 12:13:03 -04:00
index.js.map update face roll/pitch/yaw math 2024-09-11 12:13:03 -04:00
index.ts initial work on tracker 2023-04-03 10:36:01 -04:00
tracker.js initial work on tracker 2023-04-03 10:36:01 -04:00

README.md

Tracker

Based on

https://github.com/opendatacam/node-moving-things-tracker

Build

  • remove reference to lodash:

    isEqual in <tracker.js>

  • replace external lib:

    curl https://raw.githubusercontent.com/ubilabs/kd-tree-javascript/master/kdTree.js -o lib/kdTree-min.js

  • build with esbuild:

    node_modules/.bin/esbuild --bundle tracker.js --format=esm --platform=browser --target=esnext --keep-names --tree-shaking=false --analyze --outfile=/home/vlado/dev/human/demo/tracker/tracker.js --banner:js="/* eslint-disable */"

Usage

computeDistance(item1, item2)
disableKeepInMemory()
enableKeepInMemory()
getAllTrackedItems()
getJSONDebugOfTrackedItems(roundInt = true)
getJSONOfAllTrackedItems()
getJSONOfTrackedItems(roundInt = true)
getTrackedItemsInMOTFormat(frameNb)
reset()
setParams(newParams)
updateTrackedItemsWithNewFrame(detectionsOfThisFrame, frameNb)