ocr_get_featuresT_ocr_get_featuresOcrGetFeaturesOcrGetFeatures (Operator)
Name
ocr_get_featuresT_ocr_get_featuresOcrGetFeaturesOcrGetFeatures — Access the features which correspond to a character.
Warning
ocr_get_featuresocr_get_featuresOcrGetFeaturesOcrGetFeaturesOcrGetFeatures 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_featuresOcrGetFeaturesOcrGetFeaturesOcrGetFeatures calculates the features for
the given CharacterCharacterCharacterCharactercharacter. The type and number of features is
determined by the classifier OcrHandleOcrHandleOcrHandleOcrHandleocrHandle.
FeatureVectorFeatureVectorFeatureVectorFeatureVectorfeatureVector contains the same values which are used
inside operators like traind_ocr_class_boxtraind_ocr_class_boxTraindOcrClassBoxTraindOcrClassBoxTraindOcrClassBox or
trainf_ocr_class_boxtrainf_ocr_class_boxTrainfOcrClassBoxTrainfOcrClassBoxTrainfOcrClassBox.
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
CharacterCharacterCharacterCharactercharacter (input_object) singlechannelimage → objectHImageHImageHobject (byte / uint2)
Characters to be trained.
OcrHandleOcrHandleOcrHandleOcrHandleocrHandle (input_control) ocr_box → HOCRBox, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
ID of the desired OCR-classifier.
FeatureVectorFeatureVectorFeatureVectorFeatureVectorfeatureVector (output_control) real-array → HTupleHTupleHtuple (real) (double) (double) (double)
Feature vector.
Result
If the parameters are correct, the operator
ocr_get_featuresocr_get_featuresOcrGetFeaturesOcrGetFeaturesOcrGetFeatures returns the value 2 (H_MSG_TRUE).
Otherwise an exception will be raised.
Possible Predecessors
read_ocrread_ocrReadOcrReadOcrReadOcr,
reduce_domainreduce_domainReduceDomainReduceDomainReduceDomain,
thresholdthresholdThresholdThresholdThreshold,
connectionconnectionConnectionConnectionConnection
See also
trainf_ocr_class_boxtrainf_ocr_class_boxTrainfOcrClassBoxTrainfOcrClassBoxTrainfOcrClassBox,
traind_ocr_class_boxtraind_ocr_class_boxTraindOcrClassBoxTraindOcrClassBoxTraindOcrClassBox
Module
OCR/OCV