giovana-morais / color_cluster Goto Github PK
View Code? Open in Web Editor NEWgroup your photos by color
group your photos by color
atualmente, os arquivos são salvos apenas como nome_do_arquivo.pkl
, independente do número de cores que foram extraídas dele.
o problema disso é que o método de clusterização (kmeans ou vector_quantization) pode se confundir ao encontrar um arquivo com nome correto, mas número de cores diferentes das que recebeu como parâmetro.
pra corrigir isso provavelmente é só passar o número de cores pro nome do arquivo, por exemplo, nome_arquivo_3.pkl
para apenas três clusters.
when a .pickle
file is in the same folder that files with image extensions, like .jpg
, .jpeg
etc etc, the program crashes because it tries to apply image functions to those files.
maybe save pickle files in another folder or just try to ignore them when reading the images.
after getting every image pallette, we need to compare it and check how similar they are, so we can group it.
nowadays, we have a method get_image_clusters
that should work, but it doesn't because of the clusters' dimension. i'm not sure if we can reuse the method or if we'll have to implement another one from scratch, but this grouping images method must be implemented.
get_image_clusters
nowadays, the pallette generated doesn't has any order and I *personally * think that the visualization may be nicer if we order it from most used color to less used.
it would be nice to standardize the code use a formatter like black
. flake8
may also be a option to have a nicer and readable code.
Pillow has a quantize method that changes image to use only the n dominant colors. despite the fact that I believe this method ALSO uses KMeans under it, I think it will be nice to try to use it too and then compare performances.
it must contain a detailed explanation about the following cases:
Usar o KMeans para fazer o agrupamento de pixels e encontar os n grupos de cores mais significativos
apart from KMeans, there are a ton of different clustering methods and it would be nice to compare the overall performance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.