Skip to main content

Detect colors from image

Project description

ColorDetector

Project description

ColorDetector is a library for exporting colors from a photo. It supports images in .jpg, .jpeg and .png format. Colors are represented in hex and rgb format. Depending on the parameter specified by the user, it can output from 3 to 25 different colors.

Running

import ColorDetector

cd = ColorDetector("filepath")
cd.palete(n)

Functions and variables

ColorDetector(path) - class with one init vairable, path to image: str
self.palete(n) - extract n colors from image, n must be int in range <3:25>

Tests

python3 -m pytest TestColorDetector.py -v

Project author

Jakub Zalewski

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

colordet2-1.0.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

colordet2-1.0-py3-none-any.whl (4.6 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