clarifai (version 0.4.2)

get_color: Get the dominant colors present in images or videos

Description

Get the dominant colors present in images or videos

Usage

get_color(file_paths = NULL, ...)

Arguments

file_paths
a vactor of paths to image file(s) for which you want tags
Additional arguments passed to clarifai_POST.

Value

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

References

https://developer.clarifai.com/

Examples

Run this code
## 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(file_paths="path_to_image")
## ---------------------------------------------

Run the code above in your browser using DataLab