serialize_ocr🔗
Short description🔗
serialize_ocr — Serialize an OCR classifier.
Warning🔗
serialize_ocr is obsolete and is only provided for
reasons of backward compatibility. New applications should use the
MLP, SVM or CNN based operators instead.
Signature🔗
serialize_ocr( ocr_box OcrHandle, out serialized_item SerializedItemHandle )
Description🔗
serialize_ocr serializes an OCR classifier (see
fwrite_serialized_item for an introduction of the basic
principle of serialization). The same data that is written in a
file by write_ocr is converted to a serialized item.
The OCR classifier is defined by the handle OcrHandle. The
serialized OCR classifier is returned by the handle
SerializedItemHandle and can be deserialized by
deserialize_ocr.
Execution information🔗
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parameters🔗
OcrHandle (input_control) ocr_box → (handle)
ID of the OCR classifier.
SerializedItemHandle (output_control) serialized_item → (handle)
Handle of the serialized item.
Result🔗
If the parameters are valid, the operator
serialize_ocr returns the value 2 (H_MSG_TRUE). If
necessary, an exception is raised.
Combinations with other operators🔗
Combinations
Possible predecessors
traind_ocr_class_box, trainf_ocr_class_box
Possible successors
do_ocr_multi, do_ocr_single, fwrite_serialized_item, send_serialized_item, deserialize_ocr
See also
deserialize_ocr, do_ocr_multi, traind_ocr_class_box, trainf_ocr_class_box
Module🔗
OCR/OCV