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!