Custom Algorithm in Video Labeler returns "Unable to initialize Algorithm Error" with error in line algObj.delW(n) = (endROIpos(3) - startROIpos(3))/numFramesForInterp;
Afficher commentaires plus anciens
Hi MATLAB Community,
I am currently working in MATLAB Video Labeler and try to develop a custom automation algorithm to automate polygon ROIs by modifying from Temporal Interpolator algorithm.
I import the algorithm to the dropdown menu, as told for customized algorithms, and it works wihout a problem until executing the methods and functions to initialize the automation session.
The algorithm has a different name and description but similar setup and execution codes with Temporal Interpolator. I only modified the lines
labelType.Polygon; % (from Rectangle)
and
labelsToAutomate.Type{3}; % from {1}
and I comment the lines
% areTimestampsUnique = isequal(frameTime, unique(frameTime));
% repeatedTime = unique(frameTime(diff(frameTime)==0)); % ??
% msg = sprintf('Expected one ROI per video frame. Remove extra ROIs from frames at time: %s\n', ... % ...
% num2str(repeatedTime(:)')); % ...
% assert(areTimestampsUnique, msg);
because I got erorrs about the setup earlier. During the labeling, I do not use more than one label in each frame and I labeled at least two polygon ROIs for the same label.
I also want to attach the algorithm.
Your any helps are appreciated.
Sincerely,
Serdar
Réponses (1)
Serdar Erisen
le 3 Mar 2022
0 votes
Catégories
En savoir plus sur Computer Vision with Simulink dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!