serialize_ocrT_serialize_ocrSerializeOcrSerializeOcrserialize_ocr (Operator)

Name

serialize_ocrT_serialize_ocrSerializeOcrSerializeOcrserialize_ocr — Serialize an OCR classifier.

Warning

serialize_ocrserialize_ocrSerializeOcrSerializeOcrserialize_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( : : 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()

def serialize_ocr(ocr_handle: HHandle) -> HHandle

Description

serialize_ocrserialize_ocrSerializeOcrSerializeOcrserialize_ocr serializes an OCR classifier (see fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item for an introduction of the basic principle of serialization). The same data that is written in a file by write_ocrwrite_ocrWriteOcrWriteOcrwrite_ocr is converted to a serialized item. The OCR classifier is defined by the handle OcrHandleOcrHandleOcrHandleocrHandleocr_handle. The serialized OCR classifier is returned by the handle SerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle and can be deserialized by deserialize_ocrdeserialize_ocrDeserializeOcrDeserializeOcrdeserialize_ocr.

Execution Information

Parameters

OcrHandleOcrHandleOcrHandleocrHandleocr_handle (input_control)  ocr_box HOCRBox, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

ID of the OCR classifier.

SerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_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_ocrSerializeOcrSerializeOcrserialize_ocr returns the value 2 ( H_MSG_TRUE) . If necessary, an exception is raised.

Possible Predecessors

traind_ocr_class_boxtraind_ocr_class_boxTraindOcrClassBoxTraindOcrClassBoxtraind_ocr_class_box, trainf_ocr_class_boxtrainf_ocr_class_boxTrainfOcrClassBoxTrainfOcrClassBoxtrainf_ocr_class_box

Possible Successors

do_ocr_multido_ocr_multiDoOcrMultiDoOcrMultido_ocr_multi, do_ocr_singledo_ocr_singleDoOcrSingleDoOcrSingledo_ocr_single, fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item, send_serialized_itemsend_serialized_itemSendSerializedItemSendSerializedItemsend_serialized_item, deserialize_ocrdeserialize_ocrDeserializeOcrDeserializeOcrdeserialize_ocr

See also

deserialize_ocrdeserialize_ocrDeserializeOcrDeserializeOcrdeserialize_ocr, do_ocr_multido_ocr_multiDoOcrMultiDoOcrMultido_ocr_multi, traind_ocr_class_boxtraind_ocr_class_boxTraindOcrClassBoxTraindOcrClassBoxtraind_ocr_class_box, trainf_ocr_class_boxtrainf_ocr_class_boxTrainfOcrClassBoxTrainfOcrClassBoxtrainf_ocr_class_box

Module

OCR/OCV