-
Frame Extraction: Extract frames from the video using OpenCV to isolate images at regular intervals for further processing.
-
Face Detection: Detect faces in each extracted frame using MTCNN, cropping the face areas for enhancement.
-
Preprocessing: Align and normalize the detected faces to ensure consistency in facial orientation and size before sending them to enhancement models.
-
Facial Enhancement (GAN-based Models): Pass the cropped faces through models like CodeFormer and GFPGAN to restore and enhance facial details, improving resolution and clarity.
-
Feature Reconstruction: Enhance facial features using deep learning techniques embedded in the models, reducing blur and improving overall image quality.
-
Post-Processing: Combine the reconstructed faces with the original frames, ensuring the faces are enhanced while preserving frame continuity for any further analysis.
The result folder contains the comparative results tried on the video content/market.mp4.
The result folder contains codeFormer_result and gfpgan_result respectively. result/gfpgan_result/cmp and result/coderformer_result/compare contains side by side comparison of extracted and enhanced image
Real-Time Monitoring: Implemented real-time monitoring using OpenCV2 and the face_recognition library. This allows the system to detect and recognize faces in real-time from live video feeds or pre-recorded videos.
Vector Database for Face Recognition: Integrated a vector database for face recognition to detect and identify suspects from a pre-existing database. If the person is known, the system flags the match and provides relevant information.
3D Face Reconstruction (3DDFA-V3): Added 3D face reconstruction using 3DDFA-V3, where the system can construct a 3D mesh of the detected face. By using RetinaFace for enhanced image processing, users can view the 3D model of the face in a 360-degree view.
UI/UX (Facial-Police): Developed a user-friendly UI/UX platform called "Facial-Police" that facilitates the reconstruction of faces from CCTV footage or other video scenarios. The interface allows seamless access, making it easy for users to upload footage, reconstruct faces, and analyze results without hassle.