ComfyUI-Mosaic-Mask

ComfyUI-Mosaic-Mask
★ 10

图像处理隐私保护自动检测ComfyUI节点
自动检测并掩盖图像中的马赛克区域,可自定义网格样式与扩展大小,提高隐私保护与后处理效率。
💡 用于自动标记并遮罩含马赛克的照片区域,便于修复或遮蔽。
🍴 2 Forks💻 Python🔄 2025-04-03
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/a1f1f564f19c
Example
📄 README

ComfyUI-Mosaic-Mask

ComfyUI-Mosaic-Mask is an automatic tool designed to detect and mask mosaic areas in input images.

Features

  • Automatically detect mosaic areas in images.
  • Mask the detected mosaic areas with customizable grid patterns.
  • Installation

    To install and use ComfyUI-Mosaic-Mask, follow these steps:

    git clone https://github.com/okgo4/ComfyUI-Mosaic-Mask.git

    Usage

    Please follow the example.json for a basic template.

    The top_n parameter controls how many noncontinuous censored areas to be returned (The algorithm will sort the censored parts based on their area).

    The kernel_size parameter refers to how many pixels to expand upon the censored areas.

    Important

    It is worth noting that the Mask Smooth Region node is STRONGLY RECOMMENDED after the MosaicMask node. Otherwise, when sampling an image without smoothed mask, the image may become black.

    Thanks

    Special thanks to the mosasic_detector project: https://github.com/summer4an/mosaic_detector.