ClassesClasses | | Operators

get_params_ocr_class_svmT_get_params_ocr_class_svmGetParamsOcrClassSvmGetParamsOcrClassSvm (Operator)

Name

get_params_ocr_class_svmT_get_params_ocr_class_svmGetParamsOcrClassSvmGetParamsOcrClassSvm — Return the parameters of an OCR classifier.

Signature

get_params_ocr_class_svm( : : OCRHandle : WidthCharacter, HeightCharacter, Interpolation, Features, Characters, KernelType, KernelParam, Nu, Mode, Preprocessing, NumComponents)

Herror T_get_params_ocr_class_svm(const Htuple OCRHandle, Htuple* WidthCharacter, Htuple* HeightCharacter, Htuple* Interpolation, Htuple* Features, Htuple* Characters, Htuple* KernelType, Htuple* KernelParam, Htuple* Nu, Htuple* Mode, Htuple* Preprocessing, Htuple* NumComponents)

void GetParamsOcrClassSvm(const HTuple& OCRHandle, HTuple* WidthCharacter, HTuple* HeightCharacter, HTuple* Interpolation, HTuple* Features, HTuple* Characters, HTuple* KernelType, HTuple* KernelParam, HTuple* Nu, HTuple* Mode, HTuple* Preprocessing, HTuple* NumComponents)

void HOCRSvm::GetParamsOcrClassSvm(Hlong* WidthCharacter, Hlong* HeightCharacter, HString* Interpolation, HTuple* Features, HTuple* Characters, HString* KernelType, double* KernelParam, double* Nu, HString* Mode, HString* Preprocessing, Hlong* NumComponents) const

void HOCRSvm::GetParamsOcrClassSvm(Hlong* WidthCharacter, Hlong* HeightCharacter, HString* Interpolation, HString* Features, HTuple* Characters, HString* KernelType, double* KernelParam, double* Nu, HString* Mode, HString* Preprocessing, Hlong* NumComponents) const

static void HOperatorSet.GetParamsOcrClassSvm(HTuple OCRHandle, out HTuple widthCharacter, out HTuple heightCharacter, out HTuple interpolation, out HTuple features, out HTuple characters, out HTuple kernelType, out HTuple kernelParam, out HTuple nu, out HTuple mode, out HTuple preprocessing, out HTuple numComponents)

void HOCRSvm.GetParamsOcrClassSvm(out int widthCharacter, out int heightCharacter, out string interpolation, out HTuple features, out HTuple characters, out string kernelType, out double kernelParam, out double nu, out string mode, out string preprocessing, out int numComponents)

void HOCRSvm.GetParamsOcrClassSvm(out int widthCharacter, out int heightCharacter, out string interpolation, out string features, out HTuple characters, out string kernelType, out double kernelParam, out double nu, out string mode, out string preprocessing, out int numComponents)

Description

get_params_ocr_class_svmget_params_ocr_class_svmGetParamsOcrClassSvmGetParamsOcrClassSvmGetParamsOcrClassSvm returns the parameters of an OCR classifier that were specified when the classifier was created with create_ocr_class_svmcreate_ocr_class_svmCreateOcrClassSvmCreateOcrClassSvmCreateOcrClassSvm. This is particularly useful if the classifier was read with read_ocr_class_svmread_ocr_class_svmReadOcrClassSvmReadOcrClassSvmReadOcrClassSvm. The output of get_params_ocr_class_svmget_params_ocr_class_svmGetParamsOcrClassSvmGetParamsOcrClassSvmGetParamsOcrClassSvm can, for example, be used to check whether a character to be read is contained in the classifier. For a description of the parameters, see create_ocr_class_svmcreate_ocr_class_svmCreateOcrClassSvmCreateOcrClassSvmCreateOcrClassSvm.

Execution Information

Parameters

OCRHandleOCRHandleOCRHandleOCRHandleOCRHandle (input_control)  ocr_svm HOCRSvm, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the OCR classifier.

WidthCharacterWidthCharacterWidthCharacterWidthCharacterwidthCharacter (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Width of the rectangle to which the gray values of the segmented character are zoomed.

HeightCharacterHeightCharacterHeightCharacterHeightCharacterheightCharacter (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Height of the rectangle to which the gray values of the segmented character are zoomed.

InterpolationInterpolationInterpolationInterpolationinterpolation (output_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Interpolation mode for the zooming of the characters.

FeaturesFeaturesFeaturesFeaturesfeatures (output_control)  string(-array) HTupleHTupleHtuple (string) (string) (HString) (char*)

Features to be used for classification.

CharactersCharactersCharactersCharacterscharacters (output_control)  string-array HTupleHTupleHtuple (string) (string) (HString) (char*)

Characters of the character set to be read.

KernelTypeKernelTypeKernelTypeKernelTypekernelType (output_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

The kernel type.

KernelParamKernelParamKernelParamKernelParamkernelParam (output_control)  real HTupleHTupleHtuple (real) (double) (double) (double)

Additional parameters for the kernel function.

NuNuNuNunu (output_control)  real HTupleHTupleHtuple (real) (double) (double) (double)

Regularization constant of the SVM.

ModeModeModeModemode (output_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

The mode of the SVM.

PreprocessingPreprocessingPreprocessingPreprocessingpreprocessing (output_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Type of preprocessing used to transform the feature vectors.

NumComponentsNumComponentsNumComponentsNumComponentsnumComponents (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Preprocessing parameter: Number of transformed features (ignored for PreprocessingPreprocessingPreprocessingPreprocessingpreprocessing = 'none'"none""none""none""none" and PreprocessingPreprocessingPreprocessingPreprocessingpreprocessing = 'normalization'"normalization""normalization""normalization""normalization").

Result

If the parameters are valid the operator get_params_ocr_class_svmget_params_ocr_class_svmGetParamsOcrClassSvmGetParamsOcrClassSvmGetParamsOcrClassSvm returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Possible Predecessors

create_ocr_class_svmcreate_ocr_class_svmCreateOcrClassSvmCreateOcrClassSvmCreateOcrClassSvm, read_ocr_class_svmread_ocr_class_svmReadOcrClassSvmReadOcrClassSvmReadOcrClassSvm

Possible Successors

do_ocr_single_class_svmdo_ocr_single_class_svmDoOcrSingleClassSvmDoOcrSingleClassSvmDoOcrSingleClassSvm, do_ocr_multi_class_svmdo_ocr_multi_class_svmDoOcrMultiClassSvmDoOcrMultiClassSvmDoOcrMultiClassSvm

See also

trainf_ocr_class_svmtrainf_ocr_class_svmTrainfOcrClassSvmTrainfOcrClassSvmTrainfOcrClassSvm, get_params_class_svmget_params_class_svmGetParamsClassSvmGetParamsClassSvmGetParamsClassSvm

Module

OCR/OCV


ClassesClasses | | Operators