您的位置:首页 > 其它

find_text_dongle.hdev相关例程学习

2015-07-24 14:57 246 查看
Index:.../Applications/OCR/find_text_dongle.hdev



这个和上一篇文章的例程本质相同,唯一不同点就是介绍了一个别的算子。

* The OCR uses regular expressions to read the text

* more robustly.

do_ocr_word_mlp (Line, ImageRotate, OCRHandle, Expression, 3, 5, Class, Confidence, Word, Score)

这个算子特点就是

* Define the regular expression, which is later used

* in do_ocr_word_mlp to increase the robustness of the OCR.

TextPattern1 := '(FLEXID[0-9][A-Z][0-9]{3}[A-F0-9]{4})'

TextPattern2 := '([A-Z]{3}[0-9]{5}.?[A-Z][0-9]{4}[A-Z][0-9]{4})'

Expression := TextPattern1 + '|' + TextPattern2

定义了Expression的内容,这样在处理时他说鲁棒性就比较好。

对于这种里面内容比较复杂的文字识别鲁棒性更好。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: