MpFaceDetection Op
Get Face Detection from webcam/video using mediapipe library (short model)
Get Face Detection from webcam/video using mediapipe library (short model)
Summary (oneliner)
This operator uses MediaPipe Face Detection to detect human faces in real-time from a video or webcam input.
It provides the bounding box and just 6 key points for each detected face. Index Points: 0 right eye, 1 left eye, 2 nose tip, 3 mouth center, 4 right ear tragion, 5 left ear tragion
Based on the lightweight BlazeFace model (short) for fast detection until 2 meters from camera.
- Ops.Patch.PR5Jn1t.MpFaceDetection
- Patch Op - visible in this patch only
- MIT
- Jul 12, 2025 at 16:33
- drawing_utils.js (commonjs)
- control_utils.js (commonjs)
- camera_utils.js (commonjs)
- face_detection.js (commonjs)
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Multi Face Tracking Bounding box & video Element
Multiface tracking Op with bounding box and videoTextureElement Op example
Inspired by https://cables.gl/p/fr5hEj and https://cables.gl/p/Q78AyQ
New features added (check Op's documentation)
INPUT PORTS
Source webcam/video as HTML element
Threshold to filter weak detections
OUTPUT PORTS
Collection of detected faces
Array of key points