An experiment with the new native FaceDetector API.
Examples:
npm install --save laughing-man
Pass the video and image you want to put on top of the detected face.
const laughingMan = require('laughing-man')
const video = document.querySelector('video')
const imgOverlay = document.querySelector('img.overlay')
laughingMan(video, { overlay: imgOverlay })
caiogondim.com · GitHub @caiogondim · Twitter @caio_gondim