Skip to content

h9zdev/HayOSVisionLock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

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

Repository files navigation

HayOSVisionLock

HayOSVisionLock Logo

CC BY-NC 4.0 License GitHub Issues GitHub Stars Profile Views Website Paper Python OpenCV Face Recognition

"HayOSVisionLock" πŸ”’ Secure your PC with HayOSVisionLock! πŸ–ΌοΈ Powered by face_recognition and OpenCV (cv2), this tool uses your webcam to detect faces and locks your Windows PC if an unknown face is detected. 🚨 It sends Discord notifications with images of unrecognized faces and allows secure face registration with password verification. πŸ”‘.

Overview

HayOSVisionLock is a CNN-based tool designed for secure and accurate image classification, supporting various visual analysis tasks. The model leverages a convolutional neural network architecture built with TensorFlow and Keras to deliver robust performance.

πŸ” Features

  • Secure and automated image classification
  • Support for multiple visual analysis categories
  • User-friendly web interface for image upload and analysis
  • High-accuracy classification using convolutional neural networks

πŸ“‹ Table of Contents

πŸ”§ Installation

Prerequisites

  • Python 3.7+
  • pip (Python package installer)

Steps

  1. Clone the repository: git clone https://github.com/haybnzz/HayOSVisionLock/ cd HayOSVisionLock pip install -r requirements.txt python HayOSVisionLock.py

πŸ“Œ Usage

▢️ Running the Application

  • Ensure your webcam is connected.
  • Place images of authorized faces in the known_faces folder.
  • Run the application β€” the webcam feed will open and start detecting faces.

πŸ”‘ Controls

  • Press r to register a new face (requires system password).
  • Press q to quit the application.

πŸ”’ Lock Behavior

  • If an unknown face is detected or no known face is seen for 10 seconds (default timeout):
    • The PC will automatically lock.
    • A Discord notification will be sent with the captured unknown face image.

πŸ“ Project Structure

HayOSVisionLock/ β”œβ”€β”€ known_faces/ # Folder for storing authorized face images β”œβ”€β”€ HayOSVisionLock.py # Main application script β”œβ”€β”€ requirements.txt └── README.md

βš™οΈ Configuration

Edit the following variables in face_lock.py to customize behavior:

  • KNOWN_FACES_DIR: Directory for authorized face images (default: known_faces)
  • DISCORD_WEBHOOK_URL: Your Discord webhook URL for notifications
  • TOLERANCE: Face recognition tolerance (default: 0.6, lower is stricter)
  • LOCK_TIMEOUT: Seconds before locking if no known face is detected (default: 10)
  • CHECK_INTERVAL: Seconds between face checks (default: 1)

πŸ“„ License

This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) License.
See the LICENSE file for more details.
Unauthorized use is strictly prohibited.

πŸ“§ Contact

Email: singularat@protn.me

πŸ’Έ Support

Donate via Monero: 45PU6txuLxtFFcVP95qT2xXdg7eZzPsqFfbtZp5HTjLbPquDAugBKNSh1bJ76qmAWNGMBCKk4R1UCYqXxYwYfP2wTggZNhq

πŸ‘¨β€πŸ’» Contributors and Developers

haybnzz

Glitchesminds

πŸ“š Citation

If you use HayOSVisionLock in your research, please cite:

@misc{HayOSVisionLock2025,
  author       = {Hayden Banz and Glitchesminds},
  title        = {HayOSVisionLock: Face Recognition Based System Lock with Discord Alerts},
  year         = {2025},
  publisher    = {GitHub},
  journal      = {GitHub repository},
  howpublished = {\url{https://github.com/haybnzz/HayOSVisionLock}},
}



About

HayOS Vision uses facial recognition to authenticate registered users, automatically unlocking the PC when a recognized face is detected in front of the system. If an unregistered or unrecognized face is detected, the system locks to ensure security.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages