Eye Detection
The next step in the workflow is Eye detection. CODE: ed = vision.CascadeObjectDetector('EyePairBig'); BoundBox=step(ed,J); figure,imshow(J); for i = 1:size(BoundBox,1) aaa = rectangle('Position',BoundBox(i,:),'LineWidth',4,'LineStyle','-','EdgeColor','r'); end %Crop out eye area for i = 1:size(BoundBox,1) J= imcrop(J,BoundBox(i,:)) figure(3),subplot(2,2,i);imshow(J); end
Comments
Post a Comment