计算机应用 ›› 2010, Vol. 30 ›› Issue (4): 950-952.

• 图形图像处理 • 上一篇    下一篇

基于形态学的文档图像径向校正算法

常俊1,苗立刚2   

  1. 1. 内蒙古气象局信息中心
    2.
  • 收稿日期:2009-10-15 修回日期:2009-11-26 发布日期:2010-04-15 出版日期:2010-04-01
  • 通讯作者: 常俊

Correcting radial distortion of document images by morphology

  • Received:2009-10-15 Revised:2009-11-26 Online:2010-04-15 Published:2010-04-01
  • Contact: CHANG Jun

摘要: 手持相机拍摄的文档图像存在不同程度的镜头失真。根据文档图像的文本行信息,提出了一种基于数学形态学的镜头校正算法。首先利用自适应阈值方法分割文档图像,并通过形态学闭运算把连通体聚类为文本行。然后利用二次多项式模型拟合文本行的中心线,并建立径向失真校正的目标函数。该目标函数把中心线对应的曲线映射为直线,从而求出文档图像的镜头失真参数。实验结果表明,该校正算法可以有效地校正文档图像各种程度的径向失真。

关键词: 文档图像, 径向失真, 数学形态学, 闭运算

Abstract: Document image captured by hand-held camera suffers from lens distortion more or less, and a mathematic morphology based lens correction algorithm was proposed according to the text line of document images. First, it used adaptive thresholding algorithm to segment the document image, and clustered connected components into text lines with morphology closing algorithm. Then, it used second order polynomial to fit the central line of text line, and constructed the object function of lens distortion. It warped the curved text line to the straight text line, thus, to solve the distortion parameters of document image. The experimental results show this method can effectively correct lens distortion of document image with various degrees.

Key words: document image, radial distortion, mathematical morphology, closing algorithm