Last active
September 28, 2019 21:20
-
-
Save victordibia/2c9b5b3b3aff8dd5d01f28ab23d1331e to your computer and use it in GitHub Desktop.
Load Handtrack.js (via JSdelivr)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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