Skip to content

XinChen-stars/Color_Extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Color Extractor

A simple python script to extract the most common colors from an image.

Requirements

  • Python 3
  • Numpy
  • Matplotlib
  • sklearn
  • colorsys
  • pillow
  • yaml

Installation

git clone https://github.com/XinChen-stars/Color_Extractor.git

Usage

python3 color_extractor.py 

Configuration

Settings of the image can be modified in color_extraction.py. Important settings are:

  • image_folder - image source folder
  • image_name - image name with extension
  • color_folder - color output folder
  • yaml_name - color output yaml file name
  • num_colors - number of colors to extract
  • resize_factor - resize factor of the image,avoiding large images

Example

preview preview preview preview preview

Website

Find more beautiful image on:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages