Méthode |
Description |
|
AddTrainingLine ( Intarray cseg, Bytearray image_grayscale, string tr ) : bool |
Train on a text line, given a segmentation. This is analogous to addTrainingLine(bytearray,nustring) except that it takes the "ground truth" line segmentation. |
|
AddTrainingLine ( Intarray cseg, string tr ) : void |
Train on a text line. Usage is: call addTrainingLine with training data, then call finishTraining The state of the object is undefined between calling addTrainingLine and finishTraining, and it is an error to call recognizeLine before finishTraining completes. This allows both batch and incemental training. NB: you might train on length 1 strings for single character training and might train on words if line alignment is not working (well, for some training data) |
|
Epoch ( int n ) : void |
|
|
EstimateSpaceSize ( ) : void |
|
|
FinishTraining ( ) : void |
|
|
GetClassifier ( ) : IModel |
|
|
IncClass ( int c ) : void |
Original name: inc_class |
|
Info ( ) : void |
|
|
Linerec ( ) : System |
|
|
Linerec ( string classifier1 = "latin", string extractor1 = "scaledfe", string segmenter1 = "DpSegmenter", int use_reject = 1 ) : System |
|
|
Load ( string filename ) : void |
|
|
LoadLinerec ( string filename ) : Linerec |
|
|
LoadOldFormat ( BinaryReader reader ) : void |
|
|
LoadOldFormat ( string path ) : void |
|
|
OnTrainRound ( object sender, TrainEventArgs args ) : void |
|
|
RecognizeLine ( IGenericFst result, Bytearray image ) : double |
Recognize a text line and return a lattice representing the recognition alternatives. |
|
RecognizeLine ( Intarray segmentation_, IGenericFst result, Bytearray image_ ) : double |
This is a weird, optional method that exposes character segmentation for those line recognizers that have it segmentation contains colored pixels, and a transition in the transducer of the form * --- 1/eps --> * --- 2/a --> * means that pixels with color 1 and 2 together form the letter "a" |
|
Save ( string filepath ) : void |
Save network to file |
|
SetClassifier ( IModel classifier ) : void |
|
|
SetLine ( Bytearray image ) : void |
|
|
StartTraining ( string type = "adaptation" ) : void |
|
|