Operator Reference
get_features_ocr_class_svm (Operator)
get_features_ocr_class_svm — Compute the features of a character.
Signature
Description
get_features_ocr_class_svm computes the features of the
character given by Character with the OCR classifier
OCRHandle and returns them in Features. In
contrast to do_ocr_single_class_svm and
do_ocr_multi_class_svm, the character is passed as a single
image object. Hence, before calling
get_features_ocr_class_svm, reduce_domain must
typically be called. The parameter Transform determines
whether the feature transformation specified with
Preprocessing in create_ocr_class_svm for the
classifier should be applied (Transform =
'true') or whether the untransformed features should be
returned (Transform = 'false').
get_features_ocr_class_svm can be used to inspect the
features that are used for the classification.
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
Character (input_object) singlechannelimage → object (byte / uint2)
Input character.
OCRHandle (input_control) ocr_svm → (handle)
Handle of the OCR classifier.
Transform (input_control) string → (string)
Should the feature vector be transformed with the preprocessing?
Default: 'true'
List of values: 'false', 'true'
Features (output_control) real-array → (real)
Feature vector of the character.
Result
If the parameters are valid the operator
get_features_ocr_class_svm returns the value 2 (
H_MSG_TRUE)
. If
necessary, an exception is raised.
Possible Predecessors
See also
Module
OCR/OCV