Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
The jstracking library is created based on tracking.js library, which is a JavaScript library bringing different computer vision algorithms and techniques into the browser environment.
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
tracking(-min).js
file.
Install via npm, or download as a zip:
npm install jstracking
If 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.
import tracking from 'jstracking'; // ES6
// Or
// const tracking = require('jstracking'); // CommonJS
const tracker = new tracking.ObjectTracker('face');
tracker.setInitialScale(4);
tracker.setStepSize(2);
tracker.setEdgesDensity(0.1);
tracking.track('#video', tracker, {
camera: true,
fps: 10,
scaled: true
});
tracker.on('track', event => {
// handle event...
});
The tracking.js library APIs are all kept, so you can refer to documentation of tracking.js for details.
The MIT License
Copyright (c) 2017 Joshua Tang
FAQs
An npm compatible modern approach for Computer Vision on the web
The npm package jstracking receives a total of 7 weekly downloads. As such, jstracking popularity was classified as not popular.
We found that jstracking demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.