-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.m
52 lines (40 loc) · 2.45 KB
/
setup.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
function config = setup()
addpath(genpath(pwd))
config.NUMERALS='Numerals';
config.VOWELS ='Vowels';
config.CONSONANTS='Consonants';
BASE_DIR = 'data';
config.NUMERALS_DATASET_DIR=strcat(BASE_DIR,'/datasets/numerals/');
config.VOWELS_DATASET_DIR=strcat(BASE_DIR,'/datasets/vowels/');
config.CONSONANTS_DATASET_DIR=strcat(BASE_DIR,'/datasets/consonants/');
OUTPUT_DIR=strcat(BASE_DIR,'/outputs');
if ~exist(OUTPUT_DIR,'dir')
mkdir(OUTPUT_DIR)
end
config.NUMERALS_DATASET=strcat(OUTPUT_DIR,'/numerals.mat');
config.VOWELS_DATASET=strcat(OUTPUT_DIR,'/vowels.mat');
config.CONSONANTS_DATASET=strcat(OUTPUT_DIR,'/consonants.mat');
config.NUMERALS_DATASET_PP = strcat(OUTPUT_DIR,'/numerals_pp.mat');
config.VOWELS_DATASET_PP = strcat(OUTPUT_DIR,'/vowels_pp.mat');
config.CONSONANTS_DATASET_PP = strcat(OUTPUT_DIR,'/consonants_pp.mat');
config.NUMERALS_DATASET_FE = strcat(OUTPUT_DIR,'/numerals_fe.mat');
config.VOWELS_DATASET_FE = strcat(OUTPUT_DIR,'/vowels_fe.mat');
config.CONSONANTS_DATASET_FE = strcat(OUTPUT_DIR,'/consonants_fe.mat');
config.NUMERALS_DATASET_MODEL_MLP = strcat(OUTPUT_DIR,'/numerals_model_mlp.mat');
config.VOWELS_DATASET_MODEL_MLP = strcat(OUTPUT_DIR,'/vowels_model_mlp.mat');
config.CONSONANTS_DATASET_MODEL_MLP = strcat(OUTPUT_DIR,'/consonants_model_mlp.mat');
config.NUMERALS_DATASET_MODEL_RBF = strcat(OUTPUT_DIR,'/numerals_model_rbf.mat');
config.VOWELS_DATASET_MODEL_RBF = strcat(OUTPUT_DIR,'/vowels_model_rbf.mat');
config.CONSONANTS_DATASET_MODEL_RBF = strcat(OUTPUT_DIR,'/consonants_model_rbf.mat');
config.RESULTS_EXCEL_FILE=strcat(OUTPUT_DIR,'/results.csv');
SAMPLE_CHARACTER_DIR=strcat(BASE_DIR,'/samples/');
config.SAMPLE_OPTICAL_NUMERALS_DIR=strcat(SAMPLE_CHARACTER_DIR,'/optical/numerals/');
config.SAMPLE_OPTICAL_VOWELS_DIR=strcat(SAMPLE_CHARACTER_DIR,'/optical/vowels/');
config.SAMPLE_OPTICAL_CONSONANTS_DIR=strcat(SAMPLE_CHARACTER_DIR,'/optical/consonants/');
config.SAMPLE_HANDWRITTEN_NUMERALS_DIR=strcat(SAMPLE_CHARACTER_DIR,'/handwritten/numerals/');
config.SAMPLE_HANDWRITTEN_VOWELS_DIR=strcat(SAMPLE_CHARACTER_DIR,'/handwritten/vowels/');
config.SAMPLE_HANDWRITTEN_CONSONANTS_DIR=strcat(SAMPLE_CHARACTER_DIR,'/handwritten/consonants/');
config.SAMPLES_MAT_FILE=strcat(OUTPUT_DIR,'/samples.mat');
config.BASE_DIR = BASE_DIR;
config.OUTPUT_DIR= OUTPUT_DIR;
end