do_ocr_single_class_mlp computes the best Num classes of the character given by the region Character and the gray values Image with the OCR classifier OCRHandle and returns the classes in Class and the corresponding confidences (probabilities) of the classes in Confidence. Because multiple classes...
5.利用多层感知器创建一个新的OCR分级器(trainf_ocr_class_mlp)-> 6.将OCR分级器的OCRHandle写入文件的FileName(文件名)(write_ocr_class_mlp)-> 7.训练字符文件-> 8.读取训练后的文件 生成识别的分类器句柄read_ocr_class_mlp -> 9.识别字符:识别单个字符(do_ocr_single_class_mlp),识别多个字符(do_o...
Class(output_control)string(-array)→(string) Result of classifying the character with the MLP. Confidence(output_control)real(-array)→(real) Confidence(s) of the class(es) of the character. Result If the parameters are valid, the operatordo_ocr_single_class_mlpreturns the value 2 (H_MSG...
do_ocr_single_class_mlp (ObjectSelected, ImageInvert, OCRHandle, 1, Class, Confidence) endfor clear_ocr_class_mlp (OCRHandle) (2)Example: hdevelop/Applications/OCR/ocrcolor.hdev 此示例提取表单中的字符。一个典型的问题是字符没有打印在正确的位置,如图所示。 由于字符打印在线上,不能简单的通过阈值...
然后,数字字符用算子threshold和connection分割出来,因为顺序是无关的,所以没有必须进行下一步的处理。 最后,数字符在一个for循环中被读取。算子do_ocr_single_class_mlp将单个区域,图像和OCR句柄作为输入。结果,最好的和第二好解释连同可信度一起被返回。
功能:给定区域字符和分级器的灰度图像值,计算出最好的类,将类返回到Class中。 5.do_ocr_single_class_mlp 功能:给定区域字符和分级器的灰度图像值,计算出最好的类,将类返回到Class中。 6.do_ocr_word_mlp 功能:功能与do ocr multiclass mlp相同,只是do ocr word mlp将字符组作为一个实体。
9.识别字符:识别单个字符(do_ocr_single_class_mlp),识别多个字符(do_ocr_multi_class_mlp)-> 10.关闭分类器句柄(clear_ocr_class_mlp) ***详细步骤*** 2.将每个字符加到训练文件中(append_ocr_trainf) 算子:append_ocr_trainf(Character, Image : : Class, TrainingFile...
使用分类器进行字符识别的函数有两个:1是do_ocr_multi_class_mlp,该函数对一幅图像内的多个字符进行一次分类并输出分类结果。2是do_ocr_single_class_mlp,该函数是对一幅图像中的单个字符进行分类。两者的对比试验表明,后者的分类准确度要高,因此,下文使用do_ocr_single_class_mlp算子进行字符的分类。
do_ocr_multi_class_mlp (SortedRegions, ImageInvert, OCRHandle, Class, Confidence) 传统识别结果: Deep OCR识别代码: dev_update_off () dev_get_window (WindowHandle) dev_set_window (WindowHandle) create_deep_ocr ([], [], DeepOcrHandle) ...
read_ocr_class_mlp(:OCRHandle) do_ocr_single_class_mlp(Character,Image::OCRHandle,Num:Class,Confidence) do_ocr_multi_class_mlp(Character,Image:Class,Confidence) 读取模型函数参数解析: FileName:模型文件名,如果未指定扩展名,则默认使用扩展名.omc ...