This Git repo contains code for performing accurate face detection and recognition on CCTV videos using the RetinaFace model for face detection and InsightFace for face recognition.
- Python 3.6 or higher
- OpenCV
- NumPy
- onnxruntime
- PyTorch
- RetinaFace model
- InsightFace model
- Clone the repo:
git clone https://github.com/deepakrajiitk/IntruderShield-Advancing-Security-through-Intelligent-Monitoring.git
- Install the required Python packages:
pip install -r requirements.txt
- Download insightface model
python model_download.py
- Generate embeddings
python get_embeddings.py
- perform face detection and recognition on a CCTV video, simply run:
python recognizer.py
RetinaFace model: https://github.com/deepinsight/insightface/tree/master/RetinaFace
InsightFace model: https://github.com/deepinsight/insightface
OpenCV: https://opencv.org/
PyTorch: https://pytorch.org/