Operator Reference

deserialize_dl_modelT_deserialize_dl_modelDeserializeDlModelDeserializeDlModeldeserialize_dl_model (Operator)

deserialize_dl_modelT_deserialize_dl_modelDeserializeDlModelDeserializeDlModeldeserialize_dl_model — Deserialize a deep learning model.

Signature

deserialize_dl_model( : : SerializedItemHandle : DLModelHandle)

Herror T_deserialize_dl_model(const Htuple SerializedItemHandle, Htuple* DLModelHandle)

void DeserializeDlModel(const HTuple& SerializedItemHandle, HTuple* DLModelHandle)

void HDlModel::DeserializeDlModel(const HSerializedItem& SerializedItemHandle)

static void HOperatorSet.DeserializeDlModel(HTuple serializedItemHandle, out HTuple DLModelHandle)

void HDlModel.DeserializeDlModel(HSerializedItem serializedItemHandle)

def deserialize_dl_model(serialized_item_handle: HHandle) -> HHandle

Description

deserialize_dl_modeldeserialize_dl_modelDeserializeDlModelDeserializeDlModeldeserialize_dl_model deserializes the deep learning model defined by the handle SerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle and previously serialized by serialize_dl_modelserialize_dl_modelSerializeDlModelSerializeDlModelserialize_dl_model.

The operator acts the same as read_dl_modelread_dl_modelReadDlModelReadDlModelread_dl_model except that the input is a serialized item instead of a file. For a detailed description please refer to the documentation of read_dl_modelread_dl_modelReadDlModelReadDlModelread_dl_model.

For further explanations to deep learning models in HALCON, see the chapter Deep Learning / Model.

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

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

Handle of the serialized item.

DLModelHandleDLModelHandleDLModelHandleDLModelHandledlmodel_handle (output_control)  dl_model HDlModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the deep learning model.

Result

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

Possible Predecessors

fread_serialized_itemfread_serialized_itemFreadSerializedItemFreadSerializedItemfread_serialized_item, receive_serialized_itemreceive_serialized_itemReceiveSerializedItemReceiveSerializedItemreceive_serialized_item, serialize_dl_modelserialize_dl_modelSerializeDlModelSerializeDlModelserialize_dl_model

Possible Successors

apply_dl_modelapply_dl_modelApplyDlModelApplyDlModelapply_dl_model, train_dl_model_batchtrain_dl_model_batchTrainDlModelBatchTrainDlModelBatchtrain_dl_model_batch, train_dl_model_anomaly_datasettrain_dl_model_anomaly_datasetTrainDlModelAnomalyDatasetTrainDlModelAnomalyDatasettrain_dl_model_anomaly_dataset, set_dl_model_paramset_dl_model_paramSetDlModelParamSetDlModelParamset_dl_model_param, get_dl_model_paramget_dl_model_paramGetDlModelParamGetDlModelParamget_dl_model_param

See also

serialize_dl_modelserialize_dl_modelSerializeDlModelSerializeDlModelserialize_dl_model

Module

Foundation. This operator uses dynamic licensing (see the 'Installation Guide'). Which of the following modules is required depends on the specific usage of the operator:
3D Metrology, OCR/OCV, Matching, Deep Learning Enhanced, Deep Learning Professional