Complete Face Recognition Project Using MATLAB (Data Collection, Model Creation And Testing)

preview_player
Показать описание
You can explore more about Transfer Learning Using AlexNet from the below link:
Take the code from this video (as shown in the video):
Face Recognition Project in MATLAB using Transfer learning (with complete code)

Please like , share & subscribe the channel , it will be a great support for us . Happy Learning!

Learn Digital Image Processing using MATLAB:

Learn Machine Learning & Data Science using MATLAB:

🙏🙏🙏🙏🙏🙏🙏🙏
YOU JUST NEED TO DO
3 THINGS to support my channel
LIKE
SHARE
&
SUBSCRIBE
TO MY YOUTUBE CHANNEL

#DigitalImageProcessing #MATLAB #ComputerVision #MachineLearning #DeepLearning #TransferLearning
Рекомендации по теме
Комментарии
Автор

Data Collection:

clc
clear all
close all
warning off;
cao=webcam;

c=150;
temp=0;
while true
e=cao.snapshot;
bboxes =step(faceDetector, e);
if(sum(sum(bboxes))~=0)
if(temp>=c)
break;
else
es=imcrop(e, bboxes(1, :));
es=imresize(es, [227 227]);
filename=strcat(num2str(temp), '.bmp');
imwrite(es, filename);
temp=temp+1;
imshow(es);
drawnow;
end
else
imshow(e);
drawnow;
end
end

Training model:
clc
clear all
close all
warning off
g=alexnet;
layers=g.Layers;


allImages=imageDatastore('datastorage', 'IncludeSubfolders', true, 'LabelSource', 'foldernames');
opts=trainingOptions('sgdm', 'InitialLearnRate', 0.001, 'MaxEpochs', 20, 'MiniBatchSize', 64);
myNet1=trainNetwork(allImages, layers, opts);
save myNet1;


Testing Model:

clc;close;clear
c=webcam;
load myNet1;

while true
e=c.snapshot;
bboxes =step(faceDetector, e);
if(sum(sum(bboxes))~=0)
es=imcrop(e, bboxes(1, :));
es=imresize(es, [227 227]);
label=classify(myNet1, es);
image(e);
title(char(label));
drawnow;
else
image(e);
title('No Face Detected');
end
end

KnowledgeAmplifier
Автор

Yeah this is a very cool video, well done big man. Love how you get back to everyone's issues so quickly. Very attentive

michaelwassell
Автор

Thanks a lot, It is an amazing video... highly recommended

alsabtilaila
Автор

Thanks for sharing I believe thousand of people will gain benefit from your sharing without have any secret. I run the code and its work!

Thanks very much you have unlock the starting journey of research.

shahkhir
Автор

your matlab video helped us a lot in our project assignment ..thanks :D

syedarman
Автор

"This is gold"
Well done bro
👏

kunalsharma
Автор

thanks a lot for this video
from morocco

tarikbenghannou
Автор

Sir, please make another video regarding this project for this content also.

devidasam
Автор

Great video
Can u help me how I can change the code if I'm using the laptop camera

besmahmohammed
Автор

amazing code, and clearly explained! I was wondering if there's a way were we can draw over the captured picture and insert text on it.

ranahassan
Автор

Very helpful
this video helped me at the moment I was stuck.
thanks

ayushanandsagar
Автор

@Knowledge Amplifier: the data collection, training part was fine, but while executing the testing part it's unable to read file, showing error as 'cannot read file'. Plz help!

aishwaryarekapalli
Автор

thanks brother its working, Thankyou so much

rudrasankarbishnu
Автор

Hello, I'm working on similar project in school. While l looking at your training model on line the "g=alexnet", where did that come from? Cos you said something about pertained image. How can I configure that line in my program since I don't have an alexnet except the only captures I have.

opsygallore
Автор

should i install matlab again if I didnt install deep learning toolbox earlier?

sehajpreetsingh
Автор

Hi, Knowledge Amplifier!!! I want to ask, how should I change the code if I collect images and put it in folder instead of using my webcam ?

nuraliaaqilamdzin
Автор

Sir... unable to find directry mynet1.error is coming... what should I do sir

purpleworld
Автор

Hello, hope you're still reading this video comment section because I got question.
I want to put all the image taken in a subfolder named after the user by using the script commnad. for example, Database(parent using command script, then run the Data Collection script so that the image taken at that moment will be the user in front of the camera at the moment. I would like everything here in a command script or two. Thank you

Akuza_Sazaki
Автор

Can u help me how I can change the code if I'm using the external usb camera for my laptop

Ramkumar-cryk
Автор

Do you know how to close windown webcam immediately when i press X on windown webcam?

ngoile