Abstract
Computer vision is an artificial intelligence (AI) subfield that enables computers and systems to extract information from digital photos, movies, and other visual inputs. Detection systems are an important use in industrial production lines. In this paper, an automatic small abnormal object system is designed. First, the author obtains an image devoid of anomalous objects, which is then processed using the Candy filter to produce the standard form. Second, define the primary pattern, sub pattern 1, sub pattern 2, and the deviation between the new image and the original image. Then, we use template matching and background subtraction to identify questionable locations. Finally, live picture features will be compared to original image features. With Candy filter, the precision will be enhanced. The findings of image processing will be transmitted to operate the automatic abnormal removal equipment. The result indicates an accuracy of ~ 90%. The processing time is < 5 s, which has no effect on the production line cycle time.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Keywords
1 Introduction
As a result of the fourth industrial revolution, significant advances have been made in high technology, particularly artificial intelligence. Computer vision is an area of artificial intelligence (AI) that enables computers and systems to extract information from digital images, videos, and other visual inputs [1]. In a range of fields, such as applications for smart navigation [2, 3], biometric data management [4], transportation [5], quality monitoring system, and smart systems [6], image processing applications have been shown to be highly effective.
Visual inspection refers to the examination of products for quality assurance. Visual inspection has also been used to examine the interior and outside of manufacturing plant storage tanks, tanks, pressure vessels, pipes, and other equipment. The vast bulk of visual checks were performed manually. Consequently, the testing cycle is time-consuming and requires specialized personnel. In manual visual inspection, the naked eye is the major factor; nonetheless, the mistake rate is between 20 and 30% [6]. Human variables such as temperament, health, and boredom, etc. Other environmental variables include light, bonding distance, angle of tilt, etc.
Examining too-small objects visually becomes unrealistic and difficult. In order to overcome the shortcomings, automatic testing systems have included camera vision. Image processing technology helps the creation of an intelligent quality monitoring system. Machine vision contributes to several steps of image processing, including image acquisition, pre-processing, segmentation, classification, and warning. The precision of the technique for automatic quality control will be significantly improved. Image processing is an integral component of computing [7]. The development of an algorithm for image processing to monitor and inspect product quality. Histogram, Canny Edge, RGB color filter, HSV color filter, etc. are often the most essential algorithms [7,8,9,10].
Then, a color space is an algebraic representation of a mathematical model used to describe colors in the physical world [7]. Background subtraction method [7, 8] is an image processing and computer vision approach that isolates the foreground (foreground) for further processing (identification object, gesture recognition, motion, etc.). Typically, image areas of interest are in the foreground; consequently, good and precise background separation enables these systems to achieve stability and speed. In the processing steps that follow the pretreatment phase, this background separation technique will be utilized. Separation of background scenes is frequently employed in a variety of fields, including security cameras, object recognition, object gesture recognition, and traffic for counting the number of vehicles [1, 3, 8]. Next, template matching [9, 10] is a digital image processing method that identifies a little image within a large image that is almost identical to the sample image.
The study describes an autonomous quality monitoring system for smartphone panel manufacturing facilities, where manual visual inspection is becoming increasingly burdensome and unproductive. The vision approach combines the concepts of backdrop subtraction and template matching. As following are the panel's technical specifications: The anomalies on the phone’s display panel are smaller than 0.2 mm, the testing period is only 5 s, and the error rate is decreased by around 20% from the actual peak production about 40 percent.
2 Mechanical System Design
2.1 System Requirements
Firstly, the operation diagram is shown as in Fig. 1. Then, the technical staff will set up suitable positions of Camera. Finally, the vision’s principle diagram of an ordinary panel gluing device in Fig. 2.
2.2 Automatic Vision Process
The automatic vision process is introduced in Fig. 3
Step 1: Panel loading.
Robot immediately transfers panel from Tray to Panel Stage (Jig).
Step 2: Plasma surface treatment.
Plasma is utilized to clean the panel surface. Next, a thin coating is adhered to the panel. Robot returns the tray to prepare the subsequent round.
Step 3: After the processing of the panel has been completed. Robot introduces a new panel to the state (jig).
Step 4: Vision processing is comprised of two case.
-
If detecting abnormal, it will be alarm to check the situation of panel. The cleaning processing will be applied in the case of the Reality.
-
Otherwise, the case of Virtuality. Software processing will be supported to remove the error.
3 Proposed Approach
3.1 Technical Requirements
From the mechanical system (see Fig. 4), the vision program will be designed to detect the abnormal with technical requirements as follows (see Fig. 5):
-
Size of abnormal to be detected (requires actual problem): > 0.25 mm (~250 µm).
-
Maximum processing time per image: < 5 s (product’s tact time ~ 5 s/product)
3.2 The Diagram of Control Algorithm
From the original Jig, there are absolutely no disabilities that need to be saved for comparison with subsequent images of Jig in production. The Panels are continuously supplied into the Jig. So, the Jig is possible to get abnormal during the production process. The original Jig will be registered exceptions for traits inherent on the Jig as the position of the holes does not have a fixed size and profile Ø 0.6 and Ø 0.8 mm, scratches are available with fixed size, etc.
There are some suitable methods were used as bellows:
-
Party matching (or Template matching): Jig images without any difference become origin image. Compare the new image with the original. If the comparison value is less than threshold, there is an abnormal.
-
Check position partical: Save the entire position of the air hole on the Jig. New images will identify all objects including abnormal and air holes. Compare each object with previously trained position. If it is not matched with the positions, it’s abnormal.
-
Subtract background: Take the Jig image without abnormal as the original. Subtract each new obtained image to gain the original image will be the black background and abnormal. Catch blob to identify abnormal.
To achieve high accuracy and minimize loss time of confirming suspected abnormal, the paper presented the new method of combining the checking position particle and the subtrack background.
4 Practical Results
After installing the mechanical system and testing the proposed algorithm, abnormal detection rate is with an accuracy of nearly 90% in a short processing time (< 5 s per cycle). The automatic vision process does not affect the overall takt time of the entire production process. Accuracy average in 10 day with 19,054 products is nearly 90% in Fig. 6 and the real images of experimental results in Fig. 7.
5 Conclusions
The paper presents the automatic vision method combining template matching and subtract background. The practical production system improved the quality rate of detection abnormal with the accuracy about 90%. Furthermore, the data of templates will be enhanced because of saving new abnormal samples. The automatic production of panel guarantees the tactile belows 5 s/product and detection of < 0.2 mm abnormal. The vision program is optimized and improved the ability in continuous production mode with big data of samples. Mechanical system combining with vision system is designed successfully. PLC program is applied and communicated correctly with all devices.
References
R.S. Peres, X. Jia, J. Lee, K. Sun, A.W. Colombo, J. Barata, Industrial artificial intelligence in industry 4.0: systematic review, challenges and outlook. IEEE Access 8, 220121–220139 (2020)
T.-V. Dang, N.-T. Bui, Multi-scale fully convolutional network-based semantic segmentation for mobile robot navigation. Electronics 12(3), 1–18 (2023)
T.-V. Dang, N.-T. Bui, Research and design obstacle avoidance strategy for indoor autonomous mobile robot using monocular camera. J. Adv. Transp. (2022)
T.-V. Dang, Smart home management system with face recognition based on arc face model in deep convolutional neural network. J. Robot. Control 3(6), 754–761 (2022)
T.-V. Dang, D.-S. Nguyen, Optimal navigation based on improved A* algorithm for mobile robot, in International Conference on Intelligent Systems and Networks 2023, 18–19 March, Hanoi, Vietnam (2023)
T.-V. Dang, Smart attendance system based on improved facial recognition. J. Robot. Control 4(1), 46–54 (2023)
I. Delibasoglu, Moving object detection method with motion regions tracking in background subtraction. Signal, Image and Video Processing (2023)
S.K. Choudhury, P.K. Sa, S. Bakshi, B. Majhi, Combining background subtraction and convolutional neural network for anomaly detection in pumping-unit surveillance. IEEE Access 4, 6133–6150 (2016)
I.K.A. Murinto, Detection of object changes in low contrast image using template matching method, in Proceedings of the 2nd International Conference on Engineering and Applied Sciences (2nd InCEAS), IOP Conferences Series: Materials Science and Engineering, p. 771 (2020)
S. Sharma, Shape-texture debiased training for robust template matching. Sensors 22, 6658 (2022)
Acknowledgements
This research is funded by Hanoi University of Science and Technology (HUST) under project number T2022-PC-029. The authors express grateful thankfulness to Vietnam-Japan International Institute for Science of Technology (VJIIST), School of Mechanical Engineering, HUST, Vietnam and Shibaura Institute of Technology, Japan.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Viet, D.T., Bui, NT. (2024). Design the Abnormal Object Detection System Using Template Matching and Subtract Background Algorithm. In: Long, B.T., et al. Proceedings of the 3rd Annual International Conference on Material, Machines and Methods for Sustainable Development (MMMS2022). MMMS 2022. Lecture Notes in Mechanical Engineering. Springer, Cham. https://doi.org/10.1007/978-3-031-57460-3_10
Download citation
DOI: https://doi.org/10.1007/978-3-031-57460-3_10
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-57459-7
Online ISBN: 978-3-031-57460-3
eBook Packages: EngineeringEngineering (R0)