I got an error to the part that used to work no problem. Why?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I didn't change any of that part, but it suddenly returns shown error.

1 Kommentar
Torsten
am 1 Aug. 2024
We don't know where the function "overwriteGTruthLocations" is located, but you will have to find it and put it on the MATLAB path.
Antworten (2)
colordepth
am 8 Aug. 2024
Hi Asuka,
I see that you are working on MathWorks' "Object Tracking and Motion Detection with Computer Vision" course. For the wood knots detection project, the helper function “overwriteGTruthLocations” is located at the bottom of the script. Running that cell should resolve the error related to the unrecognized function.
Hope this helps!
amit
vor etwa 20 Stunden
Bearbeitet: amit
vor etwa 20 Stunden
Thanks. I found the function. Sharing for others -
function testPath = overwriteGTruthLocations(gTruthTrain)
% Find the location of the image files
trainPath = fileparts(which("IMG_3177.JPG"));
if isempty(trainPath)
error("The course files are not on the MATLAB search path." + ...
"Follow the instructions when downloading the course " + ...
"files to add them to your path.")
end
% Overwrite locations for images
currentPath = string(fileparts(gTruthTrain.DataSource.Source{1}));
changeFilePaths(gTruthTrain,[currentPath, trainPath]);
% Save the test path
testPath = erase(trainPath,'Train') + "Test";
end
0 Kommentare
Siehe auch
Kategorien
Mehr zu Image Data Workflows finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
