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

295
Visualizações
Google Vision API detects right characters from a language but shows a different language as detected

I'm trying to get Google Vision API to detect the Language "Dhivehi" (languageHints Code 'dv') which is Listed under Experimental Languages in their OCR Language Support page.

Despite the service detecting characters from the language (characters only unique to the language) there isn't a single detection of "dv" in the JSON result. Adding or removing the Language hints doesn't seem to affect the results.

In addition, from the JSON result, the detectedLanguages property only shows "en" with very low confidence

"property": {
    "detectedLanguages": [
        {
            "languageCode": "en",
            "confidence": 0.11
        }
     ],
     "detectedBreak": null
},

Second attempt showed a confidence score of 0.12. So its consistently low.

This is my current implementation of the API (only the relevant part included)

 // ...paths   

 Feature feature = new Feature
 {
    Type = Feature.Types.Type.DocumentTextDetection
 };

 // create an imageContext class and add the languageHints code to it
 var imageContext = new ImageContext();
 imageContext.LanguageHints.Add("dv");

 // inputConfig and outputConfig are defined above
 var asyncRequest = new AsyncAnnotateFileRequest() { InputConfig = inputConfig, OutputConfig = outputConfig, ImageContext = imageContext };
 asyncRequest.Features.Add(feature);

  // create and execute requests
 List<AsyncAnnotateFileRequest> requests = new List<AsyncAnnotateFileRequest>();
 requests.Add(asyncRequest);

 var client = ImageAnnotatorClient.Create();
 var operation = client.AsyncBatchAnnotateFiles(requests);

 operation.PollUntilCompleted();

This behavior seems like a bug but posting here to be sure I haven't missed out anything

over 4 years ago · Santiago Trujillo
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