Skip to content

Finding dominant color in an image(CPP and Python) with Flask

Ashwin Phadke edited this page Jan 17, 2020 · 3 revisions

Finding dominant color in an image

The program can be used to find the most dominant color/s in a given image by user. Two approaches using C++ and Python have been explored here.

Here we use a image obtained from a simple google search regarding cars with bright colors :

Original image

We get the following palette once we execute the program to find 6 dominant colors in the above given image.