Skip to content

write_deep_counting_modelWriteDeepCountingModelWriteDeepCountingModelwrite_deep_counting_modelT_write_deep_counting_model🔗

Short description🔗

write_deep_counting_modelWriteDeepCountingModelWriteDeepCountingModelwrite_deep_counting_modelT_write_deep_counting_model — Write a Deep Counting model in a file.

Signature🔗

write_deep_counting_model( deep_counting DeepCountingHandle, filename.write FileName )void WriteDeepCountingModel( const HTuple& DeepCountingHandle, const HTuple& FileName )static void HOperatorSet.WriteDeepCountingModel( HTuple deepCountingHandle, HTuple fileName )def write_deep_counting_model( deep_counting_handle: HHandle, file_name: str ) -> None

Herror T_write_deep_counting_model( const Htuple DeepCountingHandle, const Htuple FileName )

void HDlModelCounting::WriteDeepCountingModel( const HString& FileName ) const

void HDlModelCounting::WriteDeepCountingModel( const char* FileName ) const

void HDlModelCounting::WriteDeepCountingModel( const wchar_t* FileName ) const (Windows only)

void HDlModelCounting.WriteDeepCountingModel( string fileName )

Description🔗

write_deep_counting_modelWriteDeepCountingModel writes the Deep Counting model DeepCountingHandledeepCountingHandledeep_counting_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 Counting models is '.hdc'.

The Deep Counting model can be read with read_deep_counting_modelReadDeepCountingModel.

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🔗

DeepCountingHandledeepCountingHandledeep_counting_handle (input_control) deep_counting → (handle)HTuple (HHandle)HDlModelCounting, HTuple (IntPtr)HHandleHtuple (handle)

Handle of the Deep Counting model.

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

Filename

File extension: .hdc

Result🔗

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

Combinations with other operators🔗

Combinations

Possible predecessors

create_deep_counting_modelCreateDeepCountingModel, set_deep_counting_model_paramSetDeepCountingModelParam

Possible successors

clear_handleClearHandle

Module🔗

Matching