Multispectral partition annular light source and visual detection method thereof
Through the combination of a multi-spectral partition ring light source and a visual acquisition module, the position and intensity of the light source are adjusted according to image information, and the detection shadow problem caused by workpiece displacement is solved, improving detection accuracy and accuracy.
Patent Information
- Application Number
- CN202411335522.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2024-12-31
AI Technical Summary
In the industrial vision detection environment, due to the displacement and shaking of the workpiece on the assembly line, the initial annular light source is different from the predetermined light source conditions, resulting in image shadows, affecting the detection accuracy and misjudgment rate.
A multi-spectral partition ring light source is adopted, and the processor and vision acquisition module combine to determine the position of the light emitting unit and the intensity of the light ray based on image information, and the light source is readjusted to adapt to changes in the position of the workpiece to avoid shadow formation.
It effectively avoids inaccurate detection effects caused by workpiece displacement, improves the accuracy of image contrast, and reduces the misjudgment rate.
Smart Images

Figure CN119223879A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of machine vision light source detection, and in particular relates to a multi-spectral partitioned annular light source and a visual detection method thereof. Background Art
[0002] The partitioned ring light source can be used for photometric stereoscopic detection to produce contrast images, highlight local 3D changes, and extract three-dimensional information of the sample surface. It can also be used for sample color difference detection. A single light source can achieve a composite effect of any wavelength, and can also distinguish subtle color differences.
[0003] In the prior art, for example, a Chinese invention patent with announcement number CN113464859A and patent name "A partitioned controllable annular machine vision light source and its control method" specifically discloses the following technical solution: the partitioned controllable annular machine vision light source includes: a plurality of annular light source assemblies, the plurality of annular light source assemblies are stacked, the radii of the plurality of annular light source assemblies are different, and the axis lines of the plurality of annular light source assemblies coincide, wherein the annular light source assembly includes a plurality of circular arc sub-areas, a plurality of LED lamp beads are evenly arranged in the circular arc sub-areas, and the inclination angles of the LED lamp beads of the same annular light source assembly are the same; a control assembly, the control assembly includes a plurality of control units, the control units correspond to the circular arc sub-areas one by one, and the control unit is used to adjust the brightness of the LED lamp beads in the corresponding circular arc sub-areas.
[0004] The above scheme can provide a rich variety of light field conditions, facilitate various complex detection scenarios in industrial detection, and improve the accuracy of light field control while ensuring that the number of leads is as small as possible.
[0005] However, in the current industrial visual inspection environment, due to the popularity of the automation industry, visual inspection equipment will be installed on the assembly line. Most of the workpieces to be visually inspected will be visually monitored while they are being transmitted on the assembly line. Since the workpieces may be displaced in the assembly line due to the shaking during the station transition and transmission process, the initial annular light source will cause the light source conditions to be different from the predetermined visual monitoring, resulting in shadows of the required detection feature points of the workpiece to be tested in the image after imaging, affecting the accuracy of subsequent image comparison, easily causing misjudgment, and affecting the visual inspection effect of the offset workpiece.
[0006] Therefore, a multi-spectral partitioned ring light source and a visual detection method thereof are proposed to solve the above-mentioned problems. Summary of the invention
[0007] Technical issues solved
[0008] In view of the above-mentioned shortcomings of the prior art, the present invention provides a multi-spectral partitioned ring light source and a visual inspection method thereof, which can effectively solve the problem of inaccurate visual inspection effect caused by displacement of the workpiece to be measured in the prior art.
[0009] Technical Solution
[0010] To achieve the above objectives, the present invention is implemented through the following technical solutions:
[0011] The present invention provides a multi-spectral partitioned annular light source, comprising a transmission belt for transmitting a workpiece to be measured, and also comprising a processor, a light source module and a vision acquisition module, wherein the light source module is arranged above the transmission belt and is used to provide light for irradiating the workpiece to be measured to the transmission belt; the vision acquisition module is coaxially arranged above the light source module, and is used to acquire an image formed by light reflected from the workpiece to be measured on the transmission belt; wherein the light source module comprises a plurality of coaxially arranged annular light sources, each of which is composed of light-emitting units arranged circumferentially, and when the vision acquisition module acquires an image formed by light reflected from the workpiece to be measured on the transmission belt, the processor determines the position of the light-emitting unit emitting light and the light intensity emitted by the light-emitting unit according to the position of the workpiece to be measured in the image.
[0012] Furthermore, a vertical cross section of the visual acquisition module and a vertical cross section of the transmission belt are on the same plane.
[0013] This solution further provides a visual inspection method using the above-mentioned multi-spectral partitioned annular light source, comprising the following steps:
[0014] Step 1: Collect image information of the workpiece to be tested on the transmission belt, and perform binarization processing on the collected image information to obtain a comparison image;
[0015] Step 2: Determine whether the position of the current workpiece to be measured is directly below the visual acquisition module according to the comparison image after binary processing. If yes, execute step 4; otherwise, execute step 3;
[0016] Step 3: Turn off all light-emitting units, and reselect the light-displaying area according to the current position of the workpiece to be tested. The light-displaying area is the light-emitting unit that is reawakened and emits light. The visual acquisition module collects the image information of the current workpiece to be tested based on the reselected light-displaying area, and sends the image information to the processor for analysis and processing;
[0017] Step 4: The visual acquisition module sends the image information acquired in step 1 to the processor for analysis and processing.
[0018] Furthermore, the step of determining whether the position of the current workpiece to be measured is located directly below the visual acquisition module in step 2 is as follows:
[0019] Step 21: collecting image information of the workpiece to be measured located directly below the visual acquisition module, and binarizing the image information to obtain a reference image;
[0020] Step 22: Establish a two-dimensional coordinate system in the reference image according to the required detection feature points of the workpiece to be measured as the origin;
[0021] Step 23: Determine whether the required detection feature point in the comparison image obtained in step 1 coincides with the origin of the two-dimensional coordinate system in step 22. If so, execute step 4; otherwise, execute step 3.
[0022] Furthermore, the step of reselecting the light display area in step 3 is specifically as follows:
[0023] Step 31: Mark the ring light source in the light source module in the two-dimensional coordinate system in step 22;
[0024] Step 32: Divide the annular light source marked in step 31 into a plurality of sector-shaped partitions in a two-dimensional coordinate system with the origin of the coordinate system as the center;
[0025] Step 33: Determine the sector partition into which the required detection feature point in the comparison image falls in step 32, and wake up part or all of the light-emitting units covered in the sector partition and / or adjacent sector partitions to form a light display area.
[0026] Furthermore, the step 33 also includes:
[0027] Step 331: determine whether the required detection feature point in the comparison image is located at the junction of adjacent sector partitions, if yes, execute step 333, otherwise execute step 332;
[0028] Step 332: connect the position of the sector-shaped partition where the required detection feature point in the comparison image falls in step 32 with the origin of the two-dimensional coordinate system, and draw two auxiliary lines on both sides of the connecting line. The two auxiliary lines are axially symmetrically distributed with the connecting line as the axis, wherein the light display area includes all light-emitting units in the area covered by the two auxiliary lines in the current sector-shaped partition;
[0029] Step 333: The light display area includes part or all of the light-emitting units in the fan-shaped partitions on both sides of the intersection of the required detection feature point in the comparison image.
[0030] Furthermore, the step 3 also includes step 34: based on the position of the fan-shaped partition where the required detection feature point in the comparison image falls in step 32, adjusting the lumens of some or all of the light-emitting units in the light display area.
[0031] Furthermore, the specific steps of adjusting the lumens of some or all of the light-emitting units in the light display area in step 34 are as follows:
[0032] Step 341: connect the position of the sector-shaped partition where the required detection feature point in the comparison image falls in step 32 with the origin of the two-dimensional coordinate system;
[0033] Step 342: Let the distances between the required detection feature point in the comparison image and the adjacent annular light source in the line be a and b respectively, and let the lumens of the adjacent annular light source in the light display area where the line is located be x and y respectively;
[0034] Step 343: wherein x or y is adjusted until the ratio of a to b is equal to the ratio of x to y.
[0035] Beneficial Effects
[0036] Compared with the known public technology, the technical solution provided by the present invention has the following beneficial effects:
[0037] The present invention determines the position of the workpiece to be measured through the collected image, can redetermine the position of the light-emitting unit that emits light and the light intensity based on the current position of the workpiece to be measured, and flexibly provide light sources for workpieces in different positions, thereby avoiding the appearance of shadows near the target point of the workpiece after imaging due to changes in the position of the workpiece, which leads to distortion of the detection effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0039] Figure 1 A schematic diagram of the general steps of visual inspection in an embodiment of the present invention;
[0040] Figure 2 This is a schematic diagram of the structure of a ring light source in an embodiment of the present invention;
[0041] Figure 3 This is a schematic diagram of a sector-shaped partition in an embodiment of the present invention;
[0042] Figure 4 Schematic diagram of color display area A in an embodiment of the present invention;
[0043] Figure 5 Schematic diagram of color display area B in an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.
[0045] The present invention will be further described below in conjunction with the embodiments.
[0046] Example:
[0047] See attached Figure 1-5 ,This scheme proposes a multi-spectral partitioned annular light source, including a transmission belt for transmitting the workpiece to be tested, the transmission belt is unidirectional and can stop when visual inspection is performed, and the workpiece to be tested is equidistantly placed on the transmission belt for transmission.
[0048] It also includes a processor, a light source module and a vision acquisition module. The light source module is arranged above the transmission belt and is used to provide light to the transmission belt to illuminate the workpiece to be measured. The vision acquisition module is coaxially arranged above the light source module and is used to collect images formed by light reflected from the workpiece to be measured on the transmission belt.
[0049] It is worth mentioning that the visual acquisition module in this case is integrated with a sensor, and the transmission belt is provided with a sensing unit that cooperates with the sensor. The workpiece to be measured will be between adjacent sensing units. When the sensor senses the sensing unit, the visual acquisition module starts working. The sensor also has a certain delay trigger unit. Its working principle is a well-known technology and will not be elaborated here.
[0050] The light source module includes several circles of coaxially arranged annular light sources, each circle of annular light sources is composed of light-emitting units arranged in a circle, the vertical section of the vision acquisition module and the vertical section of the transmission belt are on the same plane, the light source module will work synchronously when the vision acquisition module is working, and provide sufficient light source conditions for the vision acquisition module. When the vision acquisition module acquires an image formed by the light reflected from the workpiece to be measured on the transmission belt, it will first determine whether the position of the workpiece to be measured in the image is consistent with the expected position of the workpiece to be measured. If they are consistent, it is determined that the current position of the workpiece to be measured has not been displaced. If they are inconsistent, since the positions of the light source module and the vision acquisition module will not change, it can be determined that the current position of the workpiece to be measured has been displaced due to some factors. At this time, it is necessary to redetermine the position of the light-emitting unit that emits light and the light intensity emitted by the light-emitting unit.
[0051] Usually, after the visual acquisition module acquires the image of the workpiece to be measured, it will analyze the required detection feature points in the image. If it is necessary to detect whether a certain area of the workpiece to be measured is dented or damaged, in the subsequent image analysis, the conclusion will be drawn through the color rendering degree of the binarized image. If the light source conditions change during the acquisition process of the visual acquisition module, when the surface of the workpiece to be measured is a three-dimensional shape, there will be a certain angle between the light source and the workpiece to be measured, resulting in a shadow in the image after imaging. The judgment of whether a certain area of the workpiece to be measured is dented or damaged is based on the shadow area in the acquired image. If the offset angle of the workpiece is large, the shadow area and color rendering degree in the image will be higher. When determining the defect point (that is, the darker part of the image), it is easy to regard the shadow part as a dent or damage to the workpiece. In fact, this situation is only caused by the change in the angle of the light source, which causes the shadow to appear in the image, thereby causing a misjudgment of the judgment result.
[0052] This solution further provides a visual inspection method using the above-mentioned multi-spectral partitioned annular light source. First, the image information of the workpiece to be tested on the transmission belt is collected, and the collected image information is binarized to obtain a comparison image. At this time, it is determined whether the position of the current workpiece to be tested is directly below the visual acquisition module based on the binarized comparison image.
[0053] If the position of the current workpiece to be tested is indeed directly below the visual acquisition module, the visual acquisition module will normally transmit the image to the processor for analysis and processing to compare and analyze and determine whether the current workpiece to be tested has a dent or damage. It is a well-known technology to determine whether there are defects by analyzing the image, and its specific logical means and methods will not be elaborated here.
[0054] If the position of the current workpiece to be measured is offset and is not directly below the vision acquisition module, all light-emitting units are turned off and the light-displaying area is reselected according to the current position of the workpiece to be measured. The light-displaying area is the light-emitting unit that is reawakened and emits light. The vision acquisition module collects image information of the current workpiece to be measured based on the reselected light-displaying area, and sends the image information to the processor for analysis. That is, when it is determined that the current workpiece to be measured is not directly below the vision acquisition module, the workpiece to be measured at this time will have a "shadow" under the current light source conditions, and the vision acquisition module will present the "shadow" as a shadow on the image when capturing the image. At this time, the labor cost of adjusting the position of the workpiece to be measured is too high. Therefore, it is necessary to adjust the direction of the light source to allow the current workpiece to be measured to be imaged and analyzed without moving its position.
[0055] In this case, the steps to determine whether the current position of the workpiece to be measured is directly below the visual acquisition module are as follows:
[0056] First, the image information of the workpiece to be measured located directly below the visual acquisition module is collected by the visual acquisition module, and the image information is binarized to obtain a reference image. It is worth noting that the reference image obtained at this time is exactly the same as the image information in the aforementioned ratio, and the imaging target is exactly the same workpiece on the transmission belt.
[0057] Then, a two-dimensional coordinate system is established in the reference image based on the required detection feature points of the workpiece to be measured as the origin. At this time, it is determined whether the required detection feature points in the comparison image obtained above coincide with the origin of the two-dimensional coordinate system mentioned above. The required detection feature points in the comparison image are the parts of the workpiece to be measured that need to be visually inspected. If the required detection feature points in the comparison image obtained above coincide with the origin of the two-dimensional coordinate system mentioned above, it is determined that the current workpiece to be measured is located directly below the visual acquisition module, and the image can be normally feature-captured and analyzed. If the feature points do not coincide with the origin, it proves that the position of the current workpiece to be measured has a certain amount of displacement compared to the preset position. Therefore, it is necessary to adjust the position of the light source, turn off all light-emitting units, and reselect the display area according to the current position of the workpiece to be measured. The light-emitting area is the light-emitting unit that is reawakened and emits light. The visual acquisition module collects image information of the current workpiece to be measured based on the reselected display area, and sends the image information to the processor for analysis and processing.
[0058] In this case, the steps of reselecting the light display area are as follows:
[0059] First, based on the two-dimensional coordinate system mentioned above, the annular light source in the light source module is marked in the two-dimensional coordinate system. The annular light source is arranged in concentric rings according to different diameters. At this time, the marked annular light source is equally divided into several sector-shaped partitions in the two-dimensional coordinate system with the origin of the coordinate system as the center, as shown in the attached figure. Figure 3 As shown, in this case, two concentric annular light sources are taken as an example (in practice, the size of the annular light source can be selected according to the actual shape of the workpiece, and they are not listed here one by one), and the marked annular light source is divided into eight sector-shaped partitions by two auxiliary lines (dashed lines in the attached figure) and the x-axis and y-axis. Each sector-shaped partition includes some light-emitting units in the two annular light sources, in the shape of two concentric sectors.
[0060] At this time, determine which sector-shaped partition the required detection feature point in the comparison image falls into in the above-mentioned two-dimensional coordinate system. The light-emitting unit in the sector-shaped partition is closest to the required detection feature point in the comparison image. Similarly, when this part of the light-emitting units emits light, the illumination effect on the feature point is best, thereby waking up some or all of the light-emitting units covered in the sector-shaped partition to form a light-displaying area.
[0061] It is worth mentioning that if the required detection feature point in the comparison image falls on the boundary line of adjacent sector partitions, there are two options at this time. All the light-emitting units covered in the adjacent sector partitions can be made to form a light display area, that is, all the light-emitting units in the two sector partitions are awakened, and the light-emitting units in the two sector partitions that are closest to the required detection feature point in the comparison image can be further selected.
[0062] Specifically, first determine whether the required detection feature point in the comparison image is located at the junction of adjacent sector-shaped partitions. If so, the light-displaying area includes part or all of the light-emitting units in the sector-shaped partitions on both sides of the junction of the required detection feature point in the comparison image. Otherwise, connect the position of the sector-shaped partition where the required detection feature point in the comparison image falls with the origin of the two-dimensional coordinate system, and draw two auxiliary lines on both sides of the line. The two auxiliary lines are axially symmetrically distributed with the line as the axis, wherein the light-displaying area includes all the light-emitting units in the area covered by the two auxiliary lines in the current sector-shaped partition.
[0063] like Figure 4 As shown, when the required detection feature point in the comparison image falls on the boundary between two adjacent sector-shaped partitions, the position of the sector-shaped partition where the required detection feature point in the comparison image falls can be connected with the origin of the two-dimensional coordinate system, and two auxiliary lines can be drawn on both sides of the line. The two auxiliary lines are axially symmetrically distributed with the line as the axis, and the display area includes all the light-emitting units in the area covered by the two auxiliary lines in the current sector-shaped partition.
[0064] Similarly, when the required detection feature points in the comparison image fall within any sector-shaped partition, the above method can be used to select the best light display area.
[0065] However, if the position where the required detection feature point in the comparison image falls and the distance between two adjacent ring light sources are not equal, the light intensity of the ring light source at a farther distance is weaker than that of the ring light source at a closer distance, which will also produce a certain shadow. Therefore, in this case, the lumens of the two ring light sources covered in the display area can also be selected according to the position where the required detection feature point in the comparison image falls.
[0066] That is, based on the position of the sector-shaped partition into which the required detection feature point in the comparison image falls, the lumens of some or all of the light-emitting units in the light display area are adjusted.
[0067] The specific steps for adjusting the lumens of some or all light-emitting units in the light display area are as follows:
[0068] As attached Figure 5 As shown, specifically, firstly, the position of the sector partition where the required detection feature point in the comparison image falls is connected to the origin of the two-dimensional coordinate system;
[0069] Then let the distances between the required detection feature point in the comparison image and the adjacent annular light source in the line be a and b respectively, and the lumens of the adjacent annular light sources in the light display area where the line is located be x and y respectively;
[0070] At this time, x or y is adjusted until the ratio of a to b is equal to the ratio of x to y, so that the light intensity of the adjacent annular light sources in the display area irradiating the required detection feature points in the comparison image is similar to avoid color difference.
[0071] For example, assuming that Figure 5 The distance between the required detection feature point in the comparison image and the inner ring light source is 1:2, and the ratio of the lumens of the light-emitting units in the light-display area covered by the outer ring light source to the lumens of the light-display area covered by the inner ring light source is 2:1.
[0072] In addition, for the multi-spectral partitioned ring light source proposed in this case, in actual use, it will be equipped with a host computer software adapted thereto, and at the same time be able to implement the visual detection method in this case. The software runs on the Windows system, sends command control through the TCP protocol, and uses the above-mentioned visual detection method to perform visual detection.
[0073] The host computer includes four parts: network port communication, partition color setting, process editing, process export and process import.
[0074] Network communication module: A network cable is used to connect a PC running Windows system and a multi-spectral partition ring light source. The light source works on the TCP Server side, and the PC works on the TCP Client side. Character instructions are sent through the TCP protocol for communication. After the light source receives the character instruction, it will return the corresponding character, indicating that the reception and execution are successful. After the network cable is connected, the IP address and port number need to be entered through the host computer to perform the network port connection operation. After the network port is successfully connected, the downloaded process of the light source will be automatically read and displayed in the process editing box;
[0075] Partition color setting module: The light-emitting units in the ring light source are all lamp beads that can emit five colors: R, G, B, W, and IR. The light effect of each light-emitting unit in the ring light source can be freely set through the host computer. Each partition can be set to be enabled or not separately, or all partitions can be set to be enabled or not with one click. In the enabled state, the color of the selected area on the interface will switch to the color of the light emitted by the corresponding area of the light source. In the disabled state, the selected area on the interface is gray;
[0076] Process editing module: The light source can support the download of up to 100 steps, and each step can customize the lighting color and lighting time. Click the [Add Step] button to add a step below the selected step; click [Move Up] and [Move Down] to move the selected step up or down one grid; click the [Delete] and [Clear] buttons to delete one or all steps; after the process editing is completed, click the [Process Download] button, the edited process will be downloaded to the light source, and the process can be executed through [Single Step Execution] or by giving an external trigger signal to the IO port;
[0077] Save and import module: Save function saves the contents of the current process edit box to a local txt file, which can be easily downloaded and transplanted again; import function is used to restore previously saved process steps to the host computer software.
[0078] When using, first check whether the power cord and network cable are connected correctly, and turn on the power switch; then modify and configure the local connection of the network port, and connect the network port; then set the light source partition or light up all of them, set up the camera, take pictures to confirm the lighting effect and algorithm test, edit the process, and download the process; then trigger the light source, the light source switches the lighting effect according to the process, and triggers the camera to take pictures; finally, export the process to the local as a backup.
[0079] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements will not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.
Claims
1. A multi-spectral partitioned annular light source, comprising a transmission belt for transmitting a workpiece to be measured, characterized in that: include: processor; A light source module, which is arranged above the transmission belt and is used to provide light to the transmission belt to illuminate the workpiece to be measured; A visual acquisition module, which is coaxially arranged above the light source module and is used to acquire an image formed by light reflected from the workpiece to be measured on the transmission belt; Among them, the light source module includes several circles of coaxially arranged annular light sources, each circle of annular light sources is composed of light-emitting units arranged circumferentially. When the visual acquisition module collects the image formed by the light reflected from the workpiece to be measured on the transmission belt, the processor determines the position of the light-emitting unit emitting light and the light intensity emitted by the light-emitting unit according to the position of the workpiece to be measured in the image.
2. A multi-spectrum partitioned annular light source according to claim 1, characterized in that: The vertical cross section of the visual acquisition module and the vertical cross section of the transmission belt are on the same plane.
3. A visual inspection method using a multi-spectral partitioned annular light source as claimed in claim 2, characterized in that: The steps include: Step 1: Collect image information of the workpiece to be tested on the transmission belt, and perform binarization processing on the collected image information to obtain a comparison image; Step 2: Determine whether the position of the current workpiece to be measured is directly below the visual acquisition module according to the comparison image after binary processing. If yes, execute step 4; otherwise, execute step 3; Step 3: Turn off all light-emitting units, and reselect the light-displaying area according to the current position of the workpiece to be tested. The light-displaying area is the light-emitting unit that is reawakened and emits light. The visual acquisition module collects the image information of the current workpiece to be tested based on the reselected light-displaying area, and sends the image information to the processor for analysis and processing; Step 4: The visual acquisition module sends the image information acquired in step 1 to the processor for analysis and processing.
4. A multi-spectral partitioned annular light source visual detection method according to claim 3, characterized in that: The steps for determining whether the position of the current workpiece to be measured is located directly below the visual acquisition module in step 2 are as follows: Step 21: collecting image information of the workpiece to be measured located directly below the visual acquisition module, and binarizing the image information to obtain a reference image; Step 22: Establish a two-dimensional coordinate system in the reference image according to the required detection feature points of the workpiece to be measured as the origin; Step 23: Determine whether the required detection feature point in the comparison image obtained in step 1 coincides with the origin of the two-dimensional coordinate system in step 22. If so, execute step 4; otherwise, execute step 3.
5. A multi-spectral partitioned annular light source visual detection method according to claim 3, characterized in that: The steps of reselecting the light display area in step 3 are as follows: Step 31: Mark the ring light source in the light source module in the two-dimensional coordinate system in step 22; Step 32: Divide the annular light source marked in step 31 into a plurality of sector-shaped partitions in a two-dimensional coordinate system with the origin of the coordinate system as the center; Step 33: Determine the sector partition into which the required detection feature point in the comparison image falls in step 32, and wake up part or all of the light-emitting units covered in the sector partition and / or adjacent sector partitions to form a light display area.
6. A multi-spectral partitioned annular light source visual detection method according to claim 5, characterized in that: The step 33 also includes: Step 331: determine whether the required detection feature point in the comparison image is located at the junction of adjacent sector partitions, if yes, execute step 333, otherwise execute step 332; Step 332: connect the position of the sector-shaped partition where the required detection feature point in the comparison image falls in step 32 with the origin of the two-dimensional coordinate system, and draw two auxiliary lines on both sides of the connecting line. The two auxiliary lines are axially symmetrically distributed with the connecting line as the axis, wherein the light display area includes all light-emitting units in the area covered by the two auxiliary lines in the current sector-shaped partition; Step 333: The light display area includes part or all of the light-emitting units in the fan-shaped partitions on both sides of the intersection of the required detection feature point in the comparison image.
7. A multi-spectral partitioned annular light source visual detection method according to claim 6, characterized in that: The step 3 also includes: Step 34: Based on the position of the fan-shaped partition where the required detection feature point in the comparison image falls in step 32, adjust the lumens of some or all of the light-emitting units in the light display area.
8. A multi-spectral partitioned annular light source visual detection method according to claim 7, characterized in that: The specific steps of adjusting the lumens of some or all of the light-emitting units in the light display area in step 34 are as follows: Step 341: connect the position of the sector-shaped partition where the required detection feature point in the comparison image falls in step 32 with the origin of the two-dimensional coordinate system; Step 342: Let the distances between the required detection feature point in the comparison image and the adjacent annular light source in the line be a and b respectively, and let the lumens of the adjacent annular light source in the light display area where the line is located be x and y respectively; Step 343: wherein x or y is adjusted until the ratio of a to b is equal to the ratio of x to y.
Citation Information
Patent Citations
Visual detection system and method for product appearance
CN110102511A
Product image detection method and comparison device capable of automatically distributing light
CN110132166A
Capacitor character detection method based on intelligent vision and device
CN110856847A
Surface defect detection system based on visual technology and detection method thereof
CN111272766A
Partitioned controllable annular machine vision light source and control method thereof
CN113464859A
