Skin Segmentation using Colour Detection with Complete Code | MATLAB
Автор: Knowledge Amplifier
Загружено: 2020-08-07
Просмотров: 1322
Описание:
Segmentation aims at partitioning area in the image based on color, shape or textures.
In this project we have implemented Skin Segmentation in MATLAB.
There have been a lot of changes in the ways humans interact with computers.
Modern Human-Computer applications Speech synthesizers , Hand gesture recognition , Biometric identification etc.
In all the above application, skin color is often used as a cue for detecting, localizing and tracking targets containing skin, like faces and hands in an image.
Now obviously this can be done with very high accuracy using Support Vector Machine or using some Deep Learning algorithms.
Although simple color thresholding algorithm also might work beautifully sometime :-)
I tried to do this Skin Segmentation Project using color detection which have a pretty good accuracy in detecting skin (face & hands) .
If you're new to Image Processing & Computer Vision domain , just have a try , you'll enjoy this project.
Prerequisite:
Colour Detection Using Matlab from Scratch
• Colour Detection Using Matlab from Scratch
Just to make boundary across detected skin part use the below code :
clc
clear all
close all
warning off
c=webcam;
faceDetector = vision.CascadeObjectDetector;
while true
e=c.snapshot;
mkdir=createMask(e);
mkdir=imfill(mkdir,'holes');
mkdir=bwareafilt(mkdir,3);
labeledImage = bwlabel(mkdir);
measurements = regionprops(labeledImage,'BoundingBox');
subplot(1,2,1);
imshow(e);
subplot(1,2,2);
imshow(e);
hold on;
for k = 1 : length(measurements)
thisBB = measurements(k).BoundingBox;
rectangle('Position', [thisBB(1),thisBB(2),thisBB(3),thisBB(4)],...
'EdgeColor','b','LineWidth',5 )
end
hold off
end
#DigitalImageProcessing #MATLAB #ComputerVision
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: