While, the original tracking.js library is not written in CommonJS or ES6 modules,
which leads to difficulty in using the library in modern ES6 and Node.js
development. The jstracking library solves the problem by rewriting the tracking.js
library in CommonJS modules, so it is totally npm compatible, and can also be
used by Node.js programs. Additionally, all of the tracking.js APIs are kept, so
it's very simple to upgrade any code using tracking.js: just replace
npm install jstracking
tracking(-min).js is embedded in HTML, the usage of jstracking is the same
as that of tracking.js.
For ES6 or CommonJS modules, an example of usage is shown below.
; // ES6// Or// const tracking = require('jstracking'); // CommonJSconst tracker = 'face';tracker;tracker;tracker;tracking;tracker;
The tracking.js library APIs are all kept, so you can refer to documentation of tracking.js for details.
- Written in CommonJS modules.
- Auto-scaling option to boost performance, especially for large videos/images.
- FPS option to set tracking count in one second.
The MIT License
Copyright (c) 2017 Joshua Tang