function varargout = page(varargin)
% PAGE MATLAB code for page.fig
% PAGE, by itself, creates a new PAGE or raises the existing
% singleton*.
%
% H = PAGE returns the handle to a new PAGE or the handle to
% the existing singleton*.
%
% PAGE('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in PAGE.M with the given input arguments.
%
% PAGE('Property','Value',...) creates a new PAGE or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before page_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to page_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 page
% Last Modified by GUIDE v2.5 26-Apr-2023 11:20:07
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @page_OpeningFcn, ...
'gui_OutputFcn', @page_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 page is made visible.
function page_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 page (see VARARGIN)
% Choose default command line output for page
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes page wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = page_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)
[fn,pn,~]=uigetfile('*.bmp','请选择所要识别的图像');
I = imread([pn fn]);
axes(handles.axes1);
imshow(I,[]);
title('所选图像');
handles.I = I;
guidata(gcbo,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)
function edit1_Callback(hObject, eventdata, handles)
% hObject handle to edit1 (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 edit1 as text
% str2double(get(hObject,'String')) returns contents of edit1 as a double
% --- Executes during object creation, after setting all properties.
function edit1_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit1 (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
% --- Executes on button press in pushbutton3.
function pushbutton3_Callback(hObject, eventdata, handles) % 显示整个测试集的结果
% hObject handle to pushbutton3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
%% 加载数据
% imageDatastore函数会根据文件夹名称自动标记图像
str1=sprintf('思路\n\n');
str2=sprintf('欢迎沟通交流Q:3752243968\n');
string=[str1 str2];
msgbox(string,'温馨提示','none');
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
% --- Executes during object creation, after setting all properties.
function text1_CreateFcn(hObject, eventdata, handles)
% hObject handle to text1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
基于CNN卷积神经网络水果识别GUI界面设计,matlab设计,有数据集进行训练,可以免费给你添加一种水果图像。 基于CNN卷积神经网络水果识别GUI界面设计,matlab设计,有数据集进行训练,可以免费给你添加一种水果图像。 基于CNN卷积神经网络水果识别GUI界面设计,matlab设计,有数据集进行训练,可以免费给你添加一种水果图像。
资源推荐
资源详情
资源评论
收起资源包目录
第 116 章 基于CNN卷积神经网络水果识别GUI界面.zip (18个子文件)
第 116 章 基于CNN卷积神经网络水果识别GUI界面
CNNnet.mat 197KB
main.m 2KB
1.png 79KB
dbx
page.m 6KB
page.fig 36KB
test
1_71.bmp 37KB
1_2153.bmp 37KB
1_2152.bmp 37KB
1_69.bmp 37KB
1_9.bmp 37KB
1_2155.bmp 37KB
1_3.bmp 37KB
1_70.bmp 37KB
1_10.bmp 37KB
1_72.bmp 37KB
1_8.bmp 37KB
1_2154.bmp 37KB
0训练过程图.png 109KB
共 18 条
- 1
资源评论
Matlab程序设计
- 粉丝: 15
- 资源: 105
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功