|
OCR Project
|
Macros | |
| #define | WIN_W 1280 |
| #define | WIN_H 800 |
| #define | ROW_H 36 |
| #define | ROW_PAD 8 |
| #define | LABEL_W 68 |
| #define | BTN_W 120 |
| #define | FONT_SIZE 15 |
| #define | FONT_SIZE_SM 13 |
| #define | ROW1_Y 8 |
| #define | ROW2_Y (ROW1_Y + ROW_H + ROW_PAD) |
| #define | ROW3_Y (ROW2_Y + ROW_H + ROW_PAD) |
| #define | STATUS_Y (ROW3_Y + ROW_H + 6) |
| #define | PANEL_H (STATUS_Y + FONT_SIZE_SM + 8) |
| #define | INPUT_X (LABEL_W + 4) |
| #define | INPUT_W (WIN_W - INPUT_X - BTN_W - 8 - 8) |
| #define | BTN_X (INPUT_X + INPUT_W + 8) |
| #define | MAX_RESULTS 64 |
| #define | DEFAULT_MODEL_DIR "models/" |
Pixel dimensions that define the window and control-panel geometry.
| #define BTN_W 120 |
Width of each action button.
| #define DEFAULT_MODEL_DIR "models/" |
Default directory scanned for the most recent model file.
| #define FONT_SIZE 15 |
Point size for the primary font.
| #define FONT_SIZE_SM 13 |
Point size for the smaller (label/status) font.
| #define INPUT_X (LABEL_W + 4) |
X origin of all text-input fields (after the label).
| #define LABEL_W 68 |
Pixel width reserved for the row label.
| #define MAX_RESULTS 64 |
Maximum number of word-search results kept simultaneously.
| #define PANEL_H (STATUS_Y + FONT_SIZE_SM + 8) |
Total height of the top control panel.
| #define ROW1_Y 8 |
Top-left Y of the Image row.
| #define ROW_H 36 |
Height of one input row (label + field + btn).
| #define ROW_PAD 8 |
Vertical gap between consecutive rows.
| #define WIN_H 800 |
Window height in pixels.
| #define WIN_W 1280 |
Window width in pixels.