Skip to main content

Python library for colorimetric analysis

Project description

PyColorimetry

PyColorimetry is a powerful Python library designed for both educators and students in the field of colorimetry. The library processes images using semantic segmentation, leveraging the GroundingDino and SAM (Segment Anything Models) models. 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.

Python Pandas Numpy Matplotlib Scipy Skimage Sklearn Colab Torch

Installation

The PyColorimetry library may be installed using pip:

!pip install PyColorimetry

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 *

Requirements

  • Python 3.6 or later

  • GPU support

  • Libraries: Pandas, Numpy, Matplotlib, Scipy, Skimage, Sklearn, Torch

  • Models: SAM (Segment Anything Models), GroundingDino

  • Installation support is currently provided for Google Colab

Maintainer

  • Prof. Jhonny Osorio Gallego, M.Sc.

https://github.com/josorio398

Universidad de América

jhonny.osorio@profesores.uamerica.edu.co

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

PyColorimetry-1.0.0.tar.gz (20.0 kB view hashes)

Uploaded Source

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