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

326
Vistas
Hola, traté de implementar la detección de marcas faciales usando mediapipe

Pero el problema es que quiero deshacerme del video y mostrar solo los puntos de referencia por separado. Traté de crear un nuevo lienzo para hacer lo mismo, pero algo anda mal. Por favor, ayúdame.

El código:

 const detect = async (net) => { if ( typeof webcamRef.current !== "undefined" && webcamRef.current !== null && webcamRef.current.video.readyState === 4 ) { // Get Video Properties const video = webcamRef.current.video; const videoWidth = webcamRef.current.video.videoWidth; const videoHeight = webcamRef.current.video.videoHeight; // Set video width webcamRef.current.video.width = videoWidth; webcamRef.current.video.height = videoHeight; // Make Detections // OLD MODEL // const face = await net.estimateFaces(video); // NEW MODEL const face = await net.estimateFaces({input:video}); console.log(face); // Get canvas context const ctx = canvasRef.current.getContext("2d"); const ctx1 = canvasRef1.current.getContext("2d"); requestAnimationFrame(()=>{drawMesh(face,ctx,ctx1)}); } }; useEffect(()=>{runFacemesh()}, []); return ( <div className="App"> <header className="App-header"> <Webcam ref={webcamRef} style={{ position: "absolute", marginLeft: "auto", marginRight: "auto", left: 0, right: 0, textAlign: "center", zindex: 9, width: 1000, height: 1000, display: "flex" }} /> <canvas ref={canvasRef} style={{ position: "absolute", marginLeft: "auto", marginRight: "auto", left: 0, right: 0, textAlign: "center", zindex: 9, width: 640, height: 480, flex: 1 }} /> <canvas ref={canvasRef1} style={{ position: "absolute", marginLeft: "auto", marginRight: "auto", left: 0, right: 0, textAlign: "center", zindex: 9, width: 640, height: 480, flex:1 }} /> </header> </div> ); }
about 4 years ago · Santiago Gelvez
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