How to Use a CNN exported into C++ code in another program?

I exported a Convolutional neural network into C++ Code, and now I'm unsure how to use that network in another program. I use the CNN for image classification, and I'm trying to export the code to C++. However, I don't know how to use the exported CNN in C++.
function diseaseClassify()
load myNet
figure
cd image
[filename, pathname] = uigetfile('*.*', 'Pick a input image ');
filename = strcat(pathname,filename);
picture = imread(filename);
cd ..
picture = imresize(picture,[227,227]); % Resize the picture
label = classify(myNet, picture); % Classify the picture
image(picture); % Show the picture
title(char(label)); % Show the label
drawnow;
end

1 commentaire

Can you be more specific about another program in "I'm unsure how to use that network in another program"?

Connectez-vous pour commenter.

Réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by