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.

Files for colordet2, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size colordet2-1.0.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View
Filename, size colordet2-1.0-py3-none-any.whl (4.6 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page