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.
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.
- 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.'
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.
-
Clone the repository:
git clone https://github.com/Prajwal-KS/Action-Detection cd action-detection -
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)
-
Configuration:
Modify any configuration settings as needed (e.g., file paths, model parameters).
-
Run backend
cd backend pip install fastapi uvicorn pip install fastapi-cors uvicorn vid:app --reload -
Run frontend
cd frontend npm run dev





