基本上在标题中,我一直在尝试通过android使用Google Cloud Vision API,因为我正在尝试制作一个应用程序,例如,它将允许用户扫描游戏的名称,该应用程序将检测游戏或对象的名称,然后移动到与JSON中给出的名称相对应的活动或网页。唯一的问题是,我无法在android应用程序中获得JSON,我不确定为什么,我听说在android应用程序上不可能,但我不是100%确定。我想知道是否有人能够证实这一点,或者是否有任何替代我的解决方案,因为我开始撕裂我的头发。
发布于 2017-12-31 23:32:31
如果您想要JSON的完整字符串,只需获取:
BatchAnnotateImagesResponse response = annotateRequest.execute();然后:
System.out.println(response.toString()); //this will print the JSONhttps://stackoverflow.com/questions/47368685
复制相似问题