Can't find the file path for my categories in imageDatastore
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
Adam Danz
2020-6-10
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')
回答(1 个)
Prabhan Purwar
2020-7-15
Hi,
Kindly provide the required information for better assistance
Please refer to the following links:
Thanks
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Search Path 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!