Skip to content

This is an App that wakes you app if you fell asleep at your desk. This was made only for fun!

Notifications You must be signed in to change notification settings

AbdessamadAe/Stay-Awake-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Stay-Awake-App

Mission

Stay Awake App is a proactive computer vision application designed to detect when a student has fallen asleep at their laptop and emit a sound to awaken them. This project is born out of the common student experience of burning the midnight oil, only to unintentionally drift off while studying or working on an assignment.

How it Works

Using advanced computer vision techniques, the Stay Awake App monitors your eyes through the webcam. If it detects that your eyes have been closed for a certain threshold of time, it concludes that you might have dozed off and plays a sound to wake you up.

Features

  • Real-time eye tracking to detect when the user is likely asleep.
  • Audio alert to wake the user from their unintended nap.

Getting Started

Prerequisites

  • A webcam
  • Python 3.6+
  • OpenCV, MediaPipe, and Pygame

Installation & Usage

  1. Clone the repository:
    git clone https://github.com/Abdessamadae/stay-awake-app.git
  2. Run:
    pip install opencv-python mediapipe pygame
  3. Run:
    python wakeup_alert.py
    

Customization

You can customize the following parameters within the script:

  1. Sound File: Change the sound file to any .wav file of your choice.
  2. Sensitivity: Adjust the time threshold to avoid false positives from normal blinking.

About

This is an App that wakes you app if you fell asleep at your desk. This was made only for fun!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages