📄 li_recognizer_internal.h
字号:
/* * 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -