Skip to content

python cli tool for plucking palettes from image paths or urls - powered by k - means clustering.

License

Notifications You must be signed in to change notification settings

fgtrzah/pluckpalette

Repository files navigation

Status

Tests

pluckpalette

CLI tool that returns dominant colors given a local path to an image.

TOC
Demo

Single file processing

Demo

Flattened directory bulk

Demo

Setup tests

#!/bin/bash
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r requirements.txt
# `python3 -m tox -e {envname}` for specific tox pyenv environments (see tox.ini)
python3 -m tox

Quick-start

This assumes tests have been setup and .venv activated

#!/bin/bash
# image url https://github.com/figtreez/pluckpalette/blob/main/tests/data/02.png
python3 -m pip install -e .
pluckpalette -p tests/data/01.png

Tools

  • pyscaffold
  • tox
  • scikit-learn
  • numpy

Acknowledgements

Test images, prior art, and inspo.

Art credits

About

python cli tool for plucking palettes from image paths or urls - powered by k - means clustering.

Topics

Resources

License

Stars

Watchers

Forks