read_ocr_trainf_selectread_ocr_trainf_selectReadOcrTrainfSelectReadOcrTrainfSelectread_ocr_trainf_select (算子)
名称
read_ocr_trainf_selectread_ocr_trainf_selectReadOcrTrainfSelectReadOcrTrainfSelectread_ocr_trainf_select — 从文件中读取训练特定字符并转换为图像。
签名
描述
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 (输出对象) image-array → objectHImageHObjectHImageHobject * (byte / uint2)
Images read from file.
TrainingFileTrainingFileTrainingFileTrainingFiletrainingFiletraining_file (输入控制) filename.read(-array) → HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)
Names of the training files.
默认值:
''
""
""
""
""
""
File extension:
.trf, .otr
SearchNamesSearchNamesSearchNamesSearchNamessearchNamessearch_names (输入控制) string(-array) → HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)
Names of the characters to be extracted.
默认值:
'0'
"0"
"0"
"0"
"0"
"0"
FoundNamesFoundNamesFoundNamesFoundNamesfoundNamesfound_names (输出控制) string(-array) → HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)
Names of the read characters.
结果
如果参数值正确,算子 read_ocr_trainf_selectread_ocr_trainf_selectReadOcrTrainfSelectReadOcrTrainfSelectReadOcrTrainfSelectread_ocr_trainf_select 返回值 2 ( H_MSG_TRUE )。否则将抛出异常。
可能的前趋
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
模块
光学字符识别/光学字符验证