serialize_ocrT_serialize_ocrSerializeOcrSerializeOcrserialize_ocr (Operator)
Name
serialize_ocrT_serialize_ocrSerializeOcrSerializeOcrserialize_ocr
— Serialize an OCR classifier.
Warning
serialize_ocrserialize_ocrSerializeOcrSerializeOcrSerializeOcrserialize_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
Description
serialize_ocrserialize_ocrSerializeOcrSerializeOcrSerializeOcrserialize_ocr
serializes an OCR classifier (see
fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item
for an introduction of the basic
principle of serialization). The same data that is written in a
file by write_ocrwrite_ocrWriteOcrWriteOcrWriteOcrwrite_ocr
is converted to a serialized item.
The OCR classifier is defined by the handle OcrHandleOcrHandleOcrHandleOcrHandleocrHandleocr_handle
. The
serialized OCR classifier is returned by the handle
SerializedItemHandleSerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle
and can be deserialized by
deserialize_ocrdeserialize_ocrDeserializeOcrDeserializeOcrDeserializeOcrdeserialize_ocr
.
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
OcrHandleOcrHandleOcrHandleOcrHandleocrHandleocr_handle
(input_control) ocr_box →
HOCRBox, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
ID of the OCR classifier.
SerializedItemHandleSerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle
(output_control) serialized_item →
HSerializedItem, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the serialized item.
Result
If the parameters are valid, the operator
serialize_ocrserialize_ocrSerializeOcrSerializeOcrSerializeOcrserialize_ocr
returns the value 2 (
H_MSG_TRUE)
. If
necessary, an exception is raised.
Possible Predecessors
traind_ocr_class_boxtraind_ocr_class_boxTraindOcrClassBoxTraindOcrClassBoxTraindOcrClassBoxtraind_ocr_class_box
,
trainf_ocr_class_boxtrainf_ocr_class_boxTrainfOcrClassBoxTrainfOcrClassBoxTrainfOcrClassBoxtrainf_ocr_class_box
Possible Successors
do_ocr_multido_ocr_multiDoOcrMultiDoOcrMultiDoOcrMultido_ocr_multi
,
do_ocr_singledo_ocr_singleDoOcrSingleDoOcrSingleDoOcrSingledo_ocr_single
,
fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item
,
send_serialized_itemsend_serialized_itemSendSerializedItemSendSerializedItemSendSerializedItemsend_serialized_item
,
deserialize_ocrdeserialize_ocrDeserializeOcrDeserializeOcrDeserializeOcrdeserialize_ocr
See also
deserialize_ocrdeserialize_ocrDeserializeOcrDeserializeOcrDeserializeOcrdeserialize_ocr
,
do_ocr_multido_ocr_multiDoOcrMultiDoOcrMultiDoOcrMultido_ocr_multi
,
traind_ocr_class_boxtraind_ocr_class_boxTraindOcrClassBoxTraindOcrClassBoxTraindOcrClassBoxtraind_ocr_class_box
,
trainf_ocr_class_boxtrainf_ocr_class_boxTrainfOcrClassBoxTrainfOcrClassBoxTrainfOcrClassBoxtrainf_ocr_class_box
Module
OCR/OCV