do_ocr_multi ( Character, Image : : OcrHandle : Class, Confidence )

Classify characters.

The operator do_ocr_multi assigns a class to every Character (character). For gray value features the gray values from the surrounding rectangles of the regions are used. The gray values will be taken from the parameter Image. For each character the corresponding class will be returned in Class and a confidence value will be returned in Confidence. The confidence value indicates the similarity between the input pattern and the assigned character.


Parameters

Character (input_object)
region(-array) -> object
Characters to be recognized.

Image (input_object)
image -> object : byte
Gray values for the characters.

OcrHandle (input_control)
ocr -> integer
ID of the OCR classifier.

Class (output_control)
string(-array) -> string
Class (name) of the characters.
Number of elements: Class == Character

Confidence (output_control)
real(-array) -> real
Confidence values of the characters.
Number of elements: Confidence == Character


Result

If the input parameters are set correctly, the operator do_ocr_multi returns the value 2 (H_MSG_TRUE). Otherwise an exception will be raised.


Parallelization Information

do_ocr_multi is reentrant and automatically parallelized (on tuple level).


Possible Predecessors

traind_ocr_class_box, trainf_ocr_class_box, read_ocr, connection, sort_region


Alternatives

do_ocr_single


See also

write_ocr


Module

Optical character recognition



Copyright © 1996-2005 MVTec Software GmbH