read_ocr_trainf_selectReadOcrTrainfSelectReadOcrTrainfSelectread_ocr_trainf_selectread_ocr_trainf_select
Short description
read_ocr_trainf_selectReadOcrTrainfSelectReadOcrTrainfSelectread_ocr_trainf_selectread_ocr_trainf_select — Read training specific characters from files and convert to images.
Signature
read_ocr_trainf_select( out image Characters, filename.read TrainingFile, string SearchNames, out string FoundNames )void ReadOcrTrainfSelect( HObject* Characters, const HTuple& TrainingFile, const HTuple& SearchNames, HTuple* FoundNames )static void HOperatorSet.ReadOcrTrainfSelect( out HObject characters, HTuple trainingFile, HTuple searchNames, out HTuple foundNames )def read_ocr_trainf_select( training_file: MaybeSequence[str], search_names: MaybeSequence[str] ) -> Tuple[HObject, Sequence[str]]
def read_ocr_trainf_select_s( training_file: MaybeSequence[str], search_names: MaybeSequence[str] ) -> Tuple[HObject, str]Herror read_ocr_trainf_select( Hobject* Characters, const char* TrainingFile, const char* SearchNames, char* FoundNames )
Herror T_read_ocr_trainf_select( Hobject* Characters, const Htuple TrainingFile, const Htuple SearchNames, Htuple* FoundNames )
HTuple HImage::ReadOcrTrainfSelect( const HTuple& TrainingFile, const HTuple& SearchNames )
HString HImage::ReadOcrTrainfSelect( const HString& TrainingFile, const HString& SearchNames )
HString HImage::ReadOcrTrainfSelect( const char* TrainingFile, const char* SearchNames )
HString HImage::ReadOcrTrainfSelect( const wchar_t* TrainingFile, const wchar_t* SearchNames ) (Windows only)
HTuple HImage.ReadOcrTrainfSelect( HTuple trainingFile, HTuple searchNames )
string HImage.ReadOcrTrainfSelect( string trainingFile, string searchNames )
Description
read_ocr_trainf_selectReadOcrTrainfSelect reads the characters given in
SearchNamessearchNamessearch_names from the specified files and converts them
into images. It works similar to read_ocr_trainfReadOcrTrainf but here
the characters which are extracted can be specified.
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
Characterscharacterscharacters (output_object) image-array → object (byte / uint2)HObject (byte / uint2)HImage (byte / uint2)HObject (byte / uint2)Hobject * (byte / uint2)
Images read from file.
TrainingFiletrainingFiletraining_file (input_control) filename.read(-array) → (string)HTuple (HString)HTuple (string)MaybeSequence[str]Htuple (char*)
Names of the training files.
Default: ''""
File extension: .trf, .otr
SearchNamessearchNamessearch_names (input_control) string(-array) → (string)HTuple (HString)HTuple (string)MaybeSequence[str]Htuple (char*)
Names of the characters to be extracted.
Default: '0'"0"
FoundNamesfoundNamesfound_names (output_control) string(-array) → (string)HTuple (HString)HTuple (string)Sequence[str]Htuple (char*)
Names of the read characters.
Result
If the parameter values are correct the operator
read_ocr_trainf_selectReadOcrTrainfSelect returns the value 2 (H_MSG_TRUE).
Otherwise an exception is raised.
Combinations with other operators
Combinations
Possible predecessors
write_ocr_trainfWriteOcrTrainf
Possible successors
disp_imageDispImage, select_objSelectObj, zoom_image_sizeZoomImageSize
Alternatives
read_ocr_trainfReadOcrTrainf
Module
OCR/OCV