ClassesClasses | | Operators

read_ocr_trainf_selectread_ocr_trainf_selectReadOcrTrainfSelectReadOcrTrainfSelect (Operator)

Name

read_ocr_trainf_selectread_ocr_trainf_selectReadOcrTrainfSelectReadOcrTrainfSelect — 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)

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)

Description

read_ocr_trainf_selectread_ocr_trainf_selectReadOcrTrainfSelectReadOcrTrainfSelectReadOcrTrainfSelect reads the characters given in SearchNamesSearchNamesSearchNamesSearchNamessearchNames from the specified files and converts them into images. It works simimalr to read_ocr_trainfread_ocr_trainfReadOcrTrainfReadOcrTrainfReadOcrTrainf but here the characters which are extracted can be specified.

Execution Information

Parameters

CharactersCharactersCharactersCharacterscharacters (output_object)  image-array objectHImageHImageHobject * (byte / uint2)

Images read from file.

TrainingFileTrainingFileTrainingFileTrainingFiletrainingFile (input_control)  filename.read(-array) HTupleHTupleHtuple (string) (string) (HString) (char*)

Names of the training files.

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

File extension: .trf, .otr

SearchNamesSearchNamesSearchNamesSearchNamessearchNames (input_control)  string(-array) HTupleHTupleHtuple (string) (string) (HString) (char*)

Names of the characters to be extracted.

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

FoundNamesFoundNamesFoundNamesFoundNamesfoundNames (output_control)  string(-array) HTupleHTupleHtuple (string) (string) (HString) (char*)

Names of the read characters.

Result

If the parameter values are correct the operator read_ocr_trainf_selectread_ocr_trainf_selectReadOcrTrainfSelectReadOcrTrainfSelectReadOcrTrainfSelect returns the value 2 (H_MSG_TRUE). Otherwise an exception is raised.

Possible Predecessors

write_ocr_trainfwrite_ocr_trainfWriteOcrTrainfWriteOcrTrainfWriteOcrTrainf

Possible Successors

disp_imagedisp_imageDispImageDispImageDispImage, select_objselect_objSelectObjSelectObjSelectObj, zoom_image_sizezoom_image_sizeZoomImageSizeZoomImageSizeZoomImageSize

Alternatives

read_ocr_trainfread_ocr_trainfReadOcrTrainfReadOcrTrainfReadOcrTrainf

Module

OCR/OCV


ClassesClasses | | Operators