serialize_ocr_class_knnT_serialize_ocr_class_knnSerializeOcrClassKnnSerializeOcrClassKnnserialize_ocr_class_knn (Operator)

Name

serialize_ocr_class_knnT_serialize_ocr_class_knnSerializeOcrClassKnnSerializeOcrClassKnnserialize_ocr_class_knn — Serialize a k-NN-based OCR classifier.

Signature

serialize_ocr_class_knn( : : OCRHandle : SerializedItemHandle)

Herror T_serialize_ocr_class_knn(const Htuple OCRHandle, Htuple* SerializedItemHandle)

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

HSerializedItem HOCRKnn::SerializeOcrClassKnn() const

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

HSerializedItem HOCRKnn.SerializeOcrClassKnn()

def serialize_ocr_class_knn(ocrhandle: HHandle) -> HHandle

Description

serialize_ocr_class_knnserialize_ocr_class_knnSerializeOcrClassKnnSerializeOcrClassKnnserialize_ocr_class_knn serializes a k-NN-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_knnwrite_ocr_class_knnWriteOcrClassKnnWriteOcrClassKnnwrite_ocr_class_knn 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_knndeserialize_ocr_class_knnDeserializeOcrClassKnnDeserializeOcrClassKnndeserialize_ocr_class_knn.

Execution Information

Parameters

OCRHandleOCRHandleOCRHandleOCRHandleocrhandle (input_control)  ocr_knn HOCRKnn, 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_knnserialize_ocr_class_knnSerializeOcrClassKnnSerializeOcrClassKnnserialize_ocr_class_knn returns the value 2 ( H_MSG_TRUE) . If necessary, an exception is raised.

Possible Predecessors

trainf_ocr_class_knntrainf_ocr_class_knnTrainfOcrClassKnnTrainfOcrClassKnntrainf_ocr_class_knn, read_ocr_class_knnread_ocr_class_knnReadOcrClassKnnReadOcrClassKnnread_ocr_class_knn

Possible Successors

fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item, send_serialized_itemsend_serialized_itemSendSerializedItemSendSerializedItemsend_serialized_item, deserialize_ocr_class_knndeserialize_ocr_class_knnDeserializeOcrClassKnnDeserializeOcrClassKnndeserialize_ocr_class_knn

See also

create_class_knncreate_class_knnCreateClassKnnCreateClassKnncreate_class_knn, read_ocr_class_knnread_ocr_class_knnReadOcrClassKnnReadOcrClassKnnread_ocr_class_knn, deserialize_ocr_class_knndeserialize_ocr_class_knnDeserializeOcrClassKnnDeserializeOcrClassKnndeserialize_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