Light source unit, system, method and associated device for detecting low
By designing a light source unit with different luminous intensity and low cost, combined with the image acquisition technology of camera components, the complex and cost-effective system detection system in the prior art is solved, and efficient and economical detection effect is achieved.
Patent Information
- Application Number
- CN202510005969.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-02
- Publication Date
- 2025-05-06
AI Technical Summary
The imaging scheme system used in the prior art for detecting concave and convex defects is complex and cost-effective, making it difficult to achieve simplified and cost-effective detection methods.
A light source unit for detecting concave and convex defects is designed, including a packaged housing and a plurality of light sources arranged in the housing. The light emission intensity between the light sources is different, so that the illumination area changes light and dark. Image information is collected by the camera component, and the concave and convex defects of the product to be detected are determined based on the image information.
It realizes efficient detection of concave and convex defects, increases the detectability of defects, and reduces the leakage detection rate of concave and convex defects on the surface of smooth objects. At the same time, the light source unit is low in cost and is easy to achieve.
Smart Images

Figure CN119935879A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of product defect detection, and in particular to a light source unit, system, method and related device for detecting concave-convex defects. Background Art
[0002] At present, concave-convex defects are common defects in AOI visual inspection. The main imaging scheme is to make the defect position located at the edge of the light source bright spot, that is, the defect is located at the junction of light and dark light, so that the inclined surface of the concave-convex defect presents a bright spot facing the light source and a dark spot facing away from the light source. In this way, the imaging and distinction are aligned. The main schemes for imaging defects at the junction of light and dark are line light source plus line array camera, or use a complex system of programmable array light source plus array camera. The above two schemes are complex and costly. Summary of the invention
[0003] A series of simplified concepts are introduced in the Summary of the Invention, which will be further described in detail in the Detailed Description of the Invention. This part of the application does not mean to attempt to define the key features and essential technical features of the claimed technical solution, nor does it mean to attempt to determine the scope of protection of the claimed technical solution.
[0004] The present application aims to solve at least one of the technical problems existing in the prior art or related technology.
[0005] To this end, a first aspect of the present application provides a light source unit for detecting concave-convex defects.
[0006] A second aspect of the present application provides a detection system.
[0007] The third aspect of the present application provides a method for detecting concave-convex defects.
[0008] A fourth aspect of the present application provides a computer-readable storage medium.
[0009] A fifth aspect of the present application provides a control device.
[0010] In view of this, according to a first aspect of the present application, a light source unit for detecting concave-convex defects is proposed, comprising:
[0011] A packaging shell, wherein a light-emitting surface is formed on the packaging shell;
[0012] A plurality of light sources are arranged in the packaging shell, and the luminous intensities of the plurality of light sources are different, so that the illumination area formed by the plurality of light sources in the turned-on state changes in brightness.
[0013] In a feasible implementation manner, the distance between two adjacent light sources is determined based on the half-intensity angle of the light source and the working distance of the light source unit.
[0014] In a feasible implementation manner, the distance between two adjacent light sources is determined by the following formula:
[0015] d≈D*tan(A)
[0016] Wherein, d is the distance between two adjacent light sources, D is the working distance of the light source unit, and A is the half-intensity angle of the light source.
[0017] In a feasible implementation manner, the half-intensity angle of the light source is 20° to 30°.
[0018] In a feasible implementation, the light source includes LED lamp beads, and the LED lamp beads of different light sources have different luminous intensities.
[0019] In a feasible implementation manner, each of the light sources includes an LED lamp bead and a resistor connected in series with the LED lamp bead, the LED lamp beads of different light sources are the same, and the resistance values of the resistors of different light sources are different.
[0020] In a feasible implementation manner, the plurality of light sources are arranged along the width direction of the packaging shell, and along the width direction, the luminous intensity of the plurality of light sources increases gradually, so that the light-dark change presents a transition from dark to light.
[0021] According to the second aspect of the present application, a detection system is proposed, comprising:
[0022] A light source unit for detecting concave-convex defects as described in any of the above technical solutions;
[0023] A camera assembly is used to collect image information of the illumination area formed by the light source unit.
[0024] In a feasible implementation manner, the camera assembly is arranged on one side of the light source unit, and the optical axis of the camera assembly is arranged to cross the optical axis of the light source unit.
[0025] In a feasible implementation manner, the light source unit further includes:
[0026] A reflector, wherein the reflector is disposed in the packaging shell, and the light emitted by the plurality of light sources is reflected by the reflector and then projected through the light-emitting surface;
[0027] Wherein, the optical axis of the camera assembly is coaxially arranged with the optical axis of the light source unit.
[0028] In a feasible implementation, the detection system further includes: a carrier assembly, the carrier assembly is used to carry the product to be detected, and the carrier assembly includes:
[0029] A platform and a driving member, wherein the driving member is used to drive the carrier to rotate.
[0030] According to the third aspect of the present application, a method for detecting concave-convex defects is proposed, which is applied to the detection system as described in any of the above technical solutions. The method for detecting concave-convex defects includes:
[0031] Turning on the light source unit so that the light emitted by the multiple light sources of the light source unit is projected onto the product to be inspected;
[0032] Collecting image information of the product to be inspected based on a camera component;
[0033] The concave-convex defects of the product to be inspected are determined based on the image information.
[0034] In a feasible implementation manner, the step of determining the concave-convex defect of the product to be inspected based on the image information includes:
[0035] Obtain the background grayscale value and pixel grayscale value of the image information;
[0036] Based on the background grayscale value and the point grayscale value, the concave-convex defect of the product to be inspected is determined.
[0037] In a feasible implementation manner, the step of determining the concave-convex defect of the product to be inspected based on the background gray value and the point gray value includes:
[0038] The arrangement direction of the plurality of light sources is taken as a first direction;
[0039] dividing the image information into a plurality of sub-image information along the first direction;
[0040] Obtaining the background grayscale value of the sub-image information and the grayscale value of each pixel;
[0041] Based on the point gray value and the background gray value, the concave-convex defect of the product to be inspected is determined.
[0042] In a feasible implementation manner, the method for detecting concave-convex defects further includes:
[0043] Providing a standard product, turning on the light source unit so that light emitted by a plurality of light sources of the light source unit is projected onto the standard product;
[0044] Standard image information of the standard product is collected based on the camera component.
[0045] In a feasible implementation manner, the step of determining the concave-convex defect of the product to be inspected based on the image information includes:
[0046] Obtaining a standard background grayscale value of the standard image information, and obtaining the image information of the product to be detected to obtain a detection background grayscale value;
[0047] The concave-convex defect of the product to be inspected is determined based on a comparison result of the standard background grayscale value and the detection background grayscale value.
[0048] In a feasible implementation manner, the method for detecting concave-convex defects further includes:
[0049] Obtain the reflectivity and transmittance of the object to be detected;
[0050] Based on the reflectivity and the transmittance, the light emission intensity of the light source unit is determined.
[0051] In a feasible implementation manner, the luminous intensity of the light source unit is negatively correlated with the transmittance.
[0052] In a feasible implementation manner, when the detection system includes a stage assembly, the detection method further includes:
[0053] Placing the product to be inspected on the stage assembly, turning on the light source unit, and acquiring first image information;
[0054] Controlling the stage assembly to rotate, turning on the light source unit, and acquiring second image information;
[0055] Determine defects of the product to be inspected based on the first image information and the second image information.
[0056] In a feasible implementation manner, determining the defect of the product to be inspected based on the first image information and the second image information includes:
[0057] Comparing the first image information with the second image information to obtain differences;
[0058] The position where the defect of the product to be inspected exists is determined based on the difference point.
[0059] In a feasible implementation manner, the step of collecting image information of the product to be inspected based on the camera assembly includes:
[0060] Adjusting the position of the light source unit or the product to be inspected so that the illumination area formed by the light source unit on the product to be inspected forms a transition zone of light-dark variation;
[0061] The camera assembly is controlled to collect image information of the product to be inspected.
[0062] In a feasible implementation manner, the method for detecting concave-convex defects further includes:
[0063] After completing the acquisition of image information once, the light source unit is driven to move, and image information is acquired again to re-determine the concave-convex defects of the product to be inspected.
[0064] According to a fourth aspect of the present application, a computer-readable storage medium is proposed, wherein the computer-readable storage medium stores a computer program for implementing a detection method as described in any of the above technical solutions.
[0065] According to a fifth aspect of the present application, a control device is provided, comprising:
[0066] a memory storing a computer program;
[0067] A processor, configured to execute the computer program;
[0068] Wherein, when executing the computer program, the processor implements the detection method as any of the above technical solutions.
[0069] Compared with the prior art, this application has at least the following beneficial effects:
[0070] The light source unit for detecting concave-convex defects provided by the present application includes a packaging shell, a plurality of light sources arranged in the packaging shell, and the luminous intensity between the plurality of light sources is different. Based on this, when the light-emitting unit is turned on, a plurality of light sources are lit, and the light emitted by the light source unit illuminates the illumination area formed on the product to be detected, and the illumination area is changed in light and dark. The position of the concave-convex defect on the surface of the area to be detected is uneven, resulting in obvious bright areas and shadow areas on both sides of the concave-convex area that are different from the background, thereby identifying and imaging the defects. Therefore, by collecting the image information of the product to be detected through the camera component, the concave defects of the product can be determined based on the image information. Through the light source unit provided by the present application, when irradiating the product to be detected, the imaging of the concave-convex defect will be significantly different from the normal area, which increases the detectability of the defect and reduces the missed detection rate of the concave-convex defect on the surface of the smooth object. At the same time, the light source unit has low cost and is easy to implement.
[0071] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0073] Figure 1 A schematic structural diagram of a light source unit for detecting concave-convex defects according to an embodiment of the present application;
[0074] Figure 2 A schematic structural diagram of a light source unit for detecting concave-convex defects according to another embodiment provided in the present application;
[0075] Figure 3 A schematic structural diagram of a light source unit for detecting concave-convex defects according to another embodiment provided by the present application;
[0076] Figure 4 A schematic structural diagram of a detection system according to an embodiment of the present application;
[0077] Figure 5 A schematic structural diagram of a detection system according to another embodiment of the present application;
[0078] Figure 6 A schematic structural diagram of a detection system according to another embodiment of the present application;
[0079] Figure 7 A schematic flowchart of the steps of a method for detecting concave-convex defects according to an embodiment of the present application;
[0080] Figure 8 A block diagram of a computer-readable storage medium according to an embodiment of the present application;
[0081] Fig. 9 A structural block diagram of a control device according to an embodiment of the present application.
[0082] in, Figures 1 to 6 The corresponding relationship between the reference numerals and the component names is as follows:
[0083] 100 light source unit, 110 packaging shell, 120 light source, 130 reflector, 210 camera assembly, 220 stage assembly;
[0084] 121LED lamp beads, 122 resistors;
[0085] 211 lens, 212 acquisition component, 221 platform, 222 driving component. DETAILED DESCRIPTION
[0086] In the following description, a large number of specific details are given to provide a more thorough understanding of the technical solutions provided by the present application. However, it is obvious to those skilled in the art that the technical solutions provided by the present application can be implemented without one or more of these details.
[0087] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should also be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0088] Now, exemplary embodiments according to the present application will be described in more detail with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in a variety of different forms and should not be interpreted as being limited to the embodiments set forth herein. It should be understood that these embodiments are provided to make the disclosure of the present application thorough and complete, and to fully convey the concepts of these exemplary embodiments to those of ordinary skill in the art.
[0089] like Figures 1 to 3 As shown, according to the first aspect of the present application, a light source unit 100 for detecting concave-convex defects is proposed, comprising: a packaging shell 110, on which a light-emitting surface is formed; a plurality of light sources 120, which are arranged in the packaging shell 110, and the light-emitting intensities of the plurality of light sources 120 are different, so that the illumination area formed by the plurality of light sources 120 in the turned-on state changes between light and dark.
[0090] The light source unit 100 for detecting concave-convex defects provided in the present application includes a packaging shell 110, a plurality of light sources 120 arranged in the packaging shell 110, and the luminous intensity of the plurality of light sources 120 is different. Based on this, when the light-emitting unit is turned on, the plurality of light sources 120 are lit, and the light emitted by the light source unit 100 illuminates the illumination area formed on the product to be detected, and the illumination area is changed in light and dark. The position of the concave-convex defect on the surface of the area to be detected is uneven, resulting in obvious bright areas and shadow areas on both sides of the concave-convex area that are different from the background, thereby identifying and imaging the defect. Therefore, by collecting image information of the product to be detected through the camera assembly 210, the concave defect of the product can be determined based on the image information. Through the light source unit 100 provided in the present application, when irradiating the product to be detected, the imaging of the concave-convex defect will be significantly different from the normal area, which increases the detectability of the defect and reduces the missed detection rate of the concave-convex defect on the surface of the smooth object. At the same time, the light source unit 100 is low in cost and easy to implement.
[0091] It is understandable that the light source unit 100 for detecting concave-convex defects provided in the present application can be used as different types of light source units based on the different structures of the packaging shell 110, such as a surface light source 120, a coaxial light source 120, a ring light source 120, a dome light source 120, etc. The specific type of the light source unit 100 is not limited in the present application, and it only needs to be able to meet the imaging requirements in different scenarios.
[0092] It can be understood that the illumination area formed by the multiple light sources 120 in the turned-on state is in a light-dark changing state, which means that the light spot formed by the light source unit 100 on the product to be inspected has different brightness, such as the illumination area has a gradual brightness, an alternating brightness, etc. For example, the illumination area formed on the product to be inspected gradually becomes brighter from the left side to the right side. Or the illumination area is alternating from the left side to the right side in a light-dark-light-dark manner.
[0093] In a feasible implementation manner, the distance between two adjacent light sources 120 is determined based on the half-intensity angle of the light source 120 and the working distance of the light source unit 100 .
[0094] In this technical solution, a plurality of light sources 120 are further arranged. Specifically, the distance between two adjacent light sources 120 is related to the half-intensity angle of the light source 120 itself and the working distance of the light source unit 100. Based on this, when the light source unit 100 is turned on and the light source unit 100 emits light to project on the product to be inspected, the illumination area can be continuous, without blind spots, and can be changed in brightness. This is beneficial for inspecting the concave and convex areas of the product.
[0095] In a feasible implementation manner, the distance between two adjacent light sources 120 is determined by the following formula:
[0096] d≈D*tan(A)
[0097] Wherein, d is the distance between two adjacent light sources 120 , D is the working distance of the light source unit 100 , and A is the half-intensity angle of the light source 120 .
[0098] In this technical solution, a specific determination method between two adjacent light sources 120 is further provided, that is, d≈D*tan(A). This arrangement enables the light spot formed by the light source unit 100 on the product to be inspected to be continuous and have different brightness. In order to ensure the imaging effect, when the processing accuracy can meet the requirements, d≈(D*tan(A), the processing accuracy can be guaranteed based on this. When the actual working distance is much larger than d or much smaller than d, it is possible that the light spot formed by the light source unit 100 on the product to be inspected is discontinuous or has a low degree of brightness, which is not conducive to the detection of product concave and convex defects.
[0099] In a feasible implementation, the half-intensity angle of the light source 120 is 20° to 30°. This arrangement facilitates the selection of the light source 120 and the preparation of the light source unit 100, and can meet the requirements of the detection of most products. Preferably, the half-intensity angle of the light source 120 is 25°.
[0100] like Figures 1 to 3 As shown, in a feasible implementation manner, the light source 120 includes LED lamp beads 121, and the LED lamp beads 121 of different light sources 120 have different luminous intensities.
[0101] In this technical solution, a specific style of the light source 120 is further provided, and each light source 120 may include an LED lamp bead 121. By having different luminous intensities of the LED lamp beads 121 of different light sources 120, it is possible to achieve a light and dark change in the illumination area formed by the multiple light sources 120 when turned on. When the light emitted by the light source unit 100 is projected onto the product to be inspected, the imaging of the concave and convex areas can be different.
[0102] like Figures 1 to 3 As shown, in a feasible implementation, each light source 120 includes an LED lamp bead 121 and a resistor 122 connected in series with the LED lamp bead 121 , the LED lamp beads 121 of different light sources 120 are the same, and the resistance values of the resistors 122 of different light sources 120 are different.
[0103] In this technical solution, another style of light source 120 is provided, each light source 120 may include an LED lamp bead 121 and a resistor 122 connected in series with the LED lamp bead 121. By having different resistance values of the resistors 122 of different light sources 120, it is also possible to achieve that the illumination area formed by the multiple light sources 120 when turned on changes in light and dark. When the light emitted by the light source unit 100 is projected onto the product to be inspected, the imaging of the concave and convex areas can be different.
[0104] In a feasible implementation, the plurality of light sources 120 are arranged along the width direction of the packaging shell 110 , and along the width direction, the luminous intensity of the plurality of light sources 120 increases gradually, so that the light-dark change presents a transition from dark to light.
[0105] In this technical solution, a specific arrangement of multiple light sources 120 is further provided. The multiple light sources 120 are arranged along the width direction of the packaging shell 110, and the luminous intensity of the multiple light sources 120 increases along the width direction. Based on this, the light spot projected by the light source unit 100 can achieve a transition from light to dark or from dark to light, which is convenient for identifying concave-convex defects of the product and can make the difference in imaging of concave-convex defects more obvious.
[0106] like Figures 1 to 6 As shown, according to the second aspect of the present application, a detection system is proposed, including: a light source unit 100 for detecting concave-convex defects as in any of the above technical solutions; a camera assembly 210, the camera assembly 210 is used to collect image information of the illumination area formed by the light source unit 100.
[0107] The detection system provided in the present application includes the light source unit 100 for detecting concave-convex defects as in any of the above technical solutions, so the detection system has all the beneficial effects of the light source unit 100 for detecting concave-convex defects in the above technical solutions.
[0108] The detection system provided by the present application, during use, lights up multiple light source units 100, and the light emitted by the light source unit 100 illuminates the illumination area formed on the product to be detected, which changes in light and dark. The unevenness of the concave-convex defect position on the surface of the area to be detected causes obvious bright areas and shadow areas on both sides of the concave-convex area to be different from the background, thereby identifying and imaging the defects, and then collecting image information of the product to be detected through the camera component 210, so that the concave defects of the product can be determined based on the image information. Through the detection system provided by the present application, when illuminating the product to be detected, the imaging of the concave-convex defects will be significantly different from the normal area, which increases the detectability of the defects and reduces the missed detection rate of concave-convex defects on the surface of smooth objects. At the same time, the detection system is low-cost and easy to implement.
[0109] like Figure 4 As shown, in a feasible implementation, the camera assembly 210 is arranged on one side of the light source unit 100, and the optical axis of the camera assembly 210 is arranged to intersect with the optical axis of the light source unit 100. Such an arrangement makes it easier to collect image information and can improve collection efficiency.
[0110] like Figure 5 As shown, in a feasible implementation, the light source unit 100 further includes: a reflector 130, which is disposed in the packaging shell 110, and the light emitted by the plurality of light sources 120 is projected through the light-emitting surface after being reflected by the reflector 130; wherein the optical axis of the camera assembly 210 is coaxially disposed with the optical axis of the light source unit 100. Such an arrangement can make the layout of the structure of the detection system more compact, which is conducive to the miniaturization of the device.
[0111] like Figure 6 As shown, in a feasible implementation, the detection system further includes: a carrier assembly 220, the carrier assembly 220 is used to carry the product to be detected, and the carrier assembly 220 includes: a platform 221 and a driving member 222, and the driving member 222 is used to drive the carrier to rotate.
[0112] In this technical solution, the detection system may further include a carrier assembly 220, and the carrier assembly 220 may include a platform 221 and a driving member 222. Based on this, during the operation of the detection system, on the one hand, the driving member 222 may be used to drive the platform 221 to rotate, thereby driving the product to be detected disposed on the platform 221 to be positioned; on the other hand, after a single image information acquisition of the product to be detected is performed through the camera assembly 210, the driving member 222 may be used to drive the platform 221 to rotate, thereby driving the product to be detected to rotate, and image information may be acquired again, thereby enabling rapid detection of the product at two different angles, thereby improving detection accuracy.
[0113] In some examples, the camera assembly 210 may include a lens 211 and a collection element 212 . The collection element 212 collects image information of the product to be inspected through the lens 211 . Specifically, the collection element may include a charge-coupled device (CCD).
[0114] like Figure 7 As shown, according to the third aspect of the present application, a method for detecting concave-convex defects is proposed, which is applied to a detection system as in any of the above technical solutions. The method for detecting concave-convex defects includes:
[0115] Step 301: Turn on the light source unit so that the light emitted by the multiple light sources of the light source unit is projected onto the product to be inspected;
[0116] Step 302: collecting image information of the product to be inspected based on the camera component;
[0117] Step 303: Determine the concave-convex defects of the product to be inspected based on the image information.
[0118] The method for detecting concave-convex defects provided in the present application is applied to a detection system such as any of the above-mentioned technical solutions, so the detection method has all the beneficial effects of the detection system of the above-mentioned technical solutions.
[0119] By using the concave-convex defect detection method provided by the present application, multiple light sources are lit, and the light emitted by the light source unit illuminates the illumination area formed on the product to be detected, which changes in light and dark. The concave-convex defect position on the surface of the area to be detected is uneven, resulting in obvious bright areas and shadow areas on both sides of the concave-convex area that are different from the background, thereby identifying and imaging the defects. Therefore, by collecting image information of the product to be detected through the camera component, the concave defects of the product can be determined based on the image information. By using the light source unit provided by the present application, when illuminating the product to be detected, the imaging of the concave-convex defect will be significantly different from the normal area, which increases the detectability of the defect and reduces the missed detection rate of concave-convex defects on the surface of smooth objects. At the same time, the light source unit has low cost and is easy to implement.
[0120] In a feasible implementation, the step of determining the concave-convex defects of the product to be inspected based on the image information includes: obtaining the background grayscale value and the point grayscale value of the pixel point of the image information; and determining the concave-convex defects of the product to be inspected based on the background grayscale value and the point grayscale value.
[0121] In this technical solution, a specific method for determining concave-convex defects based on image information is further provided. After the image information is obtained, the background grayscale value of the image information and the point grayscale value of the pixel can be identified. It can be understood that for the area illuminated by the same light source, when there is no defect on the detection surface of the product to be detected, then in the image information, it is reflected that the grayscale values of each pixel are consistent. When the product to be tested has a concave-convex defect, it will change the propagation direction of the light, and then it will be reflected in the image information as a strong change in the grayscale value. Based on this, the present application can judge whether the object to be tested contains concave-convex defects based on the grayscale difference between the grayscale value of each pixel contained in the image information and the background grayscale value, which can improve the detection efficiency.
[0122] In a feasible implementation, the step of determining the concave-convex defects of the product to be inspected based on the background grayscale value and the point grayscale value includes: taking the arrangement direction of multiple light sources as the first direction; dividing the image information into multiple sub-image information along the first direction; obtaining the background grayscale value of the sub-image information and the point grayscale value of each pixel; and determining the concave-convex defects of the product to be inspected based on the point grayscale value and the background grayscale value.
[0123] In this technical solution, a specific method for determining the concave-convex defects of the product is further provided. The image information can be separated into multiple sub-image information along a first direction, and the background grayscale value and the point grayscale value of the pixel point of the sub-image information can be further identified. Then, the background grayscale value and the point grayscale value of each sub-image information can be compared. This can make the detection of concave-convex defects of the product to be inspected more accurate and reduce the misjudgment rate.
[0124] In a feasible implementation, the method for detecting concave-convex defects also includes: providing a standard product, turning on a light source unit so that light emitted by multiple light sources of the light source unit is projected onto the standard product; and collecting standard image information of the standard product based on a camera component.
[0125] In this technical solution, other judgment methods for the detection method of concave-convex defects are further provided. A defect-free or qualified product can also be provided and used as a standard product. The light source unit is then turned on to illuminate the standard product. The collected image information is then used as standard image information. When subsequently judging whether the product has defects, the standard image information can be compared with the image information of the product to be inspected. By comparing the information, it is determined whether the product to be inspected has defects, which can further improve the detection efficiency and detection accuracy.
[0126] In a feasible implementation, the step of determining the concave-convex defects of the product to be inspected based on the image information includes: obtaining the standard background grayscale value of the standard image information, obtaining the image information of the product to be inspected to obtain the detection background grayscale value; and determining the concave-convex defects of the product to be inspected based on the comparison result of the standard background grayscale value and the detection background grayscale value.
[0127] In this technical solution, after obtaining the standard image information, the standard background grayscale value of the standard image information can be collected, and then the detection background grayscale value based on the image information of the product to be detected is compared with the standard background grayscale value, so that the defects of the product can be quickly determined. This detection method is particularly suitable for large-scale detection of the same type and can improve detection efficiency.
[0128] In a feasible implementation, the method for detecting concave-convex defects further includes: acquiring the reflectivity and transmittance of the object to be detected; and determining the luminous intensity of the light source unit based on the reflectivity and transmittance.
[0129] In this technical solution, a method for determining the luminous intensity of the light source unit is further provided. The luminous intensity of the light source unit can be determined based on the reflectivity and transmittance of the object to be detected, so that the luminous intensity of the light source unit can be adapted to products of different types or different materials, thereby increasing the scope of application of the detection system.
[0130] In a feasible implementation, the luminous intensity of the light source unit is negatively correlated with the transmittance.
[0131] In this technical solution, the luminous intensity of the light source unit is negatively correlated with the transmittance, that is, the stronger the light transmittance of the product to be inspected, the higher the overall luminous intensity of the light source unit. Conversely, the stronger the light transmittance of the product to be inspected, the lower the overall luminous intensity of the light source unit. Based on this, it is ensured that easily recognizable image information can be collected by the camera component.
[0132] In a feasible embodiment, when the detection system includes a carrier assembly, the detection method also includes: placing the product to be inspected on the carrier assembly, turning on the light source unit, and acquiring first image information; controlling the rotation of the carrier assembly, turning on the light source unit, and acquiring second image information; and determining defects of the product to be inspected based on the first image information and the second image information.
[0133] In this technical solution, when the detection system includes a stage assembly, the stage assembly can also be used to determine product defects. Specifically, the product to be detected can be placed on the platform, the light source unit is turned on first, the first image information is collected by the camera assembly, and then the driver is turned on, the platform and the product to be detected are driven to rotate by the driver, and then the second image information is collected by the camera assembly. In addition, the product defects will form a grayscale difference between the first image information and the second image information. By comparing the first image information and the second image information, the difference can be quickly identified, and then based on the position of the difference on the first image information and the second image information combined with the rotation angle of the driver, the position of the defect on the product to be detected can be quickly determined, which can further improve the detection efficiency.
[0134] In a feasible implementation, based on the first image information and the second image information, determining the defect of the product to be inspected includes: comparing the first image information and the second image information to obtain the difference point; and determining the location of the defect of the product to be inspected based on the difference point. In this technical solution, a specific method for determining the defect based on the first image information and the second image information is further provided. By comparing the first image information and the second image information, if there is a defect on the product to be inspected, the difference points of the two places will be obtained by comparing the first image information and the second image information. Based on the two difference points and the rotation angle of the driving member, the location of the defect on the product to be inspected can be quickly determined, which can further improve the detection efficiency.
[0135] In a feasible implementation, the step of collecting image information of the product to be inspected based on the camera assembly includes: adjusting the position of the light source unit or the product to be inspected so that the illumination area formed by the light source unit on the product to be inspected forms a transition zone of light and dark changes; controlling the camera assembly to collect image information of the product to be inspected. Such an arrangement can ensure that the inspection system is at an appropriate working distance, and the illumination area formed by the light source unit on the product to be inspected is continuous and changes in light and dark, which is convenient for rapid identification of concave and convex defects of the product.
[0136] In a feasible implementation, the concave-convex defect detection method further includes: after completing the acquisition of image information once, driving the light source unit to move, acquiring image information again, and re-determining the concave-convex defect of the product to be detected. In this way, the product to be detected can be tested twice, and the concave-convex defect of the product can be determined by two tests, which can ensure the detection accuracy.
[0137] like Figure 8 As shown, according to the fourth aspect of the present application, a computer-readable storage medium 401 is proposed, and the computer-readable storage medium 401 stores a computer program 402 to implement a detection method as described in any of the above technical solutions.
[0138] The computer-readable storage medium 401 provided in the present application implements the detection method of any of the above-mentioned technical solutions, so the computer-readable storage medium 401 has all the beneficial effects of the detection method of the above-mentioned technical solutions.
[0139] Through the computer-readable storage medium 401 provided by the present application, multiple light sources are first lit, and the light emitted by the light source unit illuminates the illumination area formed on the product to be inspected, which changes in light and dark. The unevenness of the concave-convex defect position on the surface of the area to be inspected causes obvious bright areas and shadow areas on both sides of the concave-convex area to be different from the background, thereby identifying and imaging the defects. Therefore, by collecting image information of the product to be inspected through the camera component, the concave defects of the product can be determined based on the image information. Through the light source unit provided by the present application, when irradiating the product to be inspected, the imaging of the concave-convex defects will be significantly different from the normal area, which increases the detectability of the defects and reduces the missed detection rate of concave-convex defects on the surface of smooth objects. At the same time, the light source unit is low in cost and easy to implement.
[0140] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.
[0141] like Fig. 9 As shown, according to the fifth aspect of the present application, a control device is proposed, including: a memory 501, storing a computer program; a processor 502, executing the computer program; wherein, when the processor 502 executes the computer program, it implements a detection method such as any of the above technical solutions.
[0142] The control device provided in the present application implements the detection method of any of the above-mentioned technical solutions, so the control device has all the beneficial effects of the detection method of the above-mentioned technical solutions.
[0143] Through the control device provided by the present application, multiple light sources are first lit, and the light emitted by the light source unit illuminates the illumination area formed on the product to be inspected, which changes in light and dark. The unevenness of the concave-convex defect position on the surface of the area to be inspected causes obvious bright areas and shadow areas on both sides of the concave-convex area to be different from the background, thereby identifying and imaging the defects. Therefore, by collecting image information of the product to be inspected through the camera component, the concave defects of the product can be determined based on the image information. Through the light source unit provided by the present application, when illuminating the product to be inspected, the imaging of the concave-convex defects will be significantly different from the normal area, which increases the detectability of the defects and reduces the missed detection rate of concave-convex defects on the surface of smooth objects. At the same time, the light source unit is low in cost and easy to implement.
[0144] In some examples, the control device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.
[0145] In an exemplary embodiment, the control device may further include: an input / output interface and a display device, wherein each functional unit may communicate with each other via a bus. The memory stores a computer program, and the processor is used to execute the program stored in the memory and execute the method in the above embodiment.
[0146] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the physical device of the method, and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the information processing physical device.
[0147] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform, or by hardware.
[0148] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0149] In this application, the terms "first", "second", and "third" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance; the term "plurality" refers to two or more, unless otherwise expressly defined. Terms such as "installed", "connected", "connected", and "fixed" should be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; "connected" can be a direct connection or an indirect connection through an intermediate medium. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to the specific circumstances.
[0150] In the description of the present application, it should be understood that the directions or positional relationships indicated by the terms "up", "down", "left", "right", "front", "back", etc. are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or unit referred to must have a specific direction, be constructed and operated in a specific orientation, and therefore, should not be understood as a limitation on the present application.
[0151] In the description of this specification, the description of the terms "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0152] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A light source unit for detecting concave-convex defects, characterized in that: include: A packaging shell, wherein a light-emitting surface is formed on the packaging shell; A plurality of light sources are arranged in the packaging shell, and the luminous intensities of the plurality of light sources are different, so that the illumination area formed by the plurality of light sources in the turned-on state changes in brightness.
2. The light source unit for detecting concave-convex defects according to claim 1, characterized in that: The distance between two adjacent light sources is determined based on the half-intensity angle of the light source and the working distance of the light source unit.
3. The light source unit for detecting concave-convex defects according to claim 1, characterized in that: The distance between two adjacent light sources is determined by the following formula: d≈D*tan(A) Wherein, d is the distance between two adjacent light sources, D is the working distance of the light source unit, and A is the half-intensity angle of the light source.
4. The light source unit for detecting concave-convex defects according to claim 1, characterized in that: The half intensity angle of the light source is 20° to 30°.
5. The light source unit for detecting concave-convex defects according to claim 1, characterized in that: The light source includes LED lamp beads, and the LED lamp beads of different light sources have different luminous intensities.
6. A detection system, characterized in that: include: The light source unit for detecting concave-convex defects according to any one of claims 1 to 8; A camera assembly is used to collect image information of the illumination area formed by the light source unit.
7. The detection system according to claim 6, characterized in that: Also includes: A carrier assembly, the carrier assembly is used to carry the product to be tested, and the carrier assembly includes: A platform and a driving member, wherein the driving member is used to drive the carrier to rotate.
8. A method for detecting concave-convex defects, characterized in that: Applied to the detection system according to any one of claims 6 to 7, the detection method of the concave-convex defect comprises: Turning on the light source unit so that the light emitted by the multiple light sources of the light source unit is projected onto the product to be inspected; Collecting image information of the product to be inspected based on a camera component; The concave-convex defects of the product to be inspected are determined based on the image information.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for implementing the detection method according to claim 8.
10. A control device, characterized in that: include: a memory storing a computer program; A processor, configured to execute the computer program; Wherein, when executing the computer program, the processor implements the detection method as claimed in claim 8.