How to classify image in standard alone application ?

2 次查看(过去 30 天)
Hi All,
I design 1 app to calssify image label.
I trained a network and save network as a .mat file.
then load to gui to classify image.
It is working on my computer with matlab installed. But it is not working on other computer with Matlab runtime was installed
the network training for image [128 128 1].
Is there any solution to fix this problem ?
This is my test gui with code.

回答(1 个)

Image Analyst
Image Analyst 2023-4-30
Are you sure you shipped all the files you were supposed to (like the .exe and the .mat files)? Did you ship a sample image that you know your program works with?
"Not working" is not a lot of information to go on, to say the least. So until we get more information about all I can say is make sure your files are all there and the paths to them in your code are correct. See the FAQ for more ideas:
  1 个评论
Jenifer NG
Jenifer NG 2023-7-5
Dear Sir,
I upload the app design file and trained model as model.mat this model was train on cifar 10 dataset with image size is [32 32 3]
It is working fine if i run with Matlab but when i turn of matlab and run as standard alone app it error as bellow.
Could you look at to the code and log file to help me ?
Warning: Variable 'net' originally saved as a SeriesNetwork cannot be instantiated as an object and will be read in as a uint32.
> In app1/startupFcn (line 23)
In appdesigner.internal.service/AppManagementService/runStartupFcn (line 135)
In matlab.apps/AppBase/runStartupFcn (line 68)
In app1 (line 84)
Error using classify
Requires at least three arguments.
Error in app1/ButtonPushed (line 36)
Error in appdesigner.internal.service.AppManagementService/executeCallback (line 172)
Error in matlab.apps.AppBase>@(source,event)executeCallback(ams,app,callback,requiresEventData,event) (line 62)
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback
Error while evaluating Button PrivateButtonPushedFcn.
Thanks
Jen!

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Deep Learning Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by