Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

178
Views
Drawing key points on a pose estimation model

I am using Googles MoveNet for my pose estimation model. The prediction works perfect, but I want to draw rectangles on the key points using the canvas function. I tried the below code but it is not working. It doesn't throw any error either.

const detectpose = async () => {
  const poses = await detector.estimatePoses(video, false);
  console.log(poses);
  ctx.drawImage(video, 0, 0, 600, 400);
  poses.forEach((pred) => {
    const key = pred.keypoints;
    for (let i = 0; i < key.length; i++) {
      const x = key[i][0];
      const y = key[i][1];

      ctx.beginPath();
      ctx.rect(x, y, 40, 40);
      ctx.fillStyle = "blue";
      ctx.fill();
    }
  });
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!