1
我使用的是云视觉API的android示例,我只对LABEL_DETECTION获取适当的响应,对于任何其他像FACE_DETECTION或SAFE_SEARCH_DETECTION,我在我的响应中什么都没有。 注意:我正在使用浏览器密钥,API密钥不起作用。针对不同API特性的云视觉API
我正在更改下面的代码.setType LABEL_DETECTION为例如FACE_DETECTION,它不工作。
https://github.com/GoogleCloudPlatform/cloud-vision/tree/master/android
// add the features we want
annotateImageRequest.setFeatures(new ArrayList<Feature>() {{
Feature labelDetection = new Feature();
labelDetection.setType("LABEL_DETECTION");
labelDetection.setMaxResults(10);
add(labelDetection);
}});
任何指针。