DEV Community


Colour Quantization Using K-Means Clustering and OpenCV

Mrinal Walia
If you are reading this blog, I am sure that we share similar interests and will be in similar industries. I have worked on various projects which involve ML/AI/CV and also written blogs.
・1 min read

Topic: Colour Quantization Using K-Means Clustering and OpenCV

Have you ever wondered how we can implement a machine learning algorithm on the pixel intensity value with a common K-means clustering algorithm?

In this method, we would generate a compressed variant of our picture with more scattered colours. The image will be processed in a lower intensity resolution, whereas the fraction of pixels will prevail. This procedure is very interesting, so I expect that you will like it.

This article can appear as a particularly impressive and unexpected one, so here is the link to the article, please have a read and hope you like it.

algorithms #technology #machinelearning #datascience #artificialintelligence #python #kmeans #clustering #opencv #imageprocessing #computervision

Discussion (0)