img2colors-comfyui-node

img2colors-comfyui-node
★ 16

颜色提取调色板生成颜色命名ComfyUI节点
从图像中提取任意数量的常见颜色,并将颜色转换为可读的英文名称,便于生成调色板和配色参考。
💡 自动提取图像主色并生成英文颜色名用于配色参考
🍴 8 Forks💻 Python🔄 2025-01-05
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/8b0992d318c3
📦 requirements.txt
colornamer==0.2.3
scikit_learn>=1.4.0
webcolors==1.13
alt text
📄 README

Img2Color Palette Extractor ComfyUI Node

  • Uses KMeans clustering to extract the dominant colors from an image
  • Uses webcolors and colornamer to get closest matching color names from various color naming systems
  • get_complementary toggler to get the complementary colors instead
  • Requirements

  • colornamer==0.2.3
  • scikit_learn>=1.4.0
  • webcolors==1.13
  • Installation

  • If you use a virtual environment to run ComfyUI, activate it
  • cd to the ComfyUI/custom_nodes directory
  • git clone this repository
  • cd to the img2colors-comfyui-node directory
  • pip install -r requirements.txt
  • Color Name Categories

  • From webcolors: CSS3, CSS2, CSS2.1, and HTML4 webcolors
  • From colornamer: XKCD, Design, Common, Color Families, Color or Neutral, Color Type
  • Explanation of colornamer categories