Access Image Name within ImageLabeler's Automation Algorithm

1 vue (au cours des 30 derniers jours)
Farshad Bolouri
Farshad Bolouri le 5 Mar 2022
I am currently trying to write an automation algorithm for a object segmentation project that I am working on.
I am using the imageLabeler app to annotate my desired objects and I'm planning to use the automation algorithm feaure to speed up this process.
Currently, I am trying to access the image's name that I am annotating in imageLabeler from the automation algorithm and I don't know how.
Here's what I am refering to:
I am trying to access within vision.labeler.AutomationAlgorithm. Which is defined in the following way:
classdef MyCustomAlgorithm < vision.labeler.AutomationAlgorithm
properties(Constant)
Name = '';
Description = '';
UserDirections = {};
end
properties
%------------------------------------------------------------------
% Place your code here
%------------------------------------------------------------------
end
methods
function isValid = checkLabelDefinition(algObj, labelDef)
disp(['Executing checkLabelDefinition on label definition "' labelDef.Name '"'])
%--------------------------------------------------------------
% Place your code here
%--------------------------------------------------------------
end
function isReady = checkSetup(algObj)
disp('Executing checkSetup')
%--------------------------------------------------------------
% Place your code here
%--------------------------------------------------------------
end
function settingsDialog(algObj)
disp('Executing settingsDialog')
%--------------------------------------------------------------
% Place your code here
%--------------------------------------------------------------
end
end
methods
function initialize(algObj, I)
disp('Executing initialize on the first image frame')
%--------------------------------------------------------------
% Place your code here
%--------------------------------------------------------------
end
function autoLabels = run(algObj, I)
disp('Executing run on image frame')
%--------------------------------------------------------------
% Place your code here
%--------------------------------------------------------------
end
function terminate(algObj)
disp('Executing terminate')
%--------------------------------------------------------------
% Place your code here
%--------------------------------------------------------------
end
end
end
I know how to access the imageLabeler's GroundTruth and then access all the image names and labels. However, I'm not sure how to access the current image's name.
I would really appreciate it if anyone could let me know how I can access the current image name within this algorithm.
Thank You

Réponses (1)

yanqi liu
yanqi liu le 7 Mar 2022
yes,sir,may be view
>> edit AutoLaneMarking
>>

Catégories

En savoir plus sur Computer Vision Toolbox dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by