Hi Guys
Kindly i want to know how to calculate framerate per second for object detection using R-CNN in the following code:-
close allclearclcload('Detector.mat');vidReader = VideoReader('vs_014_00.avi');vidPlayer = vision.DeployableVideoPlayer;i = 1;results = struct('Boxes',[],'Scores',[]);while(hasFrame(vidReader)) % GET DATA
I = readFrame(vidReader); % PROCESS
[bboxes, scores] = detect(detector,I,'Threshold',1); % Select strongest detection
[~,idx] = max(scores); results(i).Boxes = bboxes; results(i).Scores = scores; % VISUALIZE
annotation = sprintf('%s , (Confidence = %f)',detector.ModelName,scores(idx)); I = insertObjectAnnotation(I,'rectangle',bboxes(idx,:),annotation); step(vidPlayer,I); i = i+1; endresults = struct2table(results);release(vidPlayer);
Best Answer