https://github.com/caiogondim/laughing-man.js
https://github.com/caiogondim/laughing-man.js
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/caiogondim/laughing-man.js
- Owner: caiogondim
- Created: 2017-02-15T23:52:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-13T22:53:32.000Z (about 7 years ago)
- Last Synced: 2025-03-24T21:51:10.270Z (2 months ago)
- Language: JavaScript
- Homepage: https://caiogondim.github.io/laughing-man.js
- Size: 23.5 MB
- Stars: 23
- Watchers: 1
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# laughing-man
An experiment with the new native FaceDetector API.
Examples:
- [video](https://caiogondim.github.io/laughing-man.js/example/video)
- [camera](https://caiogondim.github.io/laughing-man.js/example/camera)## Install
```bash
npm install --save laughing-man
```## Usage
Pass the video and image you want to put on top of the detected face.
```js
const laughingMan = require('laughing-man')const video = document.querySelector('video')
const imgOverlay = document.querySelector('img.overlay')laughingMan(video, { overlay: imgOverlay })
```## Preview
## Credits
- [Laughing Man animated SVG](https://gist.github.com/johan/1066590)
---
[caiogondim.com](https://caiogondim.com) ·
GitHub [@caiogondim](https://github.com/caiogondim) ·
Twitter [@caio_gondim](https://twitter.com/caio_gondim)