function varargout = gui(varargin)
% GUI MATLAB code for gui.fig
% GUI, by itself, creates a new GUI or raises the existing
% singleton*.
%
% H = GUI returns the handle to a new GUI or the handle to
% the existing singleton*.
%
% GUI('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in GUI.M with the given input arguments.
%
% GUI('Property','Value',...) creates a new GUI or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before gui_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to gui_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 gui
% Last Modified by GUIDE v2.5 25-Dec-2018 12:05:12
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @gui_OpeningFcn, ...
'gui_OutputFcn', @gui_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 gui is made visible.
function gui_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 gui (see VARARGIN)
% Choose default command line output for gui
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes gui wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = gui_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 pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA[
[imgfilename imgpathname]=uigetfile('*.jpg','选一张图');
if imgfilename
strPath=strcat(imgpathname,imgfilename);
imgdata=imread(strPath);
form=maketform('affine',[0 1 0;1 0 0;0 0 1]);%创建空间转换结构
showImage=imtransform(imgdata,form,'nearest');%对图像应用二维空间变换,由form定义的2-D空间变换来转换图像img,nearest为指定要使用的插值的形式
image(handles.axes1,showImage);
null=imread('null.jpg');
image(handles.axes2,null);
set(handles.edit2,'string','快点击识别把');
handles.imgfilename=imgfilename;
handles.imgdata=imgdata;
end
guidata(hObject,handles);
% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
[ansImg,ans]=Identification(handles.imgdata);
image(handles.axes2,ansImg);
set(handles.edit2,'string',ans);
guidata(hObject,handles);
function edit2_Callback(hObject, eventdata, handles)
% hObject handle to edit2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit2 as text
% str2double(get(hObject,'String')) returns contents of edit2 as a double
% --- Executes during object creation, after setting all properties.
function edit2_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
期末课设基于matlab+BP神经网络的人脸识别源码+数据.zip期末课设基于matlab+BP神经网络的人脸识别源码+数据.zip期末课设基于matlab+BP神经网络的人脸识别源码+数据.zip期末课设基于matlab+BP神经网络的人脸识别源码+数据.zip期末课设基于matlab+BP神经网络的人脸识别源码+数据.zip 【资源介绍】 该项目是个人毕设项目,答辩评审分达到95分,代码都经过调试测试,确保可以运行!欢迎下载使用,可用于小白学习、进阶。 该资源主要针对计算机、通信、人工智能、自动化等相关专业的学生、老师或从业者下载使用,亦可作为期末课程设计、课程大作业、毕业设计等。 项目整体具有较高的学习借鉴价值!基础能力强的可以在此基础上修改调整,以实现不同的功能。
资源推荐
资源详情
资源评论
收起资源包目录
期末课设基于matlab+BP神经网络的人脸识别源码+数据.zip (68个子文件)
说明.md 263B
code
totalACUtestData.m 948B
showTestFace.m 115B
network_train.m 406B
null.jpg 22KB
GA.m 2KB
exchang.m 178B
testDcwRead.m 395B
ansdcw.jpg 4.27MB
testWlRead.m 392B
readFace_4.m 2KB
data
netK80.mat 621KB
testWlFaceInfo.mat 788KB
lable.mat 209B
threeFaceContain.mat 14.1MB
faceInfo_1.mat 5.4MB
k50PCA.mat 4.93MB
GAnetK50_1.mat 467KB
threefaceInfo.mat 17.38MB
net1.mat 314KB
faceInfo.mat 11.97MB
testDcwFaceInfo.mat 548KB
netK100.mat 773KB
v.mat 3.02MB
net2.mat 314KB
k100PCA.mat 8.21MB
netK50.mat 467KB
GAnetK50.mat 467KB
testLjsFaceInfo.mat 664KB
k80PCA.mat 6.57MB
faceInfo_2.mat 8.77MB
PCA.mat 3.36MB
testWlAcuStudyData.m 588B
displayImage.m 462B
testDcwAcu.m 558B
testLjsAcu.m 547B
answl.jpg 4.79MB
gui.fig 37KB
getOtherKPca.m 125B
main_4.m 744B
testWlAcu.m 546B
totleACU.m 1KB
ansljs.jpg 1.97MB
GAtotalAcu.m 1017B
Identification.m 581B
测试人脸
testWl
wl (45).jpg 1.94MB
wl (12).jpg 1.93MB
wl (19).jpg 1.93MB
wl (34).jpg 1.66MB
wl (9).jpg 1.93MB
wl (33).jpg 1.61MB
wl (39).jpg 1.89MB
wl (10).jpg 1.93MB
testDcw
dcw (46).jpg 1.67MB
dcw (27).jpg 1.75MB
dcw (13).jpg 1.77MB
dcw (21).jpg 1.75MB
dcw (17).jpg 1.77MB
dcw (48).jpg 1.64MB
dcw (49).jpg 1.64MB
dcw (16).jpg 1.78MB
dcw (20).jpg 1.74MB
dcw (28).jpg 1.75MB
dcw (15).jpg 1.78MB
w.mat 13KB
testLjsRead.m 395B
fastPCA.m 875B
gui.m 5KB
共 68 条
- 1
资源评论
manylinux
- 粉丝: 4631
- 资源: 2490
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- ssm前后端分离鲜花销售系统+vue.zip
- ssm人力资源管理系统+vue.zip
- dropdown 是一款基于layui框架的下拉框控件,填补了layui原生没有下拉框这个空隙 借助下拉框的操作方式和UI交互,可以带来更加直观、便于操作、模块划分清晰等优势
- ssm企业人事管理系统的设计与实现+jsp.zip
- ssm农业视频实时发布管理系统设计+jsp.zip
- ssm农家乐信息平台的设计与实现+vue.zip
- 西门子PLC1500大型程序fanuc机器人焊装 包括1台 西门子1500PLC程序,2台触摸屏TP1500程序 9个智能远程终端ET200SP Profinet连接 15个Festo气动智能模块P
- ssm农产品仓库管理系统系统+jsp.zip
- ssm绿色农产品推广应用网站+vue.zip
- ssm民宿管理系统+jsp.zip
- ssm旅游网站的设计与实现+jsp.zip
- ssm旅游攻略网站设计+jsp.zip
- ssm旅游景点管理系统设计+jsp.zip
- ssm连锁经营商业管理系统+jsp.zip
- ssm临沂旅游咨询系统+vue.zip
- ssm旅行社管理系统的设计与实现+jsp.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功