Find main colours by k-means.
1 | k.colors(img, num = 5, seed = 42)
|
img |
A 2D or 3D array. 3D arrays will be transformed into 2D. |
num |
Number of colours to extract. |
seed |
Seed for k-means. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.