Ich benutze das Android-Beispiel der Cloud Vision API, ich bekomme nur eine richtige Antwort für LABEL_DETECTION, für andere wie FACE_DETECTION oder SAFE_SEARCH_DETECTION Ich bekomme nichts in meiner Antwort. HINWEIS: Ich verwende Browserschlüssel, der API-Schlüssel hat nicht funktioniert.Cloud Vision API für verschiedene API-Funktion
Ich ändere den folgenden Code .setType LABEL_DETECTION zum Beispiel FACE_DETECTION, es funktioniert nicht.
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);
}});
Alle Zeiger.