read_ocr_trainf_selectread_ocr_trainf_selectReadOcrTrainfSelectReadOcrTrainfSelectread_ocr_trainf_select (算子名称)

名称

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

参数签名

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]

描述

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.

运行信息

参数表

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: '' "" "" "" "" ""

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: '0' "0" "0" "0" "0" "0"

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

Names of the read characters.

结果

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

可能的前置算子

write_ocr_trainfwrite_ocr_trainfWriteOcrTrainfWriteOcrTrainfWriteOcrTrainfwrite_ocr_trainf

可能的后置算子

disp_imagedisp_imageDispImageDispImageDispImagedisp_image, select_objselect_objSelectObjSelectObjSelectObjselect_obj, zoom_image_sizezoom_image_sizeZoomImageSizeZoomImageSizeZoomImageSizezoom_image_size

可替代算子

read_ocr_trainfread_ocr_trainfReadOcrTrainfReadOcrTrainfReadOcrTrainfread_ocr_trainf

模块

OCR/OCV