Mask Detection

Mask_Detection

中文/CH 说明: 输入mask或image,使用去重检测遮罩属性 若mask或image都输入,默认检测image 输入: 1:Exist_threshold判断遮罩是否存在的阈值, 输出: 1:遮罩是否存在(非纯色) 2:是否为硬边缘(二值) 3:是否为全白遮罩 4:是否为全黑遮罩 5:是否为灰度遮罩 6:输出色值(当mask不为单色时输出0) EN/英文 Description: Input mask or image, use unique detection to check the mask attributes If both mask and image are input, the default is to detect image Input: 1:Exist_threshold, the threshold for determining if the mask exists Output: 1:Whether the mask exists (not pure color)

Pack: ComfyUI-WJNodes

custom_nodes.ComfyUI-WJNodes

Inputs (4)

NameTypeRequired
accuracyINTrequired
Exist_thresholdINTrequired
imageIMAGEoptional
maskMASKoptional

Outputs (6)

NameType
Exist?BOOLEAN
HardEdgeBOOLEAN
PureWhiteBOOLEAN
PureBlackBOOLEAN
PureGrayBOOLEAN
PureColorValueint