SCIENCEBRING   /   HAMBURG, GERMANY
International Journal of Advance Scientific Research SCIENTIFIC IDEAS. INTERNATIONAL PERSPECTIVES.
ISSN 2750-1396 12 issues per year · Monthly
Crossref DOI: 10.37547/ijasr

Search the Journal

Articles Published:

Autofocus and Closed-Loop Backlight Control for A Machine-Vision Knitted Fabric Inspection Station: Choice of Focus Measure, Search Strategy and Integral Gain

Vol. 6 No. 11 (2026): Volume 06 Issue 11 Pages 131-140
DOI 10.37547/ijasr-06-11-09 ↗
RESEARCH OVERVIEW

Abstract

An inspection camera can only find small faults in knitted fabric if the image is sharp and its brightness stays in the range for which the detector was set. On an inspection machine, both conditions change during a shift: fabric of a different thickness moves the surface out of the depth of field, and the transmission of the fabric and the output of the LED backlight drift. This paper studies two control loops of the knitted fabric inspection station built on an ST-KFIM-01-240 machine: a servo-driven autofocus and an integral controller that sets the LED drive from the mean image brightness. Five focus measures (variance of the Laplacian, Tenengrad, Brenner gradient, normalised variance and the sum-modified Laplacian) were evaluated on backlit single-jersey texture blurred over 51 lens positions at two noise levels. All five peaked within one step of the true focus. At the higher noise level, however, the two Laplacian-based measures became multimodal (on average 2.0–2.4 local maxima) and their peak-to-background ratio fell to 1.3–1.6. Tenengrad kept a single peak with a ratio of 34. A coarse-to-fine hill-climbing search with a halving step found focus to within 0.5 step in about 10 image evaluations for every gradient-based measure, while a fixed small step stopped 16–38 steps away from focus. For the backlight, a model including the thermal derating of the LED and a step change in fabric transmission showed that the open-loop brightness error reached 0.18 of full scale after the change. An integral controller with gains of 0.2–0.6 per sample held the RMS error at 0.006–0.009 and recovered from the fabric change in 0.8–2.7 s. The recommended configuration is Tenengrad with adaptive hill climbing, refocusing on article change or on a drop in sharpness, and integral brightness control at a gain of about 0.5 per sample, a value well inside the stability limit of the discrete loop.

Keywords

SOURCES & CITATIONS

References

1. Kumar, A. (2008). Computer-vision-based fabric defect detection: A survey. IEEE Transactions on Industrial Electronics, 55(1), 348–363. https://doi.org/10.1109/TIE.2007.896476
2. Ngan, H. Y. T., Pang, G. K. H., & Yung, N. H. C. (2011). Automated fabric defect detection—A review. Image and Vision Computing, 29(7), 442–458. https://doi.org/10.1016/j.imavis.2011.02.002
3. Rasheed, A., Zafar, B., Rasheed, A., Ali, N., Sajid, M., Dar, S. H., Habib, U., Shehryar, T., & Mahmood, M. T. (2020). Fabric defect detection using computer vision techniques: A comprehensive review. Mathematical Problems in Engineering, 2020, Article 8189403. https://doi.org/10.1155/2020/8189403
4. Groen, F. C. A., Young, I. T., & Ligthart, G. (1985). A comparison of different focus functions for use in autofocus algorithms. Cytometry, 6(2), 81–91. https://doi.org/10.1002/cyto.990060202
5. Krotkov, E. (1988). Focusing. International Journal of Computer Vision, 1(3), 223–237. https://doi.org/10.1007/BF00127822
6. Subbarao, M., & Tyan, J.-K. (1998). Selecting the optimal focus measure for autofocusing and depth-from-focus. IEEE Transactions on Pattern Analysis and Machine Intelligence, 20(8), 864–870. https://doi.org/10.1109/34.709612
7. Pertuz, S., Puig, D., & Garcia, M. A. (2013). Analysis of focus measure operators for shape-from-focus. Pattern Recognition, 46(5), 1415–1432. https://doi.org/10.1016/j.patcog.2012.11.011
8. Nayar, S. K., & Nakagawa, Y. (1994). Shape from focus. IEEE Transactions on Pattern Analysis and Machine Intelligence, 16(8), 824–831. https://doi.org/10.1109/34.308479
9. Pizer, S. M., Amburn, E. P., Austin, J. D., Cromartie, R., Geselowitz, A., Greer, T., ter Haar Romeny, B., Zimmerman, J. B., & Zuiderveld, K. (1987). Adaptive histogram equalization and its variations. Computer Vision, Graphics, and Image Processing, 39(3), 355–368. https://doi.org/10.1016/S0734-189X(87)80186-X
10. He, J., Zhou, R., & Hong, Z. (2003). Modified fast climbing search auto-focus algorithm with adaptive step size searching technique for digital camera. IEEE Transactions on Consumer Electronics, 49(2), 257–262. https://doi.org/10.1109/TCE.2003.1209511
11. Schubert, E. F. (2006). Light-emitting diodes (2nd ed.). Cambridge University Press. https://doi.org/10.1017/CBO9780511790546
12. Korabayev, S., Bobojanov, X., Soloxiddinov, J., Inomov, Z., & Boltabayev, S. (2026). Hybrid modeling and digital twin integration for predictive quality control and resource optimization in smart knitted fabric manufacturing. The American Journal of Engineering and Technology, 8(1), 201–211. https://doi.org/10.37547/tajet/Volume08Issue01-19
13. Åström, K. J., & Murray, R. M. (2021). Feedback systems: An introduction for scientists and engineers (2nd ed.). Princeton University Press.
DISCOVER RELATED RESEARCH

Similar Articles

Continue exploring the collection ↗
1-10 of 129