ComfyUI_ColorImageDetection

ComfyUI_ColorImageDetection
★ 4

颜色检测图像分析RGB/LAB黑白判定
一组基于RGB和LAB色彩空间的图像颜色检测节点,用于区分彩色、黑白及带色调图像,便于在ComfyUI中按色彩属性分流处理。
💡 按色彩属性自动将图像分流到不同处理流程。
🍴 3 Forks💻 Python🔄 2024-07-15
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/b6135d9bd930
📦 requirements.txt
numpy
torch
opencv-python
📄 README

ComfyUI Color Detection Nodes

A collection of nodes for detecting color in images, leveraging RGB and LAB color spaces. These nodes aim to distinguish colored images from black and white, including those with color tints.

Installation

  • Git clone the repo into ComfyUI/custom_nodes.
  • Or, install with ComfyUI Manager.
  • Alternatively, download the .py files into your ComfyUI/custom_nodes folder. Ensure requirements.txt is installed for full functionality.
  • Limitations

    Both RGB and LAB color detection methods have challenges in reliably differentiating between color-tinted black and white pictures and fully colored images. RGB Color Detection tends to be more reliable for detecting color tints but operates slower. In contrast, LAB Color Detection offers faster processing times but may not be as effective for nuanced tint detection.

    Features

    RGB Color Detection

    Analyzes RGB color space deviations to determine image coloration. Offers customizable pixel percentage consideration for enhanced accuracy, especially useful for tinted images.

    LAB Color Detection

    Utilizes LAB color space, focusing on A and B channels differences to identify colored images, providing quicker analysis times.