Track several named points over time, eg a TensorFlow body pose point.
Call seen() to track a point. Mutable. If you want to compare
a single coordinate with a reference coordinate, point may be a better choice.
// Track a point under a given id document.addEventListener(`pointermove`, e=> { constinfo = awaitpt.seen(e.pointerId, { x:e.x, y:e.y }); // Yields some info on relation of the point to initial value });
Track several named points over time, eg a TensorFlow body pose point. Call
seen()
to track a point. Mutable. If you want to compare a single coordinate with a reference coordinate, point may be a better choice.See also:
Basic usage
Do something with last values for all points
More functions...
Accessing by id:
Iterating over data
You can work with 'most recently updated' points:
Options:
id
: Id of this tracker. OptionalsampleLimit
: How many samples to storestoreIntermediate
: If true, all points are stored internallyresetAfterSamples
: If set above 0, it will automatically reset after the given number of samples have been seen