ClassesClasses | | Operators

read_ocr_class_svmT_read_ocr_class_svmReadOcrClassSvmReadOcrClassSvm (Operator)

Name

read_ocr_class_svmT_read_ocr_class_svmReadOcrClassSvmReadOcrClassSvm — Read a SVM-based OCR classifier from a file.

Signature

read_ocr_class_svm( : : FileName : OCRHandle)

Herror T_read_ocr_class_svm(const Htuple FileName, Htuple* OCRHandle)

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

void HOCRSvm::HOCRSvm(const HString& FileName)

void HOCRSvm::HOCRSvm(const char* FileName)

void HOCRSvm::ReadOcrClassSvm(const HString& FileName)

void HOCRSvm::ReadOcrClassSvm(const char* FileName)

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

public HOCRSvm(string fileName)

void HOCRSvm.ReadOcrClassSvm(string fileName)

Description

read_ocr_class_svmread_ocr_class_svmReadOcrClassSvmReadOcrClassSvmReadOcrClassSvm reads an OCR classifier that has been stored with write_ocr_class_svmwrite_ocr_class_svmWriteOcrClassSvmWriteOcrClassSvmWriteOcrClassSvm. Since the training of an OCR classifier can consume a relatively long time, the classifier is typically trained in an offline process and written to a file with write_ocr_class_svmwrite_ocr_class_svmWriteOcrClassSvmWriteOcrClassSvmWriteOcrClassSvm. In the online process the classifier is read with read_ocr_class_svmread_ocr_class_svmReadOcrClassSvmReadOcrClassSvmReadOcrClassSvm and subsequently used for classification with do_ocr_single_class_svmdo_ocr_single_class_svmDoOcrSingleClassSvmDoOcrSingleClassSvmDoOcrSingleClassSvm or do_ocr_multi_class_svmdo_ocr_multi_class_svmDoOcrMultiClassSvmDoOcrMultiClassSvmDoOcrMultiClassSvm.

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

FileNameFileNameFileNameFileNamefileName (input_control)  filename.read HTupleHTupleHtuple (string) (string) (HString) (char*)

File name.

File extension: .osc, .fnt

OCRHandleOCRHandleOCRHandleOCRHandleOCRHandle (output_control)  ocr_svm HOCRSvm, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the OCR classifier.

Result

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

Possible Successors

do_ocr_single_class_svmdo_ocr_single_class_svmDoOcrSingleClassSvmDoOcrSingleClassSvmDoOcrSingleClassSvm, do_ocr_multi_class_svmdo_ocr_multi_class_svmDoOcrMultiClassSvmDoOcrMultiClassSvmDoOcrMultiClassSvm

See also

create_ocr_class_svmcreate_ocr_class_svmCreateOcrClassSvmCreateOcrClassSvmCreateOcrClassSvm, write_ocr_class_svmwrite_ocr_class_svmWriteOcrClassSvmWriteOcrClassSvmWriteOcrClassSvm, read_class_svmread_class_svmReadClassSvmReadClassSvmReadClassSvm, write_class_svmwrite_class_svmWriteClassSvmWriteClassSvmWriteClassSvm

Module

OCR/OCV


ClassesClasses | | Operators