-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathmain.m
37 lines (22 loc) · 786 Bytes
/
main.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
31
32
33
34
35
36
vl_feat_path = '/meleze/data0/libs/vlfeat-0.9.14/toolbox/vl_setup';
dump_dir = 'dump';
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
addpath('face-detection');
addpath('tracking');
addpath('features-speakers');
addpath('compute-kernels');
run(vl_feat_path);
dump_string = fullfile(dump_dir, '%06d.jpg');
model_dir = 'models';
result_dir = 'results';
if ~exist(result_dir, 'dir')
mkdir(result_dir);
end
s1 = 14800;
s2 = 14920;
face_detection(result_dir, model_dir, dump_string, s1, s2);
detect_shots(result_dir, dump_string, s1, s2);
track_in_shots(result_dir, -0.6, dump_string);
tracks_to_facedets(result_dir, model_dir, dump_string, s1, s2);
features_and_speakers(result_dir, model_dir, dump_string);
facedets_kernel(result_dir);