第40卷第1期2023年2月河北省科学院学报JournaloftheHebeiAcademyofSciencesVol.40No.1Feb.2023收稿日期:2022-10-17基金项目:河北省科学院科技计划项目(22A01)作者简介:于浩(1995-),男,河北石家庄人,硕士,助理工程师,研究方向:机电一体化.通信作者:张震(1986-),男,河北石家庄人,硕士,高级工程师,研究方向:机电一体化.文章编号:1001-9383(2023)01-0019-07基于图像语义分割的药用玻璃瓶外轮廓尺寸检测方法研究于浩,张震,张雷,刘申,赵东哲,张金辉(河北省机电一体化中试基地有限公司,河北石家庄050051)摘要:为解决药用玻璃瓶外轮廓在线检测的两大难题,即瓶体透明度高造成光电传感器测量失真,以及高速生产节拍下测量精度稳定性差的问题,本文提出了一种基于图像语义分割的药用玻璃瓶外轮廓尺寸检测方法。首先通过结合PP-LiteSeg图像语义分割算法与Canny边缘检测算法,实现透明玻璃瓶轮廓边缘区域的精准分割,来精确采集玻璃瓶各截面轮廓点云;再利用ICP算法配准点云数据、Kd树算法计算瓶体尺寸超差区域,来实现高透药用玻璃瓶高精度在线测量。使用采集数据与标准瓶尺寸进行对比实验,实验结果表明重构轮廓尺寸误差在0.054mm以内、扫描速度在1s以内,能够满足当前生产节拍对检测精度和速度的要求,为高透玻璃瓶在线检测系统提供技术支撑。关键词:图像语义分割;三维轮廓检测;药用玻璃瓶;图像边缘检测;图像深度学习中图分类号:TP274文献标识码:AMedicinalglassbottleoutercontouron-linedetectionbasedonimagesemanticsegmentationYUHao,ZHANGZhen,ZHANGLei,LIUShen,ZHAODong-zhe,ZHANGJin-hui(HebeiMechatronicsIntermediatePilotProductionBaseCo.,Ltd.,ShijiazhuangHebei050051,China)Abstract:Aimingatthetwodifficultiesofon-linemeasurementoftheoutercontourofmedicinalglassbottle,namely,themeasurementdistortioncausedbythehightransparencyofbottlebody,andthepoormeasurementaccuracyandstabilityunderthehighspeedproductionrhythm,inthispaper,amethodbasedonimagesemanticsegmentationisproposedtodetectthecontoursizeofglassbottle.Firstly,thePP-LiteSegimagesemanticsegmentationalgorithmandCannyedgedetectionalgorithmarecombinedtoachievetheprecisesegmentationoftheedgeareaofthetransparentbottle'scontour,soastocollectthepointcloudofeachsectionofthebottle'scontouraccurately.Then,theIterativeClosestPoints(ICP)algorithmisusedt...