Skip to content

Instantly share code, notes, and snippets.

@victordibia
Last active September 28, 2019 21:20
Show Gist options
  • Save victordibia/2c9b5b3b3aff8dd5d01f28ab23d1331e to your computer and use it in GitHub Desktop.
Save victordibia/2c9b5b3b3aff8dd5d01f28ab23d1331e to your computer and use it in GitHub Desktop.
Load Handtrack.js (via JSdelivr)
<script src="https://cdn.jsdelivr.net/npm/handtrackjs/dist/handtrack.min.js"> </script>
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