Google Cloud vision demo behaving differently from actual API?

孤街浪徒 提交于 2019-12-08 03:28:25

问题


The same image leads to different text detection results in the google cloud vision API demo versus the actual API. In the demo, the accuracy is much higher. More importantly, the newline behavior is more correct in the demo; blocks of text are treated as together, whereas in the API I'm using with the free trial, the ordering of the text is treated as strictly "top to bottom" with no regard for horizontal proximity. Am I doing something wrong, or is this a bug?


回答1:


It's possible that you may get a better result from detect_document_text than from detect_text. Try both APIs.




回答2:


I'd comment but I can't:

@class is right: I had the same issue with different results from the demo and the API. Changing the API request to use DOCUMENT_TEXT_DETECTION instead of TEXT_DETECTION gave comparable results in the API and demo.



来源:https://stackoverflow.com/questions/44362759/google-cloud-vision-demo-behaving-differently-from-actual-api

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