PWA Demos
Face Detection API

Face Detection API

Find out how to use the Shape Detection API in a PWA to detect face and facial features in images and videos.

Face Detection API Logo

Demo

  1. Open the Chrome browser on your computer. Type chrome://flags in the URL bar and enable the #enable-experimental-web-platform-features flag. Then restart your browser.
  2. Start detecting faces in front of your camera by clicking the button below.
  3. Check out the code of the demo below!

What's the Face Detection API?

The Face Detector interface of the Shape Detection API is an experimental feature that can detect faces and facial features—such as the eyes, nose, and mouth—in images or videos.

Browser support

The Shape Detection API currently works only in Chrome and Edge, and requires the Experimental Web Platform features flag to be enabled. It's not fully ready for general use yet, but you can see a preview in action above, and the code of the demo below.

Code

Links & Documentation

Your app here

Unlock the powers of the web today

Try our PWA toolkit free of charge and without limits for 14 days. No credit card required.

Get started See plans