Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Action Detection in Classroom Environment

This repository contains the code and resources for an Action Detection project designed to monitor and identify various classroom behaviors, such as sitting, standing, and other activities. This project leverages YOLO (You Only Look Once) for real-time object and action detection within video data.

Table of Contents

Project Overview

The objective of this project is to create a system that can detect irregular behaviors in classroom environments, such as a student standing, sitting, or other specific actions that may indicate irregular activities. This system is particularly useful for automated surveillance and monitoring in educational settings.

Key technologies used:

  • YOLO (You Only Look Once): A deep learning model used for real-time object detection.
  • React: Used for building the frontend interface, where users can upload video files for processing and view detected classes.
  • jsPDF: Utilized to generate reports of detected actions.

Features

  • Real-Time Action Detection: Detects actions within the classroom environment, classifying them as sitting, standing, etc.
  • Frontend Interface: User-friendly interface for video upload and detection results display.
  • Export Reports: Generates reports of detected actions in PDF format.
  • Dynamic Labeling: Maps numeric detection results (0.0, 1.0) to labels like 'sitting' and 'standing.'

Dataset

We used a custom dataset of classroom videos containing annotations of different actions related to classroom behavior. The dataset primarily consists of actions like:

  • Sitting
  • Standing
  • Walking
  • Writing
  • using Phone, etc.

You can modify or expand this dataset according to your specific requirements.

Installation

  1. Clone the repository:

    git clone https://github.com/Prajwal-KS/Action-Detection
    cd action-detection
  2. Set up the project:

    Install dependencies:

    pip install -r requirements.txt
    cd frontend
    npm install
    npm install lucide-react
    • Install required libraries (If missed in requirements)
  3. Configuration:

    Modify any configuration settings as needed (e.g., file paths, model parameters).

Usage

  1. Run backend

    cd backend
    pip install fastapi uvicorn
    pip install fastapi-cors
    uvicorn vid:app --reload
  2. Run frontend

    cd frontend
    npm run dev

Demo:

User Interface(Dark Mode)

workflow

User Interface(Light Mode)

workflow

Processed Video

workflow

Analysis Report

workflow

Model Details 1

workflow

Model Details 2

workflow

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages