How to create executable file for pretrained model Using GUI
이전 댓글 표시
Hi, i want to create a executable file for pretrained model using GUI.
I want to load a image from directory using Push Button and Display prediction on that image using Pretrained model
I am trying to develope exe for this example ( https://www.mathworks.com/help/deeplearning/gs/classify-image-using-pretrained-network.html )
net = googlenet;
I = imread("peppers.png");
inputSize = net.Layers(1).InputSize;
I = imresize(I,inputSize(1:2));
label = classify(net,I);
figure
imshow(I)
title(string(label))
Can anybody help me in that
댓글 수: 3
Hiro Yoshino
2021년 11월 30일
camera = webcam;
net = googlenet;
h = figure;
while ishandle(h)
im = snapshot(camera);
image(im);
im = imresize(im,[224, 224]);
[label,score] = classify(net,im);
title({char(label), num2str(max(score),2)});
drawnow
end
If your code runs, it retunrs a single prediction about "peppers.png".
So you have to make it run continuously. The code here uses your web-camera.
All you need to do after this is, call the application compiler and put the code in it to compile.
you can find the compiler app from the "App" section or call it from command line:
applicationCompiler
hammad younas
2021년 11월 30일
hammad younas
2021년 11월 30일
답변 (2개)
yanqi liu
2021년 11월 30일
0 개 추천
yes,sir,when use gui transfer to exe,offen use mcc,and now suggest use applicationCompiler
may be use web api to generate http server is better
Hiro Yoshino
2021년 11월 30일
0 개 추천
@hammad younas I can give you a solution.
MATLAB > App > Open App Designer
This is what you need. With that app, you can design your own GUI app that has your algorithm.
You can have a button and figure window(s). This app is also easy to use - just take a look and start designing it.
댓글 수: 1
Hiro Yoshino
2021년 11월 30일
Note that after designing your GUI app, make sure to compile it to exe so you can use it as a stand alone app!
카테고리
도움말 센터 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!