read_ocr_class_knnT_read_ocr_class_knnReadOcrClassKnnReadOcrClassKnnread_ocr_class_knn (Operator)

Name

read_ocr_class_knnT_read_ocr_class_knnReadOcrClassKnnReadOcrClassKnnread_ocr_class_knn — Read an OCR classifier from a file.

Signature

read_ocr_class_knn( : : FileName : OCRHandle)

Herror T_read_ocr_class_knn(const Htuple FileName, Htuple* OCRHandle)

void ReadOcrClassKnn(const HTuple& FileName, HTuple* OCRHandle)

void HOCRKnn::HOCRKnn(const HString& FileName)

void HOCRKnn::HOCRKnn(const char* FileName)

void HOCRKnn::HOCRKnn(const wchar_t* FileName)   (Windows only)

void HOCRKnn::ReadOcrClassKnn(const HString& FileName)

void HOCRKnn::ReadOcrClassKnn(const char* FileName)

void HOCRKnn::ReadOcrClassKnn(const wchar_t* FileName)   (Windows only)

static void HOperatorSet.ReadOcrClassKnn(HTuple fileName, out HTuple OCRHandle)

public HOCRKnn(string fileName)

void HOCRKnn.ReadOcrClassKnn(string fileName)

def read_ocr_class_knn(file_name: str) -> HHandle

Description

read_ocr_class_knnread_ocr_class_knnReadOcrClassKnnReadOcrClassKnnReadOcrClassKnnread_ocr_class_knn reads an OCR classifier that has been stored with write_ocr_class_knnwrite_ocr_class_knnWriteOcrClassKnnWriteOcrClassKnnWriteOcrClassKnnwrite_ocr_class_knn.

Execution Information

This operator returns a handle. Note that the state of an instance of this handle type may be changed by specific operators even though the handle is used as an input parameter by those operators.

Parameters

FileNameFileNameFileNameFileNamefileNamefile_name (input_control)  filename.read HTuplestrHTupleHtuple (string) (string) (HString) (char*)

File name.

File extension: .onc, .okc, .fnt

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

Handle of the OCR classifier.

Result

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

Possible Successors

classify_class_knnclassify_class_knnClassifyClassKnnClassifyClassKnnClassifyClassKnnclassify_class_knn

See also

create_ocr_class_knncreate_ocr_class_knnCreateOcrClassKnnCreateOcrClassKnnCreateOcrClassKnncreate_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