Skip to content

annanyabagga01/PhoneDetector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📱 AI Phone Detector Pro

A professional, real-time object detection web application powered by TensorFlow.js and the COCO-SSD model. This tool monitors your webcam feed and instantly triggers a visual warning when a mobile phone is detected in the frame.

AI Phone Detector JavaScript License

✨ Features

  • 🔍 Real-time Detection: High-speed object recognition using your browser's hardware acceleration.
  • 🚨 Instant Alerts: Dynamic warning overlay that appears immediately when a phone enters the camera view.
  • 🌊 Modern UI: Sleek, dark-themed interface built with the "Outfit" typography and glassmorphism elements.
  • 📡 Motion Analysis: Integrated motion detection to ensure stable and responsive alerts.
  • 🔒 Privacy Focused: All processing happens locally in your browser. No video data is ever sent to a server.

🛠️ Tech Stack

🚀 Getting Started

To run this project locally, follow these simple steps:

Prerequisites

  • A modern web browser (Chrome, Edge, or Firefox recommended).
  • A working webcam.
  • Node.js (optional, for running a local server).

Installation & Running

  1. Clone the repository:

    git clone <repository-url>
    cd camera-phone-detector
  2. Run with NPM:

    npm start

    This will start a local Python server on port 3000.

  3. Alternative (Live Server): If you use VS Code, you can simply right-click index.html and select "Open with Live Server".

📖 How to Use

  1. Camera Access: Click the "Start Camera" button and grant the browser permission to access your webcam.
  2. Model Loading: Wait a few seconds for the COCO-SSD model (approx. 5-10MB) to load. The status badge will update when ready.
  3. Detection: Point your camera towards a mobile phone. The system will outline the device and display a "PHONE DETECTED!" warning.

🛠️ Development

  • index.html: Structure and SEO metadata.
  • style.css: Custom CSS variables, animations, and responsive layout.
  • script.js: Webcam handling, TensorFlow model initialization, and detection logic.

📄 License

This project is licensed under the ISC License.


Built with ❤️ for Security and AI enthusiasts.

About

This AI Phone Detector Pro is a high-performance web application powered by TensorFlow.js and COCO-SSD. It features real-time object detection with a professional glassmorphism UI, motion-sensitive AI triggers, and a built-in siren alert. Designed for privacy, all processing occurs locally in the browser to ensure secure monitoring.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors