code to detect lips and nose in a detected face

7 Ansichten (letzte 30 Tage)
shradha
shradha am 18 Mär. 2011
Beantwortet: vijay krishna am 22 Jul. 2016
i need a code to detect and lips and nose in a given detected face..
pls do help if possible..
thanx a lot

Antworten (3)

vijay krishna
vijay krishna am 22 Jul. 2016
code to detect nose
k=imread('MYface.jpg'); %preferably 150*150 size image I=k(:,:,1);
faceDetect = vision.CascadeObjectDetector(); bbox=step(faceDetect,I); face=imcrop(I,bbox);
imshow(face);
ndetect=vision.CascadeObjectDetector('Nose','MergeThreshold',1); %ndetect = vision.CascadeObjectDetector('Nose', 'UseROI', true);
nosebox=step(ndetect,face); noseCenterx=nosebox(1,1)+(nosebox(1,3)/2)+bbox(1); noseCentery=nosebox(1,2)+(nosebox(1,4)/2); noseCentery=noseCentery+bbox(2); %shape=[noseCenterx-50 noseCentery+200]; shape=[noseCenterx noseCentery]; imshow(I);hold on;plot(shape(:,1),shape(:,2),'+','MarkerSize',10);

Sean de Wolski
Sean de Wolski am 29 Mär. 2011
imshow(your_face_image);
Hmbx = msgbox('Please click the nose first then the lips!');
uiwait(Hmbx)
[x y] = ginput(2);
fprintf('\nNose is at %3.1f, %3.1f\n',x(1),y(1));
fprintf('Lips are at %3.1f, %3.1f\n',x(2),y(2));

Woo Kim
Woo Kim am 26 Sep. 2011
Can I use your code in my program? Thanks.
  1 Kommentar
Jan
Jan am 26 Sep. 2011
Yes, or no, it depends.
Are you asking, if you are allowed to use some code, or if you are able to use it, e.g. because you have no MATLAB?
And whom are you asking? Sean de, shredha or anyone else?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Animation finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by