Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

emotion detection

NotificationsYou must be signed in to change notification settings

coppeneur/cv-deep-learning

Repository files navigation

Overview

This repository contains the code for Assignment 2 of the "Computer Vision" course.Our primary pipeline is theemotion_detection.ipynb notebook, which includes the code for training and evaluating the emotion detection model.The src folder contains the main logic and code for the pipeline, organized into different modules for better clarity.Additionally, thevit_transformer.ipynb notebook contains the code for testing the ViT model on the FER2013 dataset.

Emotion Detection Demo

Thedemo.py script is designed to perform emotion detection on either a video file or a live webcam feed using our chosen model, "IntermediateCNN."It plots the detected emotions after processing each frame of the video or webcam feed.

Prerequisites

Ensure you have the necessary dependencies installed. You can install them using:

pip install -r requirements.txt

Usage

To run thedemo.py script, you can use the following command in your terminal:

python demo.py [--video<path_to_video>]

Arguments

  • --video (optional): Path to a video file. If not provided, the script will use the webcam for real-time emotion detection.
  • -h or--help: Displays the help message.

Examples

Using a Video File

To run the demo on our test video file, use the following command:

python demo.py --video surprised-happy.mp4

Using Webcam

To run the demo using the webcam, simply omit the--video argument:

python demo.py

About

emotion detection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp