本文介绍了文档图像二值化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试为文档图像找到有效的二值化技术。我目前已经实现了niblack和sauvola阈值算法,并尝试了基于直方图评估的二值化。有人可以建议其他已证明有效的二值化方法吗?
这是我一直在使用的降级图像示例:
I'm trying to find effective binarization techniques for document images. I've currently implemented the niblack and sauvola thresholding algorithms and tried binarization based on histogram evaluation as well. Could someone please suggest other binarization methods that have proved to be effective?Here's a sample degraded image I've been working with:
任何建议将不胜感激。
推荐答案
如何从简单地根据当地社区调整阈值开始?
How about starting with simply adapting the threshold based on the local neighborhood?
im = rgb2gray(im);
im = im2double(im);
f_makebw = @(I) im2bw(I.data, double(median(I.data(:)))/1.45);
bw = ~blockproc(im, [128 128], f_makebw);
结果:
这篇关于文档图像二值化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!