title: Extracting keypoints from posenet to a json file?
body: <p>I am looking into the tensorflow implementation of posenet to do pose estimation in real time and also if possible in an offline mode. I am looking into the following repo : </p>
  
  <blockquote>
    <p><a href="https://github.com/tensorflow/tfjs-models/tree/master/posenet" rel="nofollow noreferrer">https://github.com/tensorflow/tfjs-models/tree/master/posenet</a> </p>
  </blockquote>
  
  <p>The keypoints are read out in the following function in the following section of code </p>
  
  <pre><code>    export function drawKeypoints(keypoints, minConfidence, ctx, scale = 1) {
    for (let i = 0; i &lt; keypoints.length; i++) {
      const keypoint = keypoints[i];
  
      if (keypoint.score &lt; minConfidence) {
        continue;
      }
  
      const {y, x} = keypoint.position;
      drawPoint(ctx, y * scale, x * scale, 3, color);
    }
  }
  </code></pre>
  
  <p><a href="https://github.com/tensorflow/tfjs-models/blob/master/posenet/demos/demo_util.js" rel="nofollow noreferrer">https://github.com/tensorflow/tfjs-models/blob/master/posenet/demos/demo_util.js</a></p>
  
  <p>I was looking into the possibility to extract the keypoints to a json file and if it was possible to do so ? </p>
  
  <p>Any tips on this regard would be very helpful . </p>