Singular face
The problem with object fit
Set object position based on face bounding box
Multiple faces
The problem with object fit
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.