MATLAB Answers

0

How can I display the label result in the GUI? I keep getting the error: Error using matlab.ui.​control.UI​Control/se​t Error setting property 'String' of class 'UIControl': Value must be a character vector, string array, numeric array, or cell array of

Asked by Win Sheng Liew on 16 Sep 2018 at 14:28

% Create augmentedImageDatastore to automatically resize the image when % image features are extracted using activations.

ds = augmentedImageDatastore(imageSize, newImage , 'ColorPreprocessing', 'gray2rgb');

% Extract image features using the CNN

imageFeatures = activations(net, ds, featureLayer, 'OutputAs', 'columns');

% Make a prediction using the classifier

label = predict(classifier, imageFeatures, 'ObservationsIn', 'columns')

set(handles.edit2,'String',label);

  0 Comments

Sign in to comment.

0 Answers