Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

130
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda