deserialize_ocrT_deserialize_ocrDeserializeOcrDeserializeOcrdeserialize_ocr (Operator)

Name

deserialize_ocrT_deserialize_ocrDeserializeOcrDeserializeOcrdeserialize_ocr — Deserialize a serialized OCR classifier.

Warning

deserialize_ocrdeserialize_ocrDeserializeOcrDeserializeOcrdeserialize_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

deserialize_ocr( : : SerializedItemHandle : OcrHandle)

Herror T_deserialize_ocr(const Htuple SerializedItemHandle, Htuple* OcrHandle)

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

void HOCRBox::DeserializeOcr(const HSerializedItem& SerializedItemHandle)

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

void HOCRBox.DeserializeOcr(HSerializedItem serializedItemHandle)

def deserialize_ocr(serialized_item_handle: HHandle) -> HHandle

Description

deserialize_ocrdeserialize_ocrDeserializeOcrDeserializeOcrdeserialize_ocr deserializes an OCR classifier, that was serialized by serialize_ocrserialize_ocrSerializeOcrSerializeOcrserialize_ocr (see fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item for an introduction of the basic principle of serialization). The serialized OCR classifier is defined by the handle SerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle. The deserialized values are stored in an automatically created OCR classifier with the handle OcrHandleOcrHandleOcrHandleocrHandleocr_handle.

Execution Information

Parameters

SerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle (input_control)  serialized_item HSerializedItem, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the serialized item.

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

ID of the OCR classifier.

Result

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

Possible Predecessors

reset_obj_dbreset_obj_dbResetObjDbResetObjDbreset_obj_db, fread_serialized_itemfread_serialized_itemFreadSerializedItemFreadSerializedItemfread_serialized_item, receive_serialized_itemreceive_serialized_itemReceiveSerializedItemReceiveSerializedItemreceive_serialized_item, serialize_ocrserialize_ocrSerializeOcrSerializeOcrserialize_ocr

Possible Successors

do_ocr_multido_ocr_multiDoOcrMultiDoOcrMultido_ocr_multi, do_ocr_singledo_ocr_singleDoOcrSingleDoOcrSingledo_ocr_single, traind_ocr_class_boxtraind_ocr_class_boxTraindOcrClassBoxTraindOcrClassBoxtraind_ocr_class_box, trainf_ocr_class_boxtrainf_ocr_class_boxTrainfOcrClassBoxTrainfOcrClassBoxtrainf_ocr_class_box

See also

serialize_ocrserialize_ocrSerializeOcrSerializeOcrserialize_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