第36卷第1期2023年2月常州工学院学报JournalofChangzhouInstituteofTechnologyVol.36No.1Feb.2023doi:10.3969/j.issn.1671-0436.2023.01.005收稿日期:2022-05-08基金项目:常州工学院大学生创新创业训练计划项目(202211055017Z)作者简介:彭家伟(2000—),男,江苏扬州人,在读本科生,主要研究方向为计算机图像处理。通信作者:徐则中(1971—),男,河南正阳人,教授,xuzz@czu.cn。基于区域像素的矩形目标检测彭家伟,顾婷婷,耿思远,张迪,徐则中(常州工学院计算机信息工程学院,江苏常州213032)摘要:针对矩形目标的边缘缺陷现象,文章提出了一种基于矩形内部像素的检测方法。该方法不需要进行边缘检测,直接基于二值图像进行Hough投票;在峰值周围计算每列的投票方差,拟合一个二次函数;基于拟合的系数计算矩形目标的长度、宽度和方向,计算区域像素的统计均值作为矩形目标的中心。实验结果表明,提出的方法能够有效检测存在边缘缺陷的矩形目标。关键词:矩形检测;Hough变换;函数拟合;区域像素中图分类号:TP391.41文献标志码:A文章编号:1671-0436(2023)01-0024-04RectangularObjectsDetectionBasedonRegionPixelsPENGJiawei,GUTingting,GENGSiyuan,ZHANGDi,XUZezhong(SchoolofComputerInformationEngineering,ChangzhouInstituteofTechnology,Changzhou213032)Abstract:Inordertodetecttheedgedefectsofrectangularobjects,amethodbasedonthepixelsinsidetherectangleisproposedinthispaper.Thismethoddidnotrequireedgedetection,anddirectlyconductedHoughvotingbasedonbinaryimages.Thevotingvariancesofeachcolumnwerecalculatedaroundthepeakandaquadraticfunctionwasfitted.Thelength,widthanddirectionoftherectanglewerecalculatedwiththefittedcoefficient,andthestatisticalmeanoftheregionpixelswascalculatedasthecenteroftherectangulartarget.Experimentalresultsshowthattheproposedmethodcaneffectivelydetectrectangularobjectswithedgedefects.Keywords:rectangledetection;Houghtransform;functionfitting;regionpixels0引言目标检测是机器视觉应用的基础,是从视觉图像中检测特定的目标对象,用于进一步分析处理,比如定位[1]、测量[2]或识别[3]。矩形目标检测在工业领域被广泛应用。目前的矩形检测方法主要有两种[4]。第一种是基于边缘直线的检测方法。该方法首先进行边缘检测处理,得到...