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

141
Visualizações
How to capture error with Mediapipe camera object

I am using the mediapipe Camera object imported by '@mediapipe/camera_utils/camera_utils'

It is working fine most of the times, but sometimes an error is thrown inside this 'camera_utils' file but I don't know how to capture and handle it.

        try {
            this.camera = new Camera(this.video, {
                onFrame: recursiveCamera,
                width: width / 2,
                height: height,
            });
        } catch (error) {
            console.log('error camera mediapipe captured ', error)
        }

I am running this try/catch but even if the exception is thrown, it is not captured by the try/catch

It is easily reproducible if you throw and exception inside the 'camera_utils' file like 'throw Error("The play() request has been denied by the user")'

Thank you!!

about 4 years ago · Juan Pablo Isaza
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