基于逆投影变换的纱筒纱线余量检测算法
Yarn Bobbin Margin Detection Algorithm Based on Inverse Perspective Transformation
摘要: 纱筒纱线余量检测是纺织行业自动化生产过程中的重要一环,针对目前纱线余量检测算法精度低,本文提出一种基于逆投影变换的纱筒纱线余量检测算法。首先提取纱筒内轮廓,对图像滤波,设计曲率均值高斯卷积核对图像卷积后分割提取纱筒内筒轮廓,然后提取纱筒外轮廓,对纱筒正面区域进行粗分割,选择正面区域轮廓上曲率平稳点建立混合贝塞尔曲线拟合模型,拟合得到纱筒正面区域外轮廓。然后对纱筒图像投影效应进行建模分析,选择纱筒外轮廓上的四个点作为变换基准点,求解逆投影变换矩阵,实现纱筒图像的透视矫正,最后根据制定的纱筒纱线余量计算准则计算得到纱筒纱线余量。在自主搭建的检测平台上使用本文方法进行实验,实验结果证明纱线余量的检测精度在8%以内,满足实际生产要求,为纺织产业自动化生产提供一定的依据。
Abstract: Yarn margin detection is an important part of the automated production process in the textile industry. In view of the low accuracy of the current yarn margin detection algorithm, this paper proposes a yarn margin detection algorithm based on inverse perspective transformation. Firstly, the inner contour of the bobbin is extracted and the image is filtered. The curvature mean Gaussian convolution kernel is designed to segment and extract the inner contour of the bobbin after image convolution. Then the outer contour of the bobbin yarn is extracted and the front area of the bobbin is roughly segmented. The curvature stationary point on the contour of the front area is selected to establish a mixed Bezier curve fitting model, and the outer contour of the front area of the bobbin yarn is fitted. Then the perspective effect of bobbin image is modeled and analyzed. Four points on the outer contour of the bobbin are selected as the transformation reference points, and the inverse perspective transformation matrix is solved to realize the perspective correction of the bobbin image. Finally, the yarn margin is calculated according to the established yarn margin calculation criterion. Experiments are carried out using this method on the self-built detection platform. The experimental results show that the detection accuracy of yarn margin is within 8%, which meets the actual production requirements and provides a certain basis for the automatic production of textile industry.
文章引用:王宏鹏, 王俊茹, 汝欣, 史伟民. 基于逆投影变换的纱筒纱线余量检测算法[J]. 运筹与模糊学, 2023, 13(2): 1218-1231. https://doi.org/10.12677/ORF.2023.132125

参考文献

[1] Chang, Y.P. (2018) Analysis and Development Strategy of Chinese Textile Industry. China Textile & Apparel Press, Beijing, 10-12.
[2] Pilu, M. (2001) Extraction of Illusory Linear Clues in Perspectively Skewed Documents. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Kauai, 8-14 December 2001, 363- 368.
[3] Cai, G.R., Li, S.Z. and Wu, Y.D. (2013) A Perspective Invariant Image Matching Algorithm. Acta Aijtomatica Sinica, 39, 1053-1061. [Google Scholar] [CrossRef
[4] Huang, S.H., Yin, J.P. and Zhu, E. (2012) A Rectification Method Based on Local Perspective Transformation for PDF417 Barcode upon Cylinder Side Surface. Computer Engineering & Science, 34, 93-97.
[5] Underwood, D.G. and Chen, W.J. (1986) Robot Technology in Textile Industry. Foreign Textile Technology: Textile, No. 7, 42-46.
[6] Miao, L.G. (2009) A Document Image Perspective Correction Algorithm Based on Morphology. Journal of Optoelectronics Laser, 20, 1262-1266.
[7] Liang, J., Daniel, D. and David, D. (2008) Geometric Rectification of Camera-Captured Document Images. IEEE Transactions on Pattern Analysis and Machine Intelligence, 30, 591-605. [Google Scholar] [CrossRef
[8] Wang, Z.X. (2001) Discussion on “Research on Perspective Transformation”. Journal of Computer Aided Design and Graphics, No. 12, 1148-1149.
[9] Ding, Z., Tong, W.Q. and Zhao, J. (2014) Face Pose Estimation Algorithm Based on Three-Point Perspective. Journal of East China Normal University (Natural Science Edition), No. 4, 43-53+61.
[10] Ding, W.L., Wang, M.K., Gu, C. and Wang, W.F. (2017) A Fast Correction Method for Multi-Target QR Code Images. Acta Optics, 37, 106-114. [Google Scholar] [CrossRef
[11] Faugeras, O.D. (1995) Stratification of Three-Dimensional Vision: Projective, Affine, and Metric Representation. Journal of the Optical Society of America A, 12, 465-484. [Google Scholar] [CrossRef
[12] Shapiro, L.G. and Stockman, G.C. (2001) Computer Vision. Prentice Hall, London.
[13] Sun, S.H. (1995) Perspective Transformation Matrix and Three-Point Perspective. Journal of Hunan University (Natural Science Edition), No. 5, 95-100.
[14] Liu, X.W., Tao, J. and Xu, H.W. (2018) Research on AGV Trajectory Planning Based on Third-Order Bezier Curve. Industrial Control Computer, 31, 113-114.
[15] Yang, J.L. and Gao, M.F. (2011) A QR Code Preprocessing Method. Computer Engineering, 37, 218-220.
[16] Zeng, F.F. and Duan, Y.B. (2016) A Fast Correction Method for Warped Document Images in Complex Layout. Computer Applications and Software, 33, 172-175+286.
[17] Chen, W.B., Yang, G.B. and Feng, L. (2012) A Low-Complexity Image Preprocessing Method for QR Code Recognition. Journal of Hunan University (Natural Science Edition), 39, 93-97.
[18] Sun, A.D., Sun, Y., Liu, C.X., et al. (2007) The QR-Code Reorganization in Illegible Snapshot Taken by Mobile Phone. Proceedings of International Conference on Computational Science and Its Applications, Vol. 37, 218-220. [Google Scholar] [CrossRef
[19] Xiao, X., Liu, X.M. and Wang, Y.K. (2007) Research on Cor-rection and Localization Methods for QR Code Images. Computer Science, No. 11, 217-219.