Skip to content

Instantly share code, notes, and snippets.

@victordibia
Created September 28, 2019 21:20
Show Gist options
  • Save victordibia/11d54557971ac8d38fc4569b37b61849 to your computer and use it in GitHub Desktop.
Save victordibia/11d54557971ac8d38fc4569b37b61849 to your computer and use it in GitHub Desktop.
Handtrack.js (via NPM)
\\ npm install --save handtrackjs
import * as handTrack from 'handtrackjs';
const img = document.getElementById('img');
// Load the model.
const img = document.getElementById('img');
handTrack.load().then(model => {
model.detect(img).then(predictions => {
console.log('Predictions: ', predictions) // bbox predictions
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment