Research on Centroid Tracking Algorithm for Oil Stain Defects on the Surface of Silk Cake
DOI:
https://doi.org/10.54097/y19vdc35Keywords:
Silk cake defect, Oil pollution detection, Centroid trackingAbstract
As the basic material for the production of specific fabrics, the yarn quality of chemical fiber cake directly affects the fabric quality. The problem of oil on the surface of silk cake will lead to uneven yarn coloring, which will affect the quality of fabric. In order to solve this problem, a method of detecting oil stain defect of textile silk cake based on graph centroid tracking algorithm is proposed in this paper. In this method, the silk cake image is obtained, downsampled and gray-scale processed, and then Gaussian filtering and binarization are applied to enhance the image clarity. Next, the edge outline and its minimum external rectangle are drawn, and a mask image is constructed to highlight the oil area. By setting the oil pollution pixel range and processing the image after mask, log operator and expansion processing are used to enhance the oil pollution characteristics. Finally, the contours are extracted and the centroid coordinates are calculated. By comparing with the vertex coordinates of the minimum external rectangle, the oil pollution is automatically located. The method has high detection accuracy and short time, and can effectively solve the problem of oil stain defect detection of textile silk cake.
Downloads
References
[1] Ding L, Goshtasby A. On the canny edge detector[J]. Pattern Recognition, 2021, 34(3): 721-725.
[2] Guo Z, Zhang L, Zhang D. Rotation invariant texture classification using lbp variance (LBPV) with global matching[J]. Pattern Recognition, 2020, 43(3): 706-719.
[3] Schuldt C, Laptev I, Caputo B. Recognizing human actions: A local svm approach[C]//Proceedings of the 17th International Conference on Pattern Recognition, 2024. ICPR 2024. IEEE, 2024, 3: 32-36.
[4] Yang Ao, Hou Hongling, Zhu Kangkai, Li Xiangyao & Zhao Yandi. (2025). Surface defect detection of hot rolled strip steel based on RM-YOLOv8. Forging Technology (02), 103-114. doi:10.13330/j.issn.1000-3940.2025.02.014.
[5] Wang X, Han T X, Yan S. An hog-lbp human detector with partial occlusion handling[C]//2019 IEEE 12th International Conference on Computer Vision. IEEE, 2019: 32-39.
[6] Wu Z, Shen C, Van Den Hengel A. Wider or deeper: Revisiting the resnet model for visual recognition[J]. Pattern Recognition, 2022, 90: 119-133.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Journal of Computing and Electronic Information Management

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.








