"HayOSVisionLock" π Secure your PC with HayOSVisionLock! πΌοΈ Powered by
face_recognitionand 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. π.
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.
- 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
- Python 3.7+
- pip (Python package installer)
- Clone the repository:
git clone https://github.com/haybnzz/HayOSVisionLock/ cd HayOSVisionLock pip install -r requirements.txt python HayOSVisionLock.py
- Ensure your webcam is connected.
- Place images of authorized faces in the
known_facesfolder. - Run the application β the webcam feed will open and start detecting faces.
- Press
rto register a new face (requires system password). - Press
qto quit the application.
- 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.
HayOSVisionLock/ βββ known_faces/ # Folder for storing authorized face images βββ HayOSVisionLock.py # Main application script βββ requirements.txt βββ README.md
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 notificationsTOLERANCE: 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)
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.
Email: singularat@protn.me
Donate via Monero:
45PU6txuLxtFFcVP95qT2xXdg7eZzPsqFfbtZp5HTjLbPquDAugBKNSh1bJ76qmAWNGMBCKk4R1UCYqXxYwYfP2wTggZNhq
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}},
}
