How to use kmeans of opencvjs, you can give a sampl?Tks

I wanted to quantify the color of the picture, but so far it hasn’t worked correctly