You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You should see the doc that get_color function mentioned, the bigger the number, the faster a color will be returned but the greater the likelihood that it will not be the visually most dominant color.
So the best way to get dominant color is to change class CMap's palette function in colorthief.py like below
Take the following image: https://ibb.co/R3dnBpz
Calling using: dominant_color = color_thief.get_color(quality=1)
The dominant color is clearly yellow (244, 237, 12) but it returns (28, 51, 49).
The text was updated successfully, but these errors were encountered: