Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.comfy.org/llms.txt

Use this file to discover all available pages before exploring further.

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Overview

Detects faces in an image and identifies 468 facial landmarks (key points) on each face using MediaPipe’s BlazeFace and FaceMesh models. It also calculates ARKit-52 blendshape coefficients for facial expression analysis. The node can process multiple images in a batch and outputs both the landmark data and bounding boxes for each detected face.

Inputs

ParameterData TypeRequiredRangeDescription
face_detection_modelFACE_DETECTION_MODELYesThe MediaPipe face detection model to use for landmark detection.
imageIMAGEYesThe input image or batch of images to detect faces in.
detector_variantCOMBOYes"short"
"full"
"both"
Face detector range. "short" is tuned for close-up faces (within ~2 m of the camera); "full" covers farther/smaller faces (up to ~5 m) but is slower. "both" runs both detectors and keeps whichever found more faces per frame (~2x detection cost). Default: "short".
num_facesINTYes0 to 16Maximum number of faces to return per frame. 0 means no cap (return all detected). Default: 1.
min_confidenceFLOATNo0.00 to 1.00BlazeFace score threshold. Lower values help catch small or occluded faces. Default: 0.5.
missing_frame_fallbackCOMBONo"empty"
"previous"
"interpolate"
Per-frame behavior when detection fails in a batch. "empty" leaves the frame faceless. "previous" copies the most recent successful detection. "interpolate" lerps landmarks/bbox/blendshapes between bracketing successful frames. Multi-face: pairs faces across frames by greedy bbox-centre NN. Default: "empty".

Outputs

Output NameData TypeDescription
face_landmarksFACE_LANDMARKSA structured output containing per-frame face detection results, including 468 facial landmarks, ARKit-52 blendshape coefficients, transformation matrices, and connection sets for mesh visualization.
bboxesBOUNDING_BOXA list of bounding boxes for each detected face, with coordinates (x, y, width, height), label “face”, and confidence score. One list per input frame.

Source fingerprint (SHA-256): f60ed6201288a59d65d62cc98c12f227a353870c36decea8da81a063cfdf2bba