Skip to content

About

No description, website, or topics provided.

Resources

Stars

12 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📵 AI Phone Detection & Alert System

This is a Python-based application that uses Computer Vision (YOLOv8) to detect mobile phones in a live webcam feed. When a phone is detected, it triggers an audio alarm.

This tool is useful for Study Sessions, No-Phone Zones, or Focus Time to prevent digital distractions.

🚀 Features

  • Real-time Detection: Uses the YOLOv8 Nano model for fast and accurate detection.
  • Audio Alert: Plays an alarm/sound file when a phone is visible.
  • Performance Optimized: Includes frame skipping and image resizing to run smoothly on standard laptops.
  • Customizable: Easily change detection sensitivity, cooldown timers, and screen resolution.
  • State-Aware Audio: Audio stops immediately when the phone is removed from the frame.

🛠️ Prerequisites

  • Python 3.8 or higher installed on your system.
  • A Webcam.

📦 Installation

  1. Clone or Download this repository/folder.
  2. Open your terminal/command prompt in the project folder.
  3. Install the required Python libraries:
pip install opencv-python ultralytics pygame


## Run
python app.py

About

No description, website, or topics provided.

Resources

Stars

12 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages