Description Usage Arguments Value References Examples
View source: R/get_color_urls.R
Get the dominant colors present in images or videos
1 | get_color_urls(img_urls = NULL, meta = FALSE, ...)
|
img_urls |
A string or character vector of URLs of images for which you want tags |
meta |
Boolean that toggles whether or not you want the entire object. Default is FALSE. When FALSE, the function returns just a data.frame of results |
... |
Additional arguments passed to |
Named list of length 3: status_code
, status_msg
, and results
.
results
is a named list of length 12. Contains information about max. and
min. image and video size allowed etc.
Prints status_msg
by default
https://developer.clarifai.com/
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# Before calling the function, set API secret and id via secret_id(c("client_id", "secret"))
# and get token via get_token()
get_color_urls("https://samples.clarifai.com/metro-north.jpg")
get_color_urls(c("https://samples.clarifai.com/metro-north.jpg",
"https://samples.clarifai.com/metro-north.jpg"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.