C# 클래스 Ocronet.Dynamic.Recognizers.Lenet.LenetWrapper

파일 보기 프로젝트 열기: nickun/OCRonet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
AsciiTarget bool
C2i int>.Dictionary
Classes int[]
HrLenet System.IntPtr
NetNorm bool
TanhSigmoid bool

공개 메소드들

메소드 설명
ComputeOutputs ( byte buffer, int size, int height, int width, OutputVector result ) : void
ComputeOutputs ( byte buffer, int size, int height, int width, int &outClasses, double &outEnergies, int &outSize ) : void
ComputeOutputsRaw ( byte buffer, int size, int height, int width, OutputVector result ) : void
ComputeOutputsRaw ( byte buffer, int size, int height, int width, int &outClasses, double &outEnergies, int &outSize ) : void
CreateLenet ( int nclasses, int classes, bool tanhSigmoid = false, bool netNorm = false, bool asciiTarget = true ) : int
DeleteLenet ( ) : void
LenetWrapper ( ) : System
LoadNetworkFromBuffer ( double buffer, int size ) : void
OnTrainRound ( object sender, TrainEventArgs args ) : void
SaveNetworkToBuffer ( int &size, double &darray ) : void
SetEmpty ( ) : void
TestDense ( IDataset ts ) : TrainInfo
TrainBatch ( IDataset ds, IDataset ts, int epochs ) : TrainInfo
TrainDense ( IDataset ds, int epochs ) : void

비공개 메소드들

메소드 설명
AddSampleToTestOfEpoch ( IntPtr hrlenet, [ buffer, int size, int iclass ) : void
AddSampleToTrainOfEpoch ( IntPtr hrlenet, [ buffer, int size, int iclass ) : void
BeginTestEpoch ( IntPtr hrlenet, int height, int width, int testNsamples ) : void
BeginTrainEpoch ( IntPtr hrlenet, int height, int width, int trainNsamples, int testNsamples = -1 ) : void
ComputeOutputs ( IntPtr hrlenet, [ buffer, int size, int height, int width, [ outclasses, [ outenergies, int &outsize ) : void
ComputeOutputsRaw ( IntPtr hrlenet, [ buffer, int size, int height, int width, [ outclasses, [ outenergies, int &outsize ) : void
CreateLenet ( IntPtr &hrlenet, int nclasses, [ classes, bool tanhSigmoid, bool netNorm, bool asciiTarget ) : int
DeleteLenet ( IntPtr hrlenet ) : void
EndAndRunTestEpoch ( IntPtr hrlenet, TrainInfo &trainInfo ) : void
EndAndRunTrainEpoch ( IntPtr hrlenet, TrainInfo &trainInfo, int epochCount = 1 ) : void
GetStdout ( [ outstring ) : void
LoadNetwork ( IntPtr hrlenet, string networkFile ) : int
LoadNetworkFromBuffer ( IntPtr hrlenet, [ buffer, int size ) : void
LoadTestMnist ( IntPtr hrlenet, string testDatafile, string testLabelfile ) : int
LoadTrainMnist ( IntPtr hrlenet, string trainDatafile, string trainLabelfile ) : int
RecognizeImageFile ( IntPtr hrlenet, string imageFilename, int &answer, double &rate ) : void
RecognizeRawData ( IntPtr hrlenet, [ buffer, int size, int height, int width, int &answer, double &rate ) : void
SaveNetwork ( IntPtr hrlenet, string networkFile ) : int
SaveNetworkToBuffer ( IntPtr hrlenet, int &size, IntPtr &ppArray ) : void
SaveTrainMnist ( IntPtr hrlenet, string trainDatafile, string trainLabelfile ) : int
StartRedirectStdout ( ) : bool
TestDoubleCoTaskMemAlloc ( int &size, IntPtr &ppArray ) : void
TestIntCoTaskMemAlloc ( int &size, IntPtr &ppArray ) : void
TrainOneEpoch ( IntPtr hrlenet, TrainInfo &trainInfo ) : void

메소드 상세

ComputeOutputs() 공개 메소드

public ComputeOutputs ( byte buffer, int size, int height, int width, OutputVector result ) : void
buffer byte
size int
height int
width int
result OutputVector
리턴 void

ComputeOutputs() 공개 메소드

public ComputeOutputs ( byte buffer, int size, int height, int width, int &outClasses, double &outEnergies, int &outSize ) : void
buffer byte
size int
height int
width int
outClasses int
outEnergies double
outSize int
리턴 void

ComputeOutputsRaw() 공개 메소드

public ComputeOutputsRaw ( byte buffer, int size, int height, int width, OutputVector result ) : void
buffer byte
size int
height int
width int
result OutputVector
리턴 void

ComputeOutputsRaw() 공개 메소드

public ComputeOutputsRaw ( byte buffer, int size, int height, int width, int &outClasses, double &outEnergies, int &outSize ) : void
buffer byte
size int
height int
width int
outClasses int
outEnergies double
outSize int
리턴 void

CreateLenet() 공개 메소드

public CreateLenet ( int nclasses, int classes, bool tanhSigmoid = false, bool netNorm = false, bool asciiTarget = true ) : int
nclasses int
classes int
tanhSigmoid bool
netNorm bool
asciiTarget bool
리턴 int

DeleteLenet() 공개 메소드

public DeleteLenet ( ) : void
리턴 void

LenetWrapper() 공개 메소드

public LenetWrapper ( ) : System
리턴 System

LoadNetworkFromBuffer() 공개 메소드

public LoadNetworkFromBuffer ( double buffer, int size ) : void
buffer double
size int
리턴 void

OnTrainRound() 공개 메소드

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

SaveNetworkToBuffer() 공개 메소드

public SaveNetworkToBuffer ( int &size, double &darray ) : void
size int
darray double
리턴 void

SetEmpty() 공개 메소드

public SetEmpty ( ) : void
리턴 void

TestDense() 공개 메소드

public TestDense ( IDataset ts ) : TrainInfo
ts Ocronet.Dynamic.IOData.IDataset
리턴 TrainInfo

TrainBatch() 공개 메소드

public TrainBatch ( IDataset ds, IDataset ts, int epochs ) : TrainInfo
ds Ocronet.Dynamic.IOData.IDataset
ts Ocronet.Dynamic.IOData.IDataset
epochs int
리턴 TrainInfo

TrainDense() 공개 메소드

public TrainDense ( IDataset ds, int epochs ) : void
ds Ocronet.Dynamic.IOData.IDataset
epochs int
리턴 void

프로퍼티 상세

AsciiTarget 공개적으로 프로퍼티

public bool AsciiTarget
리턴 bool

C2i 공개적으로 프로퍼티

public Dictionary C2i
리턴 int>.Dictionary

Classes 공개적으로 프로퍼티

public int[] Classes
리턴 int[]

HrLenet 공개적으로 프로퍼티

public IntPtr,System HrLenet
리턴 System.IntPtr

NetNorm 공개적으로 프로퍼티

public bool NetNorm
리턴 bool

TanhSigmoid 공개적으로 프로퍼티

public bool TanhSigmoid
리턴 bool