An open API service indexing awesome lists of open source software.

https://github.com/caiogondim/laughing-man.js


https://github.com/caiogondim/laughing-man.js

Last synced: about 2 months ago
JSON representation

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

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)