-
Notifications
You must be signed in to change notification settings - Fork 24
/
demo.m
30 lines (24 loc) · 941 Bytes
/
demo.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
%% demo for paper "Learning Adaptive Discriminative Correlation Filters
%% via Temporal Consistency Preserving Spatial Feature Selection for
%% Robust Visual Object Tracking
close all;
% Add paths
setup_paths();
% Load video information
base_path = './tracker_seque'; % (or OTB root path)
video = choose_video(base_path);
video_path = [base_path '/' video];
[seq, gt_boxes] = load_video(video_path,video);
% Run Hand-crafted feature based LADCF on cpu
results = run_LADCF_HC(seq);
%results
pd_boxes = results.res;
thresholdSetOverlap = 0: 0.05 : 1;
success_num_overlap = zeros(1, numel(thresholdSetOverlap));
res = calcRectInt(gt_boxes, pd_boxes);
for t = 1: length(thresholdSetOverlap)
success_num_overlap(1, t) = sum(res > thresholdSetOverlap(t));
end
cur_AUC = mean(success_num_overlap) / size(gt_boxes, 1);
FPS_vid = results.fps;
display([video '---->' ' FPS: ' num2str(FPS_vid) ' op: ' num2str(cur_AUC)]);