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.0.0.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for prettypic-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b4cf6a71011e393c7888bde5709db924a2ae3f5f7da9087bff32415df14ef9c |
|
MD5 | d09c381b04e0bd71adb466c9df5f769c |
|
BLAKE2b-256 | da971c1fc536b19201dbaaef7a591360addf67c56543c53bb1bf0589a5064126 |