Skip to content

concat_ocr_trainfConcatOcrTrainfConcatOcrTrainfconcat_ocr_trainfconcat_ocr_trainf🔗

Short description🔗

concat_ocr_trainfConcatOcrTrainfConcatOcrTrainfconcat_ocr_trainfconcat_ocr_trainf — Concat training files.

Signature🔗

concat_ocr_trainf( filename.read SingleFiles, filename.write ComposedFile )void ConcatOcrTrainf( const HTuple& SingleFiles, const HTuple& ComposedFile )static void HOperatorSet.ConcatOcrTrainf( HTuple singleFiles, HTuple composedFile )def concat_ocr_trainf( single_files: MaybeSequence[str], composed_file: str ) -> None

Herror concat_ocr_trainf( const char* SingleFiles, const char* ComposedFile )

Herror T_concat_ocr_trainf( const Htuple SingleFiles, const Htuple ComposedFile )

static void HMisc::ConcatOcrTrainf( const HTuple& SingleFiles, const HString& ComposedFile )

static void HMisc::ConcatOcrTrainf( const HString& SingleFiles, const HString& ComposedFile )

static void HMisc::ConcatOcrTrainf( const char* SingleFiles, const char* ComposedFile )

static void HMisc::ConcatOcrTrainf( const wchar_t* SingleFiles, const wchar_t* ComposedFile ) (Windows only)

static void HMisc.ConcatOcrTrainf( HTuple singleFiles, string composedFile )

static void HMisc.ConcatOcrTrainf( string singleFiles, string composedFile )

Description🔗

The operator concat_ocr_trainfConcatOcrTrainf stores all characters which are contained in the files SingleFilessingleFilessingle_files into a new file with the name ComposedFilecomposedFilecomposed_file. The file format can be defined by the parameter 'ocr_trainf_version'"ocr_trainf_version" of the operator set_systemSetSystem. If no file extension is specified in ComposedFilecomposedFilecomposed_file, the extension ‘.trf’ is appended to the file name. It is not possible to use any of the files in SingleFilessingleFilessingle_files as the new file ComposedFilecomposedFilecomposed_file.

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🔗

SingleFilessingleFilessingle_files (input_control) filename.read(-array) → (string)HTuple (HString)HTuple (string)MaybeSequence[str]Htuple (char*)

Names of the single training files.

Default: ''""
File extension: .trf, .otr

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

Name of the composed training file.

Default: 'all_characters'"all_characters"
File extension: .trf

Result🔗

If the parameters are correct, the operator concat_ocr_trainfConcatOcrTrainf returns the value 2 (H_MSG_TRUE). Otherwise an exception will be raised.

Combinations with other operators🔗

Combinations

Possible predecessors

write_ocr_trainfWriteOcrTrainf, append_ocr_trainfAppendOcrTrainf

Possible successors

trainf_ocr_class_mlpTrainfOcrClassMlp, trainf_ocr_class_svmTrainfOcrClassSvm, write_ocr_trainfWriteOcrTrainf

Module🔗

OCR/OCV