⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 associate.h

📁 一OCR的相关资料。.希望对研究OCR的朋友有所帮助.
💻 H
字号:
/* -*-C-*- ******************************************************************************** * * File:        associate.h  (Formerly associate.h) * Description:  Associate the outlines and classify them * Author:       Mark Seaman, OCR Technology * Created:      Mon Feb  5 11:42:51 1990 * Modified:     Tue May 21 15:34:56 1991 (Mark Seaman) marks@hpgrlt * Language:     C * Package:      N/A * Status:       Experimental (Do Not Distribute) * * (c) Copyright 1990, Hewlett-Packard Company. ** 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. * ******************************************************************************** */#ifndef ASSOCIATE_H#define ASSOCIATE_H/*----------------------------------------------------------------------              I n c l u d e s----------------------------------------------------------------------*/#include "matrix.h"#include "states.h"#include "blobs.h"#include "split.h"#include "seam.h"/*----------------------------------------------------------------------              T y p e s----------------------------------------------------------------------*/typedef LIST BLOBS;              //?                                                                          /* List of (BLOB*) */typedef LIST OUTLINES;           /* List of (TESSLINE*) */typedef LIST EDGEPTS;            /* List of (EDGEPT*) */typedef INT16 BLOB_WEIGHTS[MAX_NUM_CHUNKS];typedef struct{                                /* Each char evaluated */  float match;  float certainty;  char character;  int width;  int gap;} EVALUATION_RECORD;typedef struct{                                /* Classification info */  MATRIX ratings;                /* for chunks */  TBLOB *chunks;  SEAMS splits;  TEXTROW *row;  int fx;  int x_height;  WIDTH_RECORD *chunk_widths;  WIDTH_RECORD *char_widths;  INT16 *weights;} CHUNKS_RECORD;                                 /* Each segmentation */typedef EVALUATION_RECORD EVALUATION_ARRAY[MAX_NUM_CHUNKS];/*----------------------------------------------------------------------              V a r i a b l e s                                                                                                                                                                                                                                                                                                                                                                                                ----------------------------------------------------------------------*//* Debug vars */extern int enable_assoc;extern EVALUATION_ARRAY last_segmentation;extern WIDTH_RECORD *char_widths;extern int enable_assoc;/*----------------------------------------------------------------------              F u n c t i o n s----------------------------------------------------------------------*/void init_associate_vars(); #endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -