Can't find the file path for my categories in imageDatastore
조회 수: 1 (최근 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!