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

129
Views
Javascript image moving

I have a code that uses web camera to track body parts for the browser. I would like to be able to manipulate image on canvas with the body part coordinates (x, y ,z). If I draw canvas element like a circle and request it to track my nose it works but when I try the same thing with an image it won't move at all.

function drawImage(canvas, x, y) {
  var ctx = canvas.getContext('2d');
  var img = new Image();

    img.addEventListener('load', function(){
    ctx.drawImage(img, 0, 0);
  });
img.src = 'noIdea.jpg';
}

Here I call for the function:

 drawImage(canvasEl,nose.position.x, nose.position.y);
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!