write_ocr_trainf ( Character, Image : : Class, FileName : )

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.


Parameters

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''


Result

If the parameters are correct, the operator write_ocr_trainf returns the value TRUE. Otherwise an exception will be raised.


Possible Predecessors

threshold__, connection, create_ocr_net, read_ocr_net


Possible Successors

trainf_ocr_net, info_ocr_net, write_ocr_net, do_ocr_b, do_ocr_m


Alternatives

traind_ocr_net



Copyright © 1996-1997 MVTec Software GmbH