C# 클래스 Ocronet.Dynamic.Recognizers.Linerec

상속: Ocronet.Dynamic.Interfaces.IRecognizeLine
파일 보기 프로젝트 열기: nickun/OCRonet 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
Classifier_TrainRound ( object sender, TrainEventArgs e ) : void
TryAttachClassifierEvent ( IModel classifier ) : void
riuniform ( int hi ) : int

메소드 상세

AddTrainingLine() 공개 메소드

Train on a text line, given a segmentation. This is analogous to addTrainingLine(bytearray,nustring) except that it takes the "ground truth" line segmentation.
public AddTrainingLine ( Intarray cseg, Bytearray image_grayscale, string tr ) : bool
cseg Intarray
image_grayscale Bytearray
tr string
리턴 bool

AddTrainingLine() 공개 메소드

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)
public AddTrainingLine ( Intarray cseg, string tr ) : void
cseg Intarray
tr string
리턴 void

Epoch() 공개 메소드

public Epoch ( int n ) : void
n int
리턴 void

EstimateSpaceSize() 공개 메소드

public EstimateSpaceSize ( ) : void
리턴 void

FinishTraining() 공개 메소드

public FinishTraining ( ) : void
리턴 void

GetClassifier() 공개 메소드

public GetClassifier ( ) : IModel
리턴 IModel

IncClass() 공개 메소드

Original name: inc_class
public IncClass ( int c ) : void
c int
리턴 void

Info() 공개 메소드

public Info ( ) : void
리턴 void

Linerec() 공개 메소드

public Linerec ( ) : System
리턴 System

Linerec() 공개 메소드

public Linerec ( string classifier1 = "latin", string extractor1 = "scaledfe", string segmenter1 = "DpSegmenter", int use_reject = 1 ) : System
classifier1 string
extractor1 string
segmenter1 string
use_reject int
리턴 System

Load() 공개 메소드

public Load ( string filename ) : void
filename string
리턴 void

LoadLinerec() 공개 정적인 메소드

public static LoadLinerec ( string filename ) : Linerec
filename string
리턴 Linerec

LoadOldFormat() 공개 메소드

public LoadOldFormat ( BinaryReader reader ) : void
reader System.IO.BinaryReader
리턴 void

LoadOldFormat() 공개 메소드

public LoadOldFormat ( string path ) : void
path string
리턴 void

OnTrainRound() 공개 메소드

public OnTrainRound ( object sender, TrainEventArgs args ) : void
sender object
args TrainEventArgs
리턴 void

RecognizeLine() 공개 메소드

Recognize a text line and return a lattice representing the recognition alternatives.
public RecognizeLine ( IGenericFst result, Bytearray image ) : double
result Ocronet.Dynamic.Interfaces.IGenericFst
image Bytearray
리턴 double

RecognizeLine() 공개 메소드

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"
public RecognizeLine ( Intarray segmentation_, IGenericFst result, Bytearray image_ ) : double
segmentation_ Intarray
result Ocronet.Dynamic.Interfaces.IGenericFst
image_ Bytearray
리턴 double

Save() 공개 메소드

Save network to file
public Save ( string filepath ) : void
filepath string full file path
리턴 void

SetClassifier() 공개 메소드

public SetClassifier ( IModel classifier ) : void
classifier IModel
리턴 void

SetLine() 공개 메소드

public SetLine ( Bytearray image ) : void
image Bytearray
리턴 void

StartTraining() 공개 메소드

public StartTraining ( string type = "adaptation" ) : void
type string
리턴 void