Back to Adaptive Vision Library websiteYou are here:
Start »
Function Reference »
Optical Character Recognition Deprecated »
InitOcr_SVM_Deprecated
Creates an OCR model based on support vector machines classifier.
Syntax
C++
C#
void avl::InitOcr_SVM_Deprecated
(
const atl::Optional<float>& inNu,
const atl::Optional<float>& inKernelGamma,
const float& inRegularizationConstant,
const float& inStopEpsilon,
bool inUseShrinkingHeuristics,
const avl::Size& inNormalizationSize,
atl::Optional<int> inRandomSeed,
const avl::CharacterFeatures& inCharacterFeatures,
avl::OcrSvmModel& outOcrModel
)
void InitOcr_SVM_Deprecated
(
float? inNu,
float? inKernelGamma,
float inRegularizationConstant,
float inStopEpsilon,
bool inUseShrinkingHeuristics,
Size inNormalizationSize,
int? inRandomSeed,
CharacterFeatures inCharacterFeatures,
out 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
Error type |
Description |
DomainError |
Invalid normalization size in InitOcr_SVM. |