Skip to content

write_ocr_class_mlpWriteOcrClassMlpWriteOcrClassMlpwrite_ocr_class_mlpT_write_ocr_class_mlp🔗

Short description🔗

write_ocr_class_mlpWriteOcrClassMlpWriteOcrClassMlpwrite_ocr_class_mlpT_write_ocr_class_mlp — Write an OCR classifier to a file.

Signature🔗

write_ocr_class_mlp( ocr_mlp OCRHandle, filename.write FileName )void WriteOcrClassMlp( const HTuple& OCRHandle, const HTuple& FileName )static void HOperatorSet.WriteOcrClassMlp( HTuple OCRHandle, HTuple fileName )def write_ocr_class_mlp( ocrhandle: HHandle, file_name: str ) -> None

Herror T_write_ocr_class_mlp( const Htuple OCRHandle, const Htuple FileName )

void HOCRMlp::WriteOcrClassMlp( const HString& FileName ) const

void HOCRMlp::WriteOcrClassMlp( const char* FileName ) const

void HOCRMlp::WriteOcrClassMlp( const wchar_t* FileName ) const (Windows only)

void HOCRMlp.WriteOcrClassMlp( string fileName )

Description🔗

write_ocr_class_mlpWriteOcrClassMlp writes the OCR classifier OCRHandleOCRHandleocrhandle to the file given by FileNamefileNamefile_name. If a file extension is not specified in FileNamefileNamefile_name the default extension '.omc' is appended to FileNamefileNamefile_name. write_ocr_class_mlpWriteOcrClassMlp is typically called after the classifier has been trained with trainf_ocr_class_mlpTrainfOcrClassMlp. The classifier can be read with read_ocr_class_mlpReadOcrClassMlp.

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.

Parameters🔗

OCRHandleOCRHandleocrhandle (input_control) ocr_mlp → (handle)HTuple (HHandle)HOCRMlp, HTuple (IntPtr)HHandleHtuple (handle)

Handle of the OCR classifier.

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

File name.

File extension: .omc

Result🔗

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

Combinations with other operators🔗

Combinations

Possible predecessors

trainf_ocr_class_mlpTrainfOcrClassMlp

Possible successors

clear_ocr_class_mlpClearOcrClassMlp

See also

create_ocr_class_mlpCreateOcrClassMlp, read_ocr_class_mlpReadOcrClassMlp, write_class_mlpWriteClassMlp, read_class_mlpReadClassMlp

Module🔗

OCR/OCV