The repository contains code for the blog post Face Reconstruction using EigenFaces.
- Download images. These images are the first 1000 images of the CelebA dataset. You can create a larger model by using more aligned and cropped images from the CelebA dataset.
- Use createPCAModel.cpp or createPCAModel.py to create the modelfile pcaParams.yml.
- Use reconstructFace.cpp or reconstructFace.py to reconstruct the face. It needs the pcaParams.yml file.
LearnOpenCV is maintained by BigVision.AI, a computer vision and AI consulting company. We help organizations design, build, optimize, and deploy production-ready AI solutions. Our team has deep expertise in computer vision, deep learning, multimodal AI, and edge deployment, with experience solving complex technical challenges across industries.
Have a project in mind? Talk with our expert AI solution builders.

