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
Bhargavi Maganuru
2020년 7월 8일
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에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!