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

161
Views
Los resultados de MediaPipe Selfie Segmentation no se invocan cuando se mueven a otras pestañas de Chrome
const videoElement =document.getElementsByClassName('input_video')[0]; selfieSegmentationObj = new SelfieSegmentation({locateFile: (file) => { return `https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/${file}`; }}); selfieSegmentationObj.setOptions({ modelSelection: 1, selfieMode: false, effect: 'mask', }); selfieSegmentationObj.onResults(selfieSegmentationResults); cameraObj = new Camera(videoElement, { onFrame: async () => { await selfieSegmentationObj.send({image: videoElement}); }, width: 1280, height: 720 }); cameraObj.start(); function selfieSegmentationResults(results) { const canvasElement = document.getElementsByClassName('output_canvas')[0]; var canvasCtx = canvasElement.getContext('2d'); canvasCtx.clearRect(0, 0, canvasElement.width, canvasElement.height); canvasCtx.save(); canvasCtx.drawImage(results.segmentationMask, 0, 0, canvasElement.width, canvasElement.height); }

Cuando pasamos de una pestaña a otra, la función de devolución de llamada "selfieSegmentationResults" no se llama desde el objeto SelfieSegmentation.

Por favor, alguien que me ayude si hay alguna otra solución que pueda obtener los datos de la imagen segmentada incluso si nos mudamos a otra pestaña de Chrome.

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!