Operator Reference

serialize_ocr_class_svmT_serialize_ocr_class_svmSerializeOcrClassSvmSerializeOcrClassSvmserialize_ocr_class_svm (Operator)

serialize_ocr_class_svmT_serialize_ocr_class_svmSerializeOcrClassSvmSerializeOcrClassSvmserialize_ocr_class_svm — Serialize a SVM-based OCR classifier

Signature

serialize_ocr_class_svm( : : OCRHandle : SerializedItemHandle)

Herror T_serialize_ocr_class_svm(const Htuple OCRHandle, Htuple* SerializedItemHandle)

void SerializeOcrClassSvm(const HTuple& OCRHandle, HTuple* SerializedItemHandle)

HSerializedItem HOCRSvm::SerializeOcrClassSvm() const

static void HOperatorSet.SerializeOcrClassSvm(HTuple OCRHandle, out HTuple serializedItemHandle)

HSerializedItem HOCRSvm.SerializeOcrClassSvm()

def serialize_ocr_class_svm(ocrhandle: HHandle) -> HHandle

Description

serialize_ocr_class_svmserialize_ocr_class_svmSerializeOcrClassSvmSerializeOcrClassSvmserialize_ocr_class_svm serializes a SVM-based 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_ocr_class_svmwrite_ocr_class_svmWriteOcrClassSvmWriteOcrClassSvmwrite_ocr_class_svm is converted to a serialized item. The OCR classifier is defined by the handle OCRHandleOCRHandleOCRHandleOCRHandleocrhandle. The serialized OCR classifier is returned by the handle SerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle and can be deserialized by deserialize_ocr_class_svmdeserialize_ocr_class_svmDeserializeOcrClassSvmDeserializeOcrClassSvmdeserialize_ocr_class_svm.

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

OCRHandleOCRHandleOCRHandleOCRHandleocrhandle (input_control)  ocr_svm HOCRSvm, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

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

Possible Predecessors

trainf_ocr_class_svmtrainf_ocr_class_svmTrainfOcrClassSvmTrainfOcrClassSvmtrainf_ocr_class_svm

Possible Successors

clear_ocr_class_svmclear_ocr_class_svmClearOcrClassSvmClearOcrClassSvmclear_ocr_class_svm, fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item, send_serialized_itemsend_serialized_itemSendSerializedItemSendSerializedItemsend_serialized_item, deserialize_ocr_class_svmdeserialize_ocr_class_svmDeserializeOcrClassSvmDeserializeOcrClassSvmdeserialize_ocr_class_svm

See also

create_ocr_class_svmcreate_ocr_class_svmCreateOcrClassSvmCreateOcrClassSvmcreate_ocr_class_svm, read_ocr_class_svmread_ocr_class_svmReadOcrClassSvmReadOcrClassSvmread_ocr_class_svm, write_class_svmwrite_class_svmWriteClassSvmWriteClassSvmwrite_class_svm, read_class_svmread_class_svmReadClassSvmReadClassSvmread_class_svm, deserialize_ocr_class_svmdeserialize_ocr_class_svmDeserializeOcrClassSvmDeserializeOcrClassSvmdeserialize_ocr_class_svm

Module

OCR/OCV