get_support_vector_num_ocr_class_svmT_get_support_vector_num_ocr_class_svmGetSupportVectorNumOcrClassSvmGetSupportVectorNumOcrClassSvm (Operator)

Name

get_support_vector_num_ocr_class_svmT_get_support_vector_num_ocr_class_svmGetSupportVectorNumOcrClassSvmGetSupportVectorNumOcrClassSvm — Return the number of support vectors of an OCR classifier.

Signature

get_support_vector_num_ocr_class_svm( : : OCRHandle : NumSupportVectors, NumSVPerSVM)

Herror T_get_support_vector_num_ocr_class_svm(const Htuple OCRHandle, Htuple* NumSupportVectors, Htuple* NumSVPerSVM)

void GetSupportVectorNumOcrClassSvm(const HTuple& OCRHandle, HTuple* NumSupportVectors, HTuple* NumSVPerSVM)

Hlong HOCRSvm::GetSupportVectorNumOcrClassSvm(HTuple* NumSVPerSVM) const

static void HOperatorSet.GetSupportVectorNumOcrClassSvm(HTuple OCRHandle, out HTuple numSupportVectors, out HTuple numSVPerSVM)

int HOCRSvm.GetSupportVectorNumOcrClassSvm(out HTuple numSVPerSVM)

Description

get_support_vector_num_ocr_class_svmget_support_vector_num_ocr_class_svmGetSupportVectorNumOcrClassSvmGetSupportVectorNumOcrClassSvmGetSupportVectorNumOcrClassSvm returns in NumSupportVectorsNumSupportVectorsNumSupportVectorsNumSupportVectorsnumSupportVectors the number of support vectors that are stored in the support vector machine (SVM) given by OCRHandleOCRHandleOCRHandleOCRHandleOCRHandle. get_support_vector_num_ocr_class_svmget_support_vector_num_ocr_class_svmGetSupportVectorNumOcrClassSvmGetSupportVectorNumOcrClassSvmGetSupportVectorNumOcrClassSvm should be called before the labels of individual support vectors are read out with get_support_vector_ocr_class_svmget_support_vector_ocr_class_svmGetSupportVectorOcrClassSvmGetSupportVectorOcrClassSvmGetSupportVectorOcrClassSvm, e.g., for visualizing which of the training data become a SV (see get_support_vector_ocr_class_svmget_support_vector_ocr_class_svmGetSupportVectorOcrClassSvmGetSupportVectorOcrClassSvmGetSupportVectorOcrClassSvm). The number of SVs in each classifier is listed in NumSVPerSVMNumSVPerSVMNumSVPerSVMNumSVPerSVMnumSVPerSVM. The reason that its sum differs from the number obtained in NumSupportVectorsNumSupportVectorsNumSupportVectorsNumSupportVectorsnumSupportVectors is that SV evaluations are reused throughout different binary sub-SVMs.

Execution Information

Parameters

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

OCR handle.

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

Total number of support vectors.

NumSVPerSVMNumSVPerSVMNumSVPerSVMNumSVPerSVMnumSVPerSVM (output_control)  integer-array HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Number of SV of each sub-SVM.

Result

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

Possible Predecessors

trainf_ocr_class_svmtrainf_ocr_class_svmTrainfOcrClassSvmTrainfOcrClassSvmTrainfOcrClassSvm

Possible Successors

get_support_vector_ocr_class_svmget_support_vector_ocr_class_svmGetSupportVectorOcrClassSvmGetSupportVectorOcrClassSvmGetSupportVectorOcrClassSvm

See also

create_ocr_class_svmcreate_ocr_class_svmCreateOcrClassSvmCreateOcrClassSvmCreateOcrClassSvm

Module

OCR/OCV