diff --git a/R/googleVision-LIB.R b/R/googleVision-LIB.R index f47ca0a..23e0875 100644 --- a/R/googleVision-LIB.R +++ b/R/googleVision-LIB.R @@ -54,6 +54,9 @@ extractResponse <- function(pp, feature){ if (feature == "IMAGE_PROPERTIES") { return(pp$content$responses$imagePropertiesAnnotation[[1]]$colors) } + if (feature == "SAFE_SEARCH_DETECTION") { + return(pp$content$responses$safeSearchAnnotation) + } }