Skip to main content

Detects dominant color of an image

Project description

Dominant color detection

Simple package which detects colors in a provided image. Works best with already segmented images.

Usage

from dominant_color_detection import detect_colors
k = 3
img_path = '/path/to/your/image.jpg'

colors, ratios = detect_colors(img_path, k)

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

dominant_color_detection-0.1.8.tar.gz (3.1 kB view hashes)

Uploaded Source

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