PyColorimetry is a powerful Python library designed for both educators and students in the field of colorimetry. The library processes images using semantic segmentation. After segmentation, the images are normalized, and computations of RGB, tristimulus XYZ values, and conversion to the CIELAB space are performed. PyColorimetry also provides functionality for visualizing colors in the CIELAB color space. This library takes advantage of modern GPU computing power to provide efficient and accurate colorimetric computations. PyColorimetry aims to make complex colorimetric concepts more accessible, enabling deeper understanding and fostering innovation in color science.
The PyColorimetry library may be installed using pip:
!git clone https://github.com/josorio398/PyColorimetry_Library /content/PyColorimetry_Library
!pip install --use-pep517 -r /content/PyColorimetry_Library/requirements.txt
You also need to download the weights for the SAM model:
!wget https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth
To import the library, you can use:
from PyColorimetry.ColorimetricAnalysis import *
- Python 3.6 or later
- GPU support
- Libraries: Pandas, Numpy, Matplotlib, Scipy, Skimage, Sklearn, Torch
- Models: SAM
- Installation support is currently provided for Google Colab
- Prof. Jhonny Osorio Gallego, M.Sc.
Universidad de América
jhonny.osorio@profesores.uamerica.edu.co
To cite PyColorimetry in publications use: J. Osorio Gallego, PyColorimetry, Python Package. (2023). https://github.com/josorio398/PyColorimetry_Library