Operator Reference

deserialize_class_boxT_deserialize_class_boxDeserializeClassBoxDeserializeClassBoxdeserialize_class_box (Operator)

deserialize_class_boxT_deserialize_class_boxDeserializeClassBoxDeserializeClassBoxdeserialize_class_box — Deserialize a serialized classifier.

Warning

deserialize_class_boxdeserialize_class_boxDeserializeClassBoxDeserializeClassBoxdeserialize_class_box is obsolete and is only provided for reasons of backward compatibility. New applications should use the MLP, SVM, KNN or GMM operators instead. The operator will be removed with HALCON 25.11.

Signature

deserialize_class_box( : : ClassifHandle, SerializedItemHandle : )

Herror T_deserialize_class_box(const Htuple ClassifHandle, const Htuple SerializedItemHandle)

void DeserializeClassBox(const HTuple& ClassifHandle, const HTuple& SerializedItemHandle)

void HClassBox::DeserializeClassBox(const HSerializedItem& SerializedItemHandle) const

static void HOperatorSet.DeserializeClassBox(HTuple classifHandle, HTuple serializedItemHandle)

void HClassBox.DeserializeClassBox(HSerializedItem serializedItemHandle)

def deserialize_class_box(classif_handle: HHandle, serialized_item_handle: HHandle) -> None

Description

deserialize_class_boxdeserialize_class_boxDeserializeClassBoxDeserializeClassBoxdeserialize_class_box deserializes a classifier, that was serialized by serialize_class_boxserialize_class_boxSerializeClassBoxSerializeClassBoxserialize_class_box (see fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item for an introduction of the basic principle of serialization). The serialized classifier is defined by the handle SerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle. The values of the current classifier, defined by the handle ClassifHandleClassifHandleClassifHandleclassifHandleclassif_handle, are overwritten.

Attention

All values of the classifier are going to be overwritten.

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

ClassifHandleClassifHandleClassifHandleclassifHandleclassif_handle (input_control)  class_box HClassBox, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the classifier.

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

Handle of the serialized item.

Result

If the parameters are valid, the operator deserialize_class_boxdeserialize_class_boxDeserializeClassBoxDeserializeClassBoxdeserialize_class_box 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_class_boxserialize_class_boxSerializeClassBoxSerializeClassBoxserialize_class_box, create_class_boxcreate_class_boxCreateClassBoxCreateClassBoxcreate_class_box

Possible Successors

test_sampset_boxtest_sampset_boxTestSampsetBoxTestSampsetBoxtest_sampset_box, enquire_class_boxenquire_class_boxEnquireClassBoxEnquireClassBoxenquire_class_box, write_class_boxwrite_class_boxWriteClassBoxWriteClassBoxwrite_class_box, close_class_boxclose_class_boxCloseClassBoxCloseClassBoxclose_class_box, clear_sampsetclear_sampsetClearSampsetClearSampsetclear_sampset

See also

create_class_boxcreate_class_boxCreateClassBoxCreateClassBoxcreate_class_box, serialize_class_boxserialize_class_boxSerializeClassBoxSerializeClassBoxserialize_class_box

Module

Foundation