function varargout = facerecg(varargin)
% FACERECG MATLAB code for facerecg.fig
% FACERECG, by itself, creates a new FACERECG or raises the existing
% singleton*.
%
% H = FACERECG returns the handle to a new FACERECG or the handle to
% the existing singleton*.
%
% FACERECG('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in FACERECG.M with the given input arguments.
%
% FACERECG('Property','Value',...) creates a new FACERECG or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before facerecg_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to facerecg_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help facerecg
% Last Modified by GUIDE v2.5 14-May-2014 00:27:13
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @facerecg_OpeningFcn, ...
'gui_OutputFcn', @facerecg_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before facerecg is made visible.
function facerecg_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to facerecg (see VARARGIN)
% Choose default command line output for facerecg
handles.output = hObject;
set(gcf,'name','人脸识别系统')
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes facerecg wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = facerecg_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
% --- Executes on button press in pushbuttontrain.
function pushbuttontrain_Callback(hObject, eventdata, handles)
% hObject handle to pushbuttontrain (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in pushbuttonloadimg.
function pushbuttonloadimg_Callback(hObject, eventdata, handles)
% hObject handle to pushbuttonloadimg (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
%文件筛选框 选择图片
[filename,pathname] = uigetfile({'*.jpg;*.bmp;*.tif;*.png;*.gif','All Image Files'},'请选择一张图片');
if filename == 0%如果没有选择,直接返回即可
return;
end
strfullname = strcat(pathname,filename);%取得图像文件全名
I = imread(strfullname);%读取图片
axes(handles.axes1)
imshow(I);%显示图片
title('测试图像')
%存入到handles内,以便被别的函数调用
handles.I = I;
handles.faceI = I;
% Update handles structure
guidata(hObject, handles);
% --- Executes on button press in pushbuttonfacedetect.
function pushbuttonfacedetect_Callback(hObject, eventdata, handles)
% hObject handle to pushbuttonfacedetect (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
msgbox('QQ609553134')
% --- Executes on button press in pushbuttonalltest.
function pushbuttonalltest_Callback(hObject, eventdata, handles)
% hObject handle to pushbuttonalltest (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in pushbuttonreco.
function pushbuttonreco_Callback(hObject, eventdata, handles)
% hObject handle to pushbuttonreco (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in pushbuttonsave.
function pushbuttonsave_Callback(hObject, eventdata, handles)
% hObject handle to pushbuttonsave (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in pushbutton7.
function pushbutton7_Callback(hObject, eventdata, handles)
global vid
vid=videoinput('winvideo',1);
set(vid,'ReturnedColorSpace','rgb');
preview(vid)%固定格式
% hObject handle to pushbutton7 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in pushbutton8.
function pushbutton8_Callback(hObject, eventdata, handles)
global vid
global I
I = getsnapshot(vid);
axes(handles.axes1);
imshow(I)
save I
% hObject handle to pushbutton8 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
没有合适的资源?快使用搜索试试~ 我知道了~
MATLAB实现人脸识别打卡,统计打卡次数,带GUI界面.zip
共94个文件
bmp:90个
m:2个
png:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 3 浏览量
2023-05-25
23:09:17
上传
评论
收藏 1.21MB ZIP 举报
温馨提示
MATLAB实战项目。 项目代码可顺利编译运行~
资源推荐
资源详情
资源评论
收起资源包目录
MATLAB实现人脸识别打卡,统计打卡次数,带GUI界面.zip (94个子文件)
MATLAB实现人脸识别打卡,统计打卡次数,带GUI界面
facedetect.m 704B
facerecg.fig 8KB
图片1.png 138KB
人脸库
01
s1.bmp 30KB
s2.bmp 30KB
s9.bmp 30KB
s10.bmp 30KB
s6.bmp 30KB
s3.bmp 30KB
s8.bmp 30KB
s5.bmp 30KB
s7.bmp 30KB
s4.bmp 30KB
09
s1.bmp 30KB
s2.bmp 30KB
s9.bmp 30KB
s10.bmp 30KB
s6.bmp 30KB
s3.bmp 30KB
s8.bmp 30KB
s5.bmp 30KB
s7.bmp 30KB
s4.bmp 30KB
03
s1.bmp 30KB
s2.bmp 30KB
s9.bmp 30KB
s10.bmp 30KB
s6.bmp 30KB
s3.bmp 30KB
s8.bmp 30KB
s5.bmp 30KB
s7.bmp 30KB
s4.bmp 30KB
07
s1.bmp 30KB
s2.bmp 30KB
s9.bmp 30KB
s10.bmp 30KB
s6.bmp 30KB
s3.bmp 30KB
s8.bmp 30KB
s5.bmp 30KB
s7.bmp 30KB
s4.bmp 30KB
04
s1.bmp 30KB
s2.bmp 30KB
s9.bmp 30KB
s10.bmp 30KB
s6.bmp 30KB
s3.bmp 30KB
s8.bmp 30KB
s5.bmp 30KB
s7.bmp 30KB
s4.bmp 30KB
08
s1.bmp 30KB
s2.bmp 30KB
s9.bmp 30KB
s10.bmp 30KB
s6.bmp 30KB
s3.bmp 30KB
s8.bmp 30KB
s5.bmp 30KB
s7.bmp 30KB
s4.bmp 30KB
06
s1.bmp 30KB
s2.bmp 30KB
s9.bmp 30KB
s10.bmp 30KB
s6.bmp 30KB
s3.bmp 30KB
s8.bmp 30KB
s5.bmp 30KB
s7.bmp 30KB
s4.bmp 30KB
05
s1.bmp 30KB
s2.bmp 30KB
s9.bmp 30KB
s10.bmp 30KB
s6.bmp 30KB
s3.bmp 30KB
s8.bmp 30KB
s5.bmp 30KB
s7.bmp 30KB
s4.bmp 30KB
02
s1.bmp 30KB
s2.bmp 30KB
s9.bmp 30KB
s10.bmp 30KB
s6.bmp 30KB
s3.bmp 30KB
s8.bmp 30KB
s5.bmp 30KB
s7.bmp 30KB
s4.bmp 30KB
原始图象
facerecg.m 6KB
共 94 条
- 1
资源评论
不脱发的程序猿
- 粉丝: 24w+
- 资源: 5777
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功