Journal of Textile Research ›› 2024, Vol. 45 ›› Issue (09): 212-219.doi: 10.13475/j.fzxb.20230603701

• Machinery & Equipment • Previous Articles     Next Articles

Tie-positioning method based on improved convex hull defect algorithm

ZHOU Qihong1(), CHEN Chang1, REN Jiawei1, HONG Wei2, CEN Junhao2   

  1. 1. College of Mechanical Engineering, Donghua University, Shanghai 201620, China
    2. Guangzhou Seyouth Automation Technology Co., Ltd., Guangzhou, Guangdong 511400, China
  • Received:2023-06-19 Revised:2023-11-27 Online:2024-09-15 Published:2024-09-15

Abstract:

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.

Key words: tie positioning, convex hull, defect detection, image enhancement, histogram equalization, cylinder yarn packaging

CLC Number: 

  • TS103.9

Fig.1

Process of tie identification based on improved convex hull algorithm"

Fig.2

Image of woven bag"

Fig.3

Pictures of woven bag using different image enhancement algorithms. (a) Histogram equalization; (b) Adaptive histogram equalization"

Fig.4

Convex hull algorithm"

Fig.5

Woven bag image with 2-4 ties. (a) Two ties; (b) Three ties; (c) Four ties"

Fig.6

Contour convex hullimages of woven bag with 2-4 ties. (a) Two ties; (b) Three ties; (c) Four ties"

Fig.7

Detection results of different convex hull defect algorithms. (a) Conventional convex hull defect algorithm; (b) Improved convex hull depect algorithm"

Fig.8

Anchor points of ties. (a) Two ties; (b) Three ties; (c) Four ties"

Fig.9

Diagram of tie bundling under different situations. (a) Two colors of tie; (b) Three colors of tie; (c) Special circumstances"

Fig.10

Detection results of different convex hull defect algorithms. (a) Conventional convex hull defect algorithm; (b) Improved convex hull defect algorithm"

Fig.11

Anchor point of tie. (a) Two colors of tie; (b) Three colors of tie; (c) Special circumstances"

Tab.1

Statistical table of tie positioning results"

扎带数目/条 水平捆绑 倾斜捆绑
检测数量 耗时/ms 成功率/% 定位误差/mm 检测数量 耗时/ms 成功率/% 定位误差/mm
2 4 114 100 2 4 114 100 4
3 6 146 100 2 6 146 100 4
4 8 165 100 2 8 165 100 4
[1] 彭来湖, 祝孝裕, 张少明, 等. 筒子纱包装自动配重方法研究[J]. 纺织学报, 2020, 41(6): 147-152.
PENG Laihu, ZHU Xiaoyu, ZHANG Shaoming, et al. Research on automatic counterweight scheme for cheese yarn packaging[J]. Journal of Textile Research, 2020, 41(6): 147-152.
[2] 周鹏飞, 吕汉明, 谢楠, 等. 筒子纱编织袋包装与码垛控制系统的开发[J]. 棉纺织技术, 2018, 46(5): 27-32.
ZHOU Pengfei, LV Hanming, XIE Nan, et al. Development of package and palletizing control system for package and palletizing of package yarn[J]. Cotton Textile Technology, 2018, 46(5): 27-32.
[3] 钟飞, 赵子丹, 夏军勇, 等. 基于机器视觉的编织袋表面缺陷检测系统设计与实现[J]. 包装工程, 2022, 43(13): 247-256.
ZHONG Fei, ZHAO Zidan, XIA Junyong, et al. Design and implementation of surface defect detection system for woven bag based on machine vision[J]. Packaging Engineering, 2022, 43(13): 247-256.
[4] 牟新刚, 蔡逸超, 周晓, 等. 基于机器视觉的筒子纱缺陷在线检测系统[J]. 纺织学报, 2018, 39(1): 139-145.
MOU Xingang, CAI Yichao, ZHOU Xiao, et al. On-line yarn cone defects detection system based on machine vision[J]. Journal of Textile Research, 2018, 39(1):139-145.
[5] 路浩, 陈原. 基于机器视觉的碳纤维预浸料表面缺陷检测方法[J]. 纺织学报, 2020, 41(4): 51-57.
LU Hao, CHEN Yuan. Surface defect detection method of carbon fiber prepreg based on machine vision[J]. Journal of Textile Research, 2020, 41(4): 51-57.
[6] TAN J, LI L, WANG Y, et al. The quality detection of surface defect in dispensing dack-end based on HALCON[C]// 2016 International Conference on Cybernetics, Robotics and Control (CRC). Hongkong: IEEE, 2016: 95-98.
[7] 黄露, 夏军勇, 吴庆华, 等. 基于遗传算法与二维最大熵的编织袋缺陷检测[J]. 轻工机械, 2021, 39(5): 69-73,78.
HUANG Lu, XIA Junyong, WU Qinghua, et al. Woven bag defect detection based on genetic algorithm and two-dimensional maximum entropy[J]. Light Industry Machinery, 2021, 39(5): 69-73,78.
[8] YAO M H, LI J, WANG X B. Solar cells surface defects detection using RPCA method[J]. Chinese Journal of Computers, 2013, 36(9): 1943-1952.
[9] 董亚涵, 李永强, 李鹏鹏, 等. 基于改进凸包算法的树冠轮廓点提取与体积计算[J]. 测绘工程, 2018, 27(8): 66-71.
DONG Yahan, LI Yongqiang, LI Pengpeng, et al. Tree crown outline points extracting and volume calculation based on improved convex hull algorithm[J]. Engineering of Surveying and Mapping, 2018, 27(8): 66-71.
[10] LI B, YAN H, WANG Z, et al. Algorithm of convex hull generation for point sets based on sorted coordi-nates[J]. Science of Surveying and Mapping, 2017, 42(2): 14-17.
[11] 高晨, 张亚军. 基于凸包算法的指尖识别方法[J]. 北京化工大学学报(自然科学版), 2017, 44(2): 70-75.
doi: 10.13543/j.bhxbzr.2017.02.011
GAO Chen, ZHANG Yajun. Fingertip recognition based on a convex hull algorithm[J]. Journal of Beijing University of Chemical Technology(Natural Science Edition), 2017, 44(02): 70-75.
[12] 毛伟生, 李林升, 周文一, 等. 基于小波阈值与区域分裂合并的锂电池极片缺陷检测方法[J]. 国外电子测量技术, 2022, 41(8): 46-53.
MAO Weisheng, LI Linsheng, ZHOU Wenyi, et al. Defect detection method of lithium battery pole piece based on wavelet threshold and region splitting merging[J]. Foreign Electronic Measurement Technology, 2022, 41(8): 46-53.
[1] CHEN Yufan, ZHENG Xiaohu, XU Xiuliang, LIU Bing. Machine vision-based defect detection method for sewing stitch traces [J]. Journal of Textile Research, 2024, 45(07): 173-180.
[2] ZHU Lingyun, WANG Chenyu, ZHAO Yueying. Detection of fabric surface defects based on multi-metric-multi-model image voting [J]. Journal of Textile Research, 2024, 45(06): 89-97.
[3] YANG Jinpeng, JING Junfeng, LI Jiguo, WANG Yuanbo. Design of defect detection system for glass fiber plied yarn based on machine vision [J]. Journal of Textile Research, 2024, 45(05): 193-201.
[4] WANG Zhenhua, ZHANG Zhouqiang, ZAN Jie, LIU Jianghao. Fabric defects detection algorithm based on multi-scale Laws texture energy and low-rank decomposition [J]. Journal of Textile Research, 2024, 45(04): 96-104.
[5] YAN Benchao, PAN Ruru, ZHOU Jian, WANG Lei, WANG Xiaohu. Real-time detection of fabric defects based on use of improved Itti salient model [J]. Journal of Textile Research, 2023, 44(07): 95-102.
[6] FU Han, HU Feng, GONG Jie, YU Lianqing. Defect reconstruction algorithm for fabric defect detection [J]. Journal of Textile Research, 2023, 44(07): 103-109.
[7] LI Yang, PENG Laihu, LI Jianqiang, LIU Jianting, ZHENG Qiuyang, HU Xudong. Fabric defect detection based on deep-belief network [J]. Journal of Textile Research, 2023, 44(02): 143-150.
[8] WANG Bin, LI Min, LEI Chenglin, HE Ruhan. Research progress in fabric defect detection based on deep learning [J]. Journal of Textile Research, 2023, 44(01): 219-227.
[9] ZHENG Zhaolun, LU Yujun. Dual-algorithm for fabric defect detection based on singular value decomposition [J]. Journal of Textile Research, 2022, 43(11): 59-67.
[10] LÜ Wentao, LIN Qiqi, ZHONG Jiaying, WANG Chengqun, XU Weiqiang. Research progress of image processing technology for fabric defect detection [J]. Journal of Textile Research, 2021, 42(11): 197-206.
[11] ZHU Lei, REN Mengfan, PAN Yang, LI Botao. Fabric defect detection based on similarity location and superpixel segmentation [J]. Journal of Textile Research, 2020, 41(10): 58-66.
[12] ZHOU Wenming, ZHOU Jian, PAN Ruru. Yarn-dyed fabric defect detection based on context visual saliency [J]. Journal of Textile Research, 2020, 41(08): 39-44.
[13] YANG Enjun, LIAO Yihui, LIU Andong, YU Li. Detection for fabric defects based on low-rank decomposition [J]. Journal of Textile Research, 2020, 41(05): 72-78.
[14] LU Hao, CHEN Yuan. Surface defect detection method of carbon fiber prepreg based on machine vision [J]. Journal of Textile Research, 2020, 41(04): 51-57.
[15] JING Junfeng, ZHANG Junyang, ZHANG Huanhuan, SU Zebin. Defect detection on surface of draw texturing yarn packages in gradient space [J]. Journal of Textile Research, 2020, 41(02): 44-51.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!