Results locale from Cloud Vision API using TEXT_DETECTION

别等时光非礼了梦想. 提交于 2019-12-02 07:55:49

问题


I'm using npm node-cloud-vision-api

API correctly detects language of the document but the results characters are returned in western character subset not corresponding to a locale. I assume they should be returned in UTF-8 characters but all the locale specific characters are mapped into basic western character subset.

For example:

Wartosc is return insted of Wartość

How to instruct the API to return correct UTF-8 characters?


回答1:


Have you tried passing in a language hint to the OCR Detection call. Please follow the below API Reference. https://cloud.google.com/vision/reference/rest/v1/images/annotate#AnnotateImageRequest




回答2:


As written here it is a known issue with the Cloud Vision API when you don't use language hints.

You can see the actual bug report here.



来源:https://stackoverflow.com/questions/35553319/results-locale-from-cloud-vision-api-using-text-detection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!