get_support_vector_num_ocr_class_svmT_get_support_vector_num_ocr_class_svmGetSupportVectorNumOcrClassSvmGetSupportVectorNumOcrClassSvmget_support_vector_num_ocr_class_svm (Operator)
Name
get_support_vector_num_ocr_class_svmT_get_support_vector_num_ocr_class_svmGetSupportVectorNumOcrClassSvmGetSupportVectorNumOcrClassSvmget_support_vector_num_ocr_class_svm
— Return the number of support vectors of an OCR classifier.
Signature
def get_support_vector_num_ocr_class_svm(ocrhandle: HHandle) -> Tuple[int, Sequence[int]]
Description
get_support_vector_num_ocr_class_svmget_support_vector_num_ocr_class_svmGetSupportVectorNumOcrClassSvmGetSupportVectorNumOcrClassSvmGetSupportVectorNumOcrClassSvmget_support_vector_num_ocr_class_svm
returns in
NumSupportVectorsNumSupportVectorsNumSupportVectorsNumSupportVectorsnumSupportVectorsnum_support_vectors
the number of support vectors that are
stored in the support vector machine (SVM) given by
OCRHandleOCRHandleOCRHandleOCRHandleOCRHandleocrhandle
. get_support_vector_num_ocr_class_svmget_support_vector_num_ocr_class_svmGetSupportVectorNumOcrClassSvmGetSupportVectorNumOcrClassSvmGetSupportVectorNumOcrClassSvmget_support_vector_num_ocr_class_svm
should be called before the labels of individual support vectors are
read out with get_support_vector_ocr_class_svmget_support_vector_ocr_class_svmGetSupportVectorOcrClassSvmGetSupportVectorOcrClassSvmGetSupportVectorOcrClassSvmget_support_vector_ocr_class_svm
, e.g., for
visualizing which of the training data become a SV (see
get_support_vector_ocr_class_svmget_support_vector_ocr_class_svmGetSupportVectorOcrClassSvmGetSupportVectorOcrClassSvmGetSupportVectorOcrClassSvmget_support_vector_ocr_class_svm
). The number of SVs in
each classifier is listed in NumSVPerSVMNumSVPerSVMNumSVPerSVMNumSVPerSVMnumSVPerSVMnum_svper_svm
. The reason that
its sum differs from the number obtained in
NumSupportVectorsNumSupportVectorsNumSupportVectorsNumSupportVectorsnumSupportVectorsnum_support_vectors
is that SV evaluations are reused
throughout different binary sub-SVMs.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
OCRHandleOCRHandleOCRHandleOCRHandleOCRHandleocrhandle
(input_control) ocr_svm →
HOCRSvm, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
OCR handle.
NumSupportVectorsNumSupportVectorsNumSupportVectorsNumSupportVectorsnumSupportVectorsnum_support_vectors
(output_control) integer →
HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Total number of support vectors.
NumSVPerSVMNumSVPerSVMNumSVPerSVMNumSVPerSVMnumSVPerSVMnum_svper_svm
(output_control) integer-array →
HTupleSequence[int]HTupleHtuple (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_svmGetSampleNumClassSvmGetSampleNumClassSvmGetSampleNumClassSvmget_sample_num_class_svm
returns the value TRUE. If
necessary, an exception is raised.
Possible Predecessors
trainf_ocr_class_svmtrainf_ocr_class_svmTrainfOcrClassSvmTrainfOcrClassSvmTrainfOcrClassSvmtrainf_ocr_class_svm
Possible Successors
get_support_vector_ocr_class_svmget_support_vector_ocr_class_svmGetSupportVectorOcrClassSvmGetSupportVectorOcrClassSvmGetSupportVectorOcrClassSvmget_support_vector_ocr_class_svm
See also
create_ocr_class_svmcreate_ocr_class_svmCreateOcrClassSvmCreateOcrClassSvmCreateOcrClassSvmcreate_ocr_class_svm
Module
OCR/OCV