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.1.0.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for prettypic-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dac62ba70157eee8bacc0c95852185d926ff69a1e16a6522ff41cb5c8ca9f3be |
|
MD5 | 6f6d315164c7060882914d524c66877b |
|
BLAKE2b-256 | a6f9c03be251b76e9692b9c459ab7e56e26bbfaf432369dc4a753caab4d1d4dd |