Nodes/comfyui_sunxAI_facetools/Detect Face By Index
ComfyUI Node

Detect Face By Index

A ComfyUI node in sunxAI_facetools with 8 inputs and 2 outputs.

By upseem·Created about a year ago·Updated 10 months ago· 15
Detect Face By Index
  • image
  • mask
  • faces
  • has_face
threshold0.50
min_size64
max_size512
face_index0
gender_filter0
priority_mode0
CategorysunxAI_facetools

Inputs (8)

NameTypeDefaultDescription
imageIMAGE
thresholdFLOAT0.500–1人脸检测置信度阈值,越高越严格
min_sizeINT64最小人脸尺寸,过滤掉太小的检测结果
max_sizeINT512最大人脸尺寸,过滤掉太大的检测结果
face_indexINT00–10人脸索引:0=最左边第一个,1=第二个,以此类推
gender_filterINT00–2性别筛选:0=任意性别,1=只检测男性(man),2=只检测女性(woman)
priority_modeINT00–1优先级模式:0=下标优先(先选位置再检查性别),1=性别优先(先筛选性别再选位置)
maskoptMASK

Outputs (2)

NameTypeDescription
facesFACE
has_faceBOOLEAN