ComfyUI Node
Detect Face By Index
A ComfyUI node in sunxAI_facetools with 8 inputs and 2 outputs.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| threshold | FLOAT | 0.500–1 | 人脸检测置信度阈值,越高越严格 |
| min_size | INT | 64 | 最小人脸尺寸,过滤掉太小的检测结果 |
| max_size | INT | 512 | 最大人脸尺寸,过滤掉太大的检测结果 |
| face_index | INT | 00–10 | 人脸索引:0=最左边第一个,1=第二个,以此类推 |
| gender_filter | INT | 00–2 | 性别筛选:0=任意性别,1=只检测男性(man),2=只检测女性(woman) |
| priority_mode | INT | 00–1 | 优先级模式:0=下标优先(先选位置再检查性别),1=性别优先(先筛选性别再选位置) |
| maskopt | MASK | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| faces | FACE | — |
| has_face | BOOLEAN | — |