Skip to content

DavidCai1111/emotion-detector.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

emotion-detector.js

js-standard-style Build Status

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

Some Examples

faces-result.jpg ronaldo-result.jpg angry-happy.jpg

Installation

npm i emotion-detector -g

How To Use It

Draw The Result On Given Image (Like Examples)

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

Output The Result To Terminal

emotion-detector-js 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' } ]

Releases

No releases published

Packages

No packages published