Singular face

Standard image

The problem with object fit

Get face bounding box

Set object position based on face bounding box

Multiple faces

Standard image

The problem with object fit

Get face bounding box

Set object position based on faces grouped bounding box

You're browser currently does not support the FaceDetector API which is required for this demo.

In Chrome under chrome://flags, turn on #enable-experimental-web-platform-features to view the demo.