serialize_ocrT_serialize_ocrSerializeOcrSerializeOcr (Operator)

Name

serialize_ocrT_serialize_ocrSerializeOcrSerializeOcr — Serialize an OCR classifier.

Warning

serialize_ocrserialize_ocrSerializeOcrSerializeOcrSerializeOcr 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( : : OcrHandle : SerializedItemHandle)

Herror T_serialize_ocr(const Htuple OcrHandle, Htuple* SerializedItemHandle)

void SerializeOcr(const HTuple& OcrHandle, HTuple* SerializedItemHandle)

HSerializedItem HOCRBox::SerializeOcr() const

static void HOperatorSet.SerializeOcr(HTuple ocrHandle, out HTuple serializedItemHandle)

HSerializedItem HOCRBox.SerializeOcr()

Description

serialize_ocrserialize_ocrSerializeOcrSerializeOcrSerializeOcr serializes an OCR classifier (see fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemFwriteSerializedItem for an introduction of the basic principle of serialization). The same data that is written in a file by write_ocrwrite_ocrWriteOcrWriteOcrWriteOcr is converted to a serialized item. The OCR classifier is defined by the handle OcrHandleOcrHandleOcrHandleOcrHandleocrHandle. The serialized OCR classifier is returned by the handle SerializedItemHandleSerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandle and can be deserialized by deserialize_ocrdeserialize_ocrDeserializeOcrDeserializeOcrDeserializeOcr.

Execution Information

Parameters

OcrHandleOcrHandleOcrHandleOcrHandleocrHandle (input_control)  ocr_box HOCRBox, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

ID of the OCR classifier.

SerializedItemHandleSerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandle (output_control)  serialized_item HSerializedItem, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the serialized item.

Result

If the parameters are valid, the operator serialize_ocrserialize_ocrSerializeOcrSerializeOcrSerializeOcr returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Possible Predecessors

traind_ocr_class_boxtraind_ocr_class_boxTraindOcrClassBoxTraindOcrClassBoxTraindOcrClassBox, trainf_ocr_class_boxtrainf_ocr_class_boxTrainfOcrClassBoxTrainfOcrClassBoxTrainfOcrClassBox

Possible Successors

do_ocr_multido_ocr_multiDoOcrMultiDoOcrMultiDoOcrMulti, do_ocr_singledo_ocr_singleDoOcrSingleDoOcrSingleDoOcrSingle, fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemFwriteSerializedItem, send_serialized_itemsend_serialized_itemSendSerializedItemSendSerializedItemSendSerializedItem, deserialize_ocrdeserialize_ocrDeserializeOcrDeserializeOcrDeserializeOcr

See also

deserialize_ocrdeserialize_ocrDeserializeOcrDeserializeOcrDeserializeOcr, do_ocr_multido_ocr_multiDoOcrMultiDoOcrMultiDoOcrMulti, traind_ocr_class_boxtraind_ocr_class_boxTraindOcrClassBoxTraindOcrClassBoxTraindOcrClassBox, trainf_ocr_class_boxtrainf_ocr_class_boxTrainfOcrClassBoxTrainfOcrClassBoxTrainfOcrClassBox

Module

OCR/OCV