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.
|
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. | |
If the parameters are correct, the operator ::testd_ocr_class_box returns the value H_MSG_TRUE. Otherwise an exception will be raised.
::read_ocr, ::trainf_ocr_class_box, ::traind_ocr_class_box
Optical character recognition