System and method for detecting micro defects on surface of silver-plated metal surface based on multi-direction illumination
Through multi-directional lighting and image processing technology, the problems of low manual detection accuracy and slow speed in metal silver-plated surface detection are solved, and high-precision and fast defect detection is achieved, which is suitable for modern assembly line production.
Patent Information
- Application Number
- CN202410668976.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-08-27
AI Technical Summary
The existing technology relies on manual inspection in the inspection of silver-plated metal surfaces, resulting in low inspection accuracy, slow speed, long time consumption and damage to the metal surface. It is unable to effectively detect small defects and has insufficient inspection solutions to meet the needs of modern assembly line production.
A micro-defect detection system on the silver-plated metal surface based on multi-directional lighting is adopted, including a robotic arm positioning module, a multi-region programmable ring LED lighting module and an industrial camera, through image processing algorithms such as partitioned adaptive Fourier transform and light intensity calibration. , to achieve high-precision detection of silver-plated surfaces.
It improves the detection accuracy and speed, can effectively detect tiny defects on the silver-plated metal surface, reduces misjudgments, is suitable for modern assembly line production, and reduces manpower investment and detection cycle.
Smart Images

Figure CN118549439A
Abstract
Description
Technical Field
[0001] The invention relates to a metal silver-plated surface defect detection technology, in particular to a metal silver-plated surface surface minute defect detection system and method based on multi-directional lighting. Background Art
[0002] Metals have good electrical and thermal conductivity, high strength, corrosion resistance, and good plasticity. Therefore, metals are often the main components of many products and structures, including aircraft, vehicles, bridges, buildings, pipelines, electronic equipment, etc. The production of metal workpieces is a complex process with multiple factors coupled, in which the design of production equipment, operating environment, and improper operation methods will affect the surface quality of the workpiece. The produced metal workpieces may have various defects, which will affect the strength and fatigue performance of the workpiece. Severe metal defects may even affect the safe operation and product life of related metal products. Therefore, timely detection and analysis of defects in metal workpieces during the production process is an important step to improve production quality and workpiece reliability.
[0003] At present, the detection of defects on the silver-plated surface of metal in factories mostly relies on the human eye, and can only roughly detect and classify the surface defects of the silver-plated surface, that is, only the most obvious largest defect in the defect image is detected, while small defects are ignored. At the same time, the detection accuracy will become lower and lower as the workers' working hours increase. In order to facilitate observation, the metal workpiece needs to be removed from the running water. Then this process is not only time-consuming, but may also cause irreversible damage to the silver-plated surface of the metal. Therefore, traditional manual detection methods are not applicable in modern production. These methods require a lot of manpower input, high labor intensity, and long inspection cycles, resulting in low production efficiency. In the fast-paced modern industrial production, it is necessary to seek faster detection solutions. Summary of the invention
[0004] The main purpose of the present invention is to provide a system and method for detecting tiny defects on the surface of metal silver-plated surfaces based on multi-directional lighting, which overcomes the defects of the above-mentioned manual detection, improves the detection accuracy and detection speed, and is suitable for modern assembly line production.
[0005] The technical solution to achieve the purpose of the present invention is: a metal silver-plated surface micro-defect detection system based on multi-directional illumination, comprising:
[0006] The robot positioning module is used to realize the positioning of the camera on each silver-plated surface;
[0007] A lighting module, used to provide multi-directional lighting conditions for the system;
[0008] An imaging module, used to collect images of the silver-plated surface to be inspected;
[0009] The main control module provides an operable human-computer interaction interface to control the operation of the entire system.
[0010] Furthermore, the robot positioning module is a four-axis robot with 4 degrees of freedom, one axis rotation angle of ±90°, two axis rotation angle of ±143°, z-axis travel of 180mm, and R-axis rotation range of ±1080°. It can be accurately positioned on each metal silver-plated surface through programming.
[0011] Furthermore, the lighting module is a multi-zone programmable ring-shaped LED blue light source with a wavelength of 470nm. The lighting is performed according to the partitions, presenting a light and dark contrast due to its own texture structure and the depth of defects. For the texture structure of the silver-plated surface, the light source is controlled by program to achieve 8-zone lighting, ensuring that the lighting intensity in each direction on the silver-plated surface is the same.
[0012] Furthermore, the imaging module is mainly composed of an industrial camera, a telecentric lens and a camera bracket. The industrial camera is a black and white camera with a resolution of 2448*2048, and is equipped with a telecentric lens with a working distance of 90mm.
[0013] Furthermore, the main control module includes an interactive interface, a signal control module and an image processing module; the interactive interface is used to realize the access of detection results, signal control and modification of image processing algorithm parameters; the signal control module is used to realize the control of camera signals, light source signals and robot arm positioning; the image processing module is used to realize calibration, positioning, fusion and detection; wherein,
[0014] The calibration steps are as follows: by collecting images of the whiteboard illuminated in 8 directions, the grayscale values of the 8 images are compared to calculate the average total grayscale value, and then the grayscale values of the images collected in each direction are calibrated to achieve light intensity calibration in 8 directions;
[0015] The positioning steps are: determine the rectangular ROI area through morphological gradient, binarization, contour search, and contour screening;
[0016] The fusion step is: after the light intensity of the images captured by the camera with different directions of illumination is calibrated, image fusion is performed to highlight the defects, so as to facilitate the subsequent defect analysis and effectively avoid missed detection and false detection;
[0017] The detection steps are: combining partition adaptive Fourier transform and contour screening.
[0018] The present invention also provides a method for detecting micro-defects on the surface of a metal silver-plated surface based on multi-directional illumination. The method is implemented based on the aforementioned detection system, and the method comprises:
[0019] (1) Light intensity calibration process: grayscale value analysis is performed on the whiteboard images captured by the camera under different directions of illumination; grayscale values are calculated after the whiteboard images under eight directions of illumination are collected, and the light intensity calibration coefficient for each direction is calculated after the average of the eight directions of illumination is obtained, so as to facilitate subsequent light intensity calibration;
[0020] (2) according to the calibration coefficient obtained in step (1), multiply the images of the metal silver-plated surface collected from the eight illumination directions by the corresponding light intensity calibration coefficient to obtain images with the same light intensity;
[0021] (3) Locating the silver-plated surface according to the inherent shape characteristics of the metal silver-plated surface to obtain the rectangular area ROI that needs to be detected;
[0022] (4) Image fusion process: gradient fusion of images of the silver-plated metal surface illuminated from eight directions;
[0023] (5) Performing a partitioned adaptive Fourier transform on the fused image ROI to eliminate the influence of the background texture of the metal silver-plated surface;
[0024] (6) performing defect detection on the partitioned image obtained in step (5);
[0025] (7) The obtained defects are marked on the partitions without Fourier transformation, and then spliced into a fused ROI image.
[0026] Compared with the prior art, the significant advantages of the present invention are as follows: the present invention uses an industrial digital camera to collect images of the silver-plated metal surface on the assembly line, and uses image processing methods to detect and mark the defective areas on the silver-plated surface by utilizing the light and dark changes caused by the defects on multi-directional lighting. The defect detection algorithm of the present invention uses a partitioned adaptive Fourier transform, which can effectively eliminate the influence of the inherent texture of the metal silver-plated surface. At the same time, the multi-directional illumination fusion method can effectively avoid the misjudgment of defect analysis caused by unclear defects, stains, etc. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a schematic diagram of the overall system architecture.
[0028] Figure 2 This is a schematic diagram of the camera light source bracket.
[0029] Figure 3 It is a schematic diagram of a ring-shaped programmable LED lighting source.
[0030] Figure 4 It is the operation interface image of the main control program.
[0031] Figure 5 : are the surface images of the silver-plated surface illuminated in 8 directions captured by the camera in the embodiment.
[0032] Figure 6 These are the original image and 1:1 enlarged image of the same silver-plated surface illuminated from two directions in the embodiment.
[0033] Figure 7 It is a silver-plated surface ROI image obtained by merging the eight-directional illumination images of the same silver-plated surface in the embodiment.
[0034] Figure 8 It is an image of defects detected and marked by the defect detection algorithm in the embodiment. DETAILED DESCRIPTION
[0035] like Figure 1 As shown, the inverter housing silver-plated surface defect detection system based on multi-directional lighting of the present invention comprises:
[0036] The robot positioning module is used to realize the positioning of the camera on each silver-plated surface;
[0037] Lighting module, consisting of a multi-zone programmable ring LED light source and a light source controller, used for lighting during inspection;
[0038] Imaging module, the main body is an industrial camera and a telecentric lens;
[0039] The main control module includes an image processing program and a signal control program, and is used to control the lighting module, the imaging module and the robotic arm.
[0040] The robotic arm positioning module is a four-axis robotic arm with 4 degrees of freedom, one-axis rotation angle of ±90°, two-axis rotation angle of ±143°, z-axis stroke of 180mm, and R-axis rotation range of ±1080°, providing conditions for positioning and photographing the metal silver-plated surface; it is accurately positioned on each metal silver-plated surface through programming to ensure the accuracy of photographing the silver-plated surface.
[0041] The lighting module is composed of a zoned programmable annular blue LED light source with a wavelength of 470nm and a light source controller. Various different light sources were tested based on the reason why the silver-plated surface defects produce light and dark contrast during imaging when illuminated from different directions. Finally, the 470nm blue light source can significantly increase the contrast between the surface defects and the intact area of the silver-plated surface compared with other light sources. A ring-shaped LED with a diffuser ensures uniform illumination, and the designated area of the ring-shaped LED is illuminated through the control of the power controller and the computer program. The use of the diffuser combined with low-angle illumination instead of direct illumination of the metal silver-plated surface greatly reduces the impact of reflected light on imaging. Figure 3 It is a schematic diagram of a ring-shaped programmable LED lighting source.
[0042] The imaging module includes a black and white industrial camera, and a telecentric lens with a working distance of 90mm can effectively eliminate image distortion. The acquisition device can acquire high-definition images with a resolution of 2448*2048, and the spatial resolution can reach 0.01mm / pixel. At the same time, with an adjustable camera bracket, the position and working distance of the camera can be adjusted to meet our imaging standards. Figure 2 This is a schematic diagram of the camera light source bracket.
[0043] The main control program can be operated on the UI interface and consists of two parts: signal control and image processing. The interactive interface can realize the access of detection results, signal control and modification of image processing algorithm parameters. Signal control can control the switch and brightness of the lighting module, the switch of the camera and the movement of the robotic arm. The image processing algorithm program includes the following steps:
[0044] (1) Light intensity calibration process: grayscale value analysis is performed on the whiteboard images captured by the camera under different lighting directions. Since lighting from different directions may have different lighting effects, grayscale values are calculated after the whiteboard images under lighting from eight directions are collected, and the light intensity calibration coefficient for each direction is calculated after the average of the lighting from the eight directions is obtained, so as to facilitate subsequent light intensity calibration.
[0045] (2) Based on the calibration coefficient obtained in (1), the images of the metal silver-plated surface collected from the eight lighting directions are multiplied by the corresponding light intensity calibration coefficient to obtain images with the same light intensity.
[0046] (3) The silver-plated surface is located according to the rectangular shape feature of the metal silver-plated surface, and the region of interest (ROI) to be detected is obtained.
[0047] (4) Image fusion process: The image gradient of the silver-plated metal surface illuminated from 8 directions is fused.
[0048] (5) Performing a partitioned adaptive Fourier transform on the ROI of the fused image to eliminate the influence of the background texture of the metal silver-plated surface.
[0049] (6) Perform defect detection on the partitioned image obtained in (5).
[0050] (7) The obtained defects are marked on the partitions without Fourier transformation, and then spliced into a fused ROI image.
[0051] The detailed steps of (3) are:
[0052] (31) Perform morphological gradient processing on the image to obtain a gradient map.
[0053] (32) Perform edge detection on the gradient image to obtain a binary image of the image.
[0054] (33) The contour of the binary image is searched, and the contour of the silver-plated surface is screened out according to the perimeter of the contour to obtain the ROI.
[0055] The detailed steps of (4) are:
[0056] (41) The image is subjected to background homogenization processing to obtain an image with a uniform background.
[0057] (42) Perform morphological gradient processing on the image to obtain a gradient map.
[0058] (43) Gradient fusion is performed on the obtained gradient map to obtain an image after 8-directional illumination fusion.
[0059] The detailed steps of (5) are:
[0060] (51) Fill the edge of the ROI area so that the image width and height can divide the number of partitions.
[0061] (52) Perform Fourier transform on the partitioned image to obtain its amplitude image.
[0062] (53) The amplitude image is adaptively grayscaled to generate a corresponding mask image.
[0063] (54) The mask image is multiplied by the Fourier transformed image, and then an inverse Fourier transform is performed to obtain a partitioned image without background stripes.
[0064] The detailed steps of (6) are:
[0065] (61) Perform median filtering on the image.
[0066] (62) Perform edge detection and morphological processing on the filtered image to obtain its binary image.
[0067] (63) Perform contour search on the binary image to find defects.
[0068] Hereinafter, the device and method for detecting surface defects of the silver-plated surface of an inverter housing based on multi-directional lighting according to the present invention will be described in conjunction with the accompanying drawings.
[0069] First in Figure 4Select the test result saving path 101 on the operation interface; turn on the camera 201; the captured image will be displayed in area 202; adjust the position of the robot arm 301 so that the metal silver-plated surface can be fully imaged and the image is clear; adjust the switches of different areas of the light source 401 to collect images of different areas of illumination; obtain the fused image 502 through the detection algorithm 501, and then obtain the final defect detection image 503 through detection, adjust the algorithm parameters 501 according to the detection results and detection standards so that the detection meets the requirements, and then it can be put into production line.
[0070] This embodiment is one of many test results of this test system. According to the metal silver plating standard, the size of the silver plating surface is determined to be 13 mm wide and 17 mm long. Figure 5 The original images collected by the camera with illumination in eight directions are: Figure 6 The original image and the 1:1 local magnified image are illuminated in two directions. We can clearly see that the defects are displayed differently under different lighting directions. Figure 7 is the image after fusion of 8 images. Figure 8 As for the detection results, the system can effectively detect tiny defects in the target area, and can effectively filter out the negative effects caused by processing textures, stains, etc. on the surface of the metal silver-plated surface.
Claims
1. A metal silver-plated surface micro-defect detection system based on multi-directional lighting, characterized in that: include: The robot positioning module is used to realize the positioning of the camera on each silver-plated surface; A lighting module, used to provide multi-directional lighting conditions for the system; An imaging module, used to collect images of the silver-plated surface to be inspected; The main control module is used to provide an operable human-computer interaction interface and control the operation of the entire system.
2. The metal silver-plated surface micro-defect detection system based on multi-directional illumination according to claim 1 is characterized in that: The robotic arm positioning module is a four-axis robotic arm with 4 degrees of freedom, one axis rotation angle of ±90°, two axis rotation angle of ±143°, z-axis travel of 180mm, and R-axis rotation range of ±1080°. It can be accurately positioned on each metal silver-plated surface through programming.
3. The metal silver-plated surface micro-defect detection system based on multi-directional illumination according to claim 1 is characterized in that: The lighting module is a multi-zone programmable annular LED blue light source with a wavelength of 470nm. It is illuminated according to the partitions to present light and dark contrast due to its own texture structure and the depth of defects. According to the texture structure of the silver-plated surface, the light source is controlled by program to achieve 8-zone lighting to ensure that the lighting intensity in each direction on the silver-plated surface is the same.
4. The metal silver-plated surface micro-defect detection system based on multi-directional illumination according to claim 1 is characterized in that: The imaging module is mainly composed of an industrial camera, a telecentric lens and a camera bracket. The industrial camera is a black and white camera with a resolution of 2448*2048, and is equipped with a telecentric lens with a working distance of 90mm.
5. The metal silver-plated surface micro-defect detection system based on multi-directional illumination according to claim 1 is characterized in that: The main control module includes an interactive interface, a signal control module and an image processing module; the interactive interface is used to realize the access of detection results, signal control and modification of image processing algorithm parameters; the signal control module is used to realize the control of camera signals, light source signals and robot arm positioning; the image processing module is used to realize calibration, positioning, fusion and detection; wherein, The calibration steps are as follows: by collecting images of the whiteboard illuminated in 8 directions, the grayscale values of the 8 images are compared to calculate the average total grayscale value, and then the grayscale values of the images collected in each direction are calibrated to achieve light intensity calibration in 8 directions; The positioning steps are: determine the rectangular ROI area through morphological gradient, binarization, contour search, and contour screening; The fusion steps are: after the light intensity of the images captured by the camera with different directions of illumination is calibrated, image fusion is performed to highlight the defects; The detection steps are: combining partition adaptive Fourier transform and contour screening.
6. A method for detecting micro-defects on the surface of a metal silver-plated surface based on multi-directional illumination, the method being implemented based on the system of claim 1, characterized in that: Detection methods include: (1) Light intensity calibration process: grayscale value analysis is performed on the whiteboard images captured by the camera under different directions of illumination; grayscale values are calculated after the whiteboard images under eight directions of illumination are collected, and the light intensity calibration coefficient for each direction is calculated after the average of the eight directions of illumination is obtained; (2) according to the calibration coefficient obtained in step (1), multiply the images of the metal silver-plated surface collected from the eight illumination directions by the corresponding light intensity calibration coefficient to obtain images with the same light intensity; (3) Locating the silver-plated surface according to the inherent shape characteristics of the metal silver-plated surface to obtain the rectangular area ROI that needs to be detected; (4) Image fusion process: gradient fusion of images of the silver-plated metal surface illuminated from eight directions; (5) Performing a partitioned adaptive Fourier transform on the fused image ROI to eliminate the influence of the background texture of the metal silver-plated surface; (6) performing defect detection on the partitioned image obtained in step (5); (7) The obtained defects are marked on the partitions without Fourier transformation, and then spliced into a fused ROI image.
7. The method according to claim 6, characterized in that The detailed steps of step (3) are as follows: (31) Performing morphological gradient processing on the image to obtain a gradient map; (32) performing edge detection on the gradient image to obtain a binary image of the image; (33) The contour of the binary image is searched, and the contour of the silver-plated surface is screened out according to the perimeter of the contour to obtain the ROI.
8. The method according to claim 6, characterized in that The detailed steps of step (4) are as follows: (41) performing background homogenization processing on the image to obtain an image with a uniform background; (42) performing morphological gradient processing on the image to obtain a gradient map; (43) Gradient fusion is performed on the obtained gradient map to obtain an image after 8-directional illumination fusion.
9. The method according to claim 6, characterized in that The detailed steps of step (5) are as follows: (51) Fill the edge of the ROI area so that the image width and height can divide the number of partitions; (52) performing Fourier transform on the partitioned image to obtain its amplitude image; (53) performing adaptive grayscale calculation on the amplitude image to generate a corresponding mask image; (54) The mask image is multiplied by the Fourier transformed image, and then an inverse Fourier transform is performed to obtain a partitioned image without background stripes.
10. The method according to claim 6, characterized in that The detailed steps of (6) are: (61) Performing median filtering on the image; (62) performing edge detection and morphological processing on the filtered image to obtain a binary image; (63) Perform contour search on the binary image to find defects.
