Skip to content

write_deep_ocrWriteDeepOcrWriteDeepOcrwrite_deep_ocrT_write_deep_ocr🔗

Short description🔗

write_deep_ocrWriteDeepOcrWriteDeepOcrwrite_deep_ocrT_write_deep_ocr — Write a Deep OCR model in a file.

Signature🔗

write_deep_ocr( deep_ocr DeepOcrHandle, filename.write FileName )void WriteDeepOcr( const HTuple& DeepOcrHandle, const HTuple& FileName )static void HOperatorSet.WriteDeepOcr( HTuple deepOcrHandle, HTuple fileName )def write_deep_ocr( deep_ocr_handle: HHandle, file_name: str ) -> None

Herror T_write_deep_ocr( const Htuple DeepOcrHandle, const Htuple FileName )

void HDlModelOcr::WriteDeepOcr( const HString& FileName ) const

void HDlModelOcr::WriteDeepOcr( const char* FileName ) const

void HDlModelOcr::WriteDeepOcr( const wchar_t* FileName ) const (Windows only)

void HDlModelOcr.WriteDeepOcr( string fileName )

Description🔗

write_deep_ocrWriteDeepOcr writes the Deep OCR model DeepOcrHandledeepOcrHandledeep_ocr_handle to the file given by FileNamefileNamefile_name. Please note that the runtime specific parameters 'gpu'"gpu", 'runtime'"runtime", and 'runtime_init'"runtime_init" are not written.

The default HALCON file extension for Deep OCR models is '.hdo'.

The Deep OCR model can be read with read_deep_ocrReadDeepOcr.

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🔗

DeepOcrHandledeepOcrHandledeep_ocr_handle (input_control) deep_ocr → (handle)HTuple (HHandle)HDlModelOcr, HTuple (IntPtr)HHandleHtuple (handle)

Handle of the Deep OCR model.

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

Filename

File extension: .hdo

Result🔗

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

Combinations with other operators🔗

Combinations

Possible predecessors

create_deep_ocrCreateDeepOcr, set_deep_ocr_paramSetDeepOcrParam

Possible successors

clear_handleClearHandle

Module🔗

OCR/OCV