graffiti.h 735 B

123456789101112131415161718192021
  1. #define NUM_RECS 3
  2. #define DEFAULT_REC_DIR "classsifiers"
  3. #define REC_DEFAULT_USER_DIR "/sys/lib/scribble/classifiers"
  4. #define CLASSIFIER_DIR "lib/classifiers"
  5. #define DEFAULT_LETTERS_FILE "letters.cl"
  6. #define DEFAULT_DIGITS_FILE "digits.cl"
  7. #define DEFAULT_PUNC_FILE "punc.cl"
  8. struct graffiti {
  9. /* 3 recognizers, one each for letters, digits, and punctuation: */
  10. recognizer rec[3];
  11. /* directory in which the current classifier files are found: */
  12. char cldir[200];
  13. /* pointer to training function: */
  14. li_recognizer_train rec_train;
  15. /* pointer to function that lists the characters in the classifier file */
  16. li_recognizer_getClasses rec_getClasses;
  17. };
  18. extern char *cl_name[3];