An open API service indexing awesome lists of open source software.

https://github.com/yashrajgithub/emotion-recognization-and-analysis

This Emotion Detection Web App uses NLP and facial emotion recognition to analyze emotions from text or video. It offers text-based emotion prediction with probability visualization and a feedback form. Real-time webcam emotion detection is included (currently disabled due to compatibility).
https://github.com/yashrajgithub/emotion-recognization-and-analysis

altair api cnn-classification data-processing decision-trees fer joblib knn-classification logistic-regression machine-learning nlp-machine-learning opencv python3 speech-recognition streamlit streamlit-webapp webcam

Last synced: about 2 months ago
JSON representation

This Emotion Detection Web App uses NLP and facial emotion recognition to analyze emotions from text or video. It offers text-based emotion prediction with probability visualization and a feedback form. Real-time webcam emotion detection is included (currently disabled due to compatibility).

Awesome Lists containing this project

README

          


😊 Emotion Detection Web App


---


Link : https://emotion-recognization-and-analysis-mp.streamlit.app/


---

This project is a web-based **Emotion Detection Application** that leverages **Natural Language Processing (NLP)** and **Facial Emotion Recognition** to analyze and predict emotions from text or real-time video input.

---

## 🌟 Features

* **Text Emotion Analysis**:
- Enter text or use speech input to analyze the emotion.
- Outputs a predicted emotion along with a confidence score.
- Displays a bar chart of prediction probabilities.

* **Real-Time Webcam Emotion Detection** *(currently disabled)*:
- Detects emotions using a webcam feed.
- Employs **OpenCV** and **FER** for real-time emotion detection.

* **Feedback Form**:
- Users can submit feedback or suggestions directly through the app.

---

## 🛠️ Technology Stack

* **Programming Language**: Python
* **Framework**: Streamlit
* **NLP Libraries**: NLTK, HuggingFace Transformers
* **Emotion Recognition Libraries**: OpenCV, FER, TensorFlow
* **Visualization**: Altair
* **Other Tools**: Joblib, SpeechRecognition, Pandas, NumPy

---

## 📂 Directory Structure

```plaintext
📁 EmotionDetectionApp
├── 📁 model
│ └── emotion_classifier_pipe_lr.pkl # Pre-trained emotion detection model
├── 📄 app.py # Main application code
└── 📄 requirements.txt # List of dependencies

- `model/emotion_classifier_pipe_lr.pkl`: Pre-trained emotion classification model.
- `app.py`: Main application code.
- `requirements.txt`: Python dependencies for the project.
- `README.md`: Project documentation.
```
---

## 🚀 How to Run

1. **Clone the Repository**:
```bash
git clone https://github.com/Yashrajgithub/Emotion-Recognization-and-Analysis.git

2. **Run the Application**:
```bash
streamlit run app.py

3. **Access the App:**
```bash
usually http://localhost:8501

---

## 📖 _Usage_

* **Home**:
- Choose between _"Text Recognition"_ or _"Webcam Emotion Detection."_
- Enter text, or use the speech-to-text functionality to predict emotions.

* **About**:
- Learn about the project's purpose, technology stack, and functionality.

* **Feedback**:
- Submit feedback or suggestions via the provided form.

---

## 📸 Webapp

| 1. Home Page |
|---------------------------|
| ![Home Page](https://github.com/Yashrajgithub/Emotion-Recognization-and-Analysis/blob/main/Home%20Page.png) |

| 2. Result Page: |
| ------------------------|
| ![Result Page](https://github.com/Yashrajgithub/Emotion-Recognization-and-Analysis/blob/main/Result.png) |