ClassesClassesClassesClasses | | | | Operators

get_support_vector_ocr_class_svmT_get_support_vector_ocr_class_svmGetSupportVectorOcrClassSvmget_support_vector_ocr_class_svmGetSupportVectorOcrClassSvmGetSupportVectorOcrClassSvm (Operator)

Name

get_support_vector_ocr_class_svmT_get_support_vector_ocr_class_svmGetSupportVectorOcrClassSvmget_support_vector_ocr_class_svmGetSupportVectorOcrClassSvmGetSupportVectorOcrClassSvm — Return the index of a support vector from a trained OCR classifier that is based on support vector machines.

Signature

get_support_vector_ocr_class_svm( : : OCRHandle, IndexSupportVector : Index)

Herror T_get_support_vector_ocr_class_svm(const Htuple OCRHandle, const Htuple IndexSupportVector, Htuple* Index)

Herror get_support_vector_ocr_class_svm(const HTuple& OCRHandle, const HTuple& IndexSupportVector, double* Index)

double HOCRSvm::GetSupportVectorOcrClassSvm(const HTuple& IndexSupportVector) const

void GetSupportVectorOcrClassSvm(const HTuple& OCRHandle, const HTuple& IndexSupportVector, HTuple* Index)

double HOCRSvm::GetSupportVectorOcrClassSvm(const HTuple& IndexSupportVector) const

void HOperatorSetX.GetSupportVectorOcrClassSvm(
[in] VARIANT OCRHandle, [in] VARIANT IndexSupportVector, [out] VARIANT* Index)

double HOCRSvmX.GetSupportVectorOcrClassSvm([in] VARIANT IndexSupportVector)

static void HOperatorSet.GetSupportVectorOcrClassSvm(HTuple OCRHandle, HTuple indexSupportVector, out HTuple index)

double HOCRSvm.GetSupportVectorOcrClassSvm(HTuple indexSupportVector)

Description

The operator get_support_vector_ocr_class_svmget_support_vector_ocr_class_svmGetSupportVectorOcrClassSvmget_support_vector_ocr_class_svmGetSupportVectorOcrClassSvmGetSupportVectorOcrClassSvm maps support vectors of a trained SVM-based OCR classifier (given in OCRHandleOCRHandleOCRHandleOCRHandleOCRHandleOCRHandle) to the original training data set. The index of the SV is specified with IndexSupportVectorIndexSupportVectorIndexSupportVectorIndexSupportVectorIndexSupportVectorindexSupportVector. The index is counted from 0, i.e., IndexSupportVectorIndexSupportVectorIndexSupportVectorIndexSupportVectorIndexSupportVectorindexSupportVector must be a number between 0 and IndexSupportVectors - 1, where IndexSupportVectors can be determined with get_support_vector_num_ocr_class_svmget_support_vector_num_ocr_class_svmGetSupportVectorNumOcrClassSvmget_support_vector_num_ocr_class_svmGetSupportVectorNumOcrClassSvmGetSupportVectorNumOcrClassSvm. The index of this SV in the training data is returned in IndexIndexIndexIndexIndexindex. get_support_vector_ocr_class_svmget_support_vector_ocr_class_svmGetSupportVectorOcrClassSvmget_support_vector_ocr_class_svmGetSupportVectorOcrClassSvmGetSupportVectorOcrClassSvm can, for example, be used to visualize the support vectors. To do so, the train file that has been used to train the SVM must be read with read_ocr_trainfread_ocr_trainfReadOcrTrainfread_ocr_trainfReadOcrTrainfReadOcrTrainf. The value returned in IndexIndexIndexIndexIndexindex must be incremented by 1 and can then be used to select the support vectors with select_objselect_objSelectObjselect_objSelectObjSelectObj from the training characters. If more than one train file has been used in trainf_ocr_class_svmtrainf_ocr_class_svmTrainfOcrClassSvmtrainf_ocr_class_svmTrainfOcrClassSvmTrainfOcrClassSvm IndexIndexIndexIndexIndexindex behaves as if all train files had been merged into one train file with concat_ocr_trainfconcat_ocr_trainfConcatOcrTrainfconcat_ocr_trainfConcatOcrTrainfConcatOcrTrainf.

Parallelization

Parameters

OCRHandleOCRHandleOCRHandleOCRHandleOCRHandleOCRHandle (input_control)  ocr_svm HOCRSvm, HTupleHTupleHOCRSvm, HTupleHOCRSvmX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

OCR handle.

IndexSupportVectorIndexSupportVectorIndexSupportVectorIndexSupportVectorIndexSupportVectorindexSupportVector (input_control)  integer-array HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Number of stored support vectors.

IndexIndexIndexIndexIndexindex (output_control)  real HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Index of the support vector in the training set.

Result

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

Possible Predecessors

trainf_ocr_class_svmtrainf_ocr_class_svmTrainfOcrClassSvmtrainf_ocr_class_svmTrainfOcrClassSvmTrainfOcrClassSvm, get_support_vector_num_ocr_class_svmget_support_vector_num_ocr_class_svmGetSupportVectorNumOcrClassSvmget_support_vector_num_ocr_class_svmGetSupportVectorNumOcrClassSvmGetSupportVectorNumOcrClassSvm

See also

create_ocr_class_svmcreate_ocr_class_svmCreateOcrClassSvmcreate_ocr_class_svmCreateOcrClassSvmCreateOcrClassSvm, read_ocr_trainfread_ocr_trainfReadOcrTrainfread_ocr_trainfReadOcrTrainfReadOcrTrainf, append_ocr_trainfappend_ocr_trainfAppendOcrTrainfappend_ocr_trainfAppendOcrTrainfAppendOcrTrainf, concat_ocr_trainfconcat_ocr_trainfConcatOcrTrainfconcat_ocr_trainfConcatOcrTrainfConcatOcrTrainf

Module

OCR/OCV


ClassesClassesClassesClasses | | | | Operators