Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change clustering method used to find distinct colors in album artwork #3

Open
davidkrantz opened this issue Oct 19, 2019 · 2 comments
Labels
enhancement New feature or request Hacktoberfest

Comments

@davidkrantz
Copy link
Owner

davidkrantz commented Oct 19, 2019

Right now the K-means clustering method is used to find K distinct colors from the album artwork. This method has its flaws, more specifically:

  • Need to know K (how many distinct colors the image have)
  • Always learns convex clusters
  • Sensitive to outliers

Therefore, the accuracy of the system could potentially be significantly increased by changing the clustering method. Potential clustering methods include DBSCAN and HDBSCAN, where the latter probably is the better choice as it allows clusters of different densities, is efficient and only requires one parameter, namely the minimum cluster size.

The clustering takes place in the file spotify_background_color.py in the method best_color. When evaluating different clustering methods, the plotting feature of this method might be of use. This can be activated by simply setting the argument plot=True.

@davidkrantz davidkrantz added the enhancement New feature or request label Apr 2, 2020
@Pixeled99
Copy link

Hello, I was wondering if you had found any for this yet? I am also having trouble with accuracy and speed with KMeans

@davidkrantz
Copy link
Owner Author

Hi! I have not tried this yet and no one is working on this issue at the moment, so feel free to give it a go! Nowadays, there might even exist new better suitable clustering methods than the two I mentioned above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants