Skip to content

Extracted 5-colour palettes from a dataset of 541 images of Fall 2021 Couture Fashion shows and visualized them using unsupervised learning algorithms.

Notifications You must be signed in to change notification settings

Aadit3003/colour-palette-extraction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Colour Palette extraction using Unsupervised Learning

This project explores innovative ways to explore relations between colour palettes in collections of images, using unsupervised machine learning algorithms from the Sci-kit library(K-Means clustering, Kernel PCA and t-SNE).

Code

The source code is split into two parts:

  1. Python code to extract a 5-Colour Hexadecimal Palette from an image.
  2. Python code to visualise the relation between a list of the above extracted palettes.

The 5 colour palettes were extracted by converting the image to a 2D matrix of RGB Values(Nx3), which was used as input for the Mini Batch K-Means Clustering algorithm to return the colours(hex) from the five cluster centers.

  • Here are some examples:

Palette Examples

  • (Top: Schiaparelli Fall 21 Couture (Look 23))
  • (Bottom: Van Gogh-Sunflowers (fourth version))

A list of the 5 colour palettes obtained above, were visualised using 2 dimensionality reduction techniques. For the following visualisation, a dataset of 541 images, from multiple Fall 2021 Couture Fashion shows was used.

Kernel PCA

The RBF Kernel PCA algorithm was able to separate the palettes with darker colours from those with lighter colours, but grouped together palettes with saturated colours. FW 21 Kernel PCA

t-SNE

The t-SNE algorithm was more successful in grouping the palettes with similar colours and separating visually distinct palettes(such as the greens and pinks). FW 21 t-SNE

3) Possible Applications

i) Streaming Service Recommendations

  • Colour palettes of video thumbnails could be used to recommend similar videos to users.
  • For the following visualisation, palettes from a random sample of 149 Netflix thumbnails were used. Netflix
  • (Top Left: RuPaul's Drag Race All Stars)
  • (Bottom Right: Bo Bunrham: Inside)

ii) Fashion Trend Visualisation

  • Designers could use colour palettes used in top fashion shows to gain insights about fashion trends.
  • For the following visualisation, a dataset of 541 images, from multiple Fall 2021 Couture Fashion shows was used. Fall 21 Couture
  • (Top Left: Valentino Fall Couture 21 Look 12)
  • (Bottom Right: Schiaparelli Fall Couture 21 Look 20)

iii) Other Potential Applications

The concept explored in this project could have interesting applications in many fields like social media analytics, human computer interaction, art trends and so on. For example:

  1. Social media photo trend visualisation.
  2. Innovative visualisation of art pieces from different time periods.
  3. Classifying different kinds of flora by their colour.

About

Extracted 5-colour palettes from a dataset of 541 images of Fall 2021 Couture Fashion shows and visualized them using unsupervised learning algorithms.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages