OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [services/] [gfx/] [mw/] [v2_0/] [src/] [demos/] [nxscribble/] [li_recognizer_internal.h] - Rev 174

Compare with Previous | Blame | View Log

/*
 *  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
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.