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.
|
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 | |
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.
do_ocr_multi is reentrant and automatically parallelized (on tuple level).
traind_ocr_class_box, trainf_ocr_class_box, read_ocr, connection, sort_region
Optical character recognition