forked from pxnguyen/videotext
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configsgen.m
88 lines (74 loc) · 3.36 KB
/
configsgen.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
function configs = configsgen
% YVT: Youtube Video Text
configs = struct();
[~,hostname] = system('hostname');
hostname = strtrim(hostname);
switch hostname
case 'phuc-ThinkPad-T420'
configs.RandomFlickr = '/home/phuc/Research/data/RandomFlickr';
configs.data_base = '/home/phuc/Research/data/';
configs.ground_truth_path = '/home/phuc/Research/videotext/matlab_code/ground_truth';
configs.guesses_path = '/home/phuc/Research/videotext/matlab_code/guesses';
configs.root_model_folder = '/home/phuc/Research/videotext/matlab_code/root_model/';
configs.ground_truth_paths = 'formatted_results';
configs.testingset = '/home/phuc/Research/videotext/matlab_code/testing';
configs.extracted_frames = '/home/phuc/Research/Samsung/vatic/extracted_frames';
configs.videofolder = '/home/phuc/Research/Samsung/src/phase1accepts';
configs.icdar_char = '/home/phuc/Research/data/ICDAR_char/';
configs.svt_char = '/home/phuc/Research/data2/SVT-CHAR/';
configs.piotr_toolbox = '/home/phuc/Research/toolbox';
configs.libsvm = '/home/phuc/Research/libsvm-3.12';
configs.ihog = '/home/phuc/Research/Research/ihog-master/';
configs.clean_data = '/home/phuc/Research/data2/chardet_traindata';
configs.icdar = '/home/phuc/Research/data2/icdar/';
configs.liblinear = '/home/phuc/Research/liblinear-1.92';
% Training data
configs.synth_data = '/home/phuc/Research/data2/synth';
% Video dataset
configs.YVT_path = '/home/phuc/Research/data2/YVT';
configs.icdar_video = '/home/phuc/Research/data2/icdar_video';
case 'deepthought'
% toolbox
configs.piotr_toolbox = '/home/nguyenpx/code/toolbox';
configs.libsvm = '/home/nguyenpx/code/libsvm-3.12';
configs.liblinear = '/home/nguyenpx/code/liblinear-1.92';
% dataset
configs.RandomFlickr = '/home/nguyenpx/data2/RandomFlickr';
configs.icdar = '/home/nguyenpx/data2/icdar/';
configs.YVT_path = '/home/nguyenpx/data2/YVT';
configs.icdar_video = '/home/nguyenpx/data2/icdar_video';
configs.synth_data = '/home/nguyenpx/data2/synth';
configs.clean_data = '/home/nguyenpx/data2/chardet_traindata';
case 'ip-10-45-15-47'
% toolbox
configs.piotr_toolbox = '/home/ubuntu/code/toolbox';
configs.libsvm = '/home/ubuntu/code/libsvm-3.1';
configs.liblinear = '/home/ubuntu/code/liblinear-1.92';
% dataset
configs.RandomFlickr = '/home/ubuntu/data2/RandomFlickr';
configs.YVT_path = '/home/ubuntu/data2/YVT';
configs.icdar_video = '/home/ubuntu/data2/icdar_video';
configs.synth_data = '/home/ubuntu/data2/synth';
configs.clean_data = '/home/ubuntu/data2/chardet_traindata';
end
% character classification configurations
configs.canonical_scale = [100 100];
configs.alphabets = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
% character trainings
configs.nMixtures = 10;
% Initial threshold to reject the "ridiculous" local boundingbox
% This is used in getbbs, the point of this is to speed up the process
% by not wasting time on really bad scored bounding box
configs.initThres = -1;
% Training parameters
configs.num_datamine = 3;
configs.OVERLAY_TYPE=1;
configs.SCENE_TYPE=2;
configs.BOTH=3;
configs.ALL=4;
configs.bin_size = 8;
configs.n_orients= 8;
configs.classes = {'pos','neg'};
lstruct = load('data/related_matrix');
similar_classes = lstruct.related_matrix;
configs.similar_classes = similar_classes;