emotion-detector
v0.3.0
Published
Emotion recognition in Node.js
Downloads
43
Maintainers
Readme
emotion-detector.js
Emotion recognition in Node.js, using TensorFlow.js and OpenCV.
Some Examples
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' } ]