Skip to content

Instantly share code, notes, and snippets.

@RomainMaillot13
Created November 2, 2018 13:28
Show Gist options
  • Save RomainMaillot13/6d3b3678d009c7a9786816f95b5ec1df to your computer and use it in GitHub Desktop.
Save RomainMaillot13/6d3b3678d009c7a9786816f95b5ec1df to your computer and use it in GitHub Desktop.
Algorithm one person
const imageScaleFactor = 0.50;
const flipHorizontal = false;
const outputStride = 16;
const imageElement = document.getElementById('cat');
// load the posenet model
const net = await posenet.load();
const pose = await net.estimateSinglePose(imageElement, scaleFactor, flipHorizontal, outputStride);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment