emotion-detector

0.3.0 • Public • Published

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 -./images/input.jpg -./output.jpg -c white

Output The Result To Terminal

emotion-detector info -./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' } ]

Package Sidebar

Install

npm i emotion-detector

Weekly Downloads

1

Version

0.3.0

License

MIT

Unpacked Size

3.87 MB

Total Files

45

Last publish

Collaborators

  • qqqppp9998