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

조회 수: 1 (최근 30일)
Nabiilah
Nabiilah 2020년 6월 10일
답변: Prabhan Purwar 2020년 7월 15일
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
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
Prabhan Purwar 2020년 7월 15일
Hi,
Kindly provide the required information for better assistance
Please refer to the following links:
Thanks

카테고리

Help CenterFile Exchange에서 Search Path에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by