Hello @Jason , thank you . A rookie mistake by me . It helps me , better now to understand how the keypoints are accessed . Three additional questions

Is there a normalized way of getting the keypoints ? Or one has to normalize them in future ?
I tried to do a full screen mode (that is making the canvas size equal to the width and height of the video but i noticed that the overlaid skeleton is not upto the mark , It seems the skeletons are displayed in different scale. I have seen that you  explained it in another thread but i could not quite understand it . It feels like the the skeleton did not get scaled . Is there a way to overcome this issue . Attaching the snippet and also the picture . (Drawinf function - image(video, 0, 0,windowWidth, windowHeight);

Any suggestions to overcome the jitters ? Increasing the confidence scores sometimes does not seem to workout that well.


    let detector;
    let poses;
    let video;

    async function init() {
      const detectorConfig = {
        modelType: poseDetection.movenet.modelType.SINGLEPOSE_LIGHTNING,enableSmoothing:1,
      };
      detector = await poseDetection.createDetector(
        poseDetection.SupportedModels.PoseNet,
        detectorConfig
      );
    }

    async function videoReady() {
      console.log("video ready");
      await getPoses();
    }

    async function setup() {
      createCanvas(windowWidth, windowHeight);
      
      video = createCapture(VIDEO, videoReady);
      console.log(video.height);
      video.hide();
      await init();
    }

    async function getPoses() {
      poses = await detector.estimatePoses(video.elt);
      //console.log(poses);
      setTimeout(getPoses, 0);
    }

    function draw() {
      background(220);
      image(video, 0, 0,windowWidth, windowHeight);
      if (poses && poses.length > 0) {
        for (let kp of poses[0].keypoints) {
          const { x, y, score } = kp;
          if (score > 0.5) {
            fill(255);
            stroke(0);
            strokeWeight(4);
            circle(x, y, 16);
            
            
            
            
          }
        }
      }
    }