How to Use a CNN exported into C++ code in another program?
Show older comments
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 Comment
Bhargavi Maganuru
on 8 Jul 2020
Can you be more specific about another program in "I'm unsure how to use that network in another program"?
Answers (0)
Categories
Find more on Detect and Segment Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!