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_selectReadOcrTrainfSelectReadOcrTrainfSelectread_ocr_trainf_select reads the characters given in SearchNamesSearchNamesSearchNamessearchNamessearch_names from the specified files and converts them into images. It works similar to read_ocr_trainfread_ocr_trainfReadOcrTrainfReadOcrTrainfread_ocr_trainf but here the characters which are extracted can be specified.

Execution Information

Parameters

CharactersCharactersCharacterscharacterscharacters (output_object)  image-array objectHImageHObjectHObjectHobject * (byte / uint2)

Images read from file.

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

Names of the training files.

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

File extension: .trf, .otr

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

Names of the characters to be extracted.

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

FoundNamesFoundNamesFoundNamesfoundNamesfound_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_selectReadOcrTrainfSelectReadOcrTrainfSelectread_ocr_trainf_select returns the value 2 ( H_MSG_TRUE) . Otherwise an exception is raised.

Possible Predecessors

write_ocr_trainfwrite_ocr_trainfWriteOcrTrainfWriteOcrTrainfwrite_ocr_trainf

Possible Successors

disp_imagedisp_imageDispImageDispImagedisp_image, select_objselect_objSelectObjSelectObjselect_obj, zoom_image_sizezoom_image_sizeZoomImageSizeZoomImageSizezoom_image_size

Alternatives

read_ocr_trainfread_ocr_trainfReadOcrTrainfReadOcrTrainfread_ocr_trainf

Module

OCR/OCV