posenet/demos/coco.js
function drawSinglePoseResults(pose) {
  const canvas = singlePersonCanvas();
  drawResults(
      canvas, [pose], guiState.singlePoseDetection.minPartConfidence,
      guiState.singlePoseDetection.minPoseConfidence);

  const {part, showHeatmap, showOffsets} = guiState.visualizeOutputs;
  // displacements not used for single pose decoding
  const showDisplacements = false;
  const partId = +part;

  visualizeOutputs(
      partId, showHeatmap, showOffsets, showDisplacements,
      canvas.getContext('2d'));
}
function drawSinglePoseResults(pose) {
  const canvas = singlePersonCanvas();
  drawResults(
      canvas, [pose], guiState.singlePoseDetection.minPartConfidence,
      guiState.singlePoseDetection.minPoseConfidence);

  const {part, showHeatmap, showOffsets} = guiState.visualizeOutputs;
  // displacements not used for single pose decoding
  const showDisplacements = false;
  const partId = +part;

  visualizeOutputs(
      partId, showHeatmap, showOffsets, showDisplacements,
      canvas.getContext('2d'));
}
function drawSinglePoseResults ( pose ) { const canvas = singlePersonCanvas ( ) ; drawResults ( canvas , [ pose ] , guiState . singlePoseDetection . minPartConfidence , guiState . singlePoseDetection . minPoseConfidence ) ; const { part , showHeatmap , showOffsets } = guiState . visualizeOutputs ; // displacements not used for single pose decoding const showDisplacements = false ; const partId = + part ; visualizeOutputs ( partId , showHeatmap , showOffsets , showDisplacements , canvas . getContext ( '2d' ) ) ; }
Draw the results from the single-pose estimation on to a canvas
Draw the results from the single - pose estimation on to a canvas