You are here: Start » AVL.NET » Invoke.TrainOcr_MLP
Trains an OCR multilayer perceptron classifier.
Namespace: | Avl |
---|---|
Assembly: | AvlNet.dll |
Syntax
C++
C#
public static void TrainOcr_MLP ( List<Avl.CharacterSample> inCharacterSamples, Avl.Size inNormalizationSize, Optional<List<int>> inHiddenLayerSizes, Optional<int> inRandomSeed, Avl.CharacterFeatures inCharacterFeatures, float inLearningRate, float inMomentum, int inIterationCount, Optional<Avl.Size> inCharacterSize, Avl.OcrModel outOcrModel, out float outTrainingAccuracy, Diagnostic<Avl.Profile> diagError, Diagnostic<List<Avl.Image>> diagNormalizedCharacters )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inCharacterSamples | System.Collections.Generic.List<Avl.CharacterSample> | Training font created from sample regions. | ||
![]() | inNormalizationSize | Avl.Size | (Width: 16, Height: 16) | The character size after normalization. Default value: (Width: 16, Height: 16). | |
![]() | inHiddenLayerSizes | Atl.Optional<System.Collections.Generic.List<int>> | Internal structure of neuron layers used in classifier. Default value: atl::NIL. | ||
![]() | inRandomSeed | Atl.Optional<int> | <0, +INF> | Random seed used by MLP classifier. Default value: atl::NIL. | |
![]() | inCharacterFeatures | Avl.CharacterFeatures | (Pixels: True) | Character features used to distinguish characters from each other. Default value: (Pixels: True). | |
![]() | inLearningRate | float | <0.01f, 1.0f> | 0.6f | Suppression level of changes during learning process. Default value: 0.6f. |
![]() | inMomentum | float | <0.0f, 1.0f> | 0.75f | Value of classifier learning momentum. Default value: 0.75f. |
![]() | inIterationCount | int | <1, +INF> | 100 | Learning iteration count. Default value: 100. |
![]() | inCharacterSize | Atl.Optional<Avl.Size> | Size of fixed width font. Default value: atl::NIL. | ||
![]() | outOcrModel | Avl.OcrModel | Trained OcrMlpModel used to recognize characters. | ||
![]() | outTrainingAccuracy | float | The overall training score. | ||
![]() | diagError | Avl.Diagnostic<Avl.Profile> | Changes of mean error level progress during learning process. | ||
![]() | diagNormalizedCharacters | Avl.Diagnostic<System.Collections.Generic.List<Avl.Image>> | Images of normalized characters used to train classifier. |