reference/ocr-new/learn.h
changeset 0 6b8091ca909a
equal deleted inserted replaced
-1:000000000000 0:6b8091ca909a
       
     1 // learn.h 
       
     2 // Functions for use with LearnedcharGroups array
       
     3 class Page;
       
     4 
       
     5 void learn(Page * p, char * asciiFile, bool synchWords=FALSE);  
       
     6 void learn(char * tifFile, char * asciiFile, bool synchWords=FALSE);  
       
     7 int learn(Component * comp, char * id, Confidence threshold);
       
     8 void readLearnFiles();    // sources learnfile.tcl where learn files can be set
       
     9 
       
    10 int writeLearnedGroups(char * filename);  // Save learned characters
       
    11 int readLearnedGroups(char * filename);   // read back saved characters
       
    12 void testLearn();                         
       
    13 
       
    14 // oldlearn for use with LearnedChars array 
       
    15 // averaging learning ***NOT CURRENTLY USED ***
       
    16 void oldlearn(char * tifFile, char * asciiFile);  // averages values
       
    17 void initLearnedChars();   // sets learned charactere array to 0
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27