APP介绍及功能
1.调用训练好的图像分类网络,对图像进行识别
2.选择需要识别的图像,在图像区域展示该图像并将识别结果进行展示
APP界面
APP代码视图
classdef ImageRecognitionApp < matlab.apps.AppBase
% Properties that correspond to app components
properties (Access = public)
UIFigure matlab.ui.Figure
ResultLabel matlab.ui.control.Label
predictImageButton matlab.ui.control.Button
Image matlab.ui.control.Image
end
% Callbacks that handle component events
methods (Access = private)
% Button pushed function: predictImageButton
function predictImageButtonPushed(app, event)
% 选择图像文件
[file, path] = uigetfile({'*.jpg;*.png;*.bmp', 'Image Files (*.jpg, *.png, *.bmp)'}, '选