Operator Reference
ocr_get_features (Operator)
ocr_get_features
— Access the features which correspond to a character.
Warning
ocr_get_features
is obsolete and is only provided for
reasons of backward compatibility. New applications should use the
MLP, SVM or CNN based operators instead.
Signature
ocr_get_features(Character : : OcrHandle : FeatureVector)
Description
The operator ocr_get_features
calculates the features for
the given Character
. The type and number of features is
determined by the classifier OcrHandle
.
FeatureVector
contains the same values which are used
inside operators like traind_ocr_class_box
or
trainf_ocr_class_box
.
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)
Characters to be trained.
OcrHandle
(input_control) ocr_box →
(handle)
ID of the desired OCR-classifier.
FeatureVector
(output_control) real-array →
(real)
Feature vector.
Result
If the parameters are correct, the operator
ocr_get_features
returns the value 2 (
H_MSG_TRUE)
.
Otherwise an exception will be raised.
Possible Predecessors
read_ocr
,
reduce_domain
,
threshold
,
connection
See also
trainf_ocr_class_box
,
traind_ocr_class_box
Module
OCR/OCV