Storing of trained characters in the file.
The operator write_ocr_trainf serves to prepare the training with the operator trainf_ocr_net. Hereby regions, representing characters, including their grayvalues (region and pixel) and the corresponding classname will be written into a file . Any number of regions of an image may be entered. For each character (region) in Character the corresponding class name in Class must be transmitted. The grayvalues are transmitted with the parameter Image. The file name can be chosen at will. The extension will be added automatically.
Character (input_object) |
region(-array) -> object |
Characters to be trained. |
Image (input_object) |
image -> object |
Grayvalues for the characters. |
Class (input_control) |
string(-array) -> string |
Class (name) of the characters. |
FileName (input_control) |
filename -> string |
Name of the training file. | |
Default value: ''train_ocr'' |
If the parameters are correct, the operator write_ocr_trainf returns the value TRUE. Otherwise an exception will be raised.
threshold__, connection, create_ocr_net, read_ocr_net
trainf_ocr_net, info_ocr_net, write_ocr_net, do_ocr_b, do_ocr_m