concat_ocr_trainfconcat_ocr_trainfConcatOcrTrainfConcatOcrTrainfconcat_ocr_trainf (Operator)
Name
concat_ocr_trainfconcat_ocr_trainfConcatOcrTrainfConcatOcrTrainfconcat_ocr_trainf
— Concat training files.
Signature
Description
The operator concat_ocr_trainfconcat_ocr_trainfConcatOcrTrainfConcatOcrTrainfConcatOcrTrainfconcat_ocr_trainf
stores all characters
which are contained in the files SingleFilesSingleFilesSingleFilesSingleFilessingleFilessingle_files
into a new file
with the name ComposedFileComposedFileComposedFileComposedFilecomposedFilecomposed_file
.
The file format can be defined by the parameter
'ocr_trainf_version'"ocr_trainf_version""ocr_trainf_version""ocr_trainf_version""ocr_trainf_version""ocr_trainf_version" of the operator set_systemset_systemSetSystemSetSystemSetSystemset_system
. If no
file extension is specified in ComposedFileComposedFileComposedFileComposedFilecomposedFilecomposed_file
, the extension '.trf'
is appended to the file name.
It is not possible to use any of the files in SingleFilesSingleFilesSingleFilesSingleFilessingleFilessingle_files
as the
new file ComposedFileComposedFileComposedFileComposedFilecomposedFilecomposed_file
.
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
SingleFilesSingleFilesSingleFilesSingleFilessingleFilessingle_files
(input_control) filename.read(-array) →
HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)
Names of the single training files.
Default:
''
""
""
""
""
""
File extension:
.trf
, .otr
ComposedFileComposedFileComposedFileComposedFilecomposedFilecomposed_file
(input_control) filename.write →
HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Name of the composed training file.
Default:
'all_characters'
"all_characters"
"all_characters"
"all_characters"
"all_characters"
"all_characters"
File extension:
.trf
Result
If the parameters are correct, the operator
concat_ocr_trainfconcat_ocr_trainfConcatOcrTrainfConcatOcrTrainfConcatOcrTrainfconcat_ocr_trainf
returns the value 2 (
H_MSG_TRUE)
.
Otherwise an exception will be raised.
Possible Predecessors
write_ocr_trainfwrite_ocr_trainfWriteOcrTrainfWriteOcrTrainfWriteOcrTrainfwrite_ocr_trainf
,
append_ocr_trainfappend_ocr_trainfAppendOcrTrainfAppendOcrTrainfAppendOcrTrainfappend_ocr_trainf
Possible Successors
trainf_ocr_class_mlptrainf_ocr_class_mlpTrainfOcrClassMlpTrainfOcrClassMlpTrainfOcrClassMlptrainf_ocr_class_mlp
,
trainf_ocr_class_svmtrainf_ocr_class_svmTrainfOcrClassSvmTrainfOcrClassSvmTrainfOcrClassSvmtrainf_ocr_class_svm
,
write_ocr_trainfwrite_ocr_trainfWriteOcrTrainfWriteOcrTrainfWriteOcrTrainfwrite_ocr_trainf
Module
OCR/OCV