opencv中的二值化和背景过滤 [英] Binarization and Background Filtering in opencv
本文介绍了opencv中的二值化和背景过滤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
很快,我想在OCR之前做出预处理程序,建议来自
特别是狼的二值化,它的效果非常好实践,如果你想在opencv中使用c ++代码,它只需要很少的改动。基本上你必须将指向图像数据的指针传递给这个函数。
Shortly, I want to make the pre-processing procedures before OCR with the suggestion comes from ABBYY 's technology. There are two parts in article:
- Background Filtering: separate text strings from background.
- Adaptive Binarization: make lines and words will be correctly detected and higher recognition accuracy will be reached. And they try to impact on characters.
I wonder are there any ways to achieve them by using opencv
? Any suggestions or sample codes would be appreciated.
解决方案
I would encourage you to use this code: http://liris.cnrs.fr/christian.wolf/software/binarize/ In particular wolf's binarization, it works really well in practice and it needs very little change to c++ code if you want to use it with opencv. Basically you have to pass the pointer to your image data to this function.
这篇关于opencv中的二值化和背景过滤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文