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

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

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Detect and Segment Objects에 대해 자세히 알아보기

태그

질문:

2020년 3월 12일

댓글:

2020년 7월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by