Exploring Image Classification & Facial Recognition Techniques:
A Comparative Analysis of LBP, HoG, and CNN Features
Resources |
Report | Code | Github Repository | Dataset | Poster | Video |
Abstract
This code constitutes a comprehensive exploration of image feature extraction techniques and classification methodologies for facial recognition tasks, employing the widely used Labeled Faces in the Wild (LFW) dataset. The code begins by fetching and inspecting the dataset, revealing essential information such as the number of images, their sizes, and the unique classes present. Subsequently, it delves into various feature extraction techniques, including Linear Binary Pattern (LBP), Histogram of Oriented Gradients (HoG), and convolutional features, each implemented both manually and utilizing existing libraries. For LBP, the code presents a manual implementation alongside the usage of the local_binary_pattern function from the scikit-image library, demonstrating the versatility and efficiency of established libraries. HoG features are extracted by computing gradient magnitudes and orientations, followed by histogram computation to capture the distribution of gradients in the image. The code further explores convolutional features using custom kernels for vertical and horizontal edge detection, as well as a Gabor filter kernel for texture analysis, showcasing the flexibility of convolutional techniques in capturing diverse image characteristics. Additionally, the code provides a glimpse into the classification aspect by employing Support Vector Machines (SVM) and K-Nearest Neighbors (KNN) algorithms to classify facial images based on the extracted features. Evaluation metrics such as accuracy can be computed to assess the performance of the classification models, providing insights into their effectiveness in recognizing faces from the LFW dataset. By offering a detailed examination of feature extraction techniques and classification algorithms, this code serves as a valuable resource for researchers, practitioners, and enthusiasts seeking to understand and implement facial recognition systems. It not only demonstrates the efficacy of different methods but also encourages experimentation and customization to suit specific requirements and domains.
Keywords: face-recognition, cnn, lbp, hog, feature-extraction
The Problem Statement
Face Identification: Identify a face image by classifying to one of K classes.
Extract LBP, HoG
and CNN Features using the code provided and compare different techniques.
Dataset: https://www.kaggle.com/datasets/jessicali9530/lfw-dataset
Different Techniques
![]() |
![]() |
Video
Report
![]() |
Exploring Image Classification & Facial Recognition Techniques: A Comparative Analysis of LBP, HoG, and CNN Features |
Code Preview