Get the most frequent color from an image
Project description
Dominant Image Color
A Python package to extract the dominant color of an image. Given the path to an image file, the get_image_color
function returns the hex code of the most frequent color in the image.
Installation
To install the package, simply run the following command:
pip install dominant_image_color
Usage
Here's an example of how to use the get_image_color
function:
from dominant_image_color import get_image_color
hex_code = get_image_color("path/to/image.jpg")
print(hex_code)
Dependencies
These dependencies will be automatically installed when you install the package using pip.
- Pillow
Contributions
Contributions to this package are welcome. If you have any suggestions or bug reports, feel free to open an issue or a pull request on Github. https://github.com/itsmdsameerkhan/image-frequent-color
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
Hashes for dominant_image_color-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53bf27fd9c835ad3e731b4da88e168ef6c25832d0784ee15e973b7fb51a7f317 |
|
MD5 | 34d33702665c459066f745752478d29a |
|
BLAKE2b-256 | f5de1f5b25f5f64d996a81bc37e235d0e952e5636381e6f21f2108d6dd3bbc24 |