qTipTip / Pylette

A Python library for extracting color palettes from supplied images.
https://qtiptip.github.io/Pylette/
MIT License
108 stars 11 forks source link

[feat] Add support for image as numpy array #31

Closed qTipTip closed 5 months ago

qTipTip commented 5 months ago
qTipTip commented 5 months ago

This will solve #30, as it allows the user to first load an image using cv2 and then pass it directly to the extract_color function:

image = cv2.imread('path/to/image.png')

palette = extract_colors(image_array=image, ...)