Skip to content

read_ocr_class_svmReadOcrClassSvmReadOcrClassSvmread_ocr_class_svmT_read_ocr_class_svm🔗

Short description🔗

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

Signature🔗

read_ocr_class_svm( filename.read FileName, out ocr_svm OCRHandle )void ReadOcrClassSvm( const HTuple& FileName, HTuple* OCRHandle )static void HOperatorSet.ReadOcrClassSvm( HTuple fileName, out HTuple OCRHandle )def read_ocr_class_svm( file_name: str ) -> HHandle

Herror T_read_ocr_class_svm( const Htuple FileName, Htuple* OCRHandle )

void HOCRSvm::HOCRSvm( const HString& FileName )

void HOCRSvm::HOCRSvm( const char* FileName )

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

public HOCRSvm( string fileName )

void HOCRSvm::ReadOcrClassSvm( const HString& FileName )

void HOCRSvm::ReadOcrClassSvm( const char* FileName )

void HOCRSvm::ReadOcrClassSvm( const wchar_t* FileName ) (Windows only)

void HOCRSvm.ReadOcrClassSvm( string fileName )

Description🔗

read_ocr_class_svmReadOcrClassSvm reads an OCR classifier that has been stored with write_ocr_class_svmWriteOcrClassSvm. 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_svmWriteOcrClassSvm. In the online process the classifier is read with read_ocr_class_svmReadOcrClassSvm and subsequently used for classification with do_ocr_single_class_svmDoOcrSingleClassSvm or do_ocr_multi_class_svmDoOcrMultiClassSvm.

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

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🔗

FileNamefileNamefile_name (input_control) filename.read → (string)HTuple (HString)HTuple (string)strHtuple (char*)

File name.

File extension: .osc, .fnt

OCRHandleOCRHandleocrhandle (output_control) ocr_svm → (handle)HTuple (HHandle)HOCRSvm, HTuple (IntPtr)HHandleHtuple (handle)

Handle of the OCR classifier.

Result🔗

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

Combinations with other operators🔗

Combinations

Possible successors

do_ocr_single_class_svmDoOcrSingleClassSvm, do_ocr_multi_class_svmDoOcrMultiClassSvm

See also

create_ocr_class_svmCreateOcrClassSvm, write_ocr_class_svmWriteOcrClassSvm, read_class_svmReadClassSvm, write_class_svmWriteClassSvm

Module🔗

OCR/OCV