首页|基于改进凸包缺陷算法的扎带定位方法

基于改进凸包缺陷算法的扎带定位方法

扫码查看
针对传统视觉在检测捆扎带时存在难检、漏检、定位扎带位置困难和速度慢等问题,提出一种基于改进凸包缺陷算法的扎带定位方法.采用自适应直方图均衡化图像增强算法,以增强编织袋区域与背景的对比度;利用快速凸包算法获得编织袋轮廓的凸包,减少获取凸包的时间;最后,通过改进凸包缺陷算法对编织袋轮廓凸包进行缺陷检测,根据检测结果中凸包缺陷点的位置和缺陷深度进行筛选得到扎带定位点.同时为验证该算法的准确性与鲁棒性,在具有复杂背景干扰的环境下进行实验,将传统凸包缺陷算法与改进后的凸包缺陷算法进行对比分析.实验结果表明:相比于传统凸包缺陷算法无法检测出编织袋轮廓的全部缺陷从而存在漏检,改进后的凸包缺陷算法漏检率为0,定位误差小于4 mm,可有效定位扎带位置并具有较高的鲁棒性.
Tie-positioning method based on improved convex hull defect algorithm
Objective Aiming at difficult detection,missed detection,difficulty in locating the position of ties and slow speed in conventional algorithms when detecting ties due to the color similarity between ties and woven bags,as well as the small area occupied by ties,the conventional vision is difficult to detect the position of ties,and deep learning algorithms are difficult to create datasets.Therefore,a strap positioning method based on improved convex hull defect algorithm is proposed.Method An adaptive histogram equalization image enhancement algorithm was adopted to increase the contrast between the woven bag contour area and the background,and to improve the extraction accuracy of the woven bag contour.A fast convex hull algorithm was then adopted to obtain the convex hull of the woven bag contour,aiming at reducing the time required to obtain the convex hull of the woven bag contour.Consequently,an improved convex hull defect algorithm was established and used for defect detection of woven bags.Based on the location and depth of the convex hull defect points in the detection results,defect points were screened to obtain the final required defect point,which is the tie positioning point.Results In order to verify the accuracy and robustness of the algorithm,experiments were conducted in an environment with complex background interference,based on the fact that the number of ties commonly used for bundling woven bags is 2 or 3 in practice.In order to fit the actual situation,three types of woven bag images were captured using a ZED camera with a number of 2-4 ties.Due to the small pixel difference between the woven bag and the surrounding environment,direct image pre-processing may result in low accuracy of the subsequently extracted woven bag contour.In order to retain more details of the woven bag contour,the image was first processed using adaptive histogram equalization,and then the woven bag contour was obtained by image pre-processing,morphological processing,contour rendering and filtering.Afterwards,a fast convex hull algorithm was adopted to solve the convex hull of the woven bag contour,reducing the time required to solve the convex hull of the woven bag contour.Three algorithms were adopted to solve the convex hull of woven bags.The Andrew algorithm took 0.07 s,the Graham algorithm took 0.04 s,and the fast convex hull algorithm took 0.02 s,which is 0.05 s faster than the Andrew algorithm and 0.02 s faster than the Graham algorithm,verifying the feasibility of the fast convex hull algorithm.Next,the conventional convex hull defect algorithm and the improved convex hull defect algorithm were adopted,respectively to detect the convex hull of the woven bag contour.The conventional convex hull defect algorithm only detects the deepest defect point between the defect starting point and the defect ending point.In the case of multiple defects between the defect starting point and the defect ending point,some defects may not be detected leading to the increased number of missed detection.Where the positioning points of the ties cannot be fully detected with conventional methods,the improved algorithm demonstrated that all defects cpuld be detected with a missed detection rate of 0.The positioning error was less than 4 mm,and could accurately locate the positions of all ties.The feasibility and robustness of the algorithm were verified.Conclusion The experimental results show that the improved convex hull defect algorithm can solve the problem of missed detection in conventional convex hull defect methods,detect all defects in woven bags,accurately locate the position of ties,and the algorithm can be applied to the positioning of various colored ties,indicating the effectiveness and applicability of the algorithm.

tie positioningconvex hulldefect detectionimage enhancementhistogram equalizationcylinder yarn packaging

周其洪、陈唱、任佳伟、洪巍、岑均豪

展开 >

东华大学机械工程学院,上海 201620

广州盛原成自动化科技有限公司,广东广州 511400

扎带定位 凸包算法 缺陷检测 图像增强 直方图均衡化 筒子纱包装

2024

纺织学报
中国纺织工程学会

纺织学报

CSTPCD北大核心
影响因子:0.699
ISSN:0253-9721
年,卷(期):2024.45(9)