Adjustment method of detection system and detection system
By calculating and adjusting the optical path of the detection device, the problem of image inconsistency caused by hardware differences between detection devices is solved, unified processing of detection information is realized, and the consistency of data collected by multiple detection devices is ensured.
Patent Information
- Application Number
- CN202110625926.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-04
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-06-04
AI Technical Summary
When detecting devices, due to differences in hardware performance between multiple detection devices, the brightness and grayscale feature values of the captured images are inconsistent, making it difficult to process them uniformly.
By calculating the target characteristic value of the detection information collected by multiple detection devices, the optical path between the exit surface and the light incident surface of each detection device is adjusted to meet the target optical path, thereby compensating for hardware differences and achieving the unification of detection information. deal with.
This enables multiple detection devices to collect detection information of target feature values, solves the problem of image inconsistency caused by hardware differences, and facilitates unified processing.
Smart Images

Figure CN113340895B
Abstract
Description
Technical Field
[0001] The present application relates to the field of industrial detection technology, and in particular to an adjustment method of a detection system and a detection system. Background Art
[0002] When inspecting certain devices, such as panels, multiple detection devices are usually used to perform visual inspections on different locations of the device simultaneously, as the area of the device to be inspected may be large. However, due to the inevitable differences in hardware performance between multiple detection devices, images taken by different detection devices have large differences in characteristic values such as brightness and grayscale, and images taken by different detection devices have poor consistency in characteristic values, making it inconvenient to subsequently process different images in a unified manner. Summary of the invention
[0003] Embodiments of the present application provide a detection system adjustment method and a detection system.
[0004] The adjustment method of the detection system of the embodiment of the present application is used for the detection system, the detection system includes multiple detection devices and multiple light exit surfaces, each of the detection devices includes a light incident surface, the light emitted by the multiple exit surfaces enters the multiple light incident surfaces one by one, and each of the detection devices collects at least part of the light entering from the light incident surface to form detection information; the adjustment method includes: according to the characteristic values of the detection information collected by the multiple detection devices, calculating the target characteristic value applicable to all the detection devices; for each of the detection devices, obtaining the target optical path between the corresponding exit surface and the light incident surface of the detection device when the collected detection information meets the target characteristic value; and adjusting the relative position between each of the exit surfaces and the corresponding light incident surface so that the optical path between the exit surface and the corresponding light incident surface meets the target optical path.
[0005] In some embodiments, the detection information collected by the detection device includes images, and the target characteristic value applicable to all the detection devices is calculated based on the characteristic values of the detection information collected by multiple detection devices, including: adjusting the corresponding optical path between the exit surface and the light incident surface for multiple times; collecting images with the detection device under different adjustment optical path to obtain a group of images; and calculating the target characteristic value applicable to all the detection devices based on the characteristic values of multiple groups of images collected by multiple detection devices.
[0006] In some embodiments, the characteristic value is the average grayscale value of the image pixels, and the target characteristic value applicable to all the detection devices is calculated based on the characteristic values of the multiple groups of images collected by the multiple detection devices, including: calculating the largest value of the characteristic value in each group of images as an alternative value to obtain multiple alternative values for the multiple groups of images; and calculating the smallest value among the multiple alternative values as the target characteristic value.
[0007] In certain embodiments, for each of the detection devices, when the collected detection information satisfies the target characteristic value, the target optical path between the corresponding exit surface and the light incident surface of the detection device includes: when each of the alternative values is calculated, the optical path between the corresponding exit surface and the light incident surface is the initial optical path; in a preset virtual model of the detection device, the optical path between the virtual exit surface and the virtual light incident surface is adjusted to the initial optical path, and the initial brightness on the virtual detection surface is recorded; according to the initial brightness, and the ratio of the alternative value to the target characteristic value, the target brightness is calculated; and in the virtual model, the optical path between the virtual exit surface and the virtual light incident surface is adjusted until the brightness on the virtual detection surface is recorded as the target brightness, and the current optical path between the virtual exit surface and the virtual light incident surface is used as the target optical path.
[0008] In certain embodiments, for each of the detection devices, when the collected detection information satisfies the target characteristic value, the target optical path between the corresponding exit surface and the light incident surface of the detection device includes: for each group of corresponding exit surfaces and light incident surfaces, adjusting the optical path between the exit surface and the light incident surface multiple times, and using the detection device to collect detection information; calculating the characteristic value of the detection information collected by the detection device; and until the characteristic value of the detection information collected by the detection device is the target characteristic value, using the current adjusted optical path as the current target optical path of the detection device.
[0009] The detection system of the embodiment of the present application includes multiple detection devices, multiple light exit surfaces, a processor and a motion platform; each of the detection devices includes a light incident surface; the light emitted from the multiple exit surfaces enters the multiple light incident surfaces one by one, and each of the detection devices collects at least part of the light entering from the light incident surface to form detection information; the processor is used to: calculate the target characteristic value applicable to all the detection devices based on the characteristic values of the detection information collected by the multiple detection devices; for each of the detection devices, when the collected detection information meets the target characteristic value, the target optical path between the corresponding exit surface and the light incident surface of the detection device is obtained; the exit surface is connected to the motion platform, and the motion platform is used to adjust the relative position between each of the exit surfaces and the corresponding light incident surface so that the optical path between the exit surface and the corresponding light incident surface meets the target optical path.
[0010] In certain embodiments, the detection information collected by the detection device includes images, and the motion platform is also used to adjust the corresponding optical path between the exit surface and the incident surface for multiple times; the detection device is used to collect images under different adjustment optical path to obtain a group of images; the processor is used to calculate the target characteristic value applicable to all the detection devices based on the characteristic values of the multiple groups of images collected by the multiple detection devices.
[0011] In some embodiments, the characteristic value is the average grayscale value of the image pixels, and the processor is also used to: calculate the value with the largest characteristic value in each group of images as an alternative value to obtain multiple alternative values for multiple groups of images; and calculate the minimum value among the multiple alternative values as the target characteristic value.
[0012] In certain embodiments, the processor is further used to: obtain a corresponding set of optical path lengths between the exit surface and the light incident surface as the initial optical path when each alternative value is calculated; in a preset virtual model of the detection device, adjust the optical path between the virtual exit surface and the virtual light incident surface to the initial optical path, and record the initial brightness on the virtual detection surface; calculate the target brightness based on the initial brightness and the ratio of the alternative value to the target characteristic value; and in the virtual model, adjust the optical path between the virtual exit surface and the virtual light incident surface until the brightness on the virtual detection surface is recorded as the target brightness, and use the current optical path between the virtual exit surface and the virtual light incident surface as the target optical path.
[0013] In certain embodiments, for each group of corresponding exit surfaces and light incident surfaces, the motion platform is further used to adjust the adjustment optical path between the exit surfaces and the light incident surfaces for multiple times, and the detection device is used to collect detection information at multiple adjustment distances; the processor is used to: calculate the characteristic value of the detection information collected by the detection device; and until the characteristic value of the detection information collected by the detection device is the target characteristic value, use the current adjustment optical path as the current target optical path of the detection device.
[0014] In some embodiments, each of the detection devices includes a cylindrical mirror, the light incident surface is formed on the cylindrical mirror, and the light passing through the cylindrical mirror is compressed in one direction and then projected onto the object to be detected.
[0015] The detection system of the embodiment of the present application includes a light source, an optical fiber, a detection device and a motion platform, the light source is used to generate light; the optical fiber is used to transmit the light generated by the light source, the light is incident from the incident surface of the optical fiber, and is emitted from the exit surface of the optical fiber; the detection device includes a light incident surface, the light emitted from the exit surface is incident on the light incident surface to be collected by the detection device and form detection information; the exit surface is connected to the motion platform, and when the motion platform moves, the exit surface is driven to move relative to the light incident surface to change the optical path between the exit surface and the light incident surface.
[0016] In some embodiments, there are multiple exit surfaces, there are multiple detection devices and they correspond one-to-one to the multiple exit surfaces, there are multiple motion platforms and they correspond one-to-one to the multiple exit surfaces, and each of the motion platforms can move independently to drive a connected exit surface to move.
[0017] In some embodiments, the detection device includes a cylindrical mirror, the light incident surface is formed on the cylindrical mirror, and the light passing through the cylindrical mirror is compressed in one direction and then projected onto the object to be detected.
[0018] In the adjustment method and detection system of the detection system of the implementation mode of the present application, the target characteristic value is applicable to all detection devices. When each detection device is able to collect detection information that meets the target characteristic value based on the target characteristic value, the target optical path between the exit surface and the light incident surface only needs to be adjusted to adjust the relative position between the exit surface and the light incident surface so that the optical path between the exit surface and the corresponding light incident surface meets the target optical path. In this way, multiple detection devices can be in a state where they can collect detection information of the target characteristic value. In this way, the hardware differences between the multiple detection devices are compensated, and unified processing of the detection information collected by the multiple detection devices is facilitated.
[0019] Additional aspects and advantages of the embodiments of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0021] Figure 1 is a schematic diagram of the structure of a detection system of certain embodiments of the present application;
[0022] Figure 2 is a schematic diagram of the structure of a detection system of certain embodiments of the present application;
[0023] Figure 3 is a schematic flow chart of a regulation method of certain embodiments of the present application;
[0024] Figure 4 is a schematic flow chart of a regulation method of certain embodiments of the present application;
[0025] Figure 5 It is a schematic diagram of the principle of the adjustment method of certain embodiments of the present application;
[0026] Figure 6 is a schematic flow chart of a regulation method of certain embodiments of the present application;
[0027] Figure 7 is a schematic flow chart of a regulation method of certain embodiments of the present application;
[0028] Figure 8 is a schematic diagram of a model of a detection device model of certain embodiments of the present application;
[0029] Fig. 9 It is a flow chart of the adjustment method of certain embodiments of the present application.
[0030] Components and symbols:
[0031] Detection system 100, detection device 10, light incident surface 11, camera 12, lens 13, beam splitter prism 14, cylindrical mirror 15, processor 20, light source 30, optical fiber 40, emission surface 41, motion platform 50, test piece 200,
[0032] Virtual model 100 ′, virtual emission surface 41 ′, virtual cylindrical mirror 15 ′, virtual light incident surface 11 ′, virtual beam splitter prism 14 ′, virtual detection surface 200 ′. DETAILED DESCRIPTION
[0033] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of the present application, and cannot be understood as limiting the embodiments of the present application.
[0034] See also Figure 1 The detection system 100 of the embodiment of the present application includes a plurality of detection devices 10 and a plurality of light emitting surfaces 41 corresponding one to one with the plurality of detection devices 10. Each detection device 10 uses at least part of the light emitted from the corresponding emitting surface 41 as detection light.
[0035] Specifically, the detection system 100 can be used to perform visual inspection on the part to be inspected 200, which can be any component such as a display panel, a wafer, a chip, a substrate, etc. The detection system 100 can be used to detect patterns, defects, scratches, pits, particles, impurities, etc. of the part to be inspected 200.
[0036] The detection system 100 includes a plurality of detection devices 10, and the plurality of detection devices 10 can be used to simultaneously detect different positions of the detection object 200, or to perform time-sharing detection. The plurality of detection devices 10 can be arranged side by side along a straight line, can be arranged in an array, or can be arranged in any shape, without limitation. According to different detection requirements, the specific structure of the detection device 10 can have different settings, for example, the detection device 10 can include any optical element such as a sensor, a lens, a prism, a reflector, a cylindrical mirror, etc.
[0037] Each detection device 10 at least includes a light incident surface 11, and light can enter the detection device 10 from the light incident surface 11. Each detection device 10 collects at least part of the light entering from the light incident surface 11 to form detection information. In one example, the light entering the detection device 10 can be first projected onto the part to be detected 200, and the light reflected, scattered or transmitted by the part to be detected 200 is then received by the detection device 10. At this time, the light emitted from the exit surface 41 may be partially or completely entered into the detection device 10 to serve as the detection light of the detection device 10. In another example, the light emitted from the exit surface 41 may be first reflected or scattered by the part to be detected 200, and then enter the detection device 10 from the light incident surface 11.
[0038] There are also multiple exit surfaces 41. For example, the number of exit surfaces 41 can be the same as the number of detection devices 10, and multiple detection devices 10 correspond to multiple exit surfaces 41 one by one. One-to-one correspondence means that the light emitted from one exit surface 41 enters only one detection device 10, and does not enter other detection devices 10, and each detection device 10 only receives the light emitted from one exit surface 41.
[0039] The exit surface 41 may be any surface that can emit light. For example, the exit surface 41 may be a surface on a light source, or a surface on a light guide element, which is not limited here.
[0040] See also Figure 2 ,like Figure 2 In the example of the detection system 100 shown, the detection device 10 includes a camera 12, a lens 13, a beam splitter prism 14 and a cylindrical mirror 15. The light entering the detection device 10 from the light incident surface 11 first passes through the cylindrical mirror 15 to reach the beam splitter prism 14, and the beam splitter prism 14 reflects part of the light to the part to be detected 200. The light reflected or scattered by the part to be detected 200 returns to the beam splitter prism 14 and passes through the beam splitter prism 14. The light passing through the beam splitter prism 14 passes through the lens 13 to finally reach the camera 12. After receiving the light, the camera 12 completes the imaging of the part to be detected 200.
[0041] The light incident surface 11 is formed on the cylindrical mirror 15, and the light passing through the cylindrical mirror 15 is compressed in one direction and then projected onto the to-be-detected part 200. The cylindrical mirror 15 may also not compress the light in another direction, so that the light passing through the cylindrical mirror 15 and reflected by the beam splitter prism 14 onto the to-be-detected part 200 is in the form of a line spot. The beam splitter prism 14 may be a semi-reflective and semi-transparent prism.
[0042] In addition, if Figure 2 In the example shown, the detection system 100 further includes a light source 30 , an optical fiber 40 and a motion platform 50 .
[0043] The light source 30 is used to generate light. The light source 30 may be, for example, a xenon lamp, a halogen lamp, an LED light, a laser lamp, or a light box, etc., which is not limited here.
[0044] The optical fiber 40 is used to transmit the light generated by the light source 30 . The light enters from the incident surface of the optical fiber 40 and exits from the exit surface 41 of the optical fiber 40 . At least part of the light emitted from the exit surface 41 of the optical fiber 40 can enter the detection device 10 from the light incident surface 11 .
[0045] The motion platform 50 can be an electric platform or a manual platform. The motion platform 50 is connected to the emission surface 41. When the motion platform 50 moves, the emission surface 41 moves relative to the light incident surface 11 to change the distance D between the emission surface 41 and the light incident surface 11. Specifically, the emission end of the optical fiber 40 can be detachably connected to the motion platform 50. The motion platform 50 can be a linear motion platform 50. The motion platform 50 moves along the Figure 2When the motion platform 50 moves in the X direction, the motion platform 50 drives the emitting surface 41 to move relative to the light incident surface 11, thereby changing the distance D between the emitting surface 41 and the light incident surface 11, and thereby changing the optical path between the emitting surface 41 and the light incident surface 11. Changing the optical path between the emitting surface 41 and the light incident surface 11 has at least the following effects on the amount and intensity of the light finally projected onto the to-be-detected component 200:
[0046] When the intensity of light emitted from the exit surface 41 is the same, the greater the distance D between the exit surface 41 and the light incident surface 11, the longer the optical path between the exit surface 41 and the light incident surface 11, the stronger the weakening effect of the light on the propagation medium, and the larger the range of light divergence, the weaker the intensity of the light that finally enters the detection device 10; the closer the distance D between the exit surface 41 and the light incident surface 11, the shorter the optical path between the exit surface 41 and the light incident surface 11, the weaker the weakening effect of the light on the propagation medium, and the smaller the range of light divergence, the stronger the intensity of the light finally collected by the detection device 10 and used for imaging.
[0047] Furthermore, when the optical path between the exit surface 41 and the light incident surface 11 changes, the shape of the light passing through the cylindrical mirror 15 and reflected by the beam splitter prism 14 onto the part to be detected 200 will also change. Specifically, when the optical path between the exit surface 41 and the light incident surface 11 is closer to the focal length of the cylindrical mirror 15, the light projected onto the part to be detected 200 is more concentrated, the light spot is smaller, and the intensity of the light ultimately used by the detection device 10 for imaging is also stronger.
[0048] Therefore, by controlling the motion platform 50 to drive the exit surface 41 to move relative to the light incident surface 11 to change the optical path between the exit surface 41 and the light incident surface 11, the intensity of the light collected by the detection device 10 for imaging can be changed.
[0049] More specifically, in one example, the number of light sources 30 may be one, and the number of optical fibers 40 may also be one. The optical fiber 40 may include one incident end and multiple exit ends, the incident end is connected to the light source 30, and each exit end may include an exit surface 41. The number of exit surfaces 41 of the optical fiber 40 may be the same as the number of detection devices 10, so that the detection devices 10 correspond to the exit surfaces 41 one by one. The number of motion platforms 50 may also be multiple, and the multiple motion platforms 50 correspond to the multiple exit surfaces 41 one by one, that is, each motion platform 50 only drives the only exit surface 41 connected thereto to move, and each motion platform 50 can move independently without affecting each other. In this way, by adjusting different motion platforms 50, the optical path between the corresponding exit surface 41 and the light incident surface 11 can be adjusted, so that the light intensity for imaging collected by different detection devices 10 can be different. It can be known in the following text that this difference can be used to compensate for the deviation of detection information caused by the performance difference of different detection devices 10.
[0050] Of course, in other examples, there may be multiple light sources 30 and multiple optical fibers 40 , and the light sources 30 , optical fibers 40 and detection devices 10 correspond one to one, which is not limited here.
[0051] The following will introduce an adjustment method of the detection system 100 based on any one of the above-mentioned embodiments.
[0052] Please combine Figure 2 and Figure 3 The adjustment method of the detection system 100 of the embodiment of the present application includes the steps of:
[0053] 01: Calculate target characteristic values applicable to all detection devices 10 based on characteristic values of detection information collected by multiple detection devices 10;
[0054] 02: For each detection device 10, when the collected detection information satisfies the target characteristic value, the target optical path between the corresponding exit surface 41 and the light incident surface 11 of the detection device 10; and
[0055] 03: Adjust the relative position between each light-emitting surface 41 and the corresponding light-incident surface 11 so that the optical path between the light-emitting surface 41 and the corresponding light-incident surface 11 meets the target optical path.
[0056] The detection system 100 may further include a processor 20, which may be used to implement steps 01 and 02 of the adjustment method, and a motion platform 50 may be used to implement step 03 of the adjustment method. That is, the processor 20 may be used to calculate target characteristic values applicable to all detection devices 10 based on characteristic values of detection information collected by multiple detection devices 10; and for each detection device 10, when the collected detection information satisfies the target characteristic value, the target optical path between the corresponding exit surface 41 and the light incident surface 11 of the detection device 10; the motion platform 50 may be used to adjust the relative position between each exit surface 41 and the corresponding light incident surface 11, so that the optical path between the exit surface 41 and the corresponding light incident surface 11 satisfies the target optical path.
[0057] In the adjustment method and detection system 100 of the above-mentioned embodiment, the target characteristic value is applicable to all detection devices 10. When each detection device 10 is able to collect detection information that meets the target characteristic value based on the target characteristic value, the target optical path between the exit surface 41 and the light incident surface 11 only needs to adjust the relative position between the exit surface 41 and the light incident surface 11 so that the optical path between the exit surface 41 and the corresponding light incident surface 11 meets the target optical path. In this way, multiple detection devices 10 can be in a state where they can collect detection information of the target characteristic value. In this way, the hardware differences between the multiple detection devices 10 are compensated, which facilitates unified processing of the detection information collected by the multiple detection devices 10.
[0058] Specifically, in step 01, according to the characteristic values of the detection information collected by multiple detection devices 10, the target characteristic values applicable to all detection devices 10 are calculated. The detection information can be information such as images, light intensity signals, etc. that can be used to characterize the intensity, phase, color, etc. of light. In the embodiments of this specification, the detection information is an image as an example for exemplary description. Multiple detection devices 10 can be controlled to take images of the same scene respectively, such as taking images of the same calibration plate. Then the characteristic values of multiple images are calculated respectively, wherein the characteristic value can be the average value of the gray value of the image, the average value of the brightness, the average value of the saturation, the average value of the pixel value of a certain channel, etc., which are not limited here and can be selected according to different adjustment requirements. Then, according to the characteristic values of multiple images, the target characteristic values applicable to all detection devices 10 are calculated. Applicable to all detection devices 10 means that by appropriately adjusting the detection system 100, all detection devices 10 can simultaneously take images that meet the target characteristic values. In one example, the characteristic value can characterize the intensity of the light received by the detection device 10 and used for imaging.
[0059] In step 02, for each detection device 10, the target optical path between the corresponding exit surface 41 and the light incident surface 11 of the detection device 10 is obtained when the collected detection information meets the target characteristic value. As mentioned above, different detection devices 10 have different performances. When acquiring an image that meets the target characteristic value, the optical path between the corresponding exit surface 41 and the light incident surface 11 of the detection device 10 may be different. Therefore, for each detection device 10, it is necessary to first obtain the target optical path of the detection device 10 so as to make differential adjustments for each detection device 10.
[0060] In step 03, the relative position between each exit surface 41 and the corresponding light incident surface 11 is adjusted so that the optical path between the exit surface 41 and the corresponding light incident surface 11 satisfies the target optical path, so that each detection device 10 can capture an image that satisfies the target characteristic value under its corresponding target optical path, avoiding different detection results for the same object to be measured due to differences between different detection devices 10. It should be noted that the optical path between the exit surface 41 and the light incident surface 11 refers to the distance that the optical axis passes through on the way that the light emitted from the exit surface 41 is incident on the light incident surface 11.
[0061] See also Figure 4 In some embodiments, the detection information image, step 01: based on the characteristic values of the detection information collected by multiple detection devices 10, calculate the target characteristic values applicable to all detection devices 10, including the steps of:
[0062] 011: adjusting the optical path between the corresponding light exiting surface 41 and the light incident surface 11 for multiple times;
[0063] 012: Under different adjusted optical path lengths, the detection device 10 is used to collect images to obtain a set of images;
[0064] 013: Calculate target feature values applicable to all detection devices 10 based on feature values of multiple groups of images collected by multiple detection devices 10.
[0065] Please combine Figure 2 In some embodiments, the motion platform 50 can be used to implement step 011, that is, the motion platform 50 can be used to adjust the corresponding optical path between the exit surface 41 and the incident surface 11 for multiple times. The detection device 10 can be used to implement step 012, that is, the detection device 10 can be used to collect images under different optical path adjustments to obtain a set of images. The processor 20 can be used to implement step 013, that is, the processor 20 can be used to calculate the target feature value applicable to all detection devices 10 based on the feature values of the multiple sets of images collected by the multiple detection devices 10.
[0066] Specifically, when implementing step 011, the adjustment optical path between the corresponding exit surface 41 and the light incident surface 11 is adjusted multiple times. The motion platform 50 that needs to be adjusted can be selected first, and m nodes are selected within the travel range of the motion platform 50. The distance between each node can be the same or different. The motion platform 50 moves to the positions of the m nodes so that the optical path between the exit surface 41 and the light incident surface 11 is at m different adjustment optical paths. When one motion platform 50 has finished moving, the next motion platform 50 can be selected to move to the positions of m nodes within the travel range to adjust the optical path between the next exit surface 41 and the light incident surface 11, and so on, traversing all the motion platforms 50. In one example, the distances between adjacent nodes of each motion platform 50 can be equal.
[0067] When implementing step 012, the detection device 10 is used to collect images under different adjustment optical paths to obtain a group of images. As mentioned above, when the motion platform 50 moves to a node, that is, when the corresponding exit surface 41 and the incident surface 11 are in one of the adjustment optical paths, the detection device 10 collects images to obtain an image. After traversing m nodes of a motion platform 50, a detection device 10 collects a group of images. Figure 5 In the example shown, a group of images collected by the first detection device 10 is P1, a group of images collected by the second detection device 10 is P2, ..., and a group of images collected by the nth detection device 10 is Pn.
[0068] When implementing step 013, target feature values applicable to all detection devices 10 are calculated based on the feature values of multiple groups of images collected by multiple detection devices 10. A feature value can be calculated for each of each group of images, and a group of feature values can be calculated for each group of images. The range of feature values of the images that can be captured by the corresponding detection device 10 can be obtained through the distribution of the group of feature values. Therefore, the range of feature values of the images that can be captured by each detection device 10 can be obtained through calculation. Then, based on the range of the multiple feature values, the target feature values applicable to all detection devices 10 can be obtained. In the example Figure 5 In the example shown, by processing groups of images P1, P2, ..., Pn, the target feature value G is finally obtained.
[0069] Therefore, by adjusting the optical path between the exit surface 41 and the light incident surface 11 to multiple different values, and having the detection device 10 take multiple images at different adjusted optical path values, and then calculating the target characteristic value based on the characteristic values of the multiple images, it is ensured that the calculated target characteristic value is applicable to all detection devices 10.
[0070] See also Figure 6 In some embodiments, the characteristic value is the average gray value of the image pixels. Step 013: Calculate the target characteristic value applicable to all detection devices 10 based on the characteristic values of the multiple groups of images collected by the multiple detection devices 10, including the steps of:
[0071] 0131: Calculate the value with the largest eigenvalue in each group of images as a candidate value, so as to obtain multiple candidate values for multiple groups of images; and
[0072] 0132: Calculate the smallest value among multiple alternative values as the target eigenvalue.
[0073] Please combine Figure 2 In some embodiments, the processor 20 can also be used to implement steps 0131 and 0132, that is, the processor 20 can also be used to: calculate the value with the largest eigenvalue in each group of images as the alternative value to obtain multiple alternative values for multiple groups of images; and calculate the minimum value among the multiple alternative values as the target eigenvalue.
[0074] Specifically, the characteristic value can be selected as the average grayscale value of the image pixels. When images are obtained by shooting the same scene, the average grayscale value of the image pixels can reflect the light intensity when the image is shot. In the field of industrial inspection, the average grayscale value of the image pixels is usually also related to the image clarity and the success rate of defect detection.
[0075] When implementing step 0131, the value with the largest characteristic value in each group of images is calculated as an alternative value to obtain multiple alternative values of multiple groups of images. Each image in each group of images can be calculated to obtain a characteristic value, and the largest value among the characteristic values calculated from multiple images in the same group of images can be used to represent the degree to which the best shooting capability of the detection device 10 can be achieved. It can be understood that by calculating the alternative values of multiple groups of images, the upper limit of the shooting capability of multiple detection devices 10 evaluated by the characteristic values can be understood.
[0076] When implementing step 032, the smallest value among multiple candidate values is calculated as the target characteristic value. The smallest value among multiple candidate values is selected as the target characteristic value, so that all detection devices 10 are capable of capturing images of the target characteristic value, that is, each detection device 10 can achieve the purpose of capturing the target characteristic value by adjusting the distance between the corresponding exit surface 41 and the light incident surface 11. In this way, it is possible for multiple detection devices 10 to capture images with consistent characteristic values at the same time. Figure 5 In the example shown, the candidate value of the P1 group of images is G1, the candidate value of the P2 group of images is G2, ..., the candidate value of the Pn group of images is Gn. By calculating the minimum value of G1, G2, ..., Gn, the target feature value G can be obtained.
[0077] See also Figure 8 In some embodiments, step 02: for each detection device 10, when the collected detection information satisfies the target characteristic value, the target optical path between the corresponding exit surface 41 and the light incident surface 11 of the detection device 10 includes the steps of:
[0078] 021: When each candidate value is obtained and calculated, the corresponding optical path between the light exiting surface 41 and the light incident surface 11 is the initial optical path;
[0079] 022: In the preset virtual model 100' of the detection device 10, the optical path between the virtual light exiting surface 41' and the virtual light incident surface 11' is adjusted to the initial optical path, and the initial brightness on the virtual detection surface 200' is recorded;
[0080] 023: Calculate the target brightness based on the initial brightness and the ratio of the candidate value to the target characteristic value; and
[0081] 024: In the virtual model 100', the optical path between the virtual emission surface 41' and the virtual light incident surface 11' is adjusted until the brightness recorded on the virtual detection surface 200' is the target brightness, and the current optical path between the virtual emission surface 41' and the virtual light incident surface 11' is used as the target optical path.
[0082] Please combine Figure 2In some embodiments, the processor 20 can be used to implement steps 021, 022, 023, and 024, that is, the processor 20 can be used to obtain a set of optical paths between the output surface 41 and the light incident surface 11 corresponding to each alternative value when calculated as the initial optical path; in the virtual model 100' of the preset detection device 10, the optical path between the virtual output surface 41' and the virtual light incident surface 11' is adjusted to the initial optical path, and the initial brightness on the virtual detection surface 200' is recorded; the target brightness is calculated based on the initial brightness and the ratio of the alternative value to the target characteristic value; and in the virtual model 100', the optical path between the virtual output surface 41' and the virtual light incident surface 11' is adjusted until the brightness on the virtual detection surface 200' is recorded as the target brightness, and the current optical path between the virtual output surface 41' and the virtual light incident surface 11' is used as the target optical path.
[0083] Specifically, when implementing step 021, when obtaining and calculating each candidate value, the corresponding optical path between the exit surface 41 and the incident surface 11 is the initial optical path, see Figure 5 In the example shown, since each image corresponds to an adjusted optical path, an image of the alternative value G1 is obtained, which corresponds to an adjusted optical path Z1 of the detection device 10 that shoots the group of images P1. Similarly, an image of the alternative value G2 is obtained, which corresponds to an adjusted optical path Z2 of the detection device 10 that shoots the group of images P2. ... An image of the alternative value Gn is obtained, which corresponds to an adjusted optical path Zn of the detection device 10 that shoots the group of images Pn. The adjusted optical paths Z1, Z2, ..., Zn are respectively the initial optical paths corresponding to the multiple detection devices 10.
[0084] Before implementing step 022, a virtual model 100' of each detection device 10 may be constructed, such as Figure 8In the example shown, the virtual model 100' of the detection device 10 can be established using optical software such as Lighttools. Specifically, a virtual exit surface 41', a virtual cylindrical mirror 15', and a virtual dichroic prism 14' are established according to the size and luminous characteristics of the optical fiber 40 used, the parameters of the cylindrical mirror 15, the size and material of the dichroic prism 14, and the relative positions of each component, and a virtual sensor is set at the position of the virtual detection surface 200'. It can be understood that since the virtual model 100' is established based on the optical parameters and materials related to the detection device 10, the virtual model 100' can actually be used to simulate the real detection device 10. When implementing step 022, in the preset virtual model 100' of the detection device 10, the optical path between each virtual exit surface 41' and the corresponding virtual light incident surface 11' is adjusted to the initial optical path, and the initial brightness on the virtual detection surface 200' is recorded. For example, in the first virtual model 100', the optical path between the virtual exit surface 41' and the corresponding virtual light incident surface 11' is adjusted to Z1, and the initial brightness on the virtual detection surface 200' is recorded as E1; in the second virtual model 100', the optical path between the virtual exit surface 41' and the corresponding virtual light incident surface 11' is adjusted to Z2, and the initial brightness on the virtual detection surface 200' is recorded as E2, ..., in the nth virtual model 100', the optical path between the virtual exit surface 41' and the corresponding virtual light incident surface 11' is adjusted to Zn, and the initial brightness on the virtual detection surface 200' is recorded as En.
[0085] When implementing step 023, the target brightness is calculated based on the initial brightness and the ratio of the alternative value to the target characteristic value. Since the final output value of the virtual model 100' is the brightness on the detected surface, it is necessary to first establish a consistency coefficient between the brightness of the virtual model 100' of each detection device 10 on the detection surface and the characteristic value of the actual detection device 10. In the example of this step, the ratio of the alternative value to the target characteristic is used as the consistency coefficient. For example, the consistency coefficient of the virtual model 100' of the first detection device 10 is K1=G1 / G, the consistency coefficient of the second detection device 10 model is K2=G2 / G, ..., and the consistency coefficient of the nth detection device 10 model is Kn=Gn / G.
[0086] The target brightness can be calculated from the initial brightness and the consistency coefficient. For example, the target brightness can be the ratio of the initial brightness to the consistency coefficient. For example, the target brightness of the virtual model 100' of the first detection device 10 is E1'=E1 / K1, the target brightness of the virtual model 100' of the second detection device 10 is E2'=E2 / K2, ..., and the target brightness of the virtual model 100' of the nth detection device 10 is En'=En / Kn. When the target brightness is recorded, the optical path between the virtual exit surface 41' and the virtual light incident surface 11' can be used as the target optical path between the actual exit surface 41 and the light incident surface 11.
[0087] When implementing step 024, in the virtual model 100', the optical path between the virtual exit surface 41' and the virtual light incident surface 11' is adjusted until the brightness recorded on the virtual detection surface 200' is the target brightness, and the current optical path between the virtual exit surface 41' and the virtual light incident surface 11' is used as the target optical path. Step 024 is implemented for each detection device 10 model to calculate the target optical path of the detection device 10 corresponding to the virtual model 100' of each detection device 10. In the process of calculating the target distance, there is no need to actually adjust the optical path between the exit surface 41 and the light incident surface 11 in the detection system 100, and it can be simulated in the virtual model 100' of the detection device 10, which simplifies the process of calculating the target optical path and improves the efficiency of implementing the adjustment method.
[0088] See also Fig. 9 In some embodiments, step 02: for each detection device 10, when the collected detection information satisfies the target characteristic value, the target optical path between the corresponding exit surface 41 and the light incident surface 11 of the detection device 10 includes the steps of:
[0089] 025: For each set of corresponding emission surfaces 41 and light incident surfaces 11, the optical path between the emission surfaces 41 and the light incident surfaces 11 is adjusted multiple times, and detection information is collected using the detection device 10;
[0090] 026: Calculate the characteristic value of the detection information collected by the detection device 10; and
[0091] 027: When the characteristic value of the detection information collected by the detection device 10 is the target characteristic value, the current adjusted optical path is used as the current target optical path of the detection device 10.
[0092] Please combine Figure 2In some embodiments, the motion platform 50 can be used to implement step 025, that is, the motion platform 50 can be used to adjust the adjustment optical path between the exit surface 41 and the light incident surface 11 for each set of corresponding exit surfaces 41 and light incident surfaces 11 for multiple times, and the detection device 10 is used to collect detection information under multiple adjustment optical paths. The processor 20 can be used to implement steps 026 and 027, that is, the processor 20 can be used to calculate the characteristic value of the detection information collected by the detection device 10; until the characteristic value of the detection information collected by the detection device 10 is the target characteristic value, the current adjustment optical path is used as the current target optical path of the detection device 10.
[0093] Specifically, when implementing step 025, for each set of corresponding exit surfaces 41 and detection devices 10, the adjustment optical path between the exit surface 41 and the light incident surface 11 is adjusted multiple times, and detection information is collected using the detection device 10. After the target characteristic value is calculated, the optical path between the exit surface 41 and the light incident surface 11 needs to be fixed at the target optical path that can obtain the target characteristic value. Therefore, the adjustment optical path between the exit surface 41 and the light incident surface 11 needs to be adjusted multiple times to first collect detection information under different adjustment optical paths.
[0094] Each time a detection information is collected at an adjustment distance, step 026 can be implemented: calculating the characteristic value of the detection information collected by the detection device 10. If the characteristic value does not meet the target characteristic value, it means that the optical path needs to be changed. In one example, if the calculated characteristic value is less than the target characteristic value, the optical path between the exit surface 41 and the light incident surface 11 can be adjusted to reduce the optical path. Conversely, if the calculated characteristic value is greater than the target characteristic value, the optical path between the exit surface 41 and the light incident surface 11 can be adjusted to increase the optical path.
[0095] In step 027, until the characteristic value of the detection information collected by the detection device 10 reaches the target characteristic value, the currently adjusted optical path is used as the target optical path of the current detection device 10. When the optical paths between the exit surface 41 and the light incident surface 1 corresponding to all the detection devices 10 are adjusted to the target optical path, all the detection devices 10 are adjusted. At this time, when all the detection devices 10 collect detection information of the same scene (for example, when taking images of the same scene), the characteristic values are consistent.
[0096] In summary, in the adjustment method and detection system 100 of the embodiment of the present application, the target characteristic value is applicable to all detection devices 10. When each detection device 10 is able to collect detection information that meets the target characteristic value based on the target characteristic value, the target optical path between the exit surface 41 and the light incident surface 11 only needs to adjust the relative position between the exit surface 41 and the light incident surface 11 so that the optical path between the exit surface 41 and the corresponding light incident surface 11 meets the target optical path. In this way, multiple detection devices 10 can be in a state where they can collect detection information of the target characteristic value. In this way, the hardware differences between the multiple detection devices 10 are compensated, and unified processing of the detection information collected by the multiple detection devices 10 is facilitated.
[0097] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0098] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0099] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for adjusting a detection system, characterized in that: The detection system includes a plurality of detection devices and a plurality of light exit surfaces, each of the detection devices includes a light incident surface, the light emitted from the plurality of the exit surfaces enters the plurality of the light incident surfaces one by one, and each of the detection devices collects at least a portion of the light entering from the light incident surface to form detection information; The adjustment method comprises: Calculating target characteristic values applicable to all the detection devices based on characteristic values of the detection information collected by the plurality of detection devices; For each of the detection devices, when the collected detection information satisfies the target characteristic value, the target optical path between the corresponding light exit surface and the light incident surface of the detection device; and The relative position between each of the exit surfaces and the corresponding light incident surface is adjusted so that the optical path between the exit surface and the corresponding light incident surface meets the target optical path, wherein the optical path between the exit surface and the corresponding light incident surface indicates the distance traveled by the optical axis on the way from the light emitted from the exit surface to the light incident surface.
2. The method for adjusting the detection system according to claim 1, characterized in that: The detection information collected by the detection device includes an image, and the target feature value applicable to all the detection devices is calculated based on the feature values of the detection information collected by the multiple detection devices, including: Adjusting the optical path between the corresponding light exiting surface and the light incident surface for multiple times; Under different adjusted optical path lengths, the detection device is used to collect images to obtain a group of images; and According to the feature values of the multiple groups of images collected by the multiple detection devices, the target feature values applicable to all the detection devices are calculated.
3. The method for adjusting the detection system according to claim 2, characterized in that: The characteristic value is the average gray value of the image pixels, and the target characteristic value applicable to all the detection devices is calculated based on the characteristic values of the multiple groups of images collected by the multiple detection devices, including: Calculate the value with the largest eigenvalue in each group of images as a candidate value to obtain multiple candidate values for multiple groups of images; and The smallest value among the multiple candidate values is calculated as the target feature value.
4. The method for adjusting the detection system according to claim 3, characterized in that: For each of the detection devices, when the collected detection information satisfies the target characteristic value, the target optical path between the corresponding exit surface and the light incident surface of the detection device includes: When each candidate value is obtained and calculated, the corresponding optical path between the light exiting surface and the light incident surface is the initial optical path; In a preset virtual model of the detection device, adjusting the optical path between the virtual light exiting surface and the virtual light incident surface to the initial optical path, and recording the initial brightness on the virtual detection surface; Calculating target brightness according to the initial brightness and the ratio of the candidate value to the target characteristic value; and In the virtual model, the optical path between the virtual exit surface and the virtual light incident surface is adjusted until the brightness recorded on the virtual detection surface is the target brightness, and the current optical path between the virtual exit surface and the virtual light incident surface is used as the target optical path.
5. The method for adjusting the detection system according to claim 1, characterized in that: For each of the detection devices, when the collected detection information satisfies the target characteristic value, the target optical path between the corresponding exit surface and the light incident surface of the detection device includes: For each set of corresponding light exit surfaces and light incident surfaces, adjusting the optical path between the light exit surfaces and the light incident surfaces for multiple times, and collecting detection information using the detection device; Calculating characteristic values of the detection information collected by the detection device; and When the characteristic value of the detection information collected by the detection device is the target characteristic value, the current adjusted optical distance is used as the current target optical distance of the detection device.
6. A detection system, characterized in that: The detection system comprises: A plurality of detection devices, each of the detection devices comprising a light incident surface; A plurality of light emitting surfaces, the light emitted from the plurality of said emitting surfaces enters the plurality of said light incident surfaces one by one, and each of said detection devices collects at least a portion of the light entering from the light incident surface to form detection information; A processor, the processor being used to: calculate a target characteristic value applicable to all the detection devices based on characteristic values of the detection information collected by the plurality of detection devices; and for each of the detection devices, obtain a target optical path between the corresponding exit surface and the light incident surface of the detection device when the collected detection information satisfies the target characteristic value; and A motion platform, wherein the exit surface is connected to the motion platform, and the motion platform is used to adjust the relative position between each of the exit surfaces and the corresponding light incident surface so that the optical path between the exit surface and the corresponding light incident surface meets the target optical path, wherein the optical path between the exit surface and the corresponding light incident surface indicates the distance traveled by the optical axis on the way from the light emitted from the exit surface to the light incident surface.
7. The detection system according to claim 6, characterized in that: The detection information collected by the detection device includes an image, and the motion platform is also used to adjust the corresponding optical path between the light exit surface and the light incident surface for multiple times; The detection device is used to collect images under different adjusted optical path lengths to obtain a group of images; The processor is used to calculate target feature values applicable to all the detection devices based on feature values of multiple groups of images collected by multiple detection devices.
8. The detection system according to claim 7, characterized in that: The characteristic value is an average gray value of image pixels, and the processor is further used for: Calculate the value with the largest eigenvalue in each group of images as a candidate value to obtain multiple candidate values for multiple groups of images; and The smallest value among the multiple candidate values is calculated as the target feature value.
9. The detection system according to claim 8, characterized in that: The processor is further configured to: When each candidate value is calculated, a corresponding set of optical paths between the light exiting surface and the light incident surface is obtained as an initial optical path; In a preset virtual model of the detection device, adjusting the optical path between the virtual light exiting surface and the virtual light incident surface to the initial optical path, and recording the initial brightness on the virtual detection surface; Calculating target brightness according to the initial brightness and the ratio of the candidate value to the target characteristic value; and In the virtual model, the optical path between the virtual exit surface and the virtual light incident surface is adjusted until the brightness recorded on the virtual detection surface is the target brightness, and the current optical path between the virtual exit surface and the virtual light incident surface is used as the target optical path.
10. The detection system according to claim 6, characterized in that: For each corresponding set of the emission surface and the light incident surface, the motion platform is further used to adjust the optical path between the emission surface and the light incident surface for multiple times, and the detection device is used to collect detection information at multiple adjustment distances; The processor is used to: calculate the characteristic value of the detection information collected by the detection device; and When the characteristic value of the detection information collected by the detection device is the target characteristic value, the current adjusted optical distance is used as the current target optical distance of the detection device.
11. The detection system according to any one of claims 6 to 10, characterized in that: Each of the detection devices includes a cylindrical mirror, the light incident surface is formed on the cylindrical mirror, and the light passing through the cylindrical mirror is compressed in one direction and then projected onto the object to be detected.
12. A detection system, characterized in that: The detection system comprises: A light source, the light source is used to generate light; An optical fiber, the optical fiber is used to transmit the light generated by the light source, the light enters from the incident surface of the optical fiber and exits from the exit surface of the optical fiber; A detection device, the detection device comprising a light incident surface, the light emitted from the emission surface is incident on the light incident surface to be collected by the detection device and form detection information; and A motion platform, wherein the exit surface is connected to the motion platform, and when the motion platform moves, the exit surface is driven to move relative to the light incident surface to change the optical path between the exit surface and the light incident surface, wherein the optical path between the exit surface and the corresponding light incident surface indicates the distance traveled by the optical axis on the way from the light emitted from the exit surface to the light incident surface.
13. The detection system according to claim 12, characterized in that: There are multiple exit surfaces, there are multiple detection devices and they correspond one-to-one to the multiple exit surfaces, there are multiple motion platforms and they correspond one-to-one to the multiple exit surfaces, and each motion platform can move independently to drive a connected exit surface to move.
14. The detection system according to claim 12 or 13, characterized in that: The detection device includes a cylindrical mirror, the light incident surface is formed on the cylindrical mirror, and the light passing through the cylindrical mirror is compressed in one direction and then projected onto the object to be detected.
