Go to the source code of this file.
void program_init _ARGS | ( | (void) | ) |
void program_init | ( | ) |
Initialize all the flags in the program that need to be initialized.
Definition at line 67 of file tessinit.cpp.
References acts, acts_fx, acts_ocr, corner_0, corner_1, corner_2, corner_3, corners, debugs, debugs_fx, debugs_ocr, FX, OCR, plots, plots_fx, and plots_ocr.
Referenced by program_editup().
00067 { 00068 /* Plots flags */ 00069 plots[OCR] = plots_ocr; 00070 debugs[OCR] = debugs_ocr; 00071 acts[OCR] = acts_ocr; 00072 plots[FX] = plots_fx; 00073 debugs[FX] = debugs_fx; 00074 acts[FX] = acts_fx; 00075 00076 corners[0] = corner_0; 00077 corners[1] = corner_1; 00078 corners[2] = corner_2; 00079 corners[3] = corner_3; 00080 }
void program_variables | ( | ) |
Initialize all the variables in the program that need to be initialized.
Definition at line 43 of file tessinit.cpp.
References acts_fx, acts_ocr, corner_0, corner_1, corner_2, corner_3, debugfile, debugs_fx, debugs_ocr, dummy, int_variable, plots_fx, plots_ocr, resolution, and string_variable.
Referenced by program_editup().
00043 { 00044 VALUE dummy; 00045 00046 int_variable (plots_fx, "plots_fx", 0); 00047 int_variable (plots_ocr, "plots_ocr", 0); 00048 int_variable (debugs_fx, "debugs_fx", 0); 00049 int_variable (debugs_ocr, "debugs_ocr", 0); 00050 /* PREV DEFAULT 0 */ 00051 int_variable (acts_fx, "acts_fx", 2048); 00052 /* PREV DEFAULT 0 */ 00053 int_variable (acts_ocr, "acts_ocr", 32); 00054 int_variable (corner_0, "corner_0", 0); 00055 int_variable (corner_1, "corner_1", 0); 00056 int_variable (corner_2, "corner_2", 2550); 00057 int_variable (corner_3, "corner_3", 3508); 00058 int_variable (resolution, "resolution", 300); 00059 string_variable (debugfile, "debugfile", ""); 00060 }
FILE* boxfp |
int corner_0 |
corner_0, defaults to 0, of type int
* (C) Copyright 1992, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License.
Definition at line 29 of file tessinit.cpp.
Referenced by program_init(), and program_variables().
int corner_1 |
corner_1, defaults to 0, of type int
Definition at line 30 of file tessinit.cpp.
Referenced by program_init(), and program_variables().
int corner_2 |
corner_2, defaults to 2550, of type int
Definition at line 31 of file tessinit.cpp.
Referenced by program_init(), and program_variables().
int corner_3 |
corner_3, defaults to 3508, of type int
Definition at line 32 of file tessinit.cpp.
Referenced by program_init(), and program_variables().
int row_number |
NOT used in tesseract 1.02
Definition at line 48 of file cnTraining.cpp.