Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

317
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda