Hand gestures can be a useful medium of human-computer interaction and can make the interaction easier.
There are many ways to create hand gesture recognition -one simple way is Transfer Learning.
I have made hand gesture recognition program by laptop camera using AlexNet , here is the demo:
• Hand Gesture Recogniti...
And in this video , I have explained complete project implementation (code is given in the description box and comment section)
Hope this will help you.
Happy Coding :-)
Code for Data Collection is given in the comment section.
Code for training:
clc
clear all
close all
warning off
g=alexnet;
layers=g.Layers;
layers(23)=fullyConnectedLayer(7);
layers(25)=classificationLayer;
allImages=imageDatastore('Hand Dataset','IncludeSubfolders',true, 'LabelSource','foldernames');
opts=trainingOptions('sgdm','InitialLearnRate',0.001,'MaxEpochs',20,'MiniBatchSize',64);
myNet1=trainNetwork(allImages,layers,opts);
save myNet1;
Code for testing:
clc;
close all;
clear all
warning off
c=webcam;
load myNet1;
x=0;
y=0;
height=200;
width=200;
bboxes=[x y height width];
while true
e=c.snapshot;
IFaces = insertObjectAnnotation(e,'rectangle',bboxes,'Processing Area');
es=imcrop(e,bboxes);
es=imresize(es,[227 227]);
label=classify(myNet1,es);
imshow(IFaces);
title(char(label));
drawnow;
end
Learn Complete Image Processing & Computer Vision using MATLAB:
• Digital Image Processi...
Learn Complete Machine Learning & Data Science using MATLAB:
• Data Science & Machine...
Learn Digital Signal Processing using MATLAB:
• Digital Signal Process...
#TransferLearning #MATLAB #ComputerVision #ImageProcessing
Негізгі бет Ғылым және технология Hand Gesture Recognition using MATLAB (with complete code & explanation)
Пікірлер: 77