find_text_dongle.hdev相关例程学习

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的内容,这样在处理时他说鲁棒性就比较好。

对于这种里面内容比较复杂的文字识别鲁棒性更好。

发布了10 篇原创文章 · 获赞 11 · 访问量 5万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章