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 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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?
Réponses (0)
Voir également
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!