Skip to main content

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

MIT

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prettypic-1.2.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file prettypic-1.2.0.tar.gz.

File metadata

  • Download URL: prettypic-1.2.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-1041-azure

File hashes

Hashes for prettypic-1.2.0.tar.gz
Algorithm Hash digest
SHA256 12825815bf12d6e23a459cf39354e76b05ab3cf16294945d692f235e4594ad88
MD5 36b22c3533c3368ad4a8f7f01431f834
BLAKE2b-256 6f73b66f5a3699a2b2caf987160121c72d4dce91b3ef643c4926e5210bbc440c

See more details on using hashes here.

File details

Details for the file prettypic-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: prettypic-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-1041-azure

File hashes

Hashes for prettypic-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 436326fc2dc73291a2a2d5d605d389d95a3674374ecb85c395a9d47a99585024
MD5 f1b41b6a68f033ca92ea52d637f48b51
BLAKE2b-256 ff37999bd85d9716647d1882abba37cebeee531b9a4b60cf267adca217d9a032

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page