GitPedia

FaceRecognitionUsing PCA 2D PCA And 2D Square PCA

Implementation of PCA/2D-PCA/2D(Square)-PCA in Python for recognizing Faces: 1. Single Person Image 2. Group Image 3. Recognize Face In Video

From Parveshdhull·Updated March 9, 2026·View on GitHub·

Implementation of PCA/2D-PCA/2D(Square)-PCA in Python for recognizing Faces: 1. Single Person Image 2. Group Image 3. Recognize Face In Video The project is written primarily in Python, distributed under the Apache License 2.0 license, first published in 2019. Key topics include: 2d-pca, 2d-square-pca, face-recognition, face-recognition-python, face-recognition-video.

FaceRecognitionUsing-PCA-2D-PCA-And-2D-Square-PCA

Implementation of PCA/2D-PCA/2D(Square)-PCA in Python for recognizing Faces:

  1. Single Person Image
  2. Group Image
  3. Recognize Face In Video

Accuracy on ORL dataset

  • PCA(93.42%)
  • 2D-PCA(96.05%)
  • 2D(Square)-PCA(97.36%)

Requirements

  1. numpy
  2. opencv
  3. scipy

Usage

  1. In Face_Recognition class use algo_type from (pca, 2d-pca, 2d2-pca)
  2. In Face_Recognition class use reco_type as
  • for single image = 0
  • for video = 1
  • for group image = 2
  1. The project uses ORL dataset, You can put your dataset in the images folder and change the name of the dataset in the dataset.py file
    (You can create new dataset by extracting faces using FaceExtractor provided)
  2. Run Face_Recognition and Enjoy Project

Videos

Liked my work?

<a href="https://www.buymeacoffee.com/parveshmonu" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a>

Websites

https://github.com/Parveshdhull
<br />https://twitter.com/ParveshMonu
<br />https://youtube.com/right2trick

Contributors

Showing top 1 contributor by commit count.

View all contributors on GitHub →

This article is auto-generated from Parveshdhull/FaceRecognitionUsing-PCA-2D-PCA-And-2D-Square-PCA via the GitHub API.Last fetched: 6/28/2026