deltae2000 implements an algorithm for perceptual distance between colours in pure Python.
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.
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.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
deltae2000-1.0.0.tar.gz (1.6 kB view hashes)
Hashes for deltae2000-1.0.0-py3-none-any.whl