deserialize_ocr_class_knnT_deserialize_ocr_class_knnDeserializeOcrClassKnnDeserializeOcrClassKnndeserialize_ocr_class_knn (Operator)

Name

deserialize_ocr_class_knnT_deserialize_ocr_class_knnDeserializeOcrClassKnnDeserializeOcrClassKnndeserialize_ocr_class_knn — Deserialize a serialized k-NN-based OCR classifier.

Signature

deserialize_ocr_class_knn( : : SerializedItemHandle : OCRHandle)

Herror T_deserialize_ocr_class_knn(const Htuple SerializedItemHandle, Htuple* OCRHandle)

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

void HOCRKnn::DeserializeOcrClassKnn(const HSerializedItem& SerializedItemHandle)

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

void HOCRKnn.DeserializeOcrClassKnn(HSerializedItem serializedItemHandle)

def deserialize_ocr_class_knn(serialized_item_handle: HHandle) -> HHandle

Description

deserialize_ocr_class_knndeserialize_ocr_class_knnDeserializeOcrClassKnnDeserializeOcrClassKnnDeserializeOcrClassKnndeserialize_ocr_class_knn deserializes a k-NN-based OCR classifier, that was serialized by serialize_ocr_class_knnserialize_ocr_class_knnSerializeOcrClassKnnSerializeOcrClassKnnSerializeOcrClassKnnserialize_ocr_class_knn (see fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item for an introduction of the basic principle of serialization). The serialized OCR classifier is defined by the handle SerializedItemHandleSerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle. The deserialized values are stored in an automatically created OCR classifier with the handle OCRHandleOCRHandleOCRHandleOCRHandleOCRHandleocrhandle.

Execution Information

Parameters

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

Handle of the serialized item.

OCRHandleOCRHandleOCRHandleOCRHandleOCRHandleocrhandle (output_control)  ocr_knn HOCRKnn, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the OCR classifier.

Result

If the parameters are valid, the operator deserialize_ocr_class_knndeserialize_ocr_class_knnDeserializeOcrClassKnnDeserializeOcrClassKnnDeserializeOcrClassKnndeserialize_ocr_class_knn returns the value TRUE. If necessary, an exception is raised.

Possible Predecessors

fread_serialized_itemfread_serialized_itemFreadSerializedItemFreadSerializedItemFreadSerializedItemfread_serialized_item, receive_serialized_itemreceive_serialized_itemReceiveSerializedItemReceiveSerializedItemReceiveSerializedItemreceive_serialized_item, serialize_ocr_class_knnserialize_ocr_class_knnSerializeOcrClassKnnSerializeOcrClassKnnSerializeOcrClassKnnserialize_ocr_class_knn

Possible Successors

classify_class_knnclassify_class_knnClassifyClassKnnClassifyClassKnnClassifyClassKnnclassify_class_knn

See also

create_ocr_class_knncreate_ocr_class_knnCreateOcrClassKnnCreateOcrClassKnnCreateOcrClassKnncreate_ocr_class_knn, serialize_ocr_class_knnserialize_ocr_class_knnSerializeOcrClassKnnSerializeOcrClassKnnSerializeOcrClassKnnserialize_ocr_class_knn

References

Marius Muja, David G. Lowe: “Fast Approximate Nearest Neighbors with Automatic Algorithm Configuration”; International Conference on Computer Vision Theory and Applications (VISAPP 09); 2009.

Module

OCR/OCV