write_deep_ocrT_write_deep_ocrWriteDeepOcrWriteDeepOcrwrite_deep_ocr (Operator)

Name

write_deep_ocrT_write_deep_ocrWriteDeepOcrWriteDeepOcrwrite_deep_ocr — Write a Deep OCR model in a file.

Signature

write_deep_ocr( : : DeepOcrHandle, FileName : )

Herror T_write_deep_ocr(const Htuple DeepOcrHandle, const Htuple FileName)

void WriteDeepOcr(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)

static void HOperatorSet.WriteDeepOcr(HTuple deepOcrHandle, HTuple fileName)

void HDlModelOcr.WriteDeepOcr(string fileName)

def write_deep_ocr(deep_ocr_handle: HHandle, file_name: str) -> None

Description

write_deep_ocrwrite_deep_ocrWriteDeepOcrWriteDeepOcrWriteDeepOcrwrite_deep_ocr writes the Deep OCR model DeepOcrHandleDeepOcrHandleDeepOcrHandleDeepOcrHandledeepOcrHandledeep_ocr_handle to the file given by FileNameFileNameFileNameFileNamefileNamefile_name. Please note that the runtime specific parameters 'gpu'"gpu""gpu""gpu""gpu""gpu", 'runtime'"runtime""runtime""runtime""runtime""runtime", and 'runtime_init'"runtime_init""runtime_init""runtime_init""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_ocrread_deep_ocrReadDeepOcrReadDeepOcrReadDeepOcrread_deep_ocr.

Execution Information

Parameters

DeepOcrHandleDeepOcrHandleDeepOcrHandleDeepOcrHandledeepOcrHandledeep_ocr_handle (input_control)  deep_ocr HDlModelOcr, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the Deep OCR model.

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

Filename

File extension: .hdo

Result

If the parameters are valid, the operator write_deep_ocrwrite_deep_ocrWriteDeepOcrWriteDeepOcrWriteDeepOcrwrite_deep_ocr returns the value TRUE. If necessary, an exception is raised.

Possible Predecessors

create_deep_ocrcreate_deep_ocrCreateDeepOcrCreateDeepOcrCreateDeepOcrcreate_deep_ocr, set_deep_ocr_paramset_deep_ocr_paramSetDeepOcrParamSetDeepOcrParamSetDeepOcrParamset_deep_ocr_param

Possible Successors

clear_handleclear_handleClearHandleClearHandleClearHandleclear_handle

Module

OCR/OCV