You are here: Start » FIL.NET » FIS.TrainOcr_SVM Method
FIS.TrainOcr_SVM Method
Trains an OCR support vector machines classifier.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
public static void TrainOcr_SVM ( IList<FilNet.CharacterSample> inCharacterSamples, FilNet.Size inNormalizationSize, float? inNu, float? inKernelGamma, float inRegularizationConstant, float inStopEpsilon, bool inUseShrinkingHeuristics, FilNet.Size? inCharacterSize, int? inRandomSeed, FilNet.CharacterFeatures inCharacterFeatures, FilNet.OcrModel outOcrModel, out float outTrainingAccuracy, IList<FilNet.Image> diagNormalizedCharacters )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inCharacterSamples | System.Collections.Generic.IList<FilNet.CharacterSample> | Training font created from sample regions. | ||
![]() | inNormalizationSize | FilNet.Size | (Width: 16, Height: 16) | The character size after normalization. Default value: (Width: 16, Height: 16). | |
![]() | inNu | float? | <0.0f, 1.0f> | Trade-off between training accuracy and number of supported vectors. Default value: ftl::NIL. | |
![]() | inKernelGamma | float? | Gamma parameter for RBF kernel. Default value: ftl::NIL. | ||
![]() | inRegularizationConstant | float | <0.0f, INF> | 1.0f | Preventing overfitting. Default value: 1.0f. |
![]() | inStopEpsilon | float | 0.001f | Epsilon for stopping criterion. Default value: 0.001f. | |
![]() | inUseShrinkingHeuristics | bool | True | Heuristics may speed up computations. Default value: True. | |
![]() | inCharacterSize | FilNet.Size? | Size of fixed width font. Default value: ftl::NIL. | ||
![]() | inRandomSeed | int? | <0, +INF> | Random seed used to train classifier. Default value: ftl::NIL. | |
![]() | inCharacterFeatures | FilNet.CharacterFeatures | (Pixels: True) | Character features used to identify characters. Default value: (Pixels: True). | |
![]() | outOcrModel | FilNet.OcrModel | Trained OcrSvmModel used to recognize characters. | ||
![]() | outTrainingAccuracy | float | The overall training score. | ||
![]() | diagNormalizedCharacters | System.Collections.Generic.IList<FilNet.Image> | Images of normalized characters used to train classifier. |
Function Overrides
- TrainOcr_SVM(IList<CharacterSample>, Size, Single, Single, Boolean, CharacterFeatures, OcrModel, Single)
- TrainOcr_SVM(IList<CharacterSample>, Size, Nullable<Single>, Nullable<Single>, Single, Single, Boolean, Nullable<Size>, Nullable<Int32>, CharacterFeatures, OcrModel, Single)