moigonzalez / camemoji

Faces from camera to emoji using Google Vision API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

camemoji ๐Ÿ˜„๐Ÿ™‚๐Ÿ˜๐Ÿ™๐Ÿ™๐Ÿ˜ก

Experimental project that uses Google Cloud Vision API in nodejs to recognize faces' emotions and map these results to emojis.

Demo

camemoji 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 Keyand the Storage Bucket in a firebase_auth.js file in the root of the project.

About

Faces from camera to emoji using Google Vision API


Languages

Language:JavaScript 90.1%Language:HTML 5.1%Language:CSS 4.8%