Machine LearningCompleted2025

Person Recognition with PCA & Cosine Similarity

A walkthrough of PCA-based dimensionality reduction and cosine-similarity matching, with the maths and a Python implementation.

Amitesh Maurya

Technologies

  • Python
  • OpenCV
  • NumPy
  • scikit-learn

Summary

A technical write-up working through a classical recognition approach: grayscale face images are flattened into vectors, reduced with Principal Component Analysis, and matched to known identities by cosine similarity — covering the maths, the algorithm steps and a Python implementation.