Classify one character.
The operator do_ocr_single assigns classes to the Character (characters). For gray value features gray values of the surrounding rectangles of the regions will be used. The gray values will be taken from the paramter Image. For each character the two classes with the highest confidencenses will be returned in Classes. The corresponding confidences will be returned in Confidences. The confidence value indicates the similarity between the input pattern and the assigned character.
|
Character (input_object) |
region -> object |
| Character to be recognized. | |
|
Image (input_object) |
image -> object : byte / uint2 |
| Gray values of the characters. | |
|
OcrHandle (input_control) |
ocr -> integer |
| ID of the OCR classifier. | |
|
Classes (output_control) |
string-array -> string |
| Classes (names) of the characters. | |
| Number of elements: 2 | |
|
Confidences (output_control) |
real-array -> real |
| Confidence values of the characters. | |
| Number of elements: 2 | |
If the input parameters are correct, the operator do_ocr_single returns the value 2 (H_MSG_TRUE). Otherwise an exception will be raised.
do_ocr_single is reentrant and processed without parallelization.
traind_ocr_class_box, trainf_ocr_class_box, read_ocr, connection, sort_region
OCR/OCV