~/talk

Create AR face filters with the Chrome Face Detection API

Talkat Frontmania 2022 · on Wednesday, 2022-10-05· [web-platform, computer-vision]
slides:none on file

Chrome’s experimental Shape Detection API exposes a feature-flagged Face Detection API that creates AR webcam filters by calling new FaceDetector({maxDetectedFaces, fastMode}) and running detector.detect(video) into a canvas. It returns a bounding box plus landmarks with eye and mouth coordinates, so the demo computes eye distance, scale, rotation and draws a transparent PNG of glasses, smoothing positions across frames. It runs fully on-device, trades accuracy for speed with fastMode, and currently misses or jitters landmarks so it’s exploratory rather than production-ready.

AI-written summary · about

  1. 0:00Introduction to AR face filters
  2. 3:35Face Detection API overview
  3. 7:19Enabling the API in Chrome
  4. 8:17Basic API usage and face detection
  5. 10:55Landmarks and face positioning
  6. 13:14Setting up the HTML structure
  7. 15:13Detecting faces from webcam
  8. 21:30Drawing face rectangles
  9. 23:47Using landmarks for AR elements
  10. 28:38Adding AR glasses to the face
  11. 31:35Performance considerations
  12. 35:51Advanced AR filter examples
  13. 39:14Demo of the final AR filter
  14. 40:41Key takeaways and closing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.