Back to FabImage Library website
You are here: Start » Function Reference » Optical Character Recognition Deprecated » InitOcr_SVM_Deprecated

InitOcr_SVM_Deprecated
Header: | FIL.h |
---|---|
Namespace: | fil |
Creates an OCR model based on support vector machines classifier.
Syntax
C++
void fil::InitOcr_SVM_Deprecated ( const ftl::Optional<float>& inNu, const ftl::Optional<float>& inKernelGamma, const float inRegularizationConstant, const float inStopEpsilon, bool inUseShrinkingHeuristics, const fil::Size& inNormalizationSize, ftl::Optional<int> inRandomSeed, const fil::CharacterFeatures& inCharacterFeatures, fil::OcrSvmModel& outOcrModel )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inNu | const Optional<float>& | 0.0 - 1.0 | NIL | Trade-off between training accuracy and number of supported vectors |
![]() |
inKernelGamma | const Optional<float>& | 0.01f | Gamma parameter for RBF kernel | |
![]() |
inRegularizationConstant | const float | 0.0 - ![]() |
1.0f | Preventing overfitting |
![]() |
inStopEpsilon | const float | 0.001f | Epsilon for stopping criterion | |
![]() |
inUseShrinkingHeuristics | bool | True | Heuristics may speed up computations | |
![]() |
inNormalizationSize | const Size& | (Width: 16, Height: 16) | The character size after normalization | |
![]() |
inRandomSeed | Optional<int> | 0 - +![]() |
NIL | Random seed used to train classifier |
![]() |
inCharacterFeatures | const CharacterFeatures& | (Pixels: True) | Character features used to identify characters | |
![]() |
outOcrModel | OcrSvmModel& | Result OcrSvmModel used to recognize characters |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Invalid normalization size in InitOcr_SVM. |