You are here: Start » AVL.NET » AVL.TrainOcr_MLP(AvlNet.CharacterSample[], AvlNet.Size, int[], int?, AvlNet.CharacterFeatures, float, float, int, AvlNet.Size?, AvlNet.OcrModel, float)
AVL.TrainOcr_MLP(AvlNet.CharacterSample[], AvlNet.Size, int[], int?, AvlNet.CharacterFeatures, float, float, int, AvlNet.Size?, AvlNet.OcrModel, float)
Trains an OCR multilayer perceptron classifier.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void TrainOcr_MLP( AvlNet.CharacterSample[] inCharacterSamples, AvlNet.Size inNormalizationSize, int[] inHiddenLayerSizes, int? inRandomSeed, AvlNet.CharacterFeatures inCharacterFeatures, float inLearningRate, float inMomentum, int inIterationCount, AvlNet.Size? inCharacterSize, out AvlNet.OcrModel outOcrModel, out float outTrainingAccuracy )
Parameters
- inCharacterSamples
- Type: AvlNet.CharacterSample
Training font created from sample regions - inNormalizationSize
- Type: AvlNet.Size
The character size after normalization - inHiddenLayerSizes
- Type: System.Int32
Internal structure of neuron layers used in classifier, or null. - inRandomSeed
- Type: System.Nullable<System.Int32>
Random seed used by MLP classifier, or null. - inCharacterFeatures
- Type: AvlNet.CharacterFeatures
Character features used to distinguish characters from each other - inLearningRate
- Type: System.Single
Suppression level of changes during learning process - inMomentum
- Type: System.Single
Value of classifier learning momentum - inIterationCount
- Type: System.Int32
Learning iteration count - inCharacterSize
- Type: System.Nullable<AvlNet.Size>
Size of fixed width font, or null. - outOcrModel
- Type: AvlNet.OcrModel
Trained OcrMlpModel used to recognize characters - outTrainingAccuracy
- Type: System.Single
The overall training score
