Image color clustering library for extracting N dominant colors from image
Project description
ImageToColors
ImageToColors is a Image color clustering library for extracting N dominant colors from image.
Installation
Use the package manager pip to install ImageToColors.
pip install ImageToColors
Usage
from ImageToColors.ImageToColors import *
img = "image.jpg" # .png or .jpg
clust = 5 # Cluster value nothing but the how many dominant colors user want to extract
#to print extracted colors list use ExtractColors() function
HEXlist= ExtractColors(img,clust)
print(HEXlist)
# To convert Hex color list to RGB use HEXtoRGB
RGBlist = HEXtoRGB(HEXlist)
print(RGBlist)
#For graphical analysis use ClusterAnalysis()
ClusterAnalysis(HEXlist)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Distributed under the MIT License. See LICENSE for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ImageToColors-0.1.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for ImageToColors-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eaa3d8ac23d1efa08c15f15921fd1cab4bb0fb0c47957abd00a09ad14b76587 |
|
MD5 | 664c19de2b32d01d5015bc245664e23f |
|
BLAKE2b-256 | 41b8f6fd73461b86344bb45577279bcd9dbf4c0d3a059973c6e4768a84b182c1 |