Skip to content

Ryzen-Starbit/PivacyGuard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ PrivacyGuard – AI Desktop Privacy Monitoring System

PrivacyGuard is an intelligent desktop security application that protects your screen from unauthorized viewers by continuously monitoring the surroundings using computer vision.

Unlike traditional screen-locking software, PrivacyGuard actively detects suspicious activity such as shoulder surfing, unknown faces and user absence. It provides real-time alerts, automatically captures faces and helps users maintain privacy while working in public or shared environments.


πŸ“Œ Problem

Modern laptops contain sensitive personal and professional information, yet they remain vulnerable to:

  • Shoulder surfing attacks
  • Unauthorized screen viewing
  • Identity theft
  • Privacy leakage in public places
  • Lack of intelligent monitoring while users are away

PrivacyGuard addresses these challenges using AI-powered face detection, gaze tracking, and real-time threat analysis.


🎯 Project Objective

The goal of PrivacyGuard is to build a smart desktop privacy assistant capable of:

  • Monitoring nearby individuals in real time
  • Detecting unauthorized viewers
  • Identifying known and unknown faces
  • Alerting users about privacy threats
  • Capturing evidence of suspicious activity
  • Providing privacy analytics and activity logs

✨ Features

πŸ‘€ Face Recognition

  • Detects multiple faces in real time
  • Identifies authorized users
  • Recognizes unknown visitors

πŸ‘€ Shoulder Surfing Detection

  • Detects prolonged screen observation
  • Identifies suspicious viewing behavior
  • Real-time privacy alerts

🎯 Gaze Tracking

  • Estimates viewing direction
  • Detects attention toward the screen
  • Improves threat detection accuracy

🚨 Intelligent Threat Detection

  • AI-based privacy risk analysis
  • Unknown face detection
  • Suspicious behavior monitoring
  • Automatic event logging

πŸ“Έ Evidence Capture

  • Saves screenshots during security events
  • Captures intruder images
  • Stores incident history

πŸ“Š Privacy Analytics

  • Threat statistics
  • Event history
  • User activity monitoring
  • Privacy insights dashboard

βš™οΈ User Management

  • Authorized user registration
  • Settings management
  • Configurable alert system

Threat Levels:

🟒 Low β€” Only authorized user present 🟑 Medium β€” Multiple people nearby πŸ”΄ High β€” Unknown person staring at screen


πŸ— System Architecture

Webcam
      β”‚
      β–Ό
Frame Capture Engine
      β”‚
      β–Ό
Face Detection
      β”‚
      β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Ί Face Recognition
      β”‚
      β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Ί Gaze Tracking
      β”‚
      β–Ό
Threat Detection Engine
      β”‚
      β–Ό
Privacy Decision
      β”‚
      β”œβ”€β”€β”€β”€β”€β”€β”€β”€β–Ί Alerts
      β”œβ”€β”€β”€β”€β”€β”€β”€β”€β–Ί Screenshot Capture
      β”œβ”€β”€β”€β”€β”€β”€β”€β”€β–Ί Database Logging
      └────────► Analytics Dashboard

πŸ›  Tech Stack

Desktop Application

  • Python
  • PyQt6

Computer Vision

  • OpenCV
  • MediaPipe
  • Face Recognition
  • NumPy

Database

  • SQLite

Desktop Notifications

  • Plyer

Other Libraries

  • Pillow
  • Threading
  • JSON
  • OS Utilities
  • Matplotlib
  • ReportLab

βš™ Installation

1. Clone Repository

git clone https://github.com/yourusername/PrivacyGuard.git

cd PrivacyGuard

2. Create Virtual Environment

python -m venv venv

3. Activate Environment

Windows

venv\Scripts\activate

Linux / macOS

source venv/bin/activate

4. Install Dependencies

pip install -r requirements.txt

β–Ά Running the Application

Simply run:

python main.py

PrivacyGuard will initialize the camera, load settings, and launch the desktop monitoring interface.


πŸ“– Usage

  1. Launch PrivacyGuard.
  2. Complete the initial setup.
  3. Register authorized users.
  4. Allow webcam access.
  5. PrivacyGuard continuously monitors the environment.
  6. Receive instant alerts whenever suspicious activity is detected.
  7. Review captured incidents and analytics from the dashboard.

πŸ“‚ Project Structure

PrivacyGuard/
β”‚
β”œβ”€β”€ alerts/
β”‚   └── notification.py
β”‚
β”œβ”€β”€ assets/
β”‚   β”œβ”€β”€ icons/
β”‚   └── alert_sound.wav
β”‚
β”œβ”€β”€ core/
β”‚   β”œβ”€β”€ capture_engine.py
β”‚   β”œβ”€β”€ face_engine.py
β”‚   β”œβ”€β”€ frame_processor.py
β”‚   β”œβ”€β”€ gaze_tracker.py
β”‚   └── threat_engine.py
β”‚
β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ authorized_faces/
β”‚   β”œβ”€β”€ intruder_captures/
β”‚   β”œβ”€β”€ screenshots/
β”‚   └── settings.json
β”‚
β”œβ”€β”€ database/
β”‚   β”œβ”€β”€ db_manager.py
β”‚   └── privacy_guard.db
β”‚
β”œβ”€β”€ gui/
β”‚   β”œβ”€β”€ analytics_panel.py
β”‚   β”œβ”€β”€ log_viewer.py
β”‚   β”œβ”€β”€ main_window.py
β”‚   β”œβ”€β”€ overlay_window.py
β”‚   β”œβ”€β”€ settings_panel.py
β”‚   β”œβ”€β”€ setup_wizard.py
β”‚   β”œβ”€β”€ tray_manager.py
β”‚   └── user_manager.py
β”‚
β”œβ”€β”€ main.py
β”œβ”€β”€ requirements.txt
└── README.md

πŸ”’ Security Features

  • Real-time face monitoring
  • Unknown user detection
  • Shoulder surfing alerts
  • Automatic screenshot capture
  • Event history logging
  • Authorized user management
  • Privacy-focused local processing

🀝 Contribution

Contributions, suggestions and improvements are welcome.

To contribute:

  • Fork the repository
  • Create a feature branch
  • Commit your changes
  • Push to your branch
  • Submit a Pull Request

About

PrivacyGuard is an AI-powered desktop privacy monitoring system that detects shoulder surfing, unauthorized viewers and suspicious activity around your computer using real-time computer vision and intelligent threat analysis.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages