write_ocr_trainf — Storing of training characters into a file.
write_ocr_trainf serves to prepare
the training with the operator
Hereby regions, representing characters, including their
gray values (region and pixel) and the corresponding class name
will be written into a file. An arbitrary number of regions within one
image is supported. For each character (region) in
the corresponding class name must be specified in
The gray values are passed via the parameter
If no file extension is specified in
TrainingFile the extension
'.trf' is appended to the file name. The version of the file format
used for writing data can be defined by the parameter
'ocr_trainf_version' of the operator
Characters to be trained.
→object (byte / uint2)
Gray values of the characters.
Class (name) of the characters.
Name of the training file.
Default value: 'train_ocr'
File extension: .
If the parameters are correct, the operator
write_ocr_trainf returns the value 2 (H_MSG_TRUE).
Otherwise an exception will be raised.