Herror ::testd_ocr_class_box (
    Hobject Character,
    Hobject Image,
    const HTuple &OcrHandle,
    const HTuple &Class,
    double *Confidence
)
Herror ::testd_ocr_class_box (
    Hobject Character,
    Hobject Image,
    const HTuple &OcrHandle,
    const HTuple &Class,
    HTuple *Confidence
)
double HRegion::TestdOcrClassBox (
    const HImage &Image,
    const HTuple &OcrHandle,
    const HTuple &Class
) const
HTuple HRegionArray::TestdOcrClassBox (
    const HImage &Image,
    const HTuple &OcrHandle,
    const HTuple &Class
) const

Training of an OCR classifier by the input of regions.

The operator ::testd_ocr_class_box tests the confidence with which a character belongs to a given class. Any number of regions of an image can be passed. For each character (region) in Character the corresponding name (class) Class must be specified. The grayvalues are passed in Image. When the operator has finished the parameter Confidence provides information about how sure a character belongs to the (arbitrary chosen) class.


Parameters

Character (input_object)
region(-array) -> Hobject: HRegion(Array)
Characters to be trained.

Image (input_object)
image -> Hobject: HImage
Grayvalues for the characters.

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

Class (input_control)
string(-array) -> HTuple.char *
Class (name) of the characters.
Default value: ''a''

Confidence (output_control)
real(-array) -> (HTuple.) double *
Confidence for the character to belong to the class.


Result

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


Possible Predecessors

::read_ocr, ::trainf_ocr_class_box, ::traind_ocr_class_box


Module

Optical character recognition



Copyright © 1996-2002 MVTec Software GmbH