camemoji ๐๐๐๐๐๐ก
Experimental project that uses Google Cloud Vision API in nodejs to recognize faces' emotions and map these results to emojis.
Demo
How it works
Uses firebase to upload pictures from the webcam and Vision API to get a result of the emotion.
Currently the emotion mappers looks like this:
"NORMAL": "๐",
"HAPPY": "๐",
"VERY_HAPPY": "๐",
"SAD": "๐",
"VERY_SAD": "๐ญ",
"ANGRY": "๐ ",
"VERY_ANGRY": "๐ก",
"SURPRISED": "๐ฎ",
"HEADWEAR": "๐ค "
Running the project
Google Vision API
To run this project you'll need to set up a Google Vision Credential account, enable the API, create the authentication file and add it in your root project called auth.json
.
Firebase
Additionally, for file upload I set up a firebase project for storage, you'll need the API Key
and the Storage Bucket
in a firebase_auth.js
file in the root of the project.