-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmarks_ocr_init.m
37 lines (35 loc) · 1.18 KB
/
marks_ocr_init.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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% FILE: marks_ocr_init.m
%%
%% DESCRIPTION: Sets initial Matlab defaults for use in the marks-based
%% OCR project
%%
%% NOTE: Be sure to set the global MOCR_PATH variable in your startup.m file
%% to point at the path where this file resides, then executre this
%% file.
%% CVS:
%% $Id: marks_ocr_init.m,v 1.5 2006-10-29 17:01:02 scottl Exp $
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
fprintf('Initializing Marks-Based OCR\n');
ver = version;
if str2num(ver(1)) < 7
warning('Using Matlab version < 7, some functions may not work correctly');
end
more off; %turn off pagination
whitebg; %inverse the figure backgrounds
close(gcf);
%add the necessary paths
global MOCR_PATH;
if isempty(MOCR_PATH)
error('Must set global MOCR_PATH to the install directory. See README');
end
addpath([MOCR_PATH, '/cluster']);
addpath([MOCR_PATH, '/component']);
addpath([MOCR_PATH, '/line']);
addpath([MOCR_PATH, '/util']);
addpath([MOCR_PATH, '/display']);
addpath([MOCR_PATH, '/ocr']);
addpath([MOCR_PATH, '/lang_model']);
addpath([MOCR_PATH, '/symbol']);