00001 #ifndef TRAINER_H 00002 #define TRAINER_H 00003 00004 #include <stdlib.h> 00005 #include <stdio.h> 00006 #include <sys/types.h> 00007 #include <sys/stat.h> 00008 #include "JScript.h" 00009 00010 #include "DLConnectedComponentsUtils.h" 00011 #include "DLImage.h" 00012 #include "DLConnectedComponents.h" 00013 #include "DLComponent.h" 00014 00015 #include "JargonUtils.h" 00016 00023 00024 class Trainer 00025 { 00026 public: 00028 Trainer(void); 00030 ~Trainer(void); 00031 00051 static int train(char *training_file_list, char *language, 00052 int hamming_distance, int min_component_size, 00053 int max_height, int max_width, int blob_percent, 00054 int symbol_cnt, int scaled_width, int scaled_height, 00055 int small_cluster_threshold, char *results_file); 00056 }; 00057 00058 #endif