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);
}});
任何指針。