A dynamic surface defect optical detection system and method
Through the dynamic surface defect optical detection system, diffuse reflection light source and mobile platform technology are used to solve the detection problems of curved and non-planar workpieces, achieve efficient defect detection, are suitable for workpieces of various shapes, and improve detection compatibility and accuracy.
Patent Information
- Application Number
- CN201811587171.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-12-25
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2038-12-25
AI Technical Summary
Existing surface defect detection technology is difficult to effectively detect curved and non-planar workpieces, especially specular reflections and special-shaped objects, resulting in low detection efficiency and poor compatibility.
Using a dynamic surface defect optical inspection system, including diffuse reflection light source and mobile platform, the position of the object to be tested is adjusted through the motion control module, so that the image acquisition module can completely capture the object to be tested at a large angle, combined with multiple LED light strips and Diffusion plate realizes light source brightness gradient and multi-directional illumination, enhancing the compatibility and accuracy of detection.
It improves defect detection compatibility and detection efficiency for workpieces of different shapes, reduces manual intervention, and enhances detection accuracy and staff work efficiency.
Smart Images

Figure CN109856146B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optical detection, and in particular to a dynamic surface defect optical detection system and method. Background Art
[0002] With the development of industrial technology, people have higher and higher requirements for the appearance of products, and the design of workpieces has become more and more complex. The surface defects of industrial products will have adverse effects on the beauty and usability of the products. Appearance defect detection of parts is an indispensable part of the industrial production process. There are three main methods for existing surface defect detection. First, based on ultrasonic, ray, electromagnetic eddy current and other detection methods, these methods are characterized by low detection efficiency, low accuracy and high environmental requirements; second, manual visual inspection method, which is also a common practice in industrial automation production lines in China. This method has some problems: low detection efficiency, high false detection rate due to factors such as manual fatigue, inability to detect online, and great influence of manual experience and subjective factors. Due to the increase in labor costs, it brings great challenges to industrial production. Third, machine vision detection, this method uses appropriate light sources and image sensors to obtain the surface image of the product, and then uses the corresponding image algorithm to realize non-contact and non-destructive automatic detection technology. At present, the third method is getting more and more attention.
[0003] For surface defect detection, existing surface defect detection based on visual images is mostly only applicable to workpieces with ordinary surfaces that can diffusely reflect. The lighting equipment shines light on the part to be tested at a fixed angle, and part of the light enters the camera after diffuse reflection. Where there are no defects, the grayscale, texture, color and other information on the surface of the object are natural. The presence of defects will destroy the consistency of diffuse reflection, and the grayscale transformation between the defective area and the background will jump, so the defects can be detected. However, for mirror reflection, if a parallel light source is used, the irradiation light source and the camera system must be at a fixed angle to form an image. For example Figure 1 As shown, the direction of the light source, the normal vector direction of the surface to be measured, and the position of the camera must satisfy the law of reflection. 1 is the irradiation light source, 2 is the industrial CCD camera, 3 is the normal direction mark of the surface to be measured, and 4 is the surface to be measured containing the defective part. Camera 2 must be on a fixed path to capture the defects of the surface to be measured. Due to mirror emission, when the light source irradiates the surface, mirror emission is formed. The camera must be on a fixed emission light path to capture the defect image of the surface. Figure 2 As shown in the figure, for non-planar and irregular objects, especially spherical objects, the camera needs to be on different paths for different points. Under this condition, the camera position is difficult to determine and detection cannot be performed, where 1 is the illumination light source, 2 is the industrial CCD camera, and 4 is the convex surface to be tested. Summary of the invention
[0004] In order to solve the above technical problems, an object of the present invention is to provide a detection system and method that can effectively detect surface defects of curved workpieces.
[0005] On the one hand, an embodiment of the present invention provides a dynamic surface defect optical detection system, comprising an image acquisition module, an image processing module, a diffuse reflection light source and a conveying device for conveying an object to be detected, wherein the conveying device comprises a mobile platform and a motion control module for controlling the movement of the mobile platform, the image processing module is connected to the image acquisition module and the motion control module respectively, and the diffuse reflection light source is arranged above the mobile platform;
[0006] The motion control module is used to control the moving speed of the mobile platform according to the control instruction sent by the image processing module, so that the object to be measured enters the illumination area of the diffuse reflection light source;
[0007] The image acquisition module is used to collect image information of the object to be measured when it passes through the illumination area, and send the collected image information to the image processing module;
[0008] The image processing module is used to obtain and send control instructions to the motion control module according to the image information, and to process and analyze defects according to the image information.
[0009] Furthermore, the diffuse reflection light source is arched across the moving platform, and the object to be measured enters the illumination area from the left side of the diffuse reflection light source and leaves the illumination area from the right side of the diffuse reflection light source.
[0010] Furthermore, the cross section of the diffuse reflection light source is semicircular or parabolic.
[0011] Furthermore, the image acquisition module includes a first camera device and a second camera device, wherein the first camera device is installed on the left side of the diffuse reflection light source, and the second camera device is installed on the right side of the diffuse reflection light source.
[0012] Furthermore, the diffuse reflection light source includes a plurality of light strip modules, each of the light strip modules includes a series-connected light strip and a current driving unit for controlling the brightness of the series-connected light strip, and each of the series-connected light strips is sequentially and parallelly arranged across the moving platform.
[0013] Furthermore, the diffuse reflection light source also includes a diffusion plate, and protrusions of different heights are provided on the inner side of the diffusion plate. The light emitted by the series-connected light strips passes through the diffusion plate and then irradiates toward the moving platform.
[0014] Furthermore, the brightness of the series light strips increases or decreases sequentially from the left side of the diffuse reflection light source to the right side of the diffuse reflection light source.
[0015] Furthermore, the series light strip is composed of a plurality of LED lights connected in series, and the LED lights are any one of white LED lights, red LED lights and blue LED lights.
[0016] On the other hand, an embodiment of the present invention provides a dynamic surface defect optical detection method, comprising the following steps:
[0017] S1, adjust the brightness of the diffuse light source;
[0018] S2, controlling the movement of the mobile platform so that the object to be measured passes through the illumination area of the diffuse reflection light source;
[0019] S3, collecting image information of the object to be tested, and judging whether the overall image of the object to be tested is obtained according to the image information in a preset manner, if so, performing image defect analysis according to the image information; otherwise, returning to step S1 to continue.
[0020] Furthermore, the step of analyzing image defects according to the image information in step S3 specifically includes the following steps:
[0021] After preprocessing the images in the image information in turn, target regions are extracted from the images according to a preset model;
[0022] Filtering and smoothing the image after the target area is extracted, segmenting the image and extracting the effective area of the image;
[0023] After enhancing the contrast of the image, the defect type of the workpiece is detected and analyzed based on the effective area.
[0024] The beneficial effects of the present invention are as follows: the present invention adopts a diffuse reflection light source to enable the image acquisition module to completely capture the object to be tested at a large angle, thereby solving the problem of photographing the object to be tested by adjusting the position of the image acquisition module. The present invention can meet the optical detection of defects in objects to be tested of different shapes, improves the compatibility of detection, better helps staff to detect optical defects, and improves the work efficiency of staff. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a structural diagram of an existing machine vision inspection system;
[0026] Figure 2 It is a schematic diagram of the structure of an existing machine vision inspection system for inspecting a curved surface object;
[0027] Figure 3 It is a structural schematic diagram of a dynamic surface defect optical detection system of the present invention;
[0028] Figure 4is an implementation of the cross section of the diffuse reflection light source in a specific embodiment of the present invention;
[0029] Figure 5 is another implementation of the cross section of the diffuse reflection light source in a specific embodiment of the present invention;
[0030] Figure 6 It is a structural schematic diagram of a light strip module of a diffuse reflection light source;
[0031] Figure 7 is a schematic structural diagram of a diffusion plate in a specific embodiment of the present invention;
[0032] Figure 8 It is a schematic diagram of the optical principle of diffuse reflection light source mirror defect detection;
[0033] Fig. 9 It is a step flow chart of a dynamic surface defect optical detection method of the present invention.
[0034] Figure numerals: 5, image acquisition module; 6, mobile platform; 7, diffuse reflection light source; 8, object to be measured; 9, series light strip; 10, lamp beads; 11, diffuser plate; 12, protrusion. DETAILED DESCRIPTION
[0035] Embodiment 1
[0036] like Figure 3 and Figure 8 As shown, this embodiment provides a dynamic surface defect optical detection system, including an image acquisition module 5, an image processing module, a diffuse reflection light source 7 and a conveying device for conveying an object to be measured 8, wherein the conveying device includes a mobile platform 6 and a motion control module for controlling the movement of the mobile platform 6, the image processing module is connected to the image acquisition module 5 and the motion control module respectively, and the diffuse reflection light source 7 is arranged above the mobile platform 6;
[0037] The motion control module is used to control the moving speed of the mobile platform 6 according to the control instructions sent by the image processing module, so that the object to be measured 8 enters the illumination area of the diffuse reflection light source 7;
[0038] The image acquisition module 5 is used to acquire image information of the object to be measured 8 when it passes through the illumination area, and send the acquired image information to the image processing module;
[0039] The image processing module is used to obtain and send control instructions to the motion control module according to the image information, and to process and analyze defects according to the image information.
[0040] Reference Figure 3, a diffuse reflection light source 7 is installed on the platform movement, and the diffuse reflection light source 7 irradiates diffuse light to the mobile platform 6. The object to be measured 8 is placed on the mobile platform 6, and the motion control module controls the movement of the mobile platform 6. The object to be measured 8 enters the illumination area of the diffuse reflection light source 7 with the movement of the mobile platform 6. When the object to be measured 8 enters the illumination area, the image acquisition module 5 shoots the object to be measured 8 and sends the shot image to the image processing module. The image acquisition module 5 includes at least one camera, and the camera can be an industrial CCD camera. When one camera is used, the camera is installed on the left side of the diffuse reflection light source 7 (that is, the side where the object to be measured 8 enters the illumination area) or on the right side of the diffuse reflection light source 7 (that is, the side where the object to be measured 8 leaves the illumination area); when two cameras are used, one camera is installed on the left and right sides of the diffuse reflection light source 7. After receiving the image information, the image processing module sends a control instruction to the motion control module according to the image information, thereby controlling the moving speed of the mobile platform 6 or controlling the mobile platform 6 to stop moving, and detecting whether there are defects in the image according to the image information. Specifically, it can be detected by a pre-established detection module, or by manual detection after image preprocessing. Among them, the optical principle of defect detection through diffuse reflection light source 7 is: refer to Figure 8 When a diffuse reflection light source 7 is used, it is equivalent to adding mirror light of the diffuse reflection light source 7 instead of just reflecting light, so that the image acquisition module 5 can capture a complete image of the defect at a larger angle, avoiding the defect of the fixed path required by the camera. Among them, the diffuse reflection light source 7 is a curved structure, such as a wavy or semicircular shape, etc., which is fixed above the mobile platform 6 by a fixing part. The system outputs diffuse light through the diffuse reflection light source 7 to illuminate the object to be tested 8, so that the image acquisition module 5 can completely capture the object to be tested 8 at a large angle, solve the problem that the curved surface object to be tested 8 cannot be detected by machine vision detection, and improve the detection efficiency. The system can meet the optical detection of defects of objects to be tested 8 of different shapes, improve the compatibility of detection, and better assist staff in detecting objects to be tested 8.
[0041] This system can be used for glass inspection, automobile paint surface inspection, electroplating product surface inspection, smooth workpiece surface inspection, etc., but is not limited to such applications.
[0042] Reference Figure 3 As a further preferred embodiment, the diffuse reflection light source 7 is arched across the movable platform 6, and the object to be measured 8 enters the illumination area from the left side of the diffuse reflection light source 7 and leaves the illumination area from the right side of the diffuse reflection light source 7.
[0043] The diffuse reflection light source 7 is designed as an annular diffuse reflection light source 7, which irradiates diffuse light from multiple directions to the object to be measured 8, thereby increasing the light in different directions and better enabling the camera to completely shoot the object to be measured 8 at a large angle.
[0044] Reference Figure 4 and Figure 5 As a further preferred embodiment, the cross section of the diffuse reflection light source 7 is semicircular or parabolic.
[0045] The cross section of the diffuse reflection light source 7 can be designed to be triangular in shape. In the present embodiment, it is designed to be semicircular or parabolic. By adopting this design, the industrial camera can be designed to image the object to be measured 8 in a large range, thereby avoiding the disadvantage of the camera being on a fixed route. Figure 4 Semicircular design. Figure 5 It is a parabolic design.
[0046] As a further preferred embodiment, the image acquisition module 5 includes a first camera device and a second camera device, wherein the first camera device is installed on the left side of the diffuse reflection light source 7 , and the second camera device is installed on the right side of the diffuse reflection light source 7 .
[0047] In this example, the image acquisition module 5 includes a first camera device and a second camera device, which are respectively installed on both sides of the diffuse reflection light source 7 to more effectively obtain the overall image of the object to be measured 8.
[0048] Reference Figure 6 As a further preferred embodiment, the diffuse reflection light source 7 includes a plurality of light strip modules, each of the light strip modules includes a series light strip 8 and a current driving unit for controlling the brightness of the series light strip 8, and each of the series light strips 8 is sequentially and parallelly spanned on the mobile platform 6.
[0049] Each series light strip 8 is parallel across the mobile platform 6, and the moving direction of the object to be tested 8 crosses each series light strip 8. Each series light strip 8 includes a plurality of LED lights, and the LED lights on each series light strip 8 are connected in series, and the current flowing through the LED lights is controlled by a current driving unit, so the brightness of each lamp bead 10 on the series light strip 8 is the same. The brightness of the series light strip 8 is controlled by the current driving unit, and the brightness of each series light strip 8 can be the same or different. In this embodiment, the brightness of each series light strip 8 is different. When the object to be tested 8 passes through each series light strip 8, the brightness of each part is different. By adjusting the brightness of each series light strip 8, a suitable signal-to-noise ratio of the image is obtained, thereby improving the accuracy of the detection. As needed, the brightness of the series light strip 8 can be set to multiple groups, up to 4096 groups of different values, and multiple groups of series light strips 8 constitute an LED array.
[0050] Reference Figure 7 As a further preferred embodiment, the diffuse reflection light source 7 also includes a diffuser plate 11, and the inner side of the diffuser plate 11 is provided with protrusions 12 of different heights. The light emitted by the series light strip 8 passes through the diffuser plate 11 and irradiates toward the moving platform 6.
[0051] The diffusion plate 11 is made of a transparent material, and a protrusion 12 with different heights is provided on the inner side of the diffusion plate 11. When the light of the LED lamp passes through the diffusion plate 11, a more uniform diffuse light output is obtained, thereby improving the accuracy of detection.
[0052] Reference Figure 6 As a further preferred embodiment, the brightness of the series light strip 8 increases or decreases from the left side of the diffuse reflection light source 7 to the right side of the diffuse reflection light source 7.
[0053] In this embodiment, by adjusting the current driving unit, the brightness of the series light strip 8 is increased or decreased from the left side of the diffuse reflection light source 7 to the right side of the diffuse reflection light source 7, that is, the brightness is increased or decreased in the moving direction of the mobile platform 6, so that a surface light source with gradually changing brightness can be realized, and the entire LED array can form a diffuse reflection light source 7 with gradually increasing or decreasing brightness. The diffuse reflection light source 7 is a diffuse reflection light source 7 with gradually changing brightness, and the range of defects detected is greatly enhanced. The overall system will not be limited by the light intensity, and the signal-to-noise ratio of the image can be greatly enhanced. Figure 3 A light source control system is provided outside the diffuse reflection light source 7. The light source control system has a display screen and an input module. The current value of the series light strips 8 is checked through the display screen, and the current value of the series light strips 8 is adjusted through the input module. Figure 6 In the figure, current driving unit 1 represents the first current driving unit, current driving unit 2 represents the second current driving unit, and current driving unit m represents the mth current driving unit.
[0054] As a further preferred embodiment, the series light strip 8 is composed of a plurality of LED lights connected in series, and the LED lights are any one of white LED lights, red LED lights and blue LED lights.
[0055] The LED lamp uses monochromatic light of multiple colors, such as white LED lamp, red LED lamp or blue LED lamp, etc., and switches LED lamps of different colors according to the object 8 to be measured. For example, if the object 8 to be measured is colored glass, the use of white LED lamp will affect the effect of camera shooting, and it is necessary to switch LED lamps of other colors.
[0056] In summary, the system of the present invention has the following advantages over the prior art:
[0057] (1) A diffuse reflection light source 7 is used to enable the image acquisition module 5 to completely capture the object to be tested 8 at a large angle. Based on the influence of the light source model on the shooting effect of the smooth part surface, the diffuse reflection light source 7 is designed to be an arch ring to ensure that the special-shaped test parts can be captured by the camera.
[0058] (2) The diffuse reflection light source 7 with gradually changing light source brightness greatly enhances the range of defects detected, and the overall system is not limited by the light intensity.
[0059] (3) During the inspection process, the workpiece is in motion, and the accuracy of inspection can be improved by comparing the image features of the defect under different lighting conditions.
[0060] Embodiment 2
[0061] like Fig. 9 As shown, this embodiment provides a dynamic surface defect optical detection method, comprising the following steps:
[0062] A1. Adjust the brightness of diffuse light source;
[0063] A2. Control the movement of the mobile platform so that the object to be measured passes through the illumination area of the diffuse reflection light source;
[0064] A3, collecting image information of the object to be tested, and judging whether the overall image of the object to be tested is obtained according to the image information in a preset manner, if so, performing image defect analysis according to the image information; otherwise, returning to step A1.
[0065] The above method adopts a diffuse reflection light source to enable the image acquisition module to completely capture the object to be tested at a large angle, thereby solving the problem of photographing the object to be tested by adjusting the position of the image acquisition module. The present invention can meet the needs of optical defect detection of objects to be tested in different shapes, improves the compatibility of detection, better helps staff to detect optical defects, and improves the work efficiency of staff.
[0066] Wherein, step A3 includes steps A31 to A33:
[0067] A31, after preprocessing the images in the image information in turn, extracting the target area of the image according to a preset model;
[0068] A32, filtering and smoothing the image after the target area extraction, segmenting the image and extracting the effective area of the image;
[0069] A33. After enhancing the contrast of the image, detect and analyze the defect type of the workpiece based on the effective area.
[0070] A dynamic surface defect optical detection method of this embodiment can execute a dynamic surface defect optical detection system provided by the method embodiment of the present invention, can execute any combination of implementation steps of the method embodiment, and has the corresponding functions and beneficial effects of the method.
[0071] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art can make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. A dynamic surface defect optical detection system, characterized in that: It includes an image acquisition module, an image processing module, a diffuse reflection light source and a conveying device for conveying the object to be measured, wherein the conveying device includes a mobile platform and a motion control module for controlling the movement of the mobile platform, the image processing module is connected to the image acquisition module and the motion control module respectively, and the diffuse reflection light source is arranged above the mobile platform; The motion control module is used to control the moving speed of the mobile platform according to the control instruction sent by the image processing module, so that the object to be measured enters the illumination area of the diffuse reflection light source; The image acquisition module is used to collect image information of the object to be measured when it passes through the illumination area, and send the collected image information to the image processing module; The image processing module is used to obtain and send control instructions to the motion control module according to the image information; and to determine whether the overall image of the object to be measured is obtained according to the image information, and if so, to process and analyze the defects according to the image information; The diffuse reflection light source is arched across the mobile platform, and the object to be measured enters the illumination area from the left side of the diffuse reflection light source and leaves the illumination area from the right side of the diffuse reflection light source; The cross section of the diffuse reflection light source is semicircular or parabolic; The image acquisition module includes a first camera device and a second camera device, wherein the first camera device is installed on the left side of the diffuse reflection light source, and the second camera device is installed on the right side of the diffuse reflection light source; The diffuse reflection light source includes a plurality of light strip modules, each of which includes a series of light strips and a current driving unit for controlling the brightness of the series of light strips, and each of the series of light strips is sequentially and parallelly arranged across the mobile platform; The diffuse reflection light source also includes a diffuser plate, the inner side of which is provided with protrusions of different heights, and the light emitted by the series light strips passes through the diffuser plate and irradiates toward the moving platform; The brightness of the series-connected light strips increases or decreases sequentially from the left side of the diffuse reflection light source to the right side of the diffuse reflection light source.
2. A dynamic surface defect optical detection system according to claim 1, characterized in that: The series light strip is composed of a plurality of LED lights connected in series, and the LED lights are any one of white LED lights, red LED lights and blue LED lights.
3. A dynamic surface defect optical detection method, applied to a dynamic surface defect optical detection system as claimed in claim 1 or 2, characterized in that: The following steps are involved: S1, adjust the brightness of the diffuse reflection light source; S2, controlling the movement of the mobile platform so that the object to be measured passes through the illumination area of the diffuse reflection light source; S3, collecting image information of the object to be tested, and judging whether the overall image of the object to be tested is obtained according to the image information in a preset manner, if so, performing image defect analysis according to the image information; otherwise, returning to step S1; The step of analyzing image defects according to the image information in step S3 specifically includes the following steps: preprocessing the images in the image information in sequence, and extracting the target area of the image according to a preset model; Filtering and smoothing the image after the target area is extracted, segmenting the image and extracting the effective area of the image; After enhancing the contrast of the image, the defect type of the workpiece is detected and analyzed based on the effective area.
Citation Information
Patent Citations
Online detection method and device for metal wire production
CN103308525A
Optical reinspection system and inspection method thereof
CN103389308A
Optical detection system and method of surface defect for diffusely reflecting structured light
CN110261390A
Dynamic surface defect optical detection system
CN209764739U
Cited By
Device for detecting defects in the mirror surface of complex-profile parts using machine vision
RU2848938C1
