Error: Unable to write files to current directory. You may not have sufficient privileges. Change write permissions for the current directory, or navigate to a different directory. Please help me to fix it
6 views (last 30 days)
Show older comments
clear;clc
% Loading Table from Training Image Labeler
load('DandelionROI.mat');
% Extracting Positive Images
positiveInstances = DandelionROI(:,[1,3])
% Adding Image Directory
%imDir = fullfile(matlabroot,'toolbox','vision','visiondata',...
%'DandelionImages');
imDir = fullfile('Data','DandelionImages');
addpath(imDir);
% Folder for negative images
%negativeFolder = fullfile(matlabroot,'toolbox','vision','visiondata',...
%'nonDandelionImages');
negativeFolder = fullfile('Data','nonDandelionImages');
negativeImages = imageDatastore(negativeFolder);
Cascade training
trainCascadeObjectDetector('DandelionImages.xml',positiveInstances, ...
negativeFolder,'FalseAlarmRate',0.1,'NumCascadeStages',5);
This is the script I am using. I tried mathlabroot and another directory for cascade training. Also, I changed permission of folder. I don't know what else to do. Can someone please help me?
Answers (0)
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!