Face-Framing
- Category
- Realtime / Communication
- Type
- New or changed feature
- Status
- In development (Chrome In development)
- Intent stage
- Start prototyping
Summary
Some platforms or User Agents may provide built-in support for automatic continuous framing based on the position of human faces within the field of view, in particular for camera video streams. Web applications may either want to control or at least be aware that automatic continuous human face framing is applied at the source level. This may for instance allow the web application to update its UI or to not apply human face framing on its own.
Motivation
The Face Framing API makes it possible for web apps to ask the operating system to efficiently apply the automatic face framing effect to a camera's video feed. This eliminates the costly need for manual application of the effect through machine learning frameworks such as TensorFlow.js, Mediapipe, or cloud-based solutions, which require processing each video frame individually.
Standards & signals
- Specification: https://w3c.github.io/mediacapture-extensions/#exposing-mediastreamtrack-source-automatic-face-framing-support
- Firefox: No signal — Jan-Ivar (Mozilla) approved and merged the spec PR (https://github.com/w3c/mediacapture-extensions/pull/55#pullrequestreview-1365241197)
- Safari: No signal — Youenn Fablet (Apple) is co-editor and supportive of this change.
- Web developers: No signals
- Tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1458341
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=face-framing
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Face-Framing
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Face-Framing
- Baseline status: https://webstatus.dev/?q=Face-Framing
Explainers: https://github.com/riju/faceFraming/blob/main/explainer.md