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

📄 training.h

📁 一OCR的相关资料。.希望对研究OCR的朋友有所帮助.
💻 H
字号:
/* ** 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 TRAINING_H#define TRAINING_H#include "host.h"#include "callcpp.h"typedef enum{baseline, character}NORM_METHOD;typedef struct{FLOAT32						x,y;} FPOINT;typedef FPOINT FVECTOR;#define INTEL				0x4949#define MOTO				0x4d4d#define PICO_FEATURE_LENGTH	(0.05)#define GetPicoFeatureLength()	(PICO_FEATURE_LENGTH)extern int LearningDebugLevel;extern int NormMethod;void						cprintf(					//Trace printfconst char					*format,...					//special message);char						*c_alloc_string(			//allocate stringINT32						count						//no of chars required);void						c_free_string(				//free a stringchar						*string						//string to free);void						*c_alloc_mem_p(				//allocate permanent spaceINT32						count						//block size to allocate);void						*c_alloc_mem(				//get some memoryINT32						count						//no of bytes to get);void						c_free_mem(					//free mem from alloc_memvoid						*oldchunk					//chunk to free);void						c_check_mem(				//check consistencychar						*string,					//context messageINT8						level						//level of check);void*						c_alloc_struct(				//allocate memoryINT32						count,						//no of chars requiredconst char*					name						//class name);void						c_free_struct(				//free a structurevoid*						deadstruct,					//structure to freeINT32						count,						//no of bytesconst char*					name						//class name);void						c_make_current(				/*move pen*/void*						win);void						reverse32(void*						ptr);void						reverse16(void*						ptr);void*						c_create_window(			/*create a window*/const char					*name,						/*name/title of window*/INT16						xpos,						/*coords of window*/INT16						ypos,						/*coords of window*/INT16						xsize,						/*size of window*/INT16						ysize,						/*size of window*/double						xmin,						/*scrolling limits*/double						xmax,						/*to stop users*/double						ymin,						/*getting lost in*/double						ymax						/*empty space*/);void						c_line_color_index(			/*set color*/void*						win,C_COL						index);void						c_move(						/*move pen*/void*						win,double						x,double						y);void						c_draw(						/*move pen*/void*						win,double						x,double						y);void						c_clear_window(				/*move pen*/void*						win);char						window_wait(				/*move pen*/void*						win);#endif

⌨️ 快捷键说明

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