Herror ::ocr_get_features (
    Hobject Character,
    const HTuple &OcrHandle,
    HTuple *FeatureVector
)
HTuple HImage::OcrGetFeatures (
    const HTuple &OcrHandle
) const

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 -> Hobject: HImage
Characters to be trained.

OcrHandle (input_control)
ocr -> HTuple.long
ID of the desired OCR-classifier.

FeatureVector (output_control)
real-array -> HTuple.double *
Feature vector.


Result

If the parameters are correct, the operator ::ocr_get_features returns the value H_MSG_TRUE. Otherwise an exception will be raised.


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

Optical character recognition



Copyright © 1996-2002 MVTec Software GmbH