Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yonatankinfe/mathlabfacedetector
Welcome to the Custom Face Detector project! This repository offers code and resources for creating a custom face detection system using MATLAB. Utilizing Convolutional Neural Networks (CNNs), the project aims to accurately detect and classify faces in images. Whether you're a beginner or an advanced user, this project provides a practical example
https://github.com/yonatankinfe/mathlabfacedetector
Last synced: about 2 months ago
JSON representation
Welcome to the Custom Face Detector project! This repository offers code and resources for creating a custom face detection system using MATLAB. Utilizing Convolutional Neural Networks (CNNs), the project aims to accurately detect and classify faces in images. Whether you're a beginner or an advanced user, this project provides a practical example
- Host: GitHub
- URL: https://github.com/yonatankinfe/mathlabfacedetector
- Owner: Yonatankinfe
- Created: 2024-06-27T14:03:13.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-06-27T19:17:20.000Z (6 months ago)
- Last Synced: 2024-06-27T22:14:41.944Z (6 months ago)
- Language: MATLAB
- Homepage:
- Size: 1.48 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Custom Face Detector Using AI in MATLAB ๐ค๐ท
# Introduction
Welcome to the Custom Face Detector project! ๐ This repository contains code and resources for building a custom face detection system using MATLAB. ๐ง ๐ป By leveraging Convolutional Neural Networks (CNNs), this project aims to accurately detect and classify faces from a set of images. ๐ฅ๐ธ Whether you are a beginner or an advanced user, this project provides a practical example of how to implement machine learning for image processing tasks. ๐๐
# Project Overview
This project demonstrates how to create a custom face detector using a Convolutional Neural Network (CNN) in MATLAB. ๐ The steps include preparing the dataset, training the model, detecting faces in new images, and evaluating the model's performance. ๐ก๐ฌ Hereโs a brief overview of what the code does: ๐
# Data Preparation ๐๏ธ
+ Load images of two individuals (Yonatan and another person) from specified folders. ๐ง๐
+ Combine the images into a single datastore. ๐ผ๏ธโก๏ธ๐
+ Split the data into training and validation sets. ๐๏ธโโ๏ธ๐
# Data Augmentation ๐๐
+ Resize the images to match the input size expected by the CNN. ๐๐ผ๏ธ
+ Convert grayscale images to RGB format. ๐โก๏ธ๐
# CNN Architecture ๐ง ๐๏ธ
Define a simple CNN with several convolutional, batch normalization, ReLU, and max-pooling layers. ๐๐
Add fully connected, softmax, and classification layers for the final output. ๐๐งฎโ
# Training ๐ฏ
+ Set training options such as the optimizer, learning rate, and number of epochs. โ๏ธโณ
+ Train the CNN using the augmented training data. ๐๏ธโโ๏ธ๐ผ๏ธ
+ Save the trained model. ๐พ๐
# Face Detection ๐ฅ๐
+ Use a pre-trained model to detect faces in new images. ๐ค๐ท
+ Crop and resize the detected faces. โ๏ธ๐
+ Classify the faces using the trained CNN. ๐ง ๐ฅ
# Evaluation ๐งช๐
+ Load test data and make predictions using the trained model. ๐๐ฎ
+ Display a confusion matrix to visualize the performance. ๐๐
+ Calculate and display the accuracy of the model. ๐๐ฏ
This project provides a comprehensive example of using MATLAB for image classification and face detection tasks, leveraging the power of convolutional neural networks and data augmentation techniques. ๐๐ธ
# Here are some images ๐ท๐ผ๏ธ
![image](https://github.com/Yonatankinfe/MathlabFaceDetector/assets/158090444/c1556bf5-4ec4-4e1c-8254-e8cb237d7c3e)
![image](https://github.com/Yonatankinfe/MathlabFaceDetector/assets/158090444/2a9d2588-8ea4-40a5-8809-5c91ef31bc0a)
![image](https://github.com/Yonatankinfe/MathlabFaceDetector/assets/158090444/27e94976-3a80-42f2-bc00-0e3f5bea75d4)
![image](https://github.com/Yonatankinfe/MathlabFaceDetector/assets/158090444/929f5377-1bbe-4a6a-a10a-263a35875f8f)
![image](https://github.com/Yonatankinfe/MathlabFaceDetector/assets/158090444/f11a6d74-7759-4697-83ec-3e9cdb1d32e5)
![image](https://github.com/Yonatankinfe/MathlabFaceDetector/assets/158090444/e1dab04b-bef5-4849-98c0-d3a3ed8b0541)
![image](https://github.com/Yonatankinfe/MathlabFaceDetector/assets/158090444/a2ad74a9-3d8f-4e9d-b443-970c051559ad)