Socket
Socket
Sign inDemoInstall

nphusl

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nphusl

A HUSL color space conversion library that works with numpy


Maintainers
1

Readme

HUSL color space conversion

A color space conversion library that works with numpy. See http://husl-colors.org to learn about the HUSL color space.

Features

  1. Fast conversion to RGB from HUSL and vice versa. Convert a 1080p image to HUSL in less than a second.
  2. Seamless performance improvements with NumExpr, Cython, and OpenMP (whichever's available).
  3. Flexible numpy arrays as inputs and outputs. Plays nicely with OpenCV, MoviePy, etc.

Installation

  1. virtualenv env -p python3
  2. source env/bin/activate
  3. pip install numpy
  4. (optional) pip install Cython (or NumExpr, but Cython is preferred)
  5. pip install git+https://github.com/TadLeonard/husl-numpy.git

Basic usage

  • to_rgb(hsl) Convert HUSL array to RGB integer array
  • to_husl(rgb) Convert RGB integer array or grayscale float array to HUSL
  • array
  • to_hue(rgb) Convert RGB integer array or grayscale float array to array of
  • hue values

More

See https://github.com/TadLeonard/husl-numpy for complete documentation.

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc