read_ocr_trainf_selectread_ocr_trainf_selectReadOcrTrainfSelectReadOcrTrainfSelectread_ocr_trainf_select (Operator)

Name

read_ocr_trainf_selectread_ocr_trainf_selectReadOcrTrainfSelectReadOcrTrainfSelectread_ocr_trainf_select — Read training specific characters from files and convert to images.

Signature

read_ocr_trainf_select( : Characters : TrainingFile, SearchNames : FoundNames)

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)

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

static void HOperatorSet.ReadOcrTrainfSelect(out HObject characters, HTuple trainingFile, HTuple searchNames, out HTuple foundNames)

HTuple HImage.ReadOcrTrainfSelect(HTuple trainingFile, HTuple searchNames)

string HImage.ReadOcrTrainfSelect(string trainingFile, string searchNames)

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]

Description

read_ocr_trainf_selectread_ocr_trainf_selectReadOcrTrainfSelectReadOcrTrainfSelectReadOcrTrainfSelectread_ocr_trainf_select reads the characters given in SearchNamesSearchNamesSearchNamesSearchNamessearchNamessearch_names from the specified files and converts them into images. It works similar to read_ocr_trainfread_ocr_trainfReadOcrTrainfReadOcrTrainfReadOcrTrainfread_ocr_trainf but here the characters which are extracted can be specified.

Execution Information

Parameters

CharactersCharactersCharactersCharacterscharacterscharacters (output_object)  image-array objectHImageHObjectHImageHobject * (byte / uint2)

Images read from file.

TrainingFileTrainingFileTrainingFileTrainingFiletrainingFiletraining_file (input_control)  filename.read(-array) HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)

Names of the training files.

Default value: '' "" "" "" "" ""

File extension: .trf, .otr

SearchNamesSearchNamesSearchNamesSearchNamessearchNamessearch_names (input_control)  string(-array) HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)

Names of the characters to be extracted.

Default value: '0' "0" "0" "0" "0" "0"

FoundNamesFoundNamesFoundNamesFoundNamesfoundNamesfound_names (output_control)  string(-array) HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)

Names of the read characters.

Result

If the parameter values are correct the operator read_ocr_trainf_selectread_ocr_trainf_selectReadOcrTrainfSelectReadOcrTrainfSelectReadOcrTrainfSelectread_ocr_trainf_select returns the value TRUE. Otherwise an exception is raised.

Possible Predecessors

write_ocr_trainfwrite_ocr_trainfWriteOcrTrainfWriteOcrTrainfWriteOcrTrainfwrite_ocr_trainf

Possible Successors

disp_imagedisp_imageDispImageDispImageDispImagedisp_image, select_objselect_objSelectObjSelectObjSelectObjselect_obj, zoom_image_sizezoom_image_sizeZoomImageSizeZoomImageSizeZoomImageSizezoom_image_size

Alternatives

read_ocr_trainfread_ocr_trainfReadOcrTrainfReadOcrTrainfReadOcrTrainfread_ocr_trainf

Module

OCR/OCV