I want to save images in a folder .I want to take the images by their label (it's divided into 2 labels ) and save every label in a folder

1 回表示 (過去 30 日間)
this is a function i made , i want to take the images by their label (it's divided into 2 labels ) and save every label in a folder
function test_network(net, image)
I = imread(image);
R = imresize(I, [224, 224]);
[Label, Probability] = classify(net, R);
figure;
imshow(R);
title({char(Label), num2str(max(Probability)*100, 6) })
end
please help

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by