Method | Description | |
---|---|---|
AddTrainingLine ( Intarray segmentation, Bytearray image_grayscale, string transcription ) : bool |
Train on a text line, given a segmentation.
|
|
AddTrainingLine ( Bytearray image, string transcription ) : void |
Train on a text line.
|
|
Align ( string chars, Intarray seg, Floatarray costs, Bytearray image, |
Align a lattice with a transcription.
|
|
Dispose ( ) : void |
Clean up here.
|
|
Epoch ( int n ) : void |
Notify the recognizer of the start of a new epoch (i.e., if n>0, then we have seen the data before).
|
|
FinishTraining ( ) : void |
Finish training, possibly making complex calculations.
|
|
RecognizeLine ( |
Recognize a text line and return a lattice representing the recognition alternatives.
|
|
RecognizeLine ( Intarray segmentation, |
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"
|
|
RecognizeLineSeg ( |
recognize a line with or without a given segmentation if useit is set to true, the given segmentation is just displayed in loggers, but not used, the segmenter computes the segmentation and the recognition uses its output if useit is set to false, the segmenter is still launched for the loggers, but the given segmentation is really used for the recognition
|
|
StartTraining ( string type = "adaptation" ) : void |
Start training of the given type.
|
public AddTrainingLine ( Intarray segmentation, Bytearray image_grayscale, string transcription ) : bool | ||
segmentation | Intarray | |
image_grayscale | Bytearray | |
transcription | string | |
return | bool |
public AddTrainingLine ( Bytearray image, string transcription ) : void | ||
image | Bytearray | |
transcription | string | |
return | void |
public Align ( string chars, Intarray seg, Floatarray costs, Bytearray image, |
||
chars | string | Characters along the best path. /// Currently, every character in chars must have a corresponding /// region in seg and the characters must be in reading order. /// Eventually, chars may contain characters (e.g., spaces) that /// do not correspond to any region. Note that chars may not /// correspond to any string allowed/suggested by the transcription. |
seg | Intarray | Aligned segmentation, colors correspond to chars (starting at 1) |
costs | Floatarray | Costs corresponding to chars |
image | Bytearray | Input grayscale image |
transcription | The "ground truth" lattice to align | |
return | void |
public abstract RecognizeLine ( |
||
result | ||
image | Bytearray | |
return | double |
public RecognizeLine ( Intarray segmentation, |
||
segmentation | Intarray | |
result | ||
image | Bytearray | |
return | double |
public RecognizeLineSeg ( |
||
result | ||
segmentation | Intarray | |
image | Bytearray | |
return | double |
public StartTraining ( string type = "adaptation" ) : void | ||
type | string | /// "adaptation" means temporary adaptation of the classifier /// to all the lines between startTraining and finishTraining /// other types of training are recognizer-dependent /// |
return | void |