ocr_get_features ( Character : : OcrHandle : FeatureVector )

Access the features which correspond to a character.

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.


Parameters

Character (input_object)
image -> object : byte / uint2
Characters to be trained.

OcrHandle (input_control)
ocr -> integer
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.


Parallelization Information

ocr_get_features is reentrant and processed without parallelization.


Possible Predecessors

create_ocr_class_box, read_ocr, reduce_domain, threshold, connection


Possible Successors

learn_class_box


See also

trainf_ocr_class_box, traind_ocr_class_box


Module

OCR/OCV



Copyright © 1996-2008 MVTec Software GmbH