get_params_ocr_class_svmT_get_params_ocr_class_svmGetParamsOcrClassSvmGetParamsOcrClassSvmget_params_ocr_class_svm (算子名称)

名称

get_params_ocr_class_svmT_get_params_ocr_class_svmGetParamsOcrClassSvmGetParamsOcrClassSvmget_params_ocr_class_svm — Return the parameters of an OCR classifier.

参数签名

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

Herror T_get_params_ocr_class_svm(const Htuple OCRHandle, Htuple* WidthCharacter, Htuple* HeightCharacter, Htuple* Interpolation, Htuple* 特征, 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* 特征, HTuple* Characters, HTuple* KernelType, HTuple* KernelParam, HTuple* Nu, HTuple* Mode, HTuple* Preprocessing, HTuple* NumComponents)

void HOCRSvm::GetParamsOcrClassSvm(Hlong* WidthCharacter, Hlong* HeightCharacter, HString* Interpolation, HTuple* 特征, 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* 特征, 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 特征, 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 特征, 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 特征, out HTuple characters, out string kernelType, out double kernelParam, out double nu, out string mode, out string preprocessing, out int numComponents)

def get_params_ocr_class_svm(ocrhandle: HHandle) -> Tuple[int, int, str, Sequence[str], Sequence[str], str, float, float, str, str, int]

def get_params_ocr_class_svm_s(ocrhandle: HHandle) -> Tuple[int, int, str, str, Sequence[str], str, float, float, str, str, int]

描述

get_params_ocr_class_svmget_params_ocr_class_svmGetParamsOcrClassSvmGetParamsOcrClassSvmGetParamsOcrClassSvmget_params_ocr_class_svm returns the parameters of an OCR classifier that were specified when the classifier was created with create_ocr_class_svmcreate_ocr_class_svmCreateOcrClassSvmCreateOcrClassSvmCreateOcrClassSvmcreate_ocr_class_svm. This is particularly useful if the classifier was read with read_ocr_class_svmread_ocr_class_svmReadOcrClassSvmReadOcrClassSvmReadOcrClassSvmread_ocr_class_svm. The output of get_params_ocr_class_svmget_params_ocr_class_svmGetParamsOcrClassSvmGetParamsOcrClassSvmGetParamsOcrClassSvmget_params_ocr_class_svm 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_svmCreateOcrClassSvmCreateOcrClassSvmCreateOcrClassSvmcreate_ocr_class_svm.

运行信息

参数表

OCRHandleOCRHandleOCRHandleOCRHandleOCRHandleocrhandle (input_control)  ocr_svm HOCRSvm, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the OCR classifier.

WidthCharacterWidthCharacterWidthCharacterWidthCharacterwidthCharacterwidth_character (output_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

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

HeightCharacterHeightCharacterHeightCharacterHeightCharacterheightCharacterheight_character (output_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

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

InterpolationInterpolationInterpolationInterpolationinterpolationinterpolation (output_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Interpolation mode for the zooming of the characters.

特征特征特征特征特征特征 (output_control)  string(-array) HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)

Features to be used for classification.

CharactersCharactersCharactersCharacterscharacterscharacters (output_control)  string-array HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)

Characters of the character set to be read.

KernelTypeKernelTypeKernelTypeKernelTypekernelTypekernel_type (output_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

The kernel type.

KernelParamKernelParamKernelParamKernelParamkernelParamkernel_param (output_control)  real HTuplefloatHTupleHtuple (real) (double) (double) (double)

Additional parameters for the kernel function.

NuNuNuNununu (output_control)  real HTuplefloatHTupleHtuple (real) (double) (double) (double)

Regularization constant of the SVM.

ModeModeModeModemodemode (output_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

The mode of the SVM.

PreprocessingPreprocessingPreprocessingPreprocessingpreprocessingpreprocessing (output_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Type of preprocessing used to transform the feature vectors.

NumComponentsNumComponentsNumComponentsNumComponentsnumComponentsnum_components (output_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

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

结果

If the parameters are valid 该算子 get_params_ocr_class_svmget_params_ocr_class_svmGetParamsOcrClassSvmGetParamsOcrClassSvmGetParamsOcrClassSvmget_params_ocr_class_svm 返回值 2 ( H_MSG_TRUE) . If necessary, an exception is raised.

可能的前置算子

create_ocr_class_svmcreate_ocr_class_svmCreateOcrClassSvmCreateOcrClassSvmCreateOcrClassSvmcreate_ocr_class_svm, read_ocr_class_svmread_ocr_class_svmReadOcrClassSvmReadOcrClassSvmReadOcrClassSvmread_ocr_class_svm

可能的后置算子

do_ocr_single_class_svmdo_ocr_single_class_svmDoOcrSingleClassSvmDoOcrSingleClassSvmDoOcrSingleClassSvmdo_ocr_single_class_svm, do_ocr_multi_class_svmdo_ocr_multi_class_svmDoOcrMultiClassSvmDoOcrMultiClassSvmDoOcrMultiClassSvmdo_ocr_multi_class_svm

参考其它

trainf_ocr_class_svmtrainf_ocr_class_svmTrainfOcrClassSvmTrainfOcrClassSvmTrainfOcrClassSvmtrainf_ocr_class_svm, get_params_class_svmget_params_class_svmGetParamsClassSvmGetParamsClassSvmGetParamsClassSvmget_params_class_svm

模块

OCR/OCV