A Python-based security camera system that detects and tracks faces and eye movements, saves video recordings, and captures images of detected faces.
- Real-time face and eye detection using Haar cascade classifiers.
- Tracks eye movements and logs directions in a text file.
- Records video when a face is detected and stops recording after no detection for a configurable duration.
- Saves images of detected faces with timestamps.
- Encoded file support for monitored individuals.
- Python 3.x
- OpenCV
- Pickle
-
Clone the repository:
git clone https://github.com/samaltaa/Security-Camera.git cd Security-Camera -
Install dependencies:
pip install opencv-python
-
Ensure the following files are in the project directory:
haarcascade_frontalface_default.xmlhaarcascade_eye.xmlEncodeFile.p
-
Run the script:
python security_camera.py
-
Press
qto exit the application.
- Images/: Stores images of detected faces.
- Videos/: Stores recorded video clips.
- eye_movements.txt: Logs detected eye movement directions.
- Refactor code to reduce redundancy.
- Add additional functionalities like multi-camera support.
This project is licensed under the MIT License.