Welcome to the Emotion Detector Django project! This project aims to analyze and detect emotions from web-rct images and implementing to open cv.
Before you begin, ensure you have met the following requirements:
- Python (version 3.11)
- Django (version 4.2.3)
- Other project dependencies listed in
requirements.txt
- Extract the zip file:
Extract the zip file and open the terminal- Navigate to the project directory:
cd EmotionDetector- Install dependencies using
pip:
pip install -r requirements.txt- Create and apply the database migrations:
python manage.py makemigrations
python manage.py migrate- Run the development server:
python manage.py runserveropen a new terminal and run python3 to download the model and make sure you are with in the virtual environment of the project
python3
from deepface import DeepFace
# download the deepface model
DeepFace.build_model("Gender")
DeepFace.build_model("Emotion")
DeepFace.build_model("VGG-Face")
- Redis Configuration
To install Redis on a Linux system, you can follow these general steps. The exact commands may vary slightly depending on your Linux distribution. Here, I'll provide instructions for a few popular distributions: Ubuntu, CentOS, and Debian.
-
Update the package list to make sure you have the latest information about available packages:
sudo apt update
-
Install Redis:
sudo apt install redis-server
-
Start the Redis service and enable it to start on boot:
sudo systemctl start redis-server sudo systemctl enable redis-server -
Verify that Redis is running:
sudo systemctl status redis-server
-
Update the package list:
sudo yum update
-
Install Redis:
sudo yum install redis
-
Start the Redis service and enable it to start on boot:
sudo systemctl start redis sudo systemctl enable redis -
Verify that Redis is running:
sudo systemctl status redis
-
Update the package list:
sudo apt update
-
Install Redis:
sudo apt install redis-server
-
Start the Redis service and enable it to start on boot:
sudo systemctl start redis-server sudo systemctl enable redis-server -
Verify that Redis is running:
sudo systemctl status redis-server
After these steps, Redis should be installed and running on your Linux system. You can configure and use Redis as needed for your specific use cases.
- Run the celery worker: Open a new terminal and run the command below. Also make sure redis is active and running in the background
celery -A EmotionDetector worker --loglevel=info- Open your web browser and navigate to
http://127.0.0.1:8000/to access the Emotion Detector app.
| Task Name | Week 1 | Week 2 | Week 3 | Week 4 | Week 5 | Week 6 | Week 7 | Week 8 | Week 9 |
|---|---|---|---|---|---|---|---|---|---|
| 1. Project planning and scoping | ✅ | -------- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
| 2. Research on road sign detection and recognition systems | -------- | ✅ | ✅ | -------- | -------- | -------- | -------- | -------- | -------- |
| 3. Data Collection and Preprocessing | -------- | -------- | -------- | ✅ | ✅ | ✅ | -------- | -------- | -------- |
| 4. Build Project and testing of deep learning models | -------- | -------- | -------- | -------- | -------- | -------- | ✅ | ✅ | ✅ |
| 5. Integration with Web application and hardware testing | -------- | -------- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
| 6. User Interface development | -------- | -------- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
| 7. System integration and testing | -------- | -------- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
| 8. Documentation and negotiation | -------- | -------- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
Remember to customize the README according to your project's specific details, including installation steps, usage instructions, and any additional information you want to provide to users and potential contributors.