Ok, in this opportunity I will share to you about MATLAB Source Code. In MATLAB some of program codes have a functionality more than we expect. If you use MATLAB CODE, you will find some of basic code replaced with the special functions.
In this occassion, I will share to you all about face detection with MATLAB. I really like this source code, because we can detect the face and give it the rectangle area in his/her face. This is the code :
clear all
clc
%Detect objects using Viola-Jones Algorithm
%To detect Face
FDetect = vision.CascadeObjectDetector;
%Read the input image
I = imread('H:\ZHIE FOLDER\Whatsapp\KUNJUNGAN.jpg');
%Returns Bounding Box values based on number of objects
BB = step(FDetect,I);
figure,
imshow(I); hold on
for i = 1:size(BB,1)
rectangle('Position',BB(i,:),'LineWidth',5,'LineStyle','-','EdgeColor','r');
end
title('Face Detection');
hold off;
This is the result if we use the code, look at the picture below :
Ok, lets do it your self. Any questions? Please contact me. ^_^
0 komentar:
Posting Komentar
IQbaL Readers, you can gives me comments in this column. I hope, we can sharing anything. Ok.