SECURE-LENS is a real-time computer vision security application focused on biometric authentication and automatic incident response. Powered by Python and leveraging libraries such as OpenCV, face_recognition, and PyAutoGUI, this project turns your webcam into a security sentinel that locks down your computer when unauthorized faces are detected.
- 🎯 Biometric Authentication
- 🚨 Motion-Triggered Monitoring
- 🔒 Automatic Screen Lockdown
- 📝 Incident Logging & Snapshots
- 🔔 Real-Time Desktop Notifications
- ⚡ Multi-threaded – Always Responsive
Live Intrusion Detection and Screen Blur
- 🧑 Enroll Your Face:
Place a clear frontal image (owner.jpg) in the root folder. - 🎥 Webcam Surveillance:
Monitors for motion and scans for faces only if something moves. - 🕵️♂️ Breach Response:
If an unauthorized face is detected:- An incident is logged with a snapshot and timestamp.
- The desktop display is blurred and a fullscreen warning overlay appears.
- You receive a real-time notification.
- 🙆 Recovery:
Restores access automatically for authorized users.
- Python 3.8+
opencv-pythonface_recognitionnumpypyautoguiPillowplyer
Install dependencies:
pip install opencv-python face_recognition numpy pyautogui Pillow plyer- Add
owner.jpg– Save your face image (frontal, well-lit) asowner.jpgin the repo folder. - Run the application:
python "Secure Lens.py" - Exit any time: Press
qin the main camera window.
SECURE-LENS/
├── Secure Lens.py # Main application
├── Secure Lens cropped.py # (Alternative/app variant)
├── .gitignore
├── incident_logs/ # Forensic images/logs
│ └── security_audit.txt
└── owner.jpg # Your biometric key (not in repo)
- Local only: No biometric data leaves your device.
- Forensic audit: Incident logs + snapshot images per breach.
- Total control: Close the app to release webcam.
Pull requests, suggestions, and issues are always welcome!
- Fork the project
- Create a new branch
- Submit a PR with details of your changes or ideas
Unlicensed (for now). For commercial or non-personal use, please contact the maintainer.
Stay secure with SECURE-LENS!