MpFaceDetection Op

MpFaceDetection

Get Face Detection from webcam/video using mediapipe library (short model)


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.


Full Name
  • Ops.Patch.PR5Jn1t.MpFaceDetection
VisibilityLicense
  • MIT
AuthorCreated
  • Jul 12, 2025 at 16:33
Dependencies
  • drawing_utils.js (commonjs)
  • control_utils.js (commonjs)
  • camera_utils.js (commonjs)
  • face_detection.js (commonjs)



Op is missing in patch!

Multi Face Tracking Bounding box & video Element

Multiface tracking Op with bounding box and videoTextureElement Op example

Open In Editor

INPUT PORTS


Element (Object)

Source webcam/video as HTML element

Min Detection Confidence (Number)

Threshold to filter weak detections

OUTPUT PORTS


Result (Object)

Collection of detected faces

Found Faces (Number)
Points (Array)

Array of key points


Changelog

Patches using MpFaceDetection

  • Examples
  • Public
  • My Patches