reduce_ocr_class_svmπ
Short descriptionπ
reduce_ocr_class_svm β Approximate a trained SVM-based OCR classifier by a reduced SVM.
Signatureπ
reduce_ocr_class_svm( ocr_svm OCRHandle, string Method, integer MinRemainingSV, real MaxError, out ocr_svm OCRHandleReduced )
Descriptionπ
reduce_ocr_class_svm reduces the classification time of an
SVM based OCR classifier OCRHandle by returning a reduced
copy of it in OCRHandleReduced. The parameters
Method, MinRemainingSV and MaxError have
the same meaning as in reduce_class_svm and are described
there. Please note that classification time can also be
significantly reduced with a preprocessing step in
create_ocr_class_svm, which possibly introduces less
errors.
Execution informationπ
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π
OCRHandle (input_control) ocr_svm β (handle)
Original handle of SVM-based OCR-classifier.
Method (input_control) string β (string)
Type of postprocessing to reduce number of SVs.
Default: 'bottom_up'
List of values: 'bottom_up'
MinRemainingSV (input_control) integer β (integer)
Minimum number of remaining SVs.
Default: 2
Suggested values: 2, 3, 4, 5, 7, 10, 15, 20, 30, 50
Restriction: MinRemainingSV >= 2
MaxError (input_control) real β (real)
Maximum allowed error of reduction.
Default: 0.001
Suggested values: 0.0001, 0.0002, 0.0005, 0.001, 0.002, 0.005, 0.01, 0.02, 0.05
Restriction: MaxError > 0.0
OCRHandleReduced (output_control) ocr_svm β (handle)
SVMHandle of reduced OCR classifier.
Resultπ
If the parameters are valid the operator
reduce_ocr_class_svm returns the value 2 (H_MSG_TRUE). If necessary,
an exception is raised.
Combinations with other operatorsπ
Combinations
Possible predecessors
trainf_ocr_class_svm, get_support_vector_num_ocr_class_svm
Possible successors
do_ocr_single_class_svm, do_ocr_multi_class_svm, get_support_vector_ocr_class_svm, get_support_vector_num_ocr_class_svm
See also
Referencesπ
Bernhard SchΓΆlkopf, Alexander J.Smola: βLearning with Kernelsβ; The MIT Press, London; 1999.
Moduleπ
OCR/OCV