Skip to main content

A package for automatically finding the most common used colors in an image.

Project description

Common Colors Finder Website

Why color pick when you can grab the 5 most used colors inside a logo or an image and use them for your design and css!

Upload your image or provide an image url and check instantly.

Usage

from colorFinder import ColorFinder

color_finder = ColorFinder(image_url="https://warehouse-camo.ingress.cmh1.psfhosted.org/f10043f97c4efa219b0dca9bab54a6caf620718b/68747470733a2f2f7365637572652e67726176617461722e636f6d2f6176617461722f62306163633463623730383637613663373463306139653465656330356464653f73697a653d3430", num_colors=5)

colors_list = color_finder.get_common_colors()

print(colors_list)

Output

Returns a list of tuples containing the RGB value and color count matching your top num_colors

[((113, 113, 113), 17), ((127, 127, 127), 14), ((117, 117, 117), 13), ((105, 105, 105), 12), ((166, 166, 166), 12)]

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request on GitHub.

License

This project is licensed under the MIT License

You can now copy this code and use it as your README.md file.

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

colorFinder-1.0.2.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

colorFinder-1.0.2-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

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