Nothing
find_dominant_colour <- function(image) {
image_as_integer <- as.integer(image[[1]])
image_df <- data.frame(red = c(image_as_integer[,,1]), green = c(image_as_integer[,,2]), blue = c(image_as_integer[,,3]))
kmeans_cluster_means <- kmeans(image_df, 1)$centers
output <- rgb(kmeans_cluster_means/255)
return(output)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.