摘要
摄像头在对文稿进行实时边缘检测与纠偏过程中存在复杂背景干扰,会导致无法准确完成文稿的边缘检测与纠偏的情况。为此,提出了一种动态的文稿边缘自适应检测与纠偏方法。在形态学变换与Canny边缘检测的基础上,根据文稿轮廓特征,结合多边形逼近、最小矩形包裹与面积筛选的方法对复杂背景下的文稿进行边缘检测与纠偏,并通过引入图像压缩比方法,使纠偏前后的文稿布局保持一致。实验结果表明:该方法在单一或复杂背景下均能对文稿边缘进行准确检测与纠偏,解决了上述情况下复杂背景干扰的问题;完成1次准确检测与纠偏的平均耗时为0.6092s与0.6638s,满足实时检测与纠偏的要求。
The camera has complex background interference in the process of real-time edge detection and rectification of the document,which may lead to the inaccurate edge detection and correction of the document.For this reason,a dynamic method for adaptive detection and correction of the document edge is proposed.Based on the morphological transformation and Canny edge detection,this method combines the polygon approximation,the minimum rectangle wrapping and the area screening method to detect and correct the edge of the document in complex background based on the contour feature of the document.In addition,by introducing the image compression ratio,this method can make the layout of the document before and after the correction correct.The experiments show that the method can accurately detect and correct the edge of the document in a single or complex background,and solve the above-mentioned complex background interference problem.In addition,the average time taken to complete an accurate detection and correction is 0.6092s.0.6638s,meeting the requirements of real-time detection and correction.
作者
陈建促
王越
李章宇
林志航
CHEN Jiancu;WANG Yue;LI Zhangyu;LIN Zhihang(School of Computer Science and Engineering,Chongqing University of Technology,Chongqing 400054,China)
出处
《重庆理工大学学报(自然科学)》
CAS
北大核心
2019年第5期148-153,共6页
Journal of Chongqing University of Technology:Natural Science
基金
国家自然科学青年基金资助项目(61702063)
关键词
复杂背景
边缘检测
文稿纠偏
图像压缩比
CANNY算法
complex background
edge detection
document correction
image compression ratio
Canny algorithm