GithubHelp home page GithubHelp logo

roskzhu / empa Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 2.0 62.01 MB

Increasing empathy leveraging computer vision to translate facial expressions into recognizable emotions.

Home Page: https://devpost.com/software/empa

HTML 0.01% CSS 0.02% Python 0.01% JavaScript 0.04% Jupyter Notebook 99.92%
computer-vision empathy face-recognition flask machine-learning nlp openai python react social-good

empa's Introduction

    Empa

Your Emotional Intelligence Partner

๐Ÿ… 1st Place SheHacks Winner




image

DEMO VIDEO (turn captions on!): https://youtu.be/p0rzJLvPM_A

Empa is a full-stack web application that leverages computer vision and machine learning to analyze facial expressions and translate them into recognizable emotions. It's designed to assist individuals with communication disorders in social interactions, help those on the autism spectrum understand emotional cues, and enhance empathy in diverse, cross-cultural communications.

Features

  • Real-time emotion recognition from live facial facial footage using our custom-trained model.
  • Radar chart showing emotion metrics (Measured with the confidence level of each emotion).
  • Recommended responses from the detected emotion using transcribed audio to text (i.e. if you say a phrase expressing anger, the app shows ways you can say to soothe that person).

Built with

  • Flask backend
  • Python + Jupyter notebook to train the model
  • Vanilla React frontend styled with Tailwind CSS

How we trained the model

  • landmarking.ipynb -> Downloaded FER2013 dataset (imgs), and used Mediapipe to landmark 463 facial points, writing this to a CSV (fer2013_landmarks_nopathsfixed.csv)
  • x is the emotion (label) for the image
  • y are facial coordinates per image
  • landmarking_model -> Trained custom model using Tensorflow and Sci-kit Learn, using landmarked data from the CSV

Architecture Overview

Empa drawio

Getting Started

Prerequisites

  1. Before you begin, ensure you have met the following requirements:
  1. Install required dependencies in root folder and both frontend and backend folders
npm install
  1. Create a .env file in this folder with the following variables:
OPENAI_API_KEY={YOUR_API_KEY}

Starting the server

(127.0.0.1:5000 by default)

  1. cd server
  2. python3 -m venv venv
  3. source venv/bin/activate (MacOS)
  4. venv\Scripts\activate (Windows Powershell)
  5. pip install -r requirements.txt
  6. python3 app.py

Starting the app

(localhost:3000 by default)

  1. cd client
  2. npm install
  3. npm start

Sneak Peak

image

Next Steps

  • Radar chart updating live on real-time footage
  • Adding detection for emotions detected in vocal tone & body language for improved conversation suggestions
  • Deployment
  • Demo Video

empa's People

Contributors

kellyquu avatar mlekhi avatar rachelchxn avatar roskzhu avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

mlekhi kellyquu

empa's Issues

main page styling

  • suggested words styling
  • transcribed phrases (add highest detected emotion)
  • test suggestions endpoint

landing

  • animated blob
  • update favicon.ico
  • carousel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.