ocr_get_featuresT_ocr_get_featuresOcrGetFeaturesOcrGetFeaturesocr_get_features (Operator)
Name
ocr_get_featuresT_ocr_get_featuresOcrGetFeaturesOcrGetFeaturesocr_get_features
— Access the features which correspond to a character.
Warning
ocr_get_featuresocr_get_featuresOcrGetFeaturesOcrGetFeaturesOcrGetFeaturesocr_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
Description
The operator ocr_get_featuresocr_get_featuresOcrGetFeaturesOcrGetFeaturesOcrGetFeaturesocr_get_features
calculates the features for
the given CharacterCharacterCharacterCharactercharactercharacter
. The type and number of features is
determined by the classifier OcrHandleOcrHandleOcrHandleOcrHandleocrHandleocr_handle
.
FeatureVectorFeatureVectorFeatureVectorFeatureVectorfeatureVectorfeature_vector
contains the same values which are used
inside operators like traind_ocr_class_boxtraind_ocr_class_boxTraindOcrClassBoxTraindOcrClassBoxTraindOcrClassBoxtraind_ocr_class_box
or
trainf_ocr_class_boxtrainf_ocr_class_boxTrainfOcrClassBoxTrainfOcrClassBoxTrainfOcrClassBoxtrainf_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
CharacterCharacterCharacterCharactercharactercharacter
(input_object) singlechannelimage →
objectHImageHObjectHImageHobject (byte / uint2)
Characters to be trained.
OcrHandleOcrHandleOcrHandleOcrHandleocrHandleocr_handle
(input_control) ocr_box →
HOCRBox, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
ID of the desired OCR-classifier.
FeatureVectorFeatureVectorFeatureVectorFeatureVectorfeatureVectorfeature_vector
(output_control) real-array →
HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Feature vector.
Result
If the parameters are correct, the operator
ocr_get_featuresocr_get_featuresOcrGetFeaturesOcrGetFeaturesOcrGetFeaturesocr_get_features
returns the value TRUE.
Otherwise an exception will be raised.
Possible Predecessors
read_ocrread_ocrReadOcrReadOcrReadOcrread_ocr
,
reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain
,
thresholdthresholdThresholdThresholdThresholdthreshold
,
connectionconnectionConnectionConnectionConnectionconnection
See also
trainf_ocr_class_boxtrainf_ocr_class_boxTrainfOcrClassBoxTrainfOcrClassBoxTrainfOcrClassBoxtrainf_ocr_class_box
,
traind_ocr_class_boxtraind_ocr_class_boxTraindOcrClassBoxTraindOcrClassBoxTraindOcrClassBoxtraind_ocr_class_box
Module
OCR/OCV