Skip to content

Making an open-source and relatively lightweight face-mood monitoring tool for various live inputs

Notifications You must be signed in to change notification settings

ejdarrow/mood-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mood-monitor

Making an open-source and relatively lightweight face-mood monitoring tool for various live input

Goals

  • To make a javascript library that can be imported and instantiated quickly and easily, wiring basic variables into facial expression characteristics.
  • To make a face that is racially neutral
  • To make a face that is aesthetically pleasing without being "too human"

Example

For instance:

from mood-monitor import face;

let variables = { 
	"width":100,
	"height":100,
	"mouth": "1.0", // a float between -1 and 1
	"eyes": "0.5", // a float between 0 and 1
	"eyebrowFactor": "0.75", // a float between -1 and 1 (can extend for emphasis)
	"eye-bags": "0.5", // a float between 0 and 1
	"cheeks": "0.5" // a float between 0 and 1
	};

$("that-div").html(face(variables));

Or

from mood-monitor import expression;

let variables = {
	"width":100,
	"height":100,
	"stressed":"0.5",
	"happy":"0.3"
	};

$("that-div").html(expression(variables));

Other variables or characteristics could be implemented as well.

License

This should be considered open source. Beer code license applies.

References

Azure Facial Detection example

Some other face readers

This Readme on github pages

The example implementation

TODO:

Switch to using template literals Template Literals

About

Making an open-source and relatively lightweight face-mood monitoring tool for various live inputs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published