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

95
Visualizações
Issue in the app that combines Google Cloud Vision and Algolia

An interesting configuration of Google Cloud Vision (OCR) and Algolia.

  1. A user takes a picture of an object with some text on it, the app sends it to Google Cloud Vision for OCR through the Express backend.
  2. Google Cloud Vision returns a JSON payload with the recognized text, which the backend sends to Algolia as a search query.
  3. Algolia returns a matching record, and the backend returns it to show on the front-end to a user.

But there's a problem: when started, the app throws an error:

Uncaught (in promise) SyntaxError: Unexpected token < in JSON at 
position 0
Promise.then (async)
scanLabel @script.js:69

screenshot of the error in console

Anybody can analyze the 2 files: the front-end script.js and the back-end server.js, to tell what the problem is? Thanks a lot.

The app in question is here: https://cloudvision-plus-algolia-demo.web.app

the source code is here: https://github.com/algolia-samples/image-search-ocr-with-algolia-and-google-cloud-vision

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