⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 findeye.m

📁 Summary: Simple face and eye detection MATLAB Release: R13 Description: You can use this codes
💻 M
字号:
function findeye(NumberOfFrames,prefix,fileformat,threshold);

ort=round(NumberOfFrames/2);
if ort<10
    art=strcat('00',num2str(ort));
elseif ort<100
    art=strcat('0',num2str(ort));
else
    art=strcat(num2str(ort));
end

I=imread(strcat(prefix,art,'.',fileformat));
disp('Please Crop The Right Eye Template');
templateR=double(rgb2gray(imcrop(uint8(I))));
disp('Please Crop The Left Eye Template');
templateL=double(rgb2gray(imcrop(uint8(I))));
close;

for num = 1:NumberOfFrames
     if num < 10 
      frame = imread(strcat(prefix,'00',num2str(num),'.',fileformat));
  elseif num<100
      frame = imread(strcat(prefix,'0',num2str(num),'.',fileformat));
  else
      frame = imread(strcat(prefix,num2str(num),'.',fileformat));
  end 
  
  eyematch2(frame,threshold,templateR,templateL);
   
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -