Skip to content

Commit 6c2909d

Browse files
authored
Update googleVision-LIB.R
added more extensions
1 parent 86d9bad commit 6c2909d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

R/googleVision-LIB.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ extractResponse <- function(pp, feature){
5252
if (feature == "LANDMARK_DETECTION") {
5353
return(pp$content$responses$landmarkAnnotations[[1]])
5454
}
55+
if (feature == "IMAGE_PROPERTIES") {
56+
return(pp$content$responses$imagePropertiesAnnotation[[1]])
57+
}
58+
if (feature == "SAFE_SEARCH_DETECTION") {
59+
return(pp$content$responses$safeSearchAnnotation)
60+
}
5561
if (feature == "OBJECT_LOCALIZATION") {
5662
return(pp$content$responses$localizedObjectAnnotations[[1]])
5763
}

0 commit comments

Comments
 (0)