Skip to content

A Python-Based System Using Computer Vision (OpenCV, NumPy) To Detect User Sleep Through Webcam Input and Trigger an Alarm to Keep the User Alert.

Notifications You must be signed in to change notification settings

PRATHAM777P/SLEEPING-ALARM-SYSTEM_-Python-Project-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

βš οΈπŸ’» Sleeping Alarm System

A Real-Time Drowsiness Detection Tool using Python & OpenCV


🧠 Overview

The Sleeping Alarm System is a Python-based application that leverages computer vision to detect if a user is falling asleep while working on a PC or laptop. By analyzing facial landmarks and eye status, it ensures users remain alert and productive.


πŸ“Έ Demo Preview

πŸ§‘β€πŸ’» Real-Time Sleep Detection

Output


🎯 Features

  • πŸŽ₯ Live Webcam Monitoring
  • πŸ‘οΈ Face & Eye Detection using Haar Cascades
  • πŸ”Š Real-Time Audio Alarm on Sleep Detection
  • ⚑ Lightweight and responsive performance

πŸ› οΈ Tech Stack

Technology Role
🐍 Python Core language
🧠 OpenCV Image processing & detection
πŸ”’ NumPy Array operations
πŸ’» VS Code Development IDE

πŸ” How It Works

  1. Capture webcam feed in real-time.
  2. Detect eyes and face using Haar cascades.
  3. Analyze blinking & eye aspect ratio.
  4. Trigger an alarm if sleep is detected for multiple frames.

About

A Python-Based System Using Computer Vision (OpenCV, NumPy) To Detect User Sleep Through Webcam Input and Trigger an Alarm to Keep the User Alert.

Topics

Resources

Stars

Watchers

Forks

Languages