This example demonstrates how to register a new face, label new face, extract features and recognise the face in real time.It is a very interesting topic. However, in this example, we are not particular in the accuracy, instead of that, i'm demonstrating the workflow. In order to increase the accuracy, we might need to extract more features for machine learning.
There are many examples available online, some links are provided below, you may take a look at their example.
Example 1: How to activate your webcam
Example 2 : Face Detection and Tracking Using Live Video Acquisition
Example 3: Code for Face Recognition with MATLAB Webinar
m.file : https://www.mathworks.com/matlabcentral/fileexchange/53849-code-for-face-recognition-with-matlab-webinar
video : https://www.mathworks.com/videos/face-recognition-with-matlab-100902.html
Example 4 : Detecting Faces in Image
Example 5 : Facial Recognition using Kekre transform
Example 6 : Facial Recognition with Computer Vision
Example 7 : Real-time Face Recognition
Example 8 : Creating a Cloud Based People Counter Using MATLAB (ThingSpeak)
Registration of New Face in Webcam through Image Acquisition Toolbox
Label of New Face captured by Webcam
Extract Features for Machine Learning
Machine Learning and Prediction
Performs Real-Time Facial Recognition
Product Focus :
Image Acquisition Toolbox
Image Processing Toolbox
Computer Vision System Toolbox
Machine Learning and Statistic Toolbox
Written at 1 October 2018
Kevin Chng (2019). Real-Time Facial Recognition Using HOG Features (https://www.mathworks.com/matlabcentral/fileexchange/68985-real-time-facial-recognition-using-hog-features), MATLAB Central File Exchange. Retrieved .
Modify some error in coding
Inspired by: Code for Face Recognition with MATLAB Webinar
Create scripts with code, output, and formatted text in a single executable document.