Lighting device, defect detection system, defect detection method, defect detection device and controller

By using multi-partition control of dome partition diffuse and direct light partition light sources in the defect detection system, the problem of taking images under more lighting conditions is solved, improving detection accuracy and supporting faster scanning speeds and efficient construction.

CN120539155APending Publication Date: 2025-08-26HANGZHOU HIKROBOT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510610702.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-12
Publication Date
2025-08-26

AI Technical Summary

Technical Problem

Prior art In defect detection systems, how to take more images under more lighting conditions to improve the accuracy of defect detection using photometric stereo technology.

Method used

The dome partition diffuse reflection light source and direct light partition light source are used to divide the light source into multiple lighting partitions respectively, and the light source is turned on and off through the controller to realize image shooting under different lighting conditions.

Benefits of technology

It improves the accuracy of photometric stereo technology in defect detection, and has good hardware synchronization, supporting faster scanning speed and more efficient solution construction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120539155A_ABST
    Figure CN120539155A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a lighting device, a defect detection system, a defect detection method, a defect detection device and a controller. The lighting device comprises a dome partition diffuse reflection light source and a direct light partition light source, a dome shell of the hemispherical shell is buckled on the light-emitting through hole in the center of the heat dissipation bottom plate, and a camera light through hole is formed in the top of the dome shell; the first annular light source is mounted in the dome shell on the heat dissipation bottom plate along the periphery of the light outlet through hole of the heat dissipation bottom plate; the first annular light source is divided into a plurality of first illumination subareas; the direct light partition light source is arranged at the bottom of the heat dissipation bottom plate and surrounds the light outlet through hole. Or the light source is separated from the diffuse reflection light source of the dome partition at intervals in the horizontal direction; the direct light subarea light source is divided into a plurality of second illumination subareas and is used for emitting direct light towards a detection plane where the detected object is located; and more images can be shot under more illumination conditions, so that the accuracy of defect detection by using a photometric stereo technology is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of machine vision technology, and in particular to an illumination device, a defect detection system, a detection method, a device, and a controller. Background Art

[0002] Currently, machine vision technology is used in a variety of applications, such as defect detection systems. These systems primarily utilize photometric stereo technology. Photometric stereo technology exhibits unique advantages in detecting highly reflective objects, complex surfaces, and concave surfaces. For example, it can be used to detect defects such as concavities, holes, and convexities on crystal surfaces.

[0003] Photometric stereo technology uses multiple light sources to illuminate the object at different angles and capture the corresponding images. By observing the brightness changes at each pixel under different lighting conditions, the normal direction of that pixel can be calculated. Ultimately, using this normal information across the entire image, it is possible to characterize the height variations of the object's surface, enabling defect detection based on this height variation information.

[0004] Therefore, in the defect detection system, how to capture more images under more lighting conditions to improve the accuracy of defect detection using photometric stereo technology is an urgent problem to be solved. Summary of the Invention

[0005] The purpose of the embodiments of the present application is to provide an illumination device, a defect detection system, a detection method, a device, and a controller to capture more images under more lighting conditions and improve the accuracy of defect detection using photometric stereo technology. The specific technical solutions are as follows:

[0006] The embodiment of the present application provides a lighting device, including a dome-partitioned diffuse reflection light source and a direct light partitioned light source;

[0007] The dome-shaped partitioned diffuse reflection light source comprises: a heat dissipation base plate, a dome shell, and a first annular light source; the dome shell is buckled onto the light-emitting hole in the center of the heat dissipation base plate; the dome shell is a hemispherical shell, and a camera light hole is provided on the top thereof for the camera to capture an image of the object to be measured located on the detection plane below;

[0008] The first annular light source is mounted on the heat dissipation base plate along the outer periphery of the light-emitting through hole of the heat dissipation base plate and is located within the dome shell. The first annular light source is divided into a plurality of first illumination zones. When each illumination zone is illuminated, light emitted by each illumination zone is irradiated onto the inner wall of the dome shell and reflected by the inner wall of the dome shell onto the object to be detected. The first annular light source is electrically connected to a controller of the defect detection system and can be illuminated or extinguished based on the first illumination zones under the control of the controller.

[0009] The direct light partitioned light source is arranged at the bottom of the heat dissipation base plate and is arranged around the light-emitting hole; and / or is separated and spaced apart from the dome partitioned diffuse reflection light source in the horizontal direction; the direct light partitioned light source is divided into multiple second lighting partitions, which are used to emit direct light toward the detection plane where the object to be measured is located; the direct light partitioned light source is electrically connected to the controller of the defect detection system, and can be controlled by the controller to light up or extinguish the partition based on the second lighting partition.

[0010] In some embodiments, the first annular light source includes: a first annular light board and at least one circle of first lamp beads surrounding the light-emitting hole; the first annular light board is installed on the top surface of the heat dissipation base plate along the outer periphery of the light-emitting hole of the heat dissipation base plate, and is located inside the dome shell; the first lamp beads on the first annular light board, when lit, emit light that irradiates the inner wall of the dome shell, and is reflected by the inner wall of the dome shell to the object to be measured on the detection plane.

[0011] In some embodiments, the first lamp beads on the first annular light panel are evenly divided into a plurality of first lighting zones along at least two diameter directions, and the number of first lamp beads in each first lighting zone is the same;

[0012] The first annular light panel has multiple circles of first lamp beads; the number of first lamp beads in each circle is the same and the intervals are different, or the number of first lamp beads in each circle is different and the intervals are the same;

[0013] The first annular light panel has multiple circles of first lamp beads; each first lamp bead can emit light of two or more wavelengths including white light; or, the wavelengths of the first lamp beads in each circle are different, and the circles of first lamp beads with different wavelengths are arranged at intervals, wherein at least one circle is white light lamp beads; or the wavelengths of the first lamp beads in the same circle are different, and the first lamp beads with different wavelengths in the same circle are arranged at intervals, and the same circle contains at least white light lamp beads.

[0014] In some embodiments, the heat dissipation base plate is provided with a lamp board mounting groove and a dome shell mounting groove in sequence along the light outlet hole toward the outer circumference;

[0015] The first annular light panel is fixed in the light panel mounting groove;

[0016] The bottom of the dome shell is provided with a connecting edge along the circumferential direction; the connecting edge is fixed in the mounting groove of the dome shell, so that the dome shell is fixedly connected to the heat dissipation base plate.

[0017] In some embodiments, the inner wall of the dome shell is covered with a diffuse reflection layer.

[0018] In some embodiments, the dome partitioned diffuse reflection light source further includes a camera bracket; the camera bracket includes: a plurality of arc-shaped support columns and a camera mounting plate;

[0019] The multiple arc-shaped support columns are located outside the dome shell and are evenly mounted on the heat dissipation base plate along the outer circumference of the dome shell; the bottom of each arc-shaped support column is fixedly connected to the heat dissipation base plate, and the top is fixedly connected to the camera mounting plate to support the camera mounting plate; the camera mounting plate is located above the light-emitting through-hole, so that after the camera is installed, the camera lens can pass through the camera mounting plate and capture images through the light-emitting through-hole.

[0020] In some embodiments, the direct light partition light source is provided at the bottom of the heat dissipation base plate;

[0021] The direct light partition light source is a second ring-shaped light source surrounding the light-emitting hole; or, a light source formed by multiple first bar-shaped light sources surrounding the light-emitting hole; the second ring-shaped light source is divided into multiple second lighting partitions; each first bar-shaped light source among the multiple first bar-shaped light sources serves as a second lighting partition.

[0022] In some embodiments, the first stripe light source is a programmable stripe light source.

[0023] In some embodiments, the second annular light source is installed at an angle of - degrees relative to the horizontal direction;

[0024] The installation angle of the first strip light source relative to the horizontal direction is - degree.

[0025] In some embodiments, the second annular light source includes: a second annular light board, at least one circle of second lamp beads surrounding the light-emitting through hole, and a first diffusion plate; the second annular light board is mounted on the bottom surface of the heat dissipation base plate along the outer periphery of the light-emitting through hole of the heat dissipation base plate; each of the second lamp beads is mounted toward the detection plane to emit direct light toward the object to be detected; and the first light diffusion plate is mounted on a side of the second lamp beads facing the detection plane.

[0026] Each of the first bar-shaped light sources includes: a first bar-shaped light board, multiple rows and columns of third lamp beads arranged, and a second diffuser plate; multiple first bar-shaped light boards are installed on the bottom surface of the heat dissipation base plate along the outer periphery of the light-emitting through hole of the heat dissipation base plate; each of the third lamp beads is installed toward the detection plane to emit direct light toward the object to be measured; and a second light diffuser plate is installed on the side of the third lamp beads facing the detection plane.

[0027] In some embodiments, the second lamp beads on the second annular light panel are evenly divided into a plurality of second lighting zones along at least two diameter directions, and the number of second lamp beads in each second lighting zone is the same;

[0028] The second annular light panel has multiple circles of second lamp beads; the number of second lamp beads in each circle is the same and the intervals are different, or the number of second lamp beads in each circle is different and the intervals are the same;

[0029] The second annular light panel has multiple circles of second lamp beads; each second lamp bead can emit light of two or more wavelengths including white light; or, the wavelengths of the second lamp beads in each circle are different, and the second lamp beads of different wavelengths are arranged at intervals, wherein at least one circle contains white light lamp beads; or the second lamp beads in the same circle have different wavelengths, and the second lamp beads of different wavelengths in the same circle are arranged at intervals, and the same circle contains at least white light lamp beads;

[0030] The first strip light board and the multiple rows and columns of third lamp beads arranged therein, each third lamp bead can emit light of two or more wavelengths including white light; or, the wavelengths of the third lamp beads in each row of the first strip light board are different, and the rows of third lamp beads with different wavelengths are arranged at intervals, and at least one row contains white light lamp beads; or the third lamp beads in the same row have different wavelengths, and the third lamp beads with different wavelengths in the same row are arranged at intervals, and the same row contains at least white light lamp beads.

[0031] In some embodiments, the direct light partitioned light source and the dome partitioned diffuse reflection light source are separated and spaced apart in the horizontal direction;

[0032] The direct light partition light source is a third annular light source that is separated and spaced apart from the dome partition diffuse reflection light source in the horizontal direction; or, a light source formed by multiple second strip light sources; the third annular light source is divided into multiple second lighting partitions; each second strip light source in the multiple second strip light sources serves as a second lighting partition; the object to be measured can be moved on the detection plane to: below the central axis of the light source formed by the third annular light source or multiple second strip light sources.

[0033] In some embodiments, the third annular light source includes: a third annular light board, at least one circle of fourth lamp beads surrounding the central axis, and a third diffuser plate; each of the fourth lamp beads of the third annular light board is mounted toward the detection plane to emit direct light toward the object to be detected; the third light diffuser plate is mounted on a side of the fourth lamp beads facing the detection plane;

[0034] Each of the second bar-shaped light sources includes: a second bar-shaped light board, multiple rows and columns of fifth lamp beads arranged, and a fourth diffuser plate; each of the fifth lamp beads is installed toward the detection plane to emit direct light toward the object to be measured; the fourth light diffuser plate is installed on the side of the fifth lamp bead facing the detection plane.

[0035] In some embodiments, the fourth lamp beads on the third annular light panel are evenly divided into a plurality of second lighting zones along at least two diameter directions, and the number of the fourth lamp beads in each second lighting zone is the same;

[0036] The fourth lamp beads of the third annular lamp panel have multiple circles; the number of lamp beads in each circle is the same and the intervals are different, or the number of lamp beads in each circle is different and the intervals are the same;

[0037] The third annular light panel has multiple circles of fourth lamp beads; each fourth lamp bead can emit light of two or more wavelengths, including white light; or, the wavelengths of the fourth lamp beads in each circle are different, and the fourth lamp beads of different wavelengths are arranged at intervals, wherein at least one circle contains white light lamp beads; or the fourth lamp beads in the same circle have different wavelengths, and the fourth lamp beads of different wavelengths in the same circle are arranged at intervals, and the same circle contains at least white light lamp beads;

[0038] The second strip light board and the multiple rows and columns of fifth lamp beads arranged therein, each fifth lamp bead can emit light of two or more wavelengths including white light; or, the wavelengths of the fifth lamp beads in each row of the second strip light board are different, and the rows of fifth lamp beads with different wavelengths are arranged at intervals, and at least one row contains white light lamp beads; or the wavelengths of the fifth lamp beads in the same row are different, and the fifth lamp beads with different wavelengths in the same row are arranged at intervals, and the same row contains at least white light lamp beads.

[0039] An embodiment of the present application further provides a defect detection system, comprising the lighting device according to any of the aforementioned embodiments, at least one camera, and a controller;

[0040] The controller is electrically connected to the first ring light source of the dome partitioned diffuse reflection light source, the direct light partitioned light source and the camera; and is used to control the multiple first lighting partitions of the first ring light source to light up in sequence according to a specified first order and first quantity, and to control the multiple second lighting partitions of the direct light partitioned light source to light up in sequence according to a specified second order and second quantity; and to control the at least one camera to capture an image of the object to be measured when each first lighting partition or second lighting partition is lit; and to perform algorithmic fusion processing on the multiple captured images to obtain height change information characterizing the surface of the object, thereby completing defect detection.

[0041] In some embodiments, the first annular light source of the dome-partitioned diffuse light source comprises multiple circles of first lamp beads; each first lamp bead can emit light of two or more wavelengths, including white light; or, the wavelengths of the first lamp beads in each circle are different, and the circles of first lamp beads with different wavelengths are arranged at intervals, wherein at least one circle contains white light lamp beads; or, the wavelengths of the first lamp beads in the same circle are different, and the first lamp beads with different wavelengths in the same circle are arranged at intervals, and the same circle contains at least white light lamp beads;

[0042] The second lamp beads of the multiple second lighting zones of the direct light zoned light source have multiple circles; the number of second lamp beads in each circle is the same and the intervals are different, or the number of second lamp beads in each circle is different and the intervals are the same; each second lamp bead can emit light of two or more wavelengths including white light; or the wavelengths of the second lamp beads in each circle are different, and the second lamp beads of different wavelengths are arranged in circles at intervals, wherein at least one circle is white light lamp beads; or the second lamp beads in the same circle have different wavelengths, and the second lamp beads of different wavelengths in the same circle are arranged at intervals, and the same circle contains at least white light lamp beads;

[0043] The first bar-shaped light sources of the multiple second lighting partitions of the direct light partition light source have multiple rows and columns of third lamp beads, each of which can emit light of two or more wavelengths including white light; or the wavelengths of the third lamp beads in each row of the first bar-shaped light source are different, and the rows of third lamp beads with different wavelengths are arranged at intervals, wherein at least one row contains white light lamp beads; or the third lamp beads in the same row have different wavelengths, and the third lamp beads with different wavelengths in the same row are arranged at intervals, and the same row contains at least white light lamp beads;

[0044] The controller can control multiple first lighting zones and / or second lighting zones, and light them up in sequence according to the designated zone order, position and number of the first lighting zones and / or the second lighting zones, as well as the lighting order of the lamp beads with different wavelengths in the lighting zones.

[0045] The present application also provides a defect detection method, which is applied to the controller of the aforementioned defect detection system. The method includes:

[0046] When the detected object is located only in the detection area below the dome-area diffuse reflection light source, controlling the plurality of first illumination subareas of the first annular light source to light up in sequence according to a specified first order and first quantity;

[0047] When the detected object is located only in the detection area below the direct light partitioned light source, controlling the plurality of second lighting partitions of the direct light partitioned light source to light up in sequence according to a specified second order and second number;

[0048] When the detected object is located in the detection area below the dome-part diffuse reflection light source and the direct light partion light source, controlling the plurality of first lighting parts and the second lighting parts to light up in sequence according to a third order and a third number of the designated first lighting parts and the second lighting parts;

[0049] Control the at least one camera to capture an image of the object to be measured when the first lighting partition or the second lighting partition is lit; and perform algorithm fusion processing on the multiple captured images to obtain height change information representing the surface of the object to complete defect detection.

[0050] In some embodiments, the first annular light source of the dome-partitioned diffuse light source comprises multiple circles of first lamp beads; each first lamp bead can emit light of two or more wavelengths, including white light; or, the wavelengths of the first lamp beads in each circle are different, and the circles of first lamp beads with different wavelengths are arranged at intervals, wherein at least one circle contains white light lamp beads; or, the wavelengths of the first lamp beads in the same circle are different, and the first lamp beads with different wavelengths in the same circle are arranged at intervals, and the same circle contains at least white light lamp beads;

[0051] The second lamp beads of the multiple second lighting zones of the direct light zoned light source have multiple circles; the number of second lamp beads in each circle is the same and the intervals are different, or the number of second lamp beads in each circle is different and the intervals are the same; each second lamp bead can emit light of two or more wavelengths including white light; or the wavelengths of the second lamp beads in each circle are different, and the second lamp beads of different wavelengths are arranged in circles at intervals, wherein at least one circle is white light lamp beads; or the second lamp beads in the same circle have different wavelengths, and the second lamp beads of different wavelengths in the same circle are arranged at intervals, and the same circle contains at least white light lamp beads;

[0052] The first bar-shaped light sources of the multiple second lighting partitions of the direct light partition light source have multiple rows and columns of third lamp beads, each of which can emit light of two or more wavelengths including white light; or the wavelengths of the third lamp beads in each row of the first bar-shaped light source are different, and the rows of third lamp beads with different wavelengths are arranged at intervals, wherein at least one row contains white light lamp beads; or the third lamp beads in the same row have different wavelengths, and the third lamp beads with different wavelengths in the same row are arranged at intervals, and the same row contains at least white light lamp beads;

[0053] When the detected object is located only in the detection area below the dome-area diffuse reflection light source, controlling the plurality of first lighting zones of the first annular light source to light up in sequence according to a specified first order and first quantity, including: controlling the plurality of first lighting zones to light up in sequence according to a specified first zone order, first position, and first quantity, and a lighting order of first lamp beads of different wavelengths in the first lighting zones;

[0054] When the detected object is only located in the detection area below the direct light partitioned light source, controlling the multiple second lighting partitions of the direct light partitioned light source to light up in sequence according to the specified second order, second position and second number, and the lighting order of the second lamp beads or the third lamp beads with different wavelengths in the second lighting partitions, including: controlling the multiple second lighting partitions to light up in sequence according to the specified second order, second position and second number, and the lighting order of the second lamp beads or the third lamp beads with different wavelengths in the second lighting partitions;

[0055] When the detected object is located in the detection area below the dome partition diffuse reflection light source and the direct light partition light source, controlling the multiple first lighting partitions and the second lighting partitions to light up in sequence according to the third order and third quantity of the specified first lighting partitions and the second lighting partitions, including: controlling the multiple first lighting partitions and / or the second lighting partitions to light up in sequence according to the third order, third position and third quantity of the specified first lighting partitions and / or the second lighting partitions, and the lighting order of the second lamp beads or the third lamp beads of different wavelengths in the lighting partitions.

[0056] The present application also provides a defect detection device, which is applied to the controller of the aforementioned defect detection system. The method includes:

[0057] a first lighting module, configured to control the plurality of first lighting subareas of the first annular light source to light up in sequence according to a specified first order and first quantity when the detected object is located only in the detection area below the dome subarea diffuse reflection light source;

[0058] A second lighting module is configured to control the plurality of second lighting subareas of the direct light subarea light source to light up in sequence according to a specified second order and a second number when the detected object is located only in the detection area below the direct light subarea light source;

[0059] a third lighting module, which controls the plurality of first lighting subareas and the second lighting subareas to light up in sequence according to a third order and a third number of designated first lighting subareas and second lighting subareas when the detected object is located in the detection area below the dome subarea diffuse reflection light source and the direct light subarea light source;

[0060] An image capturing module, configured to control the at least one camera to capture an image of the object being measured when the first lighting subarea or the second lighting subarea is illuminated;

[0061] The algorithm processing module is used to perform algorithm fusion processing on multiple captured images to obtain height change information representing the surface of the object and complete defect detection.

[0062] The present application also provides a controller, including:

[0063] Memory for storing computer programs;

[0064] The processor is used to implement the aforementioned defect detection method when executing the program stored in the memory.

[0065] Beneficial effects of the embodiments of the present application:

[0066] The embodiments of the present application provide an illumination device, a defect detection system, a detection method, a device, and a controller. The illumination device includes a dome-partitioned diffuse reflection light source and a direct light partitioned light source. The first annular light source of the dome-partitioned diffuse reflection light source is divided into a plurality of first illumination partitions, and the direct light partitioned light source is also divided into a plurality of second illumination partitions. Two multi-partitioned light sources are used to illuminate the object to be measured, so that more light with different lighting conditions can illuminate the object to be measured, thereby enabling the camera to capture more images under more lighting conditions, thereby improving the accuracy of defect detection using photometric stereo technology.

[0067] Of course, it is not necessary to achieve all the advantages described above at the same time when implementing any product or method of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0069] Figure 1 This is a schematic structural diagram from a first angle of the first embodiment of the lighting device provided by the present application after a camera is installed;

[0070] Figure 2 for Figure 1 A schematic diagram of the structure of the lighting device from a second angle after the camera is installed;

[0071] Figure 3 for Figure 1 A schematic diagram of the structure of the lighting device from a third angle after the camera is installed;

[0072] Figure 4 for Figure 1 An exploded view of the lighting device shown (the second annular light source is not shown);

[0073] Figure 5 for Figure 4 A magnified view of point A;

[0074] Figure 6 for Figure 4 Enlarged view of point B;

[0075] Figure 7 for Figure 1 Schematic diagram of the light path of the dome-partitioned diffuse reflection light source of the lighting device shown;

[0076] Figure 8 for Figure 7 A schematic diagram of a first partition of the first annular light source of the dome-partitioned diffuse reflection light source is shown;

[0077] Figure 9 for Figure 7 A schematic diagram of a second partitioning method of the first annular light source of the dome-partitioned diffuse reflection light source is shown;

[0078] Figure 10 for Figure 7 A schematic diagram of a first type of lamp arrangement for a dome-partitioned diffuse reflection light source of the lighting device shown;

[0079] Figure 11 for Figure 7 A schematic diagram of a second arrangement of lamp beads for a dome-partitioned diffuse reflection light source of the lighting device shown;

[0080] Figure 12 for Figure 7 A schematic diagram of a third arrangement of lamp beads for a dome-partitioned diffuse reflection light source of the lighting device shown;

[0081] Figure 13 This is a structural schematic diagram of a second embodiment of the lighting device provided by the present application after a camera is installed;

[0082] Figure 14 for Figure 13 A schematic diagram of the partitioning of the direct light partitioning light source of the lighting device shown;

[0083] Figure 15 A schematic diagram of the partitioning of the direct light partitioning light source of the third embodiment of the lighting device provided by the present application;

[0084] Figure 16 for Figure 13 The schematic diagram of the arrangement of a strip light source of direct light partition light source is shown;

[0085] Figure 17 This is a schematic structural diagram of a fourth embodiment of the lighting device provided by the present application after a camera is installed;

[0086] Figure 18 for Figure 17 Schematic diagram of the light path of the direct light partition light source of the lighting device shown;

[0087] Figure 19 This is a schematic structural diagram of a fifth embodiment of the lighting device provided by the present application after a camera is installed;

[0088] Figure 20 for Figure 19 Schematic diagram of the light path of the direct light partition light source of the lighting device shown;

[0089] Figure 21a for Figure 1 Schematic diagram of the overall structure of the lighting device applied to the defect detection system;

[0090] Figure 21b for Figure 13 The overall structural diagram of the lighting device shown is applied to a defect detection system;

[0091] Figure 21c for Figure 17 The overall structural diagram of the lighting device shown is applied to a defect detection system;

[0092] Figure 21d for Figure 19 The overall structural diagram of the lighting device shown is applied to a defect detection system;

[0093] Figure 22 A schematic diagram of a defect detection method flow chart provided in an embodiment of the present application;

[0094] Figure 23 A schematic diagram of a defect detection device module provided in an embodiment of the present application;

[0095] Figure 24 A schematic diagram of a controller provided in an embodiment of the present application.

[0096] Description of reference numerals:

[0097] Dome partition diffuse reflection light source 10; heat dissipation base plate 100; light outlet hole 110; lamp board mounting groove 120; dome shell mounting groove 130; support column mounting groove 140; pressure plate groove 150; arc groove 151;

[0098] Dome housing 200; camera light hole 210; connecting edge 220;

[0099] First annular light source 300; first lamp beads 310; white light lamp beads 311; diffuse reflection layer 320; first annular light board 330; connector 340; branch cable 341; main cable 350; cable pressure plate 360; infrared lamp beads 370; first lighting zone 380; first zone 381; second zone 382; third zone 383; fourth zone 384; fifth zone 385; sixth zone 386; seventh zone 387; eighth zone 388;

[0100] Camera bracket 400; curved support column 410; camera mounting plate 420; lens mounting hole 421; horizontal support plate 430; horizontal support plate light hole 431; support vertical plate 440; first connecting portion 441; supporting portion 442; vertical rib 443; camera fixing bracket 450; second connecting portion 451; camera fixing portion 452; camera fixing hole 453;

[0101] Camera 20; camera lens 21; heat sink 22; network interface connector 23; power interface connector 24;

[0102] Controller 30; Memory 31; Processor 32;

[0103] Detected object 40; detection plane 401; first lighting module 11; second lighting module 12; third lighting module 13; image capture module 14; algorithm processing module 15;

[0104] Direct light partition light source 50; second annular light source 51; second lighting partition 510; second annular light board 511; second lamp beads 512;

[0105] First strip light source 52; first strip light board 520; third lamp bead 521;

[0106] A third annular light source 53; a third annular light board 530; and a fourth lamp bead 531;

[0107] A second strip-shaped light source 54 ; a second strip-shaped light board 540 ; and a fifth lamp bead 541 . DETAILED DESCRIPTION

[0108] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field based on this application are within the scope of protection of this application.

[0109] In order to solve the problem in related art of how to capture more images under more lighting conditions in a defect detection system to improve the accuracy of defect detection using photometric stereo technology, the present application provides an illumination device, a defect detection system, a detection method, a device, and a controller, which are described in detail below:

[0110] The lighting device provided in the embodiment of the present application includes a dome-partitioned diffuse reflection light source and a direct light partitioned light source; the dome-partitioned diffuse reflection light source includes: a heat dissipation base plate, a dome shell and a first annular light source; the dome shell is buckled on the light-emitting hole in the center of the heat dissipation base plate; the dome shell is a hemispherical shell, and a camera light hole is provided on the top thereof for the camera to capture an image of the object to be measured on the detection plane below; the first annular light source is installed on the heat dissipation base plate along the outer periphery of the light-emitting hole of the heat dissipation base plate and is located in the dome shell; the first annular light source is divided into a plurality of first lighting partitions, and the light emitted by each lighting partition after being lit is irradiated into the dome shell. The wall is reflected by the inner wall of the dome shell to the object to be measured; the first annular light source is electrically connected to the controller of the defect detection system, and can, under the control of the controller, light up or turn off the partition based on the first lighting partition; the direct light partition light source is arranged at the bottom of the heat dissipation base plate, surrounding the light-emitting hole; and / or is separated and spaced apart from the dome partition diffuse reflection light source in the horizontal direction; the direct light partition light source is divided into multiple second lighting partitions, which are used to emit direct light toward the detection plane where the object to be measured is located; the direct light partition light source is electrically connected to the controller of the defect detection system, and can, under the control of the controller, light up or turn off the partition based on the second lighting partition.

[0111] In this embodiment, the lighting device includes a dome-partitioned diffuse reflection light source and a direct light partitioned light source. The first annular light source of the dome-partitioned diffuse reflection light source is divided into multiple first lighting partitions, and the direct light partitioned light source is also divided into multiple second lighting partitions. Two multi-partitioned light sources are used to illuminate the object to be measured, so that more light with different lighting conditions can illuminate the object to be measured, so that the camera can capture more images under more lighting conditions, thereby improving the accuracy of defect detection using photometric stereo technology.

[0112] Moreover, compared with the method of independently controlling multiple light sources, the embodiment of the present application performs multi-zone control on each light source separately, with better hardware synchronization and support for faster scanning speed; the installation is simpler and the solution can be built more efficiently; among them, the dome-partitioned diffuse reflection light source adopts a dome shell method, which has more uniform lighting, small energy loss per unit area, and can support line scanning mode.

[0113] The lighting device provided in the embodiments of the present application has at least three types of implementation methods:

[0114] The first type: Integrate the direct light partition light source at the bottom of the heat dissipation base plate;

[0115] The second type: separate the direct light partition light source and the dome partition diffuse reflection light source into separate intervals.

[0116] The third type: separate and spaced apart the direct light partition light source from the dome partition diffuse reflection light source integrated with the direct light partition light source at the bottom of the heat dissipation base plate. Detailed descriptions of each are given below.

[0117] Category I lighting fixtures:

[0118] See also Figures 1 to 4 , Figure 1 This is a schematic structural diagram from a first angle of the first embodiment of the lighting device provided by the present application after a camera is installed; Figure 2 for Figure 1 A schematic diagram of the structure of the lighting device from a second angle after the camera is installed; Figure 3 for Figure 1 A schematic diagram of the structure of the lighting device from a third angle after the camera is installed; Figure 4 for Figure 1 Exploded view of the lighting device shown (the second annular light source is not shown.

[0119] like Figures 1 to 4 As shown, the lighting device includes a dome-partitioned diffuse reflection light source 10 and a direct light partitioned light source 50; the dome-partitioned diffuse reflection light source 10 includes: a heat dissipation base plate 100, a dome shell 200 and a first annular light source 300; the dome shell 200 is buckled on the light-emitting hole 110 in the center of the heat dissipation base plate 100; the dome shell 200 is a hemispherical shell, and a camera light hole 210 is provided on the top thereof for the camera to capture an image of the object to be measured on the detection plane below; the first annular light source 300 is installed on the heat dissipation base plate 100 along the outer periphery of the light-emitting hole 110 of the heat dissipation base plate 100 and is located in the dome shell 200; the first annular light source 300 is divided into a plurality of first lighting partitions 380, each of which is a first illumination partition 380. After the lighting partition is lit, the light emitted is irradiated onto the inner wall of the dome shell 200, and is reflected by the inner wall of the dome shell 200 to the object to be measured; the first annular light source 300 is electrically connected to the controller of the defect detection system, and can, under the control of the controller, light up or turn off the partition based on the first lighting partition 380; the direct light partition light source 50 is arranged at the bottom of the heat dissipation base plate 100 and is arranged around the light-emitting hole 110; the direct light partition light source 50 is divided into multiple second lighting partitions 510, which are used to emit direct light toward the detection plane where the object to be measured is located; the direct light partition light source 50 is electrically connected to the controller of the defect detection system, and can, under the control of the controller, light up or turn off the partition based on the second lighting partition 510.

[0120] In this embodiment, the lighting device includes a dome-partitioned diffuse reflection light source 10 and a direct light partitioned light source 50. The first annular light source 300 of the dome-partitioned diffuse reflection light source 10 is divided into multiple first lighting partitions, and the direct light partitioned light source 50 is also divided into multiple second lighting partitions. Two multi-partitioned light sources are used to illuminate the object to be measured, so that more light with different lighting conditions can be used to illuminate the object to be measured, so that the camera can capture more images under more lighting conditions, thereby improving the accuracy of defect detection using photometric stereo technology.

[0121] Moreover, in this embodiment, the first annular light source 300 is installed on the heat dissipation base plate 100. The installation and fixation of the first annular light source 300 is relatively simple, the installation cost is low, the feasibility is high, and it is more conducive to the heat dissipation of the lamp beads, thereby extending the service life of the lamp beads.

[0122] like Figure 4 As shown, the heat dissipation base plate 100 is provided with a lamp board mounting groove 120 and a dome shell mounting groove 130 in sequence along the light-emitting hole 110 toward the outer circumference; the first annular lamp board 330 is fixed in the lamp board mounting groove 120; the bottom of the dome shell 200 is provided with a connecting edge 220 along the circumference; the connecting edge 220 is fixed in the dome shell mounting groove 130, so that the dome shell 200 is fixedly connected to the heat dissipation base plate 100.

[0123] In this embodiment, the first annular light source 300 can be fixed in the light board mounting groove 120, the connecting edge 220 of the dome shell 200 is fixed in the dome shell mounting groove 130, and the heat dissipation base plate 100 provides support for the first annular light source 300 and the dome shell 200.

[0124] Specifically, the first annular light source 300 can be fixed in the light board mounting groove 120 by screws, and the connecting edge 220 of the dome shell 200 can also be fixed in the dome shell mounting groove 130 by screws.

[0125] In some embodiments, see Figure 5 , Figure 5 for Figure 4 A magnified picture of point A; Figure 5 As shown, the first ring light source 300 is composed of two semicircular light sources, each semicircular light source is provided with a connector 340, each connector 340 is connected to the main cable 350 through a branch cable 341, and the other end of the main cable 350 can be electrically connected to the controller to enable the controller to control the first ring light source 300.

[0126] In some embodiments, the first ring-shaped light source 300 can also be an integral circular light source. In this case, the first ring-shaped light source 300 is provided with a connector 340, which can be directly connected to the bus cable 350. The other end of the bus cable 350 can be electrically connected to the controller to enable the controller to control the first ring-shaped light source 300.

[0127] In some embodiments, the connector 340 may also be connected to a power source via a cable to provide power to the first ring-shaped light source.

[0128] like Figure 5 As shown, a pressure plate groove 150 is provided at the top of the heat dissipation base plate 100 at a position corresponding to the bus cable 350. Semicircular arc-shaped grooves 151 are provided at the bottom of the pressure plate groove 150 and the bottom of the cable pressure plate 360. The inner diameter of the two semicircular arc-shaped grooves 151 combined is adapted to the outer diameter of the bus cable 350. One arc-shaped groove 151 connects the side wall of the heat dissipation base plate 100 and the lamp board mounting groove 120, and the other arc-shaped groove 151 penetrates the cable pressure plate 360 ​​in the width direction of the cable pressure plate 360. The bus cable 350 is arranged in the arc-shaped groove 151.

[0129] The cable pressure plate 360 ​​is fixedly connected to the pressure plate groove 150 by screws, and the main cable 350 is pressed tightly in the arc groove 151; and after the cable pressure plate 360 ​​is fixed in the pressure plate groove 150, the top of the cable pressure plate 360 ​​is flush with the bottom of the dome shell mounting groove 130 to prevent the main cable 350 and the cable pressure plate 360 ​​from affecting the installation of the dome shell 200.

[0130] like Figure 4 As shown, the dome partitioned diffuse reflection light source 10 also includes a camera bracket 400; the camera bracket 400 includes: a plurality of arc-shaped support columns 410 and a camera mounting plate 420; the plurality of arc-shaped support columns 410 are located outside the dome shell 200 and are evenly mounted on the heat dissipation base plate 100 along the outer circumference of the dome shell 200; the bottom of each arc-shaped support column 410 is fixedly connected to the heat dissipation base plate 100, and the top is fixedly connected to the camera mounting plate 420 to support the camera mounting plate 420; the camera mounting plate 420 is located above the light-emitting hole 110, so that after the camera 20 is installed, the camera lens 21 can pass through the camera mounting plate 420 and capture images through the light-emitting hole 110.

[0131] In this embodiment, the camera mounting plate 420 is fixed above the camera light hole 210 by a plurality of arc-shaped support columns 410. The arc-shaped support columns 410 support the camera mounting plate 420 and enable the camera lens 21 to pass through the camera mounting plate 420 and capture images through the camera light hole 210 after the camera 20 is installed.

[0132] Specifically, the bottom of each arc-shaped support column 410 can be fixedly connected to the heat dissipation base plate 100 by screws, and the top can also be fixedly connected to the camera mounting plate 420 by screws.

[0133] like Figure 4 As shown, the heat dissipation base plate 100 is a rectangular base plate; the camera mounting plate 420 is a rectangular mounting plate with a lens mounting hole 421 provided at the center; there are four arc-shaped support columns 410, the bottoms of which are fixedly connected to the four corners of the rectangular base plate; and the tops of which are fixedly connected to the four corners of the rectangular mounting plate.

[0134] In this embodiment, a lens mounting hole 421 is provided at the center of the camera mounting plate 420 , and the camera lens 21 can photograph the object 40 to be measured through the lens mounting hole 421 and the light emitting hole 110 .

[0135] Specifically, support column mounting grooves 140 are provided at the four corners of the rectangular bottom plate, and the bottoms of the arc-shaped support columns 410 are located in the support column mounting grooves 140 and are fixedly connected in the support column mounting grooves 140 .

[0136] See also Figure 6 , Figure 6 for Figure 4 The enlarged view of point B; Figure 6 As shown, a horizontal support plate 430 is fixedly connected to the top of the camera mounting plate 420 , and a horizontal support plate light hole 431 is provided at the center of the horizontal support plate 430 to allow the camera lens 21 to photograph the object 40 to be measured.

[0137] The top of the horizontal support plate 430 is fixedly connected to a support vertical plate 440 . The support vertical plate 440 is L-shaped and includes a first connecting portion 441 and a supporting portion 442 . The first connecting portion 441 is fixedly connected to the horizontal support plate 430 by screws.

[0138] One side of the support portion 442 is fixedly connected to the camera fixing frame 450, which is also L-shaped. The camera fixing frame 450 includes a second connecting portion 451 and a camera fixing portion 452. The second connecting portion 451 is fixedly connected to the support portion 442 by screws.

[0139] A camera fixing hole 453 is provided at the center of the camera fixing portion 452. Heat dissipation fins 22 are provided on the sidewalls and top of the camera 20. The heat dissipation fins 22 protrude from the sidewalls of the camera 20. The camera 20 is inserted into the camera fixing hole 453. The heat dissipation fins 22 protruding from the sidewalls of the camera 20 are larger than the camera fixing hole 453. This allows the bottom of the heat dissipation fins 22 to abut against the outer perimeter of the camera fixing hole 453 on the camera fixing portion 452, dissipating heat from the camera 20.

[0140] Disposing heat dissipation fins 22 on the side walls and top of the camera 20 can also enhance the heat dissipation effect of the camera 20 .

[0141] Moreover, the camera lens 21 can photograph the object 40 through the camera fixing hole 453, the horizontal support plate light hole 431, the lens mounting hole 421 and the camera light hole 210 in sequence.

[0142] In some embodiments, a vertical rib 443 is further provided between the first connection portion 441 and the support portion 442 of the support vertical plate 440 to enhance the rigidity of the support vertical plate 440 .

[0143] In some embodiments, as Figure 6 As shown, a network interface connector 23 and a power interface connector 24 are provided on the top of the camera 20. The network interface connector 23 can be used to connect to the controller 30 to achieve electrical connection between the camera 20 and the controller. The power interface connector 24 can be connected to a power source to supply power to the camera 20.

[0144] See also Figure 4 and Figure 7 , Figure 7 for Figure 1 Schematic diagram of the light path of the dome partition diffuse reflection light source of the lighting device shown; Figure 4 and Figure 7 As shown, the first annular light source 300 includes: a first annular light board 330 and at least one circle of first lamp beads 310 surrounding the light-emitting hole 110; the first annular light board 330 is installed on the top surface of the heat dissipation base plate 100 along the outer periphery of the light-emitting hole 110 of the heat dissipation base plate 100, and is located inside the dome shell 200; the first lamp beads 310 on the first annular light board 330, after being lit, emit light that irradiates the inner wall of the dome shell 200, and is reflected by the inner wall of the dome shell 200 to the object to be measured on the detection plane 401.

[0145] like Figure 1 As shown, the inner wall of the dome shell 200 is covered with a diffuse reflection layer 320 .

[0146] The diffuse reflection layer 320 is formed by coating the inner wall of the dome shell 200 with Teflon coating, barium sulfate coating, nano coating or other common diffuse reflection coating materials.

[0147] In this embodiment, light emitted by the first lamp bead 310 of the first annular light source 300 strikes the diffuse reflection layer 320 on the inner wall of the dome housing 200. Because the dome housing 200 is hemispherical, the light striking the inner wall of the dome housing 200 is diffusely reflected and directed toward the object being measured. Furthermore, the dome design and process are simpler, resulting in a larger effective detection area and a wider range of applications.

[0148] See also Figures 8 to 12, Figure 8 for Figure 7 A schematic diagram of a first partition of the first annular light source of the dome-partitioned diffuse reflection light source is shown; Figure 9 for Figure 7 A schematic diagram of a second partitioning method of the first annular light source of the dome-partitioned diffuse reflection light source is shown; Figure 10 for Figure 7 A schematic diagram of a first type of first lamp bead arrangement of a dome-partitioned diffuse reflection light source of the lighting device shown; Figure 11 for Figure 7 A schematic diagram of the second arrangement of the first lamp beads of the dome-partitioned diffuse reflection light source of the lighting device shown; Figure 12 for Figure 7 A schematic diagram of a third arrangement of first lamp beads for a dome-partitioned diffuse reflection light source of the lighting device shown;

[0149] like Figure 8 and Figure 9 As shown, the first lamp beads 310 on the first annular light plate 330 are evenly divided into a plurality of first lighting subareas 380 along at least two diameter directions, and the number of first lamp beads 310 in each first lighting subarea 380 is the same.

[0150] In the embodiment of the present application, the first lamp beads 310 on the first annular light source 300 are evenly divided into multiple lighting zones along at least two diameter directions, that is, a single lighting device is controlled by zones, which is easy to use.

[0151] Specifically, if Figure 8 As shown, the four partitions of the first annular light panel 330, the first partition 381, the second partition 382, ​​the third partition 383 and the fourth partition 384 can be controlled individually or in any combination, such as the first partition 381 and the second partition 382, ​​the second partition 382 and the third partition 383, the third partition 383 and the fourth partition 384, and the first partition 381 and the fourth partition 384.

[0152] In some embodiments, more partitions may be set, such as Figure 9 As shown, the first partition 381, the second partition 382, ​​the third partition 383, the fourth partition 384, the fifth partition 385, the sixth partition 386, the seventh partition 387, and the eighth partition 388 of the first annular light panel 330 can be controlled individually. The more partitions there are, the more images are captured, and the higher the accuracy of defect detection using photometric stereo technology.

[0153] During zone lighting, each zone can be illuminated individually, or any combination of zones can be arranged to illuminate two or more zones simultaneously, achieving combined lighting. For example, zone 6 386 and zone 7 387 can be illuminated for the first time, and zone 7 387 and zone 8 388 can be illuminated for the second time. Images of the object being inspected are captured in each zone after illumination. This allows for more lighting options and more images to be captured, further enhancing the accuracy of defect detection using photometric stereo technology.

[0154] like Figure 9 and Figure 10 As shown, the first annular light board 330 has multiple circles of first lamp beads 310; the number of first lamp beads 310 in each circle is the same and the intervals are different, or the number of first lamp beads 310 in each circle is different and the intervals are the same.

[0155] L1 and Ln represent the first lamp beads in the first circle and the first lamp beads in the nth circle respectively. The first lamp beads in the first circle and the first lamp beads in the nth circle can be the same in number but different in spacing, or the first lamp beads in the first circle and the first lamp beads in the nth circle can be different in number but the same in spacing.

[0156] In addition, the lighting device provided in the embodiment of the present application can integrate first lamp beads of different wavelengths, and can select first lamp beads of different wavelengths for lighting according to scene requirements. Each time an image is captured, the first lamp beads of the same wavelength are lit.

[0157] like Figure 11 and Figure 12 As shown, the first annular light panel 330 has multiple circles of first lamp beads 310; each first lamp bead 310 can emit light of two or more wavelengths including white light; or, the wavelengths of the first lamp beads 310 in each circle are different, and the circles of first lamp beads 310 with different wavelengths are arranged at intervals, wherein at least one circle is white light first lamp beads 310; or the wavelengths of the first lamp beads 310 in the same circle are different, and the first lamp beads 310 with different wavelengths in the same circle are arranged at intervals, and the same circle contains at least white light first lamp beads 310.

[0158] In this embodiment, compared with the method of setting only one circle of lamp beads in the ring light source, the embodiment of the present application sets multiple circles of lamp beads, and the wavelength of each circle of lamp beads can be set to be different, or the wavelengths of the lamp beads in the same circle can be different. The dome lighting device has more combinations of ring light sources to achieve more types of lighting.

[0159] Specifically, if Figure 11 As shown, the layout of lamp beads of different wavelengths can be set according to the circle interval, such as L1, L3 and other odd-numbered circles for white light, and L2 and L4 and other even-numbered circles for infrared. Among them, white light has at least one circle, and other wavelengths, such as infrared, ultraviolet, etc. have at least one circle.

[0160] like Figure 12As shown, lamp beads of different wavelengths can also be arranged at intervals within each circle. For example, white light beads 311 and infrared lamp beads 370 can be arranged at equal intervals within a circle, such as one white light bead 311 and one infrared lamp bead 370, or two white light beads 311 and one infrared lamp bead 370. Lamp beads are not limited to white light beads 311 and infrared lamp beads 370; they can also be of any other wavelength, such as red light beads, blue light beads, etc.

[0161] In this case, it can be combined with the lighting zoning scheme to achieve more types of lighting. For example: Figure 10 The first ring light source shown is divided into Figure 8 In the four-zone configuration shown, the white light beads 311 and infrared light beads 370 in each zone are illuminated in sequence. This allows for capturing two images for each zone, one under each lighting condition: the white light beads 311 and the other under each lighting condition: the infrared light beads 370. Furthermore, the individual lighting zones can be arranged and combined. This allows for more lighting options, more images to be captured, and higher precision in defect detection using photometric stereo technology.

[0162] The embodiments of the present application can be arranged and combined in a variety of ways, for example: Figure 8 The first annular light source can be divided into a first zone 381, a second zone 382, ​​a third zone 383, and a fourth zone 384, and the second annular light source can be divided into a fifth zone 385, a sixth zone 386, a seventh zone 387, and an eighth zone 388. As shown in Figure 1 below, the first zone 381 is composed of white light beads, the second zone 382 is composed of red light beads, the third zone 383 is composed of white light beads, the fourth zone 384 is composed of red light beads, the fifth zone 385 is composed of white light beads, the sixth zone 386 is composed of red light beads, the seventh zone 387 is composed of white light beads, and the eighth zone 388 is composed of red light beads.

[0163] The first time, the first partition 381 and the third partition 383 are lit up; the second time, the second partition 384 and the fourth partition 384 are lit up; the third time, the fifth partition 385 and the seventh partition 387 are lit up; the fourth time, the sixth partition 386 and the eighth partition 388 are lit up; the fifth time, the first partition 381 and the third partition 383 are lit up; the sixth time, the fifth partition 385 and the seventh partition 387 are lit up, and so on.

[0164]

[0165] Table 1

[0166] The above embodiment only lists the method of lighting up two partitions at a time. The embodiment of the present application is not limited to the above lighting order, and can also light up one partition at a time, or light up three partitions at a time.

[0167] Of course, in the embodiment of the present application, the number of zones of the first and second ring-shaped light sources can also be set to be different. For example, the first ring-shaped light source has four zones, and the second ring-shaped light source has eight zones. Each zone can also be equipped with more than one wavelength of lamp beads. For example, a zone can be equipped with white light lamp beads and red light lamp beads, or each zone can be equipped with white light lamp beads, red light lamp beads, blue light lamp beads, or more. The lamp beads of different wavelengths in each zone can be arranged and combined and lit in sequence.

[0168] like Figure 1 As shown, the direct light partitioned light source 50 is disposed at the bottom of the heat dissipation base plate 100 ; the direct light partitioned light source 50 is a second annular light source 51 surrounding the light emitting through hole 110 .

[0169] In this embodiment, the second annular light source 51 is the same as the first annular light source 300 and can also be divided into multiple lighting areas. Figures 8-12 .like Figure 8 and Figure 9 As shown, the second ring-shaped light source 51 is divided into a plurality of second lighting subareas 510 .

[0170] In some embodiments, the plurality of second lighting subareas 510 of the second annular light source 51 may be the same as or different from the plurality of first lighting subareas 380 of the first annular light source 300 .

[0171] The second annular light source 51 is similar to the first annular light source 300 in terms of implementation and control. That is, the structure of the second annular light source 51 can be similar to that of the first annular light source 300. The difference is that the second annular light source further includes a diffusion plate. Figure 8 The second annular light source 51 includes: a second annular light plate 511, at least one circle of second lamp beads 512 surrounding the light-emitting hole 110, and a first diffusion plate ( Figure 5 (not shown); a second annular light board 511 is installed on the bottom surface of the heat dissipation base plate 100 along the outer periphery of the light-emitting hole 110 of the heat dissipation base plate 100; each second lamp bead 512 is installed toward the detection plane to emit direct light toward the object to be measured; a first diffuser is installed on the side of the second lamp bead 512 facing the detection plane.

[0172] When the second annular light source 51 is close to the detection plane 401 , the light emitted by the second annular light source 51 passes through the first diffuser plate and reaches the detection plane as low-angle direct light, thereby forming low-angle light illumination on the detection plane.

[0173] In some embodiments, the second annular light source 51 is installed at an angle of 0-180 degrees relative to the horizontal direction.

[0174] Specifically, the installation angle of the second lamp bead 512 on the second annular light board 511 relative to the horizontal direction is 0-180 degrees.

[0175] refer to Figure 8 and Figure 9 The second lamp beads 512 on the second annular light board 511 are evenly divided into a plurality of second lighting partitions 510 along at least two diameter directions, and the number of second lamp beads 512 in each second lighting partition 510 is the same.

[0176] In the embodiment of the present application, the second lamp beads 512 on the second annular light source 51 are evenly divided into multiple lighting zones along at least two diameter directions, that is, a single lighting device is controlled by area, which is easy to use.

[0177] refer to Figure 9 and Figure 10 The second annular light board 511 has multiple circles of second lamp beads 512; the number of second lamp beads 512 in each circle is the same and the intervals are different, or the number of second lamp beads 512 in each circle is different and the intervals are the same.

[0178] L1 and Ln represent the first circle of lamp beads and the nth circle of lamp beads respectively. The first circle of lamp beads and the nth circle of lamp beads can have the same number but different intervals, or the first circle of lamp beads and the nth circle of lamp beads can have different numbers but the same intervals.

[0179] In addition, the lighting device provided in the embodiment of the present application can integrate lamp beads of different wavelengths, and can select lamp beads of different wavelengths for lighting according to scene requirements. Each time an image is captured, the lamp beads of the same wavelength are lit.

[0180] refer to Figure 11 and Figure 12 , the second annular light board 511 has multiple circles of second lamp beads 512; each second lamp bead 512 can emit light of two or more wavelengths including white light; or, the wavelengths of the second lamp beads 512 in each circle are different, and the second lamp beads 512 of different wavelengths are arranged in circles at intervals, wherein at least one circle contains white light lamp beads 311; or the second lamp beads 512 in the same circle have different wavelengths, and the second lamp beads 512 of different wavelengths in the same circle are arranged at intervals, and the same circle contains at least white light lamp beads 311;

[0181] Specifically, if Figure 11 As shown, the layout of lamp beads of different wavelengths can be set according to the circle interval, such as L1, L3 and other odd-numbered circles for white light, and L2 and L4 and other even-numbered circles for infrared. Among them, white light has at least one circle, and other wavelengths, such as infrared, ultraviolet, etc. have at least one circle.

[0182] like Figure 12As shown, lamp beads of different wavelengths can also be arranged at intervals within each circle. For example, white light lamp beads 311 and infrared lamp beads 370 can be arranged at equal intervals within a circle, such as one white light lamp bead 311 and one infrared lamp bead 370, or two white light lamp beads 311 and one infrared lamp bead 370. Lamp beads are not limited to white light lamp beads 311 and infrared lamp beads 370; they can also be of any other wavelength, such as red light lamp beads, etc.

[0183] In this case, it can be combined with the lighting zoning scheme to achieve more types of lighting. For example: Figure 10 The second ring light source is shown as being divided into Figure 8 In the four-zone configuration shown, the white light beads 311 and infrared light beads 370 in each zone are illuminated in sequence. This allows for capturing two images for each zone, one under each lighting condition: the white light beads 311 and the other under each lighting condition: the infrared light beads 370. Furthermore, the individual lighting zones can be arranged and combined. This allows for more lighting options, more images to be captured, and higher precision in defect detection using photometric stereo technology.

[0184] See also Figure 13 , Figure 13 This is a structural diagram of the second embodiment of the lighting device provided by this application after a camera is installed; Figure 13 As shown, the direct light partitioned light source 50 may also be a light source formed by a plurality of first strip-shaped light sources 52 surrounding the light-emitting through hole 110 .

[0185] See also Figure 14 , Figure 14 for Figure 13 Schematic diagram of the partitioning of the direct light partitioning light source of the lighting device shown; Figure 14 As shown, each of the plurality of first bar-shaped light sources 52 serves as a second lighting zone 510 .

[0186] In some embodiments, the first stripe light source 52 is a programmable stripe light source.

[0187] like Figure 14 As shown, each first strip light source 52 includes: a first strip light board 520, multiple rows and columns of third lamp beads 521, and a second diffuser plate; multiple first strip light boards 520 are installed on the bottom surface of the heat dissipation base plate 100 along the outer periphery of the light-emitting through hole 110 of the heat dissipation base plate 100; each third lamp bead 521 is installed toward the detection plane to emit direct light to the object to be measured; the second light diffuser plate is installed on the side of the third lamp bead 521 facing the detection plane.

[0188] When the first strip light source 52 is close to the detection plane, the light emitted by the first strip light source 52 passes through the second diffusion plate and reaches the detection plane as low-angle direct light, thereby forming low-angle light illumination on the detection plane.

[0189] Specifically, if Figure 14 As shown, there may be four first bar-shaped light sources 52 , which surround the light-emitting hole 110 to form a light source. Each first bar-shaped light source 52 serves as a second lighting partition 510 , that is, there are four second lighting partitions 510 .

[0190] In some embodiments, the first strip light source 52 is installed at an angle of 0-180 degrees relative to the horizontal direction.

[0191] Specifically, the installation angle of the third lamp beads 521 on the first strip light board 520 relative to the horizontal direction is 0-180 degrees.

[0192] In some embodiments, the quadrilateral strip light source arrangement may also be changed to a hexagon, an octagon, an N-gon, etc.

[0193] Each partition can be lit up individually in sequence, or different partitions can be lit up in combination. It should be noted that in order to ensure that the light irradiated on the object to be tested by each lit partition is uniform and the brightness of the light source in each combination is consistent, the number of partitions lit up each time should be the same; the more partitions of the light source, the higher the accuracy of defect detection.

[0194] In some embodiments, see Figure 15 , Figure 15 This is a schematic diagram of the partitioning of the direct light partitioning light source of the third embodiment of the lighting device provided by the present application; Figure 15 As shown, there can also be six first bar-shaped light sources 52. The six first bar-shaped light sources 52 surround the light-emitting hole 110 to form a light source. Each first bar-shaped light source 52 serves as a second illumination zone 510, i.e., there are six second illumination zones 510. Each zone can be illuminated individually or in combination. To ensure uniform light illumination on the object being measured, the same number of zones should be illuminated at any one time.

[0195] See also Figure 16 , Figure 16 for Figure 13 The schematic diagram of the arrangement of a strip light source of direct light partition light source is shown; Figure 16As shown, the first strip light board 520 and multiple rows and columns of third lamp beads 521 are arranged, and each third lamp bead 521 can emit light of two or more wavelengths including white light; or, the wavelengths of the third lamp beads 521 in each row of the first strip light board 520 are different, and the rows of third lamp beads 521 with different wavelengths are arranged at intervals, and at least one row contains white light lamp beads 311; or the third lamp beads 521 in the same row have different wavelengths, and the third lamp beads 521 with different wavelengths in the same row are arranged at intervals, and the same row contains at least white light lamp beads 311.

[0196] For example, the layout of the lamp beads of different wavelengths on the first strip light board 520 can be arranged according to row spacing, such as odd-numbered rows such as L1 and L3 are white light, and even-numbered rows such as L2 and L4 are infrared (or other wavelengths). Another example is L1, L4, L7 are white light, L2, L5, L8 are infrared, L3, L6, L9 are red light, and so on.

[0197] Lamp beads of different wavelengths can also be arranged at intervals within each row. For example, in row L1, white light and infrared light beads can be arranged at intervals. These intervals can be equal, such as one white light bead 311 and one infrared bead 370, or two white light bead 311 and one infrared bead 370. Lamp bead combinations are not limited to white light and infrared; any other wavelength can also be used, such as a three-wavelength combination of white light, infrared light, and red light, or a four-wavelength combination of white light, infrared light, red light, and blue light.

[0198] The third lamp bead 521 may be a multi-wavelength integrated lamp bead, that is, a single lamp bead contains two or more wavelengths including white light; such as white light plus infrared light, white light plus red light plus green light, white light plus red light plus green light plus blue light, etc.;

[0199] In this embodiment, the multi-color LEDs simply need to be arranged normally, without considering the spacing of different wavelengths, to achieve multi-wavelength illumination. The multi-zone light source is controlled using a zoned lighting method, with corresponding wavelengths selected and illuminated sequentially according to a preset zone sequence. A camera captures images from each zone's lighting angle and transmits them to the controller for processing. Using a built-in photometric stereo algorithm, it obtains information about surface defects for defect detection.

[0200] Category II lighting devices:

[0201] See also Figure 17 , Figure 17 This is a structural diagram of the fourth embodiment of the lighting device provided by this application after a camera is installed; Figure 17As shown, the direct light partitioned light source 50 is separated and spaced apart from the dome partitioned diffuse reflection light source 10 in the horizontal direction; the direct light partitioned light source 50 is a third annular light source 53 separated and spaced apart from the dome partitioned diffuse reflection light source 10 in the horizontal direction; the third annular light source 53 is divided into multiple second lighting partitions 510; the object to be measured can be moved on the detection plane to: below the central axis of the third annular light source 53.

[0202] Specifically, the dome partitioned diffuse reflection light source 10 and the third annular light source 53 spaced apart therefrom in the horizontal direction can be suspended on the ceiling of the detection area or mounted beside the detection area via a bracket.

[0203] In this embodiment, the third annular light source 53 has the same structure as the second annular light source 51. Figure 8 The third annular light source 53 includes: a third annular light board 530, at least one circle of fourth lamp beads 531 surrounding the central axis, and a third diffusion plate ( Figure 4 not shown); see Figure 18 , Figure 18 for Figure 17 Schematic diagram of the light path of the direct light partition light source of the lighting device shown; Figure 18 As shown, each fourth lamp bead 531 of the third annular light board 530 is installed toward the detection plane 401 to emit direct light toward the object to be detected; the third diffusion plate is installed on the side of the fourth lamp bead 531 facing the detection plane 401.

[0204] refer to Figures 8 to 12 The fourth lamp beads 531 on the third annular light board 530 are evenly divided into multiple second lighting zones 510 along at least two diameter directions, and the number of fourth lamp beads 531 in each second lighting zone 510 is the same; the third annular light board 530 has multiple circles of fourth lamp beads 531; the number of lamp beads in each circle is the same and the intervals are different, or the number of lamp beads in each circle is different and the intervals are the same; the third annular light board 530 has multiple circles of fourth lamp beads 531; each fourth lamp bead 531 can emit light of two or more wavelengths including white light; or the wavelengths of the fourth lamp beads 531 in each circle are different, and the circles of fourth lamp beads 531 with different wavelengths are arranged at intervals, wherein at least one circle is white light lamp beads 311; or the wavelengths of the fourth lamp beads 531 in the same circle are different, and the fourth lamp beads 531 with different wavelengths in the same circle are arranged at intervals, and the same circle contains at least white light lamp beads 311.

[0205] See also Figure 19 , Figure 19 This is a structural diagram of the fifth embodiment of the lighting device provided by this application after installing a camera; Figure 19As shown, the direct light partitioned light source 50 is separated and spaced apart from the dome partitioned diffuse reflection light source 10 in the horizontal direction; the direct light partitioned light source 50 can also be a light source formed by a plurality of second bar light sources 54 that are separated and spaced apart from the dome partitioned diffuse reflection light source 10 in the horizontal direction; each second bar light source 54 in the plurality of second bar light sources 54 serves as a second lighting partition 510; the object to be measured can be moved on the detection plane to: below the central axis of the light source formed by the plurality of second bar light sources 54.

[0206] Specifically, the dome partitioned diffuse reflection light source 10 and the light source formed by the plurality of second strip light sources 54 separated and spaced apart from it in the horizontal direction can be suspended on the ceiling of the detection area or mounted next to the detection area via a bracket.

[0207] The plurality of second strip-shaped light sources 54 can be connected end to end and fixed by screws to form a light source.

[0208] refer to Figure 16 Each second strip light source 54 includes: a second strip light board 540, a plurality of rows and columns of fifth lamp beads 541 and a fourth diffusion plate; see Figure 20 , Figure 20 for Figure 19 Schematic diagram of the light path of the direct light partition light source of the lighting device shown; Figure 20 As shown, each fifth lamp bead 541 is installed toward the detection plane 401 to emit direct light toward the object being detected; and the fourth light diffusion plate is installed on the side of the fifth lamp bead 541 facing the detection plane 401 .

[0209] like Figure 16 As shown, the second strip light board 540 and multiple rows and columns of fifth lamp beads 541 are arranged, and each fifth lamp bead 541 can emit light of two or more wavelengths including white light; or, the wavelengths of the fifth lamp beads 541 in each row of the second strip light board 540 are different, and the rows of fifth lamp beads 541 with different wavelengths are arranged at intervals, and at least one row contains white light lamp beads 311; or the wavelengths of the fifth lamp beads 541 in the same row are different, and the fifth lamp beads 541 with different wavelengths in the same row are arranged at intervals, and the same row contains at least white light lamp beads 311.

[0210] In some embodiments, two partitions may be illuminated at a time, one partition may be illuminated at a time, or three partitions may be illuminated at a time.

[0211] In the embodiment of the present application, the number of zones of the first and second annular light sources can be set to be the same, with each zone containing lamp beads of a single wavelength, such as white light lamp beads or red light lamp beads. Alternatively, the number of zones of the first and second annular light sources can be set to be different, for example, the first annular light source has four zones and the second annular light source has eight zones. Each zone can also contain lamp beads of more than one wavelength. For example, a zone can contain both white light and red light lamp beads, or each zone can contain white light, red light, and blue light lamp beads, or more. The lamp beads of different wavelengths in each zone can be arranged and combined to light up in sequence.

[0212] Category III lighting devices:

[0213] refer to Figure 17 , further, in Figure 17 The bottom of the heat dissipation base plate 100 of the dome partition diffuse reflection light source 10 is integrated with a direct light partition light source. Or, refer to Figure 19 , further in Figure 19 The bottom of the heat dissipation base plate 100 of the dome partitioned diffuse reflection light source 10 is integrated with a direct light partitioned light source.

[0214] This type of lighting device not only integrates the dome partitioned diffuse reflection light source 10, but also provides an additional direct light partitioned light source, so that more lighting combinations can be arranged, more pictures can be taken, and the accuracy of defect detection using photometric stereo technology is higher.

[0215] The defect detection system is described in detail below.

[0216] See also Figures 21a to 21d , Figure 21a for Figure 1 Schematic diagram of the overall structure of the lighting device applied to the defect detection system; Figure 21b for Figure 13 The overall structural diagram of the lighting device shown is applied to a defect detection system; Figure 21c for Figure 17 The overall structural diagram of the lighting device shown is applied to a defect detection system; Figure 21d for Figure 19 The schematic diagram of the overall structure of the lighting device shown is applied to the defect detection system.

[0217] like Figures 21a to 21d As shown, an embodiment of the present application further provides a defect detection system, comprising the lighting device in any of the above embodiments, at least one camera 20 and a controller 30;

[0218] The controller 30 is electrically connected to the first ring light source 300, the direct light partition light source 50, and the camera 20 of the dome partition diffuse reflection light source 10; and is used to control the multiple first lighting partitions 380 of the first ring light source 300 to light up in sequence according to a specified first order and first quantity, and to control the multiple second lighting partitions 510 of the direct light partition light source 50 to light up in sequence according to a specified second order and second quantity; and to control at least one camera 20 to capture an image of the object 40 when the first lighting partition 380 or the second lighting partition 510 is illuminated; and to perform algorithmic fusion processing on the multiple captured images to obtain height change information representing the surface of the object and complete defect detection. When the space of the application environment is limited, an integrated installation method can be selected. The multi-partition ring light source can be conveniently connected to the dome partition diffuse reflection light source through a connector, and the product can be imaged by two multi-partition light sources at the same time; specifically, one multi-partition imaging method is high-angle diffuse light; the other is low-angle direct light multi-partition imaging; the connection methods include but are not limited to screw and screw hole matching, and clamp mounting matching.

[0219] Since lighting devices are divided into the first type in which the direct light partitioned light source 50 is integrated at the bottom of the dome partitioned diffuse reflection light source 10, the second type in which the direct light partitioned light source 50 and the dome partitioned diffuse reflection light source 10 are separated in the horizontal direction, and the third type in which the direct light partitioned light source is separated and spaced apart from the dome partitioned diffuse reflection light source integrated with the direct light partitioned light source at the bottom of the heat dissipation base plate, the defect detection system provided in the embodiments of the present application is also divided into three corresponding types, which are described in detail below.

[0220] The first type of defect detection system:

[0221] like Figure 21a and Figure 21b As shown, the defect detection system includes a lighting device, a camera 20 and a controller 30; the direct light partition light source 50 is fixed under the heat dissipation base plate 100 of the dome partition diffuse reflection light source 10, and the controller 30 is electrically connected to the first ring light source 300 of the dome partition diffuse reflection light source 10, the direct light partition light source 50 and a camera 20; it is used to control the multiple first lighting partitions 380 of the first ring light source 300 to light up in sequence according to the specified first order and first quantity, and to control the multiple second lighting partitions 510 of the direct light partition light source 50 to light up in sequence according to the specified second order and second quantity; and to control a camera 20 to capture an image of the object to be tested 40 when the first lighting partition 380 or the second lighting partition 510 is lit; and to perform algorithm fusion processing on the multiple captured images to obtain height change information representing the surface of the object and complete defect detection. Among them, Figure 21a The direct light partition light source 50 is the aforementioned second annular light source, Figure 21b The direct light partition light source 50 is the aforementioned light source formed by a plurality of bar-shaped light sources.

[0222] The second type of defect detection system:

[0223] When the space in the application environment is relatively sufficient and the application time requirement is high, a discrete installation method can be selected. The discrete combination form can arrange two multi-zone light sources respectively through two front and rear stations on the detection plane 401.

[0224] like Figure 21c and Figure 21d As shown, the defect detection system includes a lighting device, two cameras 20 and a controller 30; the direct light partition light source 50 and the dome partition diffuse reflection light source 10 are separated in the horizontal direction, one camera 20 is arranged on the top of the dome partition diffuse reflection light source 10, and one camera 20 is arranged above the central axis of the direct light partition light source 50. The controller 30 is electrically connected to the first ring light source 300 of the dome partition diffuse reflection light source 10, the direct light partition light source 50 and the two cameras 20; it is used to control the multiple first lighting partitions 380 of the first ring light source 300 to light up in sequence according to the specified first order and first quantity, and to control the multiple second lighting partitions 510 of the direct light partition light source 50 to light up in sequence according to the specified second order and second quantity; and to control the two cameras 20 to capture images of the object to be measured 40 when the first lighting partition 380 or the second lighting partition 510 is lit; and to perform algorithm fusion processing on the multiple captured images to obtain height change information characterizing the surface of the object and complete defect detection. Among them, Figure 21c The direct light partition light source 50 is the aforementioned second annular light source, Figure 21d The direct light partition light source 50 is the aforementioned light source formed by a plurality of bar-shaped light sources.

[0225] In some embodiments, the first lamp beads 310 of the first annular light source 300 of the dome partitioned diffuse reflection light source 10 have multiple circles; each first lamp bead 310 can emit light of two or more wavelengths including white light; or, the wavelengths of the first lamp beads 310 in each circle are different, and the circles of first lamp beads 310 with different wavelengths are arranged at intervals, wherein at least one circle is white light lamp beads 311; or the wavelengths of the first lamp beads 310 in the same circle are different, and the first lamp beads 310 with different wavelengths in the same circle are arranged at intervals, and the same circle contains at least white light lamp beads 311.

[0226] The direct light partitioned light source 50 has multiple circles of second lamp beads 512 in multiple second lighting partitions 510; the number of second lamp beads 512 in each circle is the same and the intervals are different, or the number of second lamp beads 512 in each circle is different and the intervals are the same; each second lamp bead 512 can emit light of two or more wavelengths including white light; or the wavelengths of the second lamp beads 512 in each circle are different, and the circles of second lamp beads 512 with different wavelengths are arranged at intervals, wherein at least one circle is white light lamp beads 311; or the wavelengths of the second lamp beads 512 in the same circle are different, and the second lamp beads 512 with different wavelengths in the same circle are arranged at intervals, and the same circle contains at least white light lamp beads 311.

[0227] The first strip light sources 52 of the multiple second lighting partitions 510 of the direct light partition light source 50 have multiple rows and columns of third lamp beads 521, and each third lamp bead 521 can emit light of two or more wavelengths including white light; or, the wavelengths of the third lamp beads 521 in each row of the first strip light source 52 are different, and the rows of third lamp beads 521 with different wavelengths are arranged at intervals, and at least one row contains white light lamp beads 311; or the third lamp beads 521 in the same row have different wavelengths, and the third lamp beads 521 with different wavelengths in the same row are arranged at intervals, and the same row contains at least white light lamp beads 311.

[0228] The controller 30 can control multiple first lighting zones 380 and / or second lighting zones 510 to light up in sequence according to the designated zone order, position and number of the first lighting zones 380 and / or second lighting zones 510, as well as the lighting order of the lamp beads of different wavelengths in the lighting zones.

[0229] The third type of defect detection system:

[0230] Not only does the dome partitioned diffuse reflection light source 10 integrate the dome partitioned diffuse reflection light source 10, but a direct light partitioned light source is also provided, so that more lighting arrangements and combinations are possible, more pictures can be taken, and the accuracy of defect detection using photometric stereo technology is higher.

[0231] This embodiment of the application provides a multi-zone (at least three zones) and wavelength-selectable illumination device. This device, when combined with a camera lens, forms the hardware component of a defect detection system. Combined with the multi-zone combined illumination scheme, multiple sets of images are generated. After algorithmic processing, these images can be used to characterize height variations on an object's surface, enabling defect detection.

[0232] Moreover, the embodiments of the present application adopt a multi-zone multi-wavelength lighting method, and adopt a fixed integrated device and a discrete device respectively, which can adapt to a wide range of application scenarios.

[0233] The embodiment of the present application adopts two light sources, a dome partitioned diffuse reflection light source 10 and a direct light partitioned light source 50, which are integrated or separately installed to enhance the adaptability of product installation, and can simultaneously detect different defects of the same product, thereby enhancing the functional adaptability of the product; the combination and independent arrangement schemes of the dome partitioned diffuse reflection light source 10 and the direct light partitioned light source 50 can be switched according to actual application requirements; or they can be lit at the same time.

[0234] Each light source can be directly illuminated or illuminated in multiple zones. Combining multiple zones, combined with system detection algorithms, enables defect detection, simplifies setup, improves usability, and enhances product adaptability. Each light source can be a single wavelength or a combination of multiple wavelengths. Multiple zones and multiple wavelengths can be combined to provide different wavelengths, such as white light plus infrared light, depending on the scenario. This allows for strong adaptability and enhances product functionality. The hierarchical layout of the lamp beads ensures product performance.

[0235] The present application also provides a defect detection method, which is applied to the controller 30 of the defect detection system in any of the above embodiments. Figure 22 , Figure 22 A flow chart of a defect detection method provided in an embodiment of the present application; Figure 22 As shown, the method includes:

[0236] S101: When the detected object is located only in the detection area below the dome-area diffuse reflection light source 10, the plurality of first illumination subareas 380 of the first annular light source 300 are controlled to light up in sequence according to a specified first order and first quantity;

[0237] S102: When the detected object is located only in the detection area below the direct light partitioned light source 50, the plurality of second lighting partitions 510 of the direct light partitioned light source 50 are controlled to light up in sequence according to a specified second order and second number;

[0238] S103: When the detected object is located in the detection area below the dome-partitioned diffuse reflection light source 10 and the direct light partioned light source 50, the plurality of first lighting partitions 380 and second lighting partitions 510 are controlled to be sequentially illuminated according to a third order and a third number of the designated first lighting partitions 380 and second lighting partitions 510;

[0239] S104: Control at least one camera 20 to capture an image of the object under test when the first lighting subarea 380 and / or the second lighting subarea 510 is illuminated;

[0240] S105: performing algorithm fusion processing on the multiple captured images to obtain height change information representing the surface of the object and complete defect detection.

[0241] In some embodiments, the first lamp beads 310 of the first annular light source 300 of the dome partitioned diffuse reflection light source 10 have multiple circles; each first lamp bead 310 can emit light of two or more wavelengths including white light; or, the wavelengths of the first lamp beads 310 in each circle are different, and the circles of first lamp beads 310 with different wavelengths are arranged at intervals, wherein at least one circle is white light lamp beads 311; or the wavelengths of the first lamp beads 310 in the same circle are different, and the first lamp beads 310 with different wavelengths in the same circle are arranged at intervals, and the same circle contains at least white light lamp beads 311.

[0242] The direct light partitioned light source 50 has multiple circles of second lamp beads 512 in multiple second lighting partitions 510; the number of second lamp beads 512 in each circle is the same and the intervals are different, or the number of second lamp beads 512 in each circle is different and the intervals are the same; each second lamp bead 512 can emit light of two or more wavelengths including white light; or the wavelengths of the second lamp beads 512 in each circle are different, and the circles of second lamp beads 512 with different wavelengths are arranged at intervals, wherein at least one circle is white light lamp beads 311; or the wavelengths of the second lamp beads 512 in the same circle are different, and the second lamp beads 512 with different wavelengths in the same circle are arranged at intervals, and the same circle contains at least white light lamp beads 311.

[0243] The first strip light sources 52 of the multiple second lighting partitions 510 of the direct light partition light source 50 have multiple rows and columns of third lamp beads 521, and each third lamp bead 521 can emit light of two or more wavelengths including white light; or, the wavelengths of the third lamp beads 521 in each row of the first strip light source 52 are different, and the rows of third lamp beads 521 with different wavelengths are arranged at intervals, and at least one row contains white light lamp beads 311; or the third lamp beads 521 in the same row have different wavelengths, and the third lamp beads 521 with different wavelengths in the same row are arranged at intervals, and the same row contains at least white light lamp beads 311.

[0244] When the object to be detected is only located in the detection area below the dome partition diffuse reflection light source 10, the multiple first lighting partitions 380 of the first ring light source 300 are controlled to light up in sequence according to the specified first order and first quantity, including: controlling the multiple first lighting partitions to light up in sequence according to the specified first order, first position and first quantity, and the lighting order of the first lamp beads of different wavelengths in the first lighting partition.

[0245] When the object to be detected is only located in the detection area below the direct light partition light source 50, the multiple second lighting partitions 510 of the direct light partition light source 50 are controlled to light up in sequence according to the specified second order and second quantity, including: controlling the multiple second lighting partitions to light up in sequence according to the specified second order, second position and second quantity, and the lighting order of the second lamp beads or third lamp beads of different wavelengths in the second lighting partitions.

[0246] When the object to be detected is located in the detection area below the dome partition diffuse reflection light source 10 and the direct light partition light source 50, multiple first lighting partitions 380 and second lighting partitions 510 are controlled to light up in sequence according to the third order and third quantity of the specified first lighting partitions 380 and second lighting partitions 510, including: controlling multiple first lighting partitions 380 and / or second lighting partitions 510 to light up in sequence according to the third order, third position and third quantity of the specified first lighting partitions 380 and / or second lighting partitions 510, as well as the lighting order of the second lamp beads or third lamp beads with different wavelengths in the lighting partition.

[0247] The present application also provides a defect detection device, which is applied to the controller 30 of the defect detection system in any of the above embodiments. Figure 23 , Figure 23 Schematic diagram of the defect detection device module provided in the embodiment of the present application; Figure 23 As shown, the defect detection includes: a first lighting module 11, which is used to control the multiple first lighting partitions of the first ring light source to light up in sequence according to a specified first order and a first quantity when the object to be detected is only located in the detection area below the dome partition diffuse reflection light source; a second lighting module 12, which is used to control the multiple second lighting partitions of the direct light partition light source to light up in sequence according to a specified second order and a second quantity when the object to be detected is only located in the detection area below the direct light partition light source; a third lighting module 13, which controls the multiple first lighting partitions 380 and the second lighting partition 510 to light up in sequence according to a specified third order and a third quantity of the first lighting partitions 380 and the second lighting partition 510 when the object to be detected is located in the detection area below the dome partition diffuse reflection light source 10 and the direct light partition light source 50; an image shooting module 14, which is used to control at least one camera to capture an image of the object to be detected when the first lighting partition or the second lighting partition is lit; an algorithm processing module 15, which is used to perform algorithm fusion processing on the multiple captured images to obtain height change information characterizing the surface of the object and complete defect detection.

[0248] The present application also provides a controller, see Figure 24 , Figure 24 A schematic diagram of a controller provided in an embodiment of the present application; Figure 24 As shown, the controller includes: a memory 31 for storing computer programs; a processor 32 for implementing the defect detection method in any of the above embodiments when executing the program stored in the memory.

[0249] An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the defect detection method in any of the above embodiments is implemented.

[0250] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

[0251] Each embodiment in this specification is described in a related manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiment is generally similar to the method embodiment, so the description is relatively simple. For related parts, refer to the description of the method embodiment.

[0252] The above description is only a preferred embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application are included in the scope of protection of the present application.

Claims

1. A lighting device, characterized in that: It includes a dome-area partitioned diffuse reflection light source (10) and a direct light partitioned light source (50); A dome-partitioned diffuse reflection light source (10) comprises: a heat dissipation base plate (100), a dome shell (200), and a first annular light source (300); the dome shell (200) is buckled onto a light-emitting through hole (110) at the center of the heat dissipation base plate (100); the dome shell (200) is a hemispherical shell, and a camera light hole (210) is provided on the top thereof for the camera to capture an image of a detected object located on a detection plane below; The first annular light source (300) is installed on the heat dissipation base plate (100) along the outer periphery of the light-emitting through hole (110) of the heat dissipation base plate (100) and is located inside the dome shell (200); the first annular light source (300) is divided into a plurality of first lighting partitions (380), and the light emitted by each lighting partition after being lit is irradiated onto the inner wall of the dome shell (200) and reflected by the inner wall of the dome shell (200) to the object to be measured; the first annular light source (300) is electrically connected to a controller of the defect detection system and can be lit or extinguished based on the first lighting partition (380) under the control of the controller; The direct light partitioned light source (50) is arranged at the bottom of the heat dissipation base plate (100) and is arranged around the light-emitting through hole (110); and / or is arranged to be separated and spaced apart from the dome partitioned diffuse reflection light source (10) in the horizontal direction; the direct light partitioned light source (50) is divided into a plurality of second lighting partitions (510) for emitting direct light toward a detection plane where the object to be detected is located; the direct light partitioned light source (50) is electrically connected to a controller of the defect detection system and can, under the control of the controller, light up or extinguish the partitions based on the second lighting partitions (510).

2. The lighting device according to claim 1, characterized in that The first annular light source (300) comprises: a first annular light board (330) and at least one circle of first lamp beads (310) surrounding the light-emitting through hole (110); the first annular light board (330) is installed on the top surface of the heat dissipation base plate (100) along the outer periphery of the light-emitting through hole (110) of the heat dissipation base plate (100), and is located inside the dome shell (200); the first lamp beads (310) on the first annular light board (330) emit light that is irradiated onto the inner wall of the dome shell (200) after being lit, and is reflected by the inner wall of the dome shell (200) to the object to be detected on the detection plane.

3. The lighting device according to claim 2, characterized in that The first lamp beads (310) on the first annular light panel (330) are evenly divided into a plurality of first lighting subareas (380) along at least two diameter directions, and the number of first lamp beads (310) in each first lighting subarea (380) is the same; The first annular light panel (330) has multiple circles of first lamp beads (310); the number of first lamp beads (310) in each circle is the same and the intervals are different, or the number of first lamp beads (310) in each circle is different and the intervals are the same; The first annular light panel (330) has multiple circles of first lamp beads (310); each first lamp bead (310) can emit light of two or more wavelengths, including white light; or, the wavelengths of the first lamp beads (310) in each circle are different, and the circles of first lamp beads (310) with different wavelengths are arranged at intervals, wherein at least one circle is white light lamp beads (311); or the wavelengths of the first lamp beads (310) in the same circle are different, and the first lamp beads (310) with different wavelengths in the same circle are arranged at intervals, and the same circle contains at least white light lamp beads (311).

4. The lighting device according to claim 2, characterized in that The heat dissipation base plate (100) is provided with a lamp board mounting groove (120) and a dome shell mounting groove (130) in sequence along the light-emitting through hole (110) toward the outer circumference; The first annular light panel (330) is fixed in the light panel mounting groove (120); The bottom of the dome shell (200) is provided with a connecting edge (220) along the circumferential direction; the connecting edge (220) is fixed in the dome shell mounting groove (130), so that the dome shell (200) is fixedly connected to the heat dissipation base plate (100).

5. The lighting device according to claim 1, wherein The inner wall of the dome shell (200) is covered with a diffuse reflection layer (320).

6. The lighting device according to claim 1, characterized in that The dome partitioned diffuse reflection light source (10) further includes a camera bracket (400); the camera bracket (400) includes: a plurality of arc-shaped support columns (410) and a camera mounting plate (420); The plurality of arc-shaped support columns (410) are located outside the dome shell (200) and are evenly mounted on the heat dissipation base plate (100) along the outer circumference of the dome shell (200); the bottom of each arc-shaped support column (410) is fixedly connected to the heat dissipation base plate (100), and the top is fixedly connected to the camera mounting plate (420) to support the camera mounting plate (420); the camera mounting plate (420) is located above the light-emitting through hole (110), so that after the camera (20) is installed, the camera lens (21) can pass through the camera mounting plate (420) and capture an image through the light-emitting through hole (110).

7. The lighting device according to claim 1, characterized in that The direct light partition light source (50) is arranged at the bottom of the heat dissipation base plate (100); The direct light partitioned light source (50) is a second annular light source (51) surrounding the light-emitting through hole (110); or, a light source formed by a plurality of first strip-shaped light sources (52) surrounding the light-emitting through hole (110); the second annular light source (51) is divided into a plurality of second lighting partitions (510); and each first strip-shaped light source (52) among the plurality of first strip-shaped light sources (52) serves as a second lighting partition (510).

8. The lighting device according to claim 7, characterized in that The first stripe light source (52) is a program-controlled stripe light source.

9. The lighting device according to claim 7, characterized in that The installation angle of the second annular light source (51) relative to the horizontal direction is 0-180 degrees; The installation angle of the first strip-shaped light source (52) relative to the horizontal direction is 0-180 degrees.

10. The lighting device according to claim 7, characterized in that The second annular light source (51) comprises: a second annular light plate (511), at least one circle of second lamp beads (512) surrounding the light-emitting through hole (110), and a first diffusion plate; the second annular light plate (511) is mounted on the bottom surface of the heat dissipation base plate (100) along the outer periphery of the light-emitting through hole (110) of the heat dissipation base plate (100); each of the second lamp beads (512) is mounted toward the detection plane to emit direct light toward the object to be detected; and the first light diffusion plate is mounted on the side of the second lamp beads (512) facing the detection plane. Each of the first strip-shaped light sources (52) comprises: a first strip-shaped light board (520), a plurality of rows and columns of third lamp beads (521) arranged therein, and a second diffusion plate; a plurality of the first strip-shaped light boards (520) are mounted on the bottom surface of the heat dissipation base plate (100) along the periphery of the light-emitting through hole (110) of the heat dissipation base plate (100); each of the third lamp beads (521) is mounted toward the detection plane to emit direct light toward the object to be detected; and a second light diffusion plate is mounted on the side of the third lamp beads (521) facing the detection plane.

11. The lighting device according to claim 10, characterized in that The second lamp beads (512) on the second annular light panel (511) are evenly divided into a plurality of second lighting subareas (510) along at least two diameter directions, and the number of the second lamp beads (512) in each second lighting subarea (510) is the same; The second annular light panel (511) has multiple circles of second lamp beads (512); the number of second lamp beads (512) in each circle is the same and the intervals are different, or the number of second lamp beads (512) in each circle is different and the intervals are the same; The second annular light panel (511) has multiple circles of second lamp beads (512); each second lamp bead (512) can emit light of two or more wavelengths, including white light; or, the wavelengths of the second lamp beads (512) in each circle are different, and the circles of second lamp beads (512) with different wavelengths are arranged at intervals, wherein at least one circle is white light lamp beads (311); or, the wavelengths of the second lamp beads (512) in the same circle are different, and the second lamp beads (512) with different wavelengths in the same circle are arranged at intervals, and the same circle contains at least white light lamp beads (311); The first strip light board (520) and the third lamp beads (521) arranged in multiple rows and columns are arranged, and each third lamp bead (521) can emit light of two or more wavelengths including white light; or, the third lamp beads (521) in each row of the first strip light board (520) have different wavelengths, and the rows of third lamp beads (521) with different wavelengths are arranged at intervals, and at least one row contains white light lamp beads (311); or the third lamp beads (521) in the same row have different wavelengths, and the third lamp beads (521) with different wavelengths in the same row are arranged at intervals, and the same row contains at least white light lamp beads (311).

12. The lighting device according to claim 1, wherein The direct light partitioned light source (50) and the dome partitioned diffuse reflection light source (10) are separated and spaced apart in the horizontal direction; The direct light partitioned light source (50) is a third annular light source (53) spaced apart from the dome partitioned diffuse reflection light source (10) in the horizontal direction; or, a light source formed by a plurality of second strip-shaped light sources (54); the third annular light source (53) is divided into a plurality of second lighting partitions (510); each second strip-shaped light source (54) in the plurality of second strip-shaped light sources (54) serves as a second lighting partition (510); The object to be measured can be moved on the detection plane to below the central axis of the light source formed by the third annular light source (53) or a plurality of second strip-shaped light sources (54).

13. The lighting device according to claim 12, characterized in that The third annular light source (53) comprises: a third annular light board (530), at least one circle of fourth lamp beads (531) surrounding the central axis, and a third diffusion plate; each of the fourth lamp beads (531) of the third annular light board (530) is installed toward the detection plane to emit direct light toward the object to be detected; the third light diffusion plate is installed on a side of the fourth lamp beads (531) facing the detection plane; Each of the second strip-shaped light sources (54) comprises: a second strip-shaped light board (540), a plurality of rows and columns of fifth lamp beads (541) arranged in a row, and a fourth diffusion plate; each of the fifth lamp beads (541) is installed toward the detection plane to emit direct light toward the object to be detected; and the fourth light diffusion plate is installed on the side of the fifth lamp beads (541) facing the detection plane.

14. The lighting device according to claim 13, characterized in that The fourth lamp beads (531) on the third annular light panel (530) are evenly divided into a plurality of second lighting subareas (510) along at least two diameter directions, and the number of the fourth lamp beads (531) in each second lighting subarea (510) is the same; The fourth lamp beads (531) of the third annular lamp plate (530) have multiple circles; the number of lamp beads in each circle is the same and the intervals are different, or the number of lamp beads in each circle is different and the intervals are the same; The fourth lamp beads (531) of the third annular light panel (530) have multiple circles; each fourth lamp bead (531) can emit light of two or more wavelengths including white light; or, the wavelengths of the fourth lamp beads (531) in each circle are different, and the fourth lamp beads (531) of different wavelengths are arranged at intervals, wherein at least one circle is a white light lamp bead (311); or the fourth lamp beads (531) in the same circle have different wavelengths, and the fourth lamp beads (531) of different wavelengths in the same circle are arranged at intervals, and the same circle contains at least white light lamp beads (311); The second strip light board (540) and the fifth lamp beads (541) arranged in multiple rows and columns are arranged, and each fifth lamp bead (541) can emit light of two or more wavelengths including white light; or, the wavelengths of the fifth lamp beads (541) in each row of the second strip light board (540) are different, and the rows of fifth lamp beads (541) with different wavelengths are arranged at intervals, and at least one row contains white light lamp beads (311); or the wavelengths of the fifth lamp beads (541) in the same row are different, and the fifth lamp beads (541) with different wavelengths in the same row are arranged at intervals, and the same row contains at least white light lamp beads (311).

15. A defect detection system, characterized in that: Comprising the lighting device according to any one of claims 1 to 14, at least one camera (20) and a controller (30); The controller (30) is electrically connected to the first annular light source (300) of the dome partition diffuse reflection light source (10), the direct light partition light source (50), and the camera (20); and is used to control the plurality of first lighting partitions (380) of the first annular light source (300) to light up in sequence according to a specified first sequence and a first quantity, and to control the plurality of second lighting partitions (510) of the direct light partition light source (50) to light up in sequence according to a specified second sequence and a second quantity; and to control the at least one camera (20) to capture an image of the object to be measured (40) when the first lighting partition (380) or the second lighting partition (510) is illuminated; and to perform algorithm fusion processing on the plurality of captured images to obtain height change information representing the surface of the object, thereby completing defect detection.

16. The defect detection system according to claim 15, characterized in that: The first annular light source (300) of the dome-partitioned diffuse reflection light source (10) has multiple circles of first lamp beads (310); each first lamp bead (310) can emit light of two or more wavelengths, including white light; or, the wavelengths of the first lamp beads (310) in each circle are different, and the circles of first lamp beads (310) with different wavelengths are arranged at intervals, wherein at least one circle is white light lamp beads (311); or, the wavelengths of the first lamp beads (310) in the same circle are different, and the first lamp beads (310) with different wavelengths in the same circle are arranged at intervals, and the same circle contains at least white light lamp beads (311); The second lamp beads (512) of the plurality of second lighting partitions (510) of the direct light partition light source (50) have multiple circles; the number of second lamp beads (512) in each circle is the same and the intervals are different, or the number of second lamp beads (512) in each circle is different and the intervals are the same; each second lamp bead (512) can emit light of two or more wavelengths including white light; or the wavelengths of the second lamp beads (512) in each circle are different, and the second lamp beads (512) of different wavelengths are arranged in circles at intervals, wherein at least one circle is white light lamp beads (311); or the wavelengths of the second lamp beads (512) in the same circle are different, and the second lamp beads (512) of different wavelengths in the same circle are arranged at intervals, and the same circle contains at least white light lamp beads (311); The first strip-shaped light sources (52) of the plurality of second lighting partitions (510) of the direct light partition light source (50) have a plurality of rows and columns of third lamp beads (521), and each third lamp bead (521) can emit light of two or more wavelengths including white light; or, the third lamp beads (521) in each row of the first strip-shaped light source (52) have different wavelengths, and the rows of third lamp beads (521) of different wavelengths are arranged at intervals, wherein at least one row contains white light lamp beads (311); or, the third lamp beads (521) in the same row have different wavelengths, and the third lamp beads (521) of different wavelengths in the same row are arranged at intervals, and the same row contains at least white light lamp beads (311); The controller (30) is capable of controlling the plurality of first lighting zones (380) and / or the second lighting zones (510) to light up in sequence according to the designated order, position and quantity of the first lighting zones (380) and / or the second lighting zones (510), as well as the lighting order of the lamp beads of different wavelengths in the lighting zones.

17. A defect detection method, characterized in that: A controller (30) for a defect detection system according to claim 15 or 16, the method comprising: When the detected object is located only in the detection area below the dome-partitioned diffuse reflection light source (10), controlling the plurality of first illumination partitions (380) of the first annular light source (300) to light up in sequence according to a specified first order and first quantity; When the detected object is located only in the detection area below the direct light partitioned light source (50), controlling the plurality of second lighting partitions (510) of the direct light partitioned light source (50) to light up in sequence according to a specified second order and a second number; When the detected object is located in the detection area below the dome partition diffuse reflection light source (10) and the direct light partition light source (50), controlling the plurality of first lighting partitions (380) and the second lighting partitions (510) to sequentially light up according to a third order and a third number of the designated first lighting partitions (380) and the second lighting partitions (510); The at least one camera (20) is controlled to capture an image of the object to be detected when the first lighting partition (380) and / or the second lighting partition (510) are illuminated; and an algorithm fusion process is performed on the captured multiple images to obtain height change information representing the surface of the object, thereby completing defect detection.

18. The defect detection method according to claim 17, characterized in that: The first annular light source (300) of the dome-partitioned diffuse reflection light source (10) has multiple circles of first lamp beads (310); each first lamp bead (310) can emit light of two or more wavelengths, including white light; or, the wavelengths of the first lamp beads (310) in each circle are different, and the circles of first lamp beads (310) with different wavelengths are arranged at intervals, wherein at least one circle is white light lamp beads (311); or, the wavelengths of the first lamp beads (310) in the same circle are different, and the first lamp beads (310) with different wavelengths in the same circle are arranged at intervals, and the same circle contains at least white light lamp beads (311); The second lamp beads (512) of the plurality of second lighting partitions (510) of the direct light partition light source (50) have multiple circles; the number of second lamp beads (512) in each circle is the same and the intervals are different, or the number of second lamp beads (512) in each circle is different and the intervals are the same; each second lamp bead (512) can emit light of two or more wavelengths including white light; or the wavelengths of the second lamp beads (512) in each circle are different, and the second lamp beads (512) of different wavelengths are arranged in circles at intervals, wherein at least one circle is white light lamp beads (311); or the wavelengths of the second lamp beads (512) in the same circle are different, and the second lamp beads (512) of different wavelengths in the same circle are arranged at intervals, and the same circle contains at least white light lamp beads (311); The first strip-shaped light sources (52) of the plurality of second lighting partitions (510) of the direct light partition light source (50) have a plurality of rows and columns of third lamp beads (521), and each third lamp bead (521) can emit light of two or more wavelengths including white light; or, the third lamp beads (521) in each row of the first strip-shaped light source (52) have different wavelengths, and the rows of third lamp beads (521) of different wavelengths are arranged at intervals, wherein at least one row contains white light lamp beads (311); or, the third lamp beads (521) in the same row have different wavelengths, and the third lamp beads (521) of different wavelengths in the same row are arranged at intervals, and the same row contains at least white light lamp beads (311); When the detected object is located only in the detection area below the dome-partitioned diffuse reflection light source (10), controlling the plurality of first lighting partitions (380) of the first annular light source (300) to light up in sequence according to a specified first sequence and a first quantity, including: controlling the plurality of first lighting partitions to light up in sequence according to a specified first sequence, a first position, and a first quantity, as well as a lighting sequence of first lamp beads of different wavelengths within the first lighting partitions; When the detected object is located only in the detection area below the direct light partitioned light source (50), controlling the plurality of second lighting partitions (510) of the direct light partitioned light source (50) to light up in sequence according to a specified second order and second quantity, comprising: controlling the plurality of second lighting partitions to light up in sequence according to the specified second order, second position and second quantity, and the lighting order of the second lamp beads or the third lamp beads of different wavelengths in the second lighting partitions; When the detected object is located in the detection area below the dome partition diffuse reflection light source (10) and the direct light partition light source (50), the plurality of first lighting partitions (380) and the second lighting partitions (510) are controlled to be lit in sequence according to the third order and third quantity of the specified first lighting partitions (380) and the second lighting partitions (510), including: controlling the plurality of first lighting partitions (380) and / or the second lighting partitions (510) to be lit in sequence according to the third order, third position and third quantity of the specified first lighting partitions (380) and / or the second lighting partitions (510), and the lighting order of the second lamp beads or the third lamp beads of different wavelengths in the lighting partitions.

19. A defect detection device, characterized in that: A controller (30) for use in a defect detection system according to claim 15 or 16, wherein the defect detection device comprises: A first lighting module (11) is used to control the plurality of first lighting subareas of the first annular light source to light up in sequence according to a specified first order and first quantity when the detected object is located only in the detection area below the dome subarea diffuse reflection light source; A second lighting module (12) is used to control the plurality of second lighting partitions of the direct light partition light source to light up in sequence according to a specified second order and a second number when the detected object is located only in the detection area below the direct light partition light source; a third lighting module (13) for controlling the plurality of first lighting partitions (380) and the second lighting partitions (510) to sequentially light up the first lighting partitions (380) and the second lighting partitions (510) in accordance with a third order and a third number of designated first lighting partitions (380) and second lighting partitions (510) when the detected object is located in the detection area below the dome partition diffuse reflection light source (10) and the direct light partition light source (50); An image capturing module (14) is used to control the at least one camera to capture an image of the object being measured when the first lighting partition or the second lighting partition is illuminated; The algorithm processing module (15) is used to perform algorithm fusion processing on the multiple images taken to obtain height change information representing the surface of the object and complete defect detection.

20. A controller, characterized in that: include: a memory (31) for storing computer programs; The processor (32) is configured to implement the defect detection method according to claim 17 or 18 when executing a program stored in the memory.