0.3.0 • Published 6 years ago

emotion-detector v0.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

emotion-detector.js

js-standard-style

Emotion recognition in Node.js, using TensorFlow.js and OpenCV.

Some Examples

faces-result.jpg ronaldo-result.jpg

Installation

npm i emotion-detector -g

How To Use It

Draw The Result On Given Image (Like Examples)

emotion-detector draw -i ./images/input.jpg -o ./output.jpg -c white

Output The Result To Terminal

emotion-detector info -i ./images/input.jpg
// Output:
// [ { face: { x: 251, y: 58, height: 82, width: 82 },
//     emotion: 'happy' },
//   { face: { x: 478, y: 73, height: 88, width: 88 },
//     emotion: 'happy' },
//   { face: { x: 24, y: 80, height: 100, width: 100 },
//     emotion: 'happy' },
//   { face: { x: 112, y: 97, height: 87, width: 87 },
//     emotion: 'happy' } ]