Skip to main content

deltae2000 implements an algorithm for perceptual distance between colours in pure Python.

Project description

deltae2000 is an implementation of the CIEDE2000 algorithm to calculate the perceptual distance between two colours. This is implemented in pure Python with the intention to run optimal on the PyPy interpreter.

See the Wikipedia article for more information on the distance calculation.

Example usage:

from deltae2000 import delta_e_cie2000
from colormath.color_conversions import convert_color
from colormath.color_objects import sRGBColor, LabColor

delta_e_cie2000(
    convert_color(sRGBColor(255, 0, 0, is_upscaled=True), LabColor),
    convert_color(sRGBColor(125, 255, 125, is_upscaled=True), LabColor)
)

This is based on the implementation from colormath which uses Numpy in the implementation. Use the colormath version if you are using the CPython interpreter.

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

deltae2000-1.0.0.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

deltae2000-1.0.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file deltae2000-1.0.0.tar.gz.

File metadata

  • Download URL: deltae2000-1.0.0.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for deltae2000-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3d76cd26409f46d432112af69c2b34a15ee2087e7d746328ed41f12400097041
MD5 d81ce5adba81a253df5198303e2f0ca1
BLAKE2b-256 9bce40d4aa8f62827d42cc05ef16b00c8486ca93eb96a4751e41559912b410f0

See more details on using hashes here.

File details

Details for the file deltae2000-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: deltae2000-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for deltae2000-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0563f1b6055f02c1f8792ad942d197e466f3100381c0a36f11cde98e32223f5
MD5 11de9a5263ffd92c9dffff3a2835b1c8
BLAKE2b-256 fcf9ea6453bd01cda1c0315361de88740cce92a6fc291d82bf1bb6023bd76b65

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