Can't find the file path for my categories in imageDatastore

1 Ansicht (letzte 30 Tage)
Nabiilah
Nabiilah am 10 Jun. 2020
Beantwortet: Prabhan Purwar am 15 Jul. 2020
outputFolder = fullfile('Classification')
rootFolder = fullfile(outputFolder, 'CelebOriginals')
categories = {'brad'}
imds = imageDatastore(fullfile(rootFolder,categories),'LabelSource','foldernames')
I have the following filepath: C:\Users\Noor_\OneDrive\Pictures\Classification\CelebOriginal\brad but I'm not sure why I'm hitting this error.
  1 Kommentar
Adam Danz
Adam Danz am 10 Jun. 2020
What error?
Always provide the full error message.
Why not combine the first two lines of code? The first line doesn't really do anything.
What's the output for,
exist(fullfile(rootFolder,categories),'dir')

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Prabhan Purwar
Prabhan Purwar am 15 Jul. 2020
Hi,
Kindly provide the required information for better assistance
Please refer to the following links:
Thanks

Kategorien

Mehr zu Search Path finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by