li_recognizer_internal.h

来自「pixil 最新的嵌入linux 應用程序集,別的地方很難下載」· C头文件 代码 · 共 56 行

H
56
字号
/* *  li_recognizer_internal.h * *  Adapted from cmu_recognizer_internal.h. *  Credit to Dean Rubine, Jim Kempf, and Ari Rapkin. */#ifndef _LI_RECOGNIZER_INTERNAL_H_#define _LI_RECOGNIZER_INTERNAL_H_#include "hre_internal.h"#include "sc.h"typedef struct PointList{    int npts;    int xrange, yrange;    pen_point *pts;    struct PointList *next;}point_list;typedef struct{    char *file_name;		/*The classifier file name. */    sClassifier sc;		/*The classifier. */    point_list *ex[MAXSCLASSES];	/*The training examples. */    char *cnames[MAXSCLASSES];	/*The class names. */    point_list *canonex[MAXSCLASSES];	/* Canonicalized versions of the strokes. */    point_list *dompts[MAXSCLASSES];	/* Dominant points */}rClassifier;/*This structure contains extra fields for instance-specific data.*/typedef struct{    /*Instance-specific data. */    u_int li_magic;		/*Just to make sure nobody's cheating. */    rClassifier li_rc;		/*The character classifier. */}li_recognizer;/*Name of the default classifier file.*/#define LI_DEFAULT_CLASSIFIER_FILE   "default.cl"/*Classifier file extension.*/#define LI_CLASSIFIER_EXTENSION ".cl"/*Locale supported by recognizer.*/#define LI_SUPPORTED_LOCALE  REC_DEFAULT_LOCALE#endif

⌨️ 快捷键说明

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