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 details)

Uploaded Source

Built Distribution

colordet2-1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file colordet2-1.0.tar.gz.

File metadata

  • Download URL: colordet2-1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for colordet2-1.0.tar.gz
Algorithm Hash digest
SHA256 586841232110a656fb6a2480d967ff0a9486d7b8cbca016eb230bd8aa898c286
MD5 e286ca019b3a4abd28ad39d01112f28b
BLAKE2b-256 8ed7267bb0d5e48d70ba8fbb03bbe357d6a74ffb41a47250be2d7e97d44ae40d

See more details on using hashes here.

File details

Details for the file colordet2-1.0-py3-none-any.whl.

File metadata

  • Download URL: colordet2-1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for colordet2-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3de53b97647577794e7106ba5adc01742b742c568cf64c2d199fcb99a35e2c70
MD5 1eb7ee9b453f102884ea26f8477ed6ae
BLAKE2b-256 5e7d615225d760f4c23edea02426cd8491a57b845be2e00fcdb9418e5dafb776

See more details on using hashes here.

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