A small Python demo that uses a webcam to detect and recognize faces, then grants or denies access to a specific room based on saved permissions.
- Real-time face detection (OpenCV Haar Cascade)
- Face recognition via encodings (
face_recognition) - Access control per person (e.g., allow
room1, deny others) - On-screen status: Access Granted / Access Denied / Unknown
- Python 3.8+
opencv-pythonnumpyface_recognition
pip install opencv-python numpy face_recognitionEnjoy — and feel free to fork it and build multi-room access, logging, and anti-spoofing on top.