Takes a picture and finds the best color equality using machine learning. The use case this was built for was album cover backdrops, but others exist.
Project description
prettyPic
A fairly simple image utility library that has one single purpose: to extract the dominant color from an image.
Installation
pip install prettyPic
Usage
from prettypic import color_from_image
color = color_from_image('path/to/image.png')
print(color.color)
Response
color.color # (r, g, b)
color.color_as_image # PIL.Image
color.color_as_rgb # rgb(rrr, ggg, bbb)
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
prettypic-1.2.0.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for prettypic-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 436326fc2dc73291a2a2d5d605d389d95a3674374ecb85c395a9d47a99585024 |
|
MD5 | f1b41b6a68f033ca92ea52d637f48b51 |
|
BLAKE2b-256 | ff37999bd85d9716647d1882abba37cebeee531b9a4b60cf267adca217d9a032 |