Light quantity distribution equalization correction system and method for point light source

By setting reflective areas and non-reflective areas on the correction plate, using a linear array optical sensor to adjust the shooting parameters and determining the actual grayscale space of each pixel, the problem of uneven light distribution of point light sources is solved, and the optical scale data is achieved. High-precision collection and processing.

WO2024174330A1PCT designated stage expired Publication Date: 2024-08-29ZHEJIANG HECHUAN TECH
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/083985
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-20
Filing Date
2023-03-27
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

In the existing technology, the uneven light distribution of point light sources causes the data collection of optical scales to be unable to perform high-precision processing in displacement calculation applications based on visual images, especially when binary processing is required, multiple thresholds or dynamic thresholds. The method is not efficient for good binarization.

Method used

By setting the reflective and non-reflective areas on the correction plate, using linear array optical sensors to obtain sampling data from different areas, and adjusting the shooting parameters to determine the actual grayscale space of each pixel, the balanced correction of the light distribution of the point light source is achieved.

Benefits of technology

It achieves precise correction of the light distribution of point light sources, ensures the high-precision collection of optical scale data and the accuracy of subsequent algorithm processing, and solves the problem of data processing difficulties caused by uneven light distribution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023083985_29082024_PF_FP_ABST
    Figure CN2023083985_29082024_PF_FP_ABST
Patent Text Reader

Abstract

A light quantity distribution equalization correction system and method for a point light source (21), which are applied to the technical field of light source detection system correction. A reflective region and a non-reflective region are provided on the surface of the side of a correction plate (1) that faces a device to be corrected (2), and the device to be corrected (2) is provided with a point light source (21) and a linear array optical sensor (22). An upper computer (3) is used for: when the device to be corrected (2) is bridged between the reflective region and the non-reflective region, acquiring, by means of the linear array optical sensor (22), first sampling data generated on the basis of the point light source (21) irradiating the correction plate (1) (S101); on the basis of the first sampling data, adjusting a photographing parameter of the linear array optical sensor (22) (S102); by means of the linear array optical sensor (22), acquiring second sampling data generated by the point light source (21) irradiating the reflective region (S103); by means of the linear array optical sensor (22), acquiring third sampling data generated by the point light source (21) irradiating the non-reflective region (S104); and according to the second sampling data and the third sampling data, determining an actual grayscale space corresponding to each pixel point in the linear array optical sensor (22), so as to perform correction (S105). Thus, precise light quantity distribution equalization correction for the point light source (21) is realized.
Need to check novelty before this filing date? Find Prior Art

Description

A point light source light quantity distribution equalization correction system and correction method

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on February 20, 2023, with application number 202310180224.4 and invention name “A point light source light quantity distribution equalization correction system and correction method”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present invention relates to the technical field of light source detection system correction, and in particular to a point light source light quantity distribution equalization correction system and a point light source light quantity distribution equalization correction method. Background Art

[0003] This product assists systems for visual image-based displacement calculation applications. These products include visual encoders that measure displacement in degrees, linear encoders that measure displacement in degrees, and optical scales. Currently, there are few high-precision absolute position encoders based on image sensing technology in China, and products like optical scales are relatively rare. The technical solutions employed by various vendors vary widely.

[0004] These sensors all share a common minimum sensor acquisition unit: a point light source and a linear array CMOS (Complementary Metal Oxide Semiconductor) or CCD (Charge Coupled Device) sensor. Unlike other common vision applications, this type of system operates within a confined, confined space. The point light source is invisible. During mass production of these products, it's impossible to achieve absolute alignment between the point light source, such as an LED (light-emitting diode), and the vision sensor. Therefore, each device must be calibrated to determine the light distribution within the specific product environment.

[0005] Because point light sources are distributed in a Lambertian pattern with a strong center and gradually decreasing values ​​on both sides, the extreme values ​​within the overall light distribution are uneven, with local extreme values ​​also showing a high center and low sides. Without correction, the data collected by the system's sensor for the light-and-dark optical scale cannot be processed with high precision by subsequent algorithms. For example, before decoding zebra stripes, the captured image requires binarization, and methods like multi-threshold and dynamic thresholding cannot achieve good binarization. Therefore, how to balance the light distribution of point light sources in products that use visual image-based displacement calculations is an urgent problem for those skilled in the art.

[0006] Summary of the Invention

[0007] The object of the present invention is to provide a point light source light distribution equalization correction system, which can accurately perform point light source light distribution equalization correction; another object of the present invention is to provide a point light source light distribution equalization correction method, which can accurately perform point light source light distribution equalization correction.

[0008] In order to solve the above technical problems, the present invention provides a point light source light quantity distribution equalization correction system, comprising a measuring device and a host computer;

[0009] The measuring device includes a correction plate, a device to be corrected is located on one side of the correction plate, and the device to be corrected is communicatively connected to the host computer; a surface of the correction plate facing the device to be corrected is provided with a reflective area and a non-reflective area, and the device to be corrected is provided with a point light source and a linear array optical sensor;

[0010] The host computer is used for:

[0011] When the device to be corrected straddles the reflective area and the non-reflective area, first sampling data generated by the point light source irradiating the correction plate is acquired by the linear array optical sensor;

[0012] adjusting a shooting parameter of the linear array optical sensor based on the first sampling data;

[0013] After adjusting the shooting parameters, when the device to be calibrated faces the reflective area, obtaining second sampling data generated by the point light source irradiating the reflective area through the linear array optical sensor;

[0014] After adjusting the shooting parameters of the linear array optical sensor, when the device to be calibrated faces the non-reflective area, obtaining third sampling data generated by the point light source irradiating the non-reflective area through the linear array optical sensor;

[0015] The actual grayscale space corresponding to each pixel point in the linear array optical sensor is determined according to the second sampling data and the third sampling data, so as to perform correction according to the actual grayscale space.

[0016] Optionally, the host computer is further used to:

[0017] The actual grayscale space is stored in the device to be calibrated, so that during actual operation, the standard sampling value corresponding to each pixel point in the same standard grayscale space is determined based on the actual sampling value obtained from each pixel point in the linear array optical sensor and the corresponding actual grayscale space.

[0018] Optionally, the host computer is used to:

[0019] According to the first sampling data and built-in parameter characteristics of the linear array optical sensor, the shooting parameters of the linear array optical sensor are adjusted so that the linear array optical sensor increases the difference between the two extreme values ​​in the first sampling data while avoiding overexposure.

[0020] Optionally, the shooting parameters include an exposure value and a brightness gain value.

[0021] Optionally, the host computer is used to:

[0022] After acquiring the second sampling data, determining whether the second sampling data is valid according to the variance and distribution characteristics of the second sampling data;

[0023] When the second sampling data is valid, recording the valid second sampling data;

[0024] After obtaining the third sampling data, determining whether the third sampling data is valid according to the variance and distribution characteristics of the third sampling data;

[0025] When the third sampling data is valid, the valid third sampling data is recorded.

[0026] Optionally, the light reflection characteristics of the reflective area in the correction plate are the same as the light reflection characteristics of the reflective area of ​​the optical scale in the system in which the device to be corrected is installed; the light reflection characteristics of the non-reflective area in the correction plate are the same as the light reflection characteristics of the non-reflective area of ​​the optical scale.

[0027] Optionally, the distance between the correction plate and the device to be corrected is the same as the distance between the optical scale and the device to be corrected in the system in which the device to be corrected is installed.

[0028] Optionally, the measuring device includes a dark box, and the correction plate and the device to be corrected are located in the dark box.

[0029] Optionally, the measuring device includes a guide rail platform, the correction plate is fixed to the guide rail platform, and the guide rail platform is used to drive the correction plate to move so that the device to be corrected spans the reflective area and the non-reflective area of ​​the correction plate, or the device to be corrected is directed toward the reflective area, or the device to be corrected is directed toward the non-reflective area.

[0030] The present invention also provides a point light source light distribution equalization correction method, which is applied to a host computer and includes:

[0031] When the device to be calibrated straddles the reflective area and the non-reflective area, first sampling data generated by irradiating the calibration plate with a point light source is acquired by a linear array optical sensor; the device to be calibrated is located on one side of the calibration plate, the reflective area and the non-reflective area are provided on a surface of the calibration plate facing the device to be calibrated, and the device to be calibrated is provided with the point light source and the linear array optical sensor;

[0032] adjusting a shooting parameter of the linear array optical sensor based on the first sampling data;

[0033] After adjusting the shooting parameters of the linear array optical sensor, when the component to be calibrated faces the reflective area, second sampling data generated by the point light source irradiating the reflective area is acquired by the linear array optical sensor;

[0034] After adjusting the shooting parameters of the linear array optical sensor, when the component to be calibrated faces the non-reflective area, obtaining, through the linear array optical sensor, third sampling data generated by the point light source irradiating the non-reflective area;

[0035] The actual grayscale space corresponding to each pixel point in the linear array optical sensor is determined according to the second sampling data and the third sampling data, so as to perform correction according to the actual grayscale space.

[0036] The present invention provides a point light source light quantity distribution equalization correction system, comprising a measuring device and a host computer; the measuring device comprises a correction plate, a device to be corrected is located on one side of the correction plate, and the device to be corrected is communicatively connected to the host computer; a reflective area and a non-reflective area are provided on a surface of the correction plate facing the device to be corrected, and the device to be corrected is provided with a point light source and a linear array optical sensor; the host computer is configured to: when the device to be corrected straddles the reflective area and the non-reflective area, obtain first sampling data generated by the point light source irradiating the correction plate through the linear array optical sensor; adjust shooting parameters of the linear array optical sensor based on the first sampling data; after adjusting the shooting parameters, when the device to be corrected is facing the reflective area, obtain second sampling data generated by the point light source irradiating the reflective area through the linear array optical sensor; after adjusting the shooting parameters of the linear array optical sensor, when the device to be corrected is facing the non-reflective area, obtain third sampling data generated by the point light source irradiating the non-reflective area through the linear array optical sensor; and determine the actual grayscale space corresponding to each pixel point in the linear array optical sensor based on the second sampling data and the third sampling data, so as to perform correction according to the actual grayscale space.

[0037] A correction plate is set up, and a reflective area and a non-reflective area are set in the correction plate to simulate the white area and the black area in the optical ruler. The device to be corrected is first placed across the reflective area and the non-reflective area. At this time, a part of the linear array optical sensor obtains the brightness corresponding to the reflective area, and a part obtains the brightness corresponding to the non-reflective area. The shooting parameters of the linear array optical sensor can be adjusted by the brightness distribution collected by the linear array optical sensor; after the adjustment, the entire device to be corrected is directed toward the reflective area to obtain the second sampling data of the white area corresponding to each pixel point, and the entire device to be corrected is directed toward the non-reflective area to obtain the third sampling data of the black area corresponding to each pixel point; the second sampling data and the third sampling data can be combined to obtain the actual grayscale space corresponding to each pixel point, and then correction can be performed according to the actual grayscale space to achieve accurate point light source light distribution equalization correction.

[0038] The present invention also provides a method for correcting the equalization of light distribution of a point light source, which also has the above-mentioned beneficial effects and will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0040] FIG1 is a schematic structural diagram of a point light source light distribution equalization correction system provided by an embodiment of the present invention;

[0041] Figure 2 is a schematic diagram of a circular application;

[0042] Figure 3 is a schematic diagram of a linear application;

[0043] Figure 4 is a sample value distribution diagram;

[0044] FIG5 is a schematic diagram of grayscale space;

[0045] FIG6 is a schematic diagram of the grayscale space of different pixels before correction;

[0046] FIG7 is a schematic diagram of grayscale space of different pixels after correction;

[0047] FIG8 is a schematic structural diagram of a specific point light source light distribution equalization correction system provided by an embodiment of the present invention;

[0048] FIG9 is a flow chart of a method for balancing the light distribution of a point light source provided by an embodiment of the present invention.

[0049] In the figure: 1. Calibration plate, 2. Device to be calibrated, 21. Point light source, 22. Linear array optical sensor, 3. Host computer, 4. Dark box, 5. Guide rail platform. DETAILED DESCRIPTION

[0050] The core of the present invention is to provide a point light source light quantity distribution equalization correction system. In the existing technology, there are almost no high-precision absolute position encoding based on image sensing technology in China. There are relatively few products such as grating rulers, and the technical solutions adopted by each company are also very different. Since the point light source presents a distribution method with a strong center and gradually decreasing on both sides, according to the Lambertian distribution form, the extreme value distribution in the entire light quantity distribution is uneven, and the local extreme value also presents a form of high in the middle and low on both sides. If the system sensor is not corrected, the data collected by the light and dark alternating optical scale cannot be processed with high precision by subsequent algorithms. For example, before decoding the zebra stripes on the collected image, it is necessary to binarize it. Multi-threshold, dynamic threshold and other methods cannot achieve good binarization.

[0051] The present invention provides a point light source light distribution equalization correction system, which provides a correction plate, and provides a reflective area and a non-reflective area in the correction plate to simulate the white area and the black area in the optical ruler. The device to be corrected is first placed across the reflective area and the non-reflective area. At this time, a part of the linear array optical sensor obtains the brightness corresponding to the reflective area, and a part obtains the brightness corresponding to the non-reflective area. The shooting parameters of the linear array optical sensor can be adjusted according to the brightness distribution collected by the linear array optical sensor; after the adjustment, the entire device to be corrected is directed toward the reflective area to obtain second sampling data of the white area corresponding to each pixel point, and the entire device to be corrected is directed toward the non-reflective area to obtain third sampling data of the black area corresponding to each pixel point; the second sampling data and the third sampling data can be combined to obtain the actual grayscale space corresponding to each pixel point, and then correction can be performed according to the actual grayscale space to achieve accurate point light source light distribution equalization correction.

[0052] In order to enable those skilled in the art to better understand the present invention, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0053] Please refer to Figures 1 to 7, Figure 1 is a structural schematic diagram of a point light source light distribution equalization correction system provided by an embodiment of the present invention; Figure 2 is a circular application schematic diagram; Figure 3 is a linear application schematic diagram; Figure 4 is a sampling value distribution diagram; Figure 5 is a grayscale space schematic diagram; Figure 6 is a grayscale space schematic diagram of different pixel points before correction; Figure 7 is a grayscale space schematic diagram of different pixel points after correction.

[0054] Referring to Figure 1, in an embodiment of the present invention, a point light source light distribution equalization correction system includes a measuring device and a host computer 3; the measuring device includes a correction plate 1, the device to be corrected 2 is located on one side of the correction plate 1, and the device to be corrected 2 is communicatively connected to the host computer 3; the correction plate 1 is provided with a reflective area and a non-reflective area on the surface facing the device to be corrected 2, and the device to be corrected 2 is provided with a point light source 21 and a linear array optical sensor 22.

[0055] The host computer 3 is used to: when the device to be calibrated 2 is placed across the reflective area and the non-reflective area, obtain, through the linear array optical sensor 22, first sampling data generated by the point light source 21 irradiating the correction plate 1; adjust the shooting parameters of the linear array optical sensor 22 based on the first sampling data; after adjusting the shooting parameters, when the device to be calibrated 2 is facing the reflective area, obtain, through the linear array optical sensor 22, second sampling data generated by the point light source 21 irradiating the reflective area; after adjusting the shooting parameters of the linear array optical sensor 22, when the device to be calibrated 2 is facing the non-reflective area, obtain, through the linear array optical sensor 22, third sampling data generated by the point light source 21 irradiating the non-reflective area; determine, based on the second sampling data and the third sampling data, the actual grayscale space corresponding to each pixel point in the linear array optical sensor 22, for correction according to the actual grayscale space.

[0056] The point light source light distribution equalization correction system provided in an embodiment of the present invention is primarily used to accurately measure the grayscale space of each pixel in a linear optical sensor 22. Because the light source used in this application is a point light source 21, the grayscale space corresponding to each pixel will be different, with the overall distribution being high in the middle and low on both sides. After measuring the grayscale space corresponding to each pixel, if one wishes to unify the grayscale space corresponding to each pixel, this can be achieved simply by performing a linear proportional conversion. Therefore, the focus of this application is on how to measure the grayscale space of each pixel.

[0057] In actual application, the device to be corrected 2 is provided with a point light source 21 and a linear array optical sensor 22. The linear array optical sensor 22 can be a linear array CMOS or CCD sensor. The specific type of the linear array optical sensor 22 is not specifically limited in the embodiment of the present invention and depends on the specific situation. The above-mentioned linear array optical sensor 22 usually includes a plurality of pixel points arranged along a straight line, and in this application, the grayscale space of each pixel point is mainly measured. The above-mentioned point light source 21 can be an LED light source, etc., which is usually arranged in the middle of the linear array optical sensor 22 to provide light. In the application process, the above-mentioned device to be corrected 2 needs to be matched with an optical scale, such as a random encoding code disk. The above-mentioned optical scale usually includes a reflective area and a non-reflective area arranged in a preset order. The above-mentioned reflective area and non-reflective area are usually in the shape of strips. Under the illumination of the above-mentioned point light source 21, the linear array optical sensor 22 can obtain "white" and "black" signals. In actual situations, the optical ruler, point light source 21, and linear array optical sensor 22 provided in this application have the following two situations: Figure 2 is a circular application, such as a motor encoder system; Figure 3 is a linear application, such as a linear encoder or grating ruler system.

[0058] The point light source light quantity distribution equalization correction system provided in the present application includes a measuring device and a host computer 3, wherein the host computer 3 is mainly used to obtain and store various data, and the measuring device needs to include at least a correction plate 1, and one side surface of the correction plate 1 needs to be provided with a reflective area and a non-reflective area, wherein the reflective area corresponds to the reflective area of ​​the above-mentioned optical ruler, which is used to simulate the white signal obtained by the linear array optical sensor 22; the non-reflective area corresponds to the non-reflective area of ​​the above-mentioned optical ruler, which is used to simulate the black signal obtained by the linear array optical sensor 22, that is, the correction plate 1 specifically simulates a group of black and white stripes of the optical ruler. The above-mentioned device to be corrected 2 specifically needs to be located on one side of the above-mentioned correction plate 1, and the side facing the correction plate 1 is provided with the above-mentioned reflective area and non-reflective area, so that the linear array optical sensor 22 in the device to be corrected 2 can obtain the signals of the above-mentioned reflective area and non-reflective area. Normally, half of the surface of the above-mentioned correction plate 1 is a reflective area (simulating the "white" stripes of the code disk) and the other half is a non-reflective area (simulating the "black" stripes of the code disk).

[0059] The host computer 3 needs to be in communication with the aforementioned device to be calibrated 2 to obtain data collected by the device to be calibrated 2. Specifically, the host computer 3 is configured to obtain, through the linear array optical sensor 22, the first sampled data generated by the point light source 21 illuminating the calibration plate 1 when the device to be calibrated 2 straddles the reflective area and the non-reflective area. Specifically, the device to be calibrated 2 needs to be controlled to straddle the reflective area and the non-reflective area so that a portion of the pixels of the linear array optical sensor 22 can obtain the white signal corresponding to the reflective area, and another portion of the pixels can obtain the black signal corresponding to the non-reflective area. Typically, the boundary between the reflective and non-reflective areas of the calibration plate 1 needs to pass through the center of the linear array optical sensor 22, so that half of the pixels are used to obtain the white signal corresponding to the reflective area, and the other half of the pixels are used to obtain the black signal corresponding to the non-reflective area. At this time, the signal output by the linear array optical sensor 22, namely the first sampled data, is shown in FIG4 , where the signal transition position corresponds to the boundary between the reflective and non-reflective areas of the calibration plate 1.

[0060] Afterwards, in this embodiment, the host computer 3 is used to adjust the shooting parameters of the linear optical sensor 22 based on the first sampling data. The purpose of adjusting the shooting parameters of the linear optical sensor 22 is to maximize the interval size of the extreme value points in FIG4 [G min ,G max ], thereby maximizing the grayscale space corresponding to each pixel point ultimately measured, and avoiding inaccurate measurements caused by an overly small grayscale space. The specific details of adjusting the shooting parameters of the linear array optical sensor 22 based on the first sampling data will be described in detail in the following embodiments of the invention and will not be repeated here.

[0061] After adjusting the shooting parameters of the linear array optical sensor 22, the device to be corrected 2 and / or the correction plate 1 will be moved so that the device to be corrected 2 faces the reflective area of ​​the correction plate 1. At this time, all pixels in the linear array optical sensor 22 will be used to obtain the signal corresponding to the reflective area. At this time, the sampling value obtained by each pixel corresponds to the maximum value of its own grayscale space.

[0062] After adjusting the shooting parameters of the linear array optical sensor 22, the device to be corrected 2 and / or the correction plate 1 will be moved so that the device to be corrected 2 faces the non-reflective area of ​​the correction plate 1. At this time, all pixels in the linear array optical sensor 22 will be used to obtain the signal corresponding to the non-reflective area. At this time, the sampling value obtained by each pixel corresponds to the minimum value of its own grayscale space.

[0063] It should be noted that the aforementioned device 2 to be calibrated uses a linear optical sensor 22 to collect image information of the current position on an optical scale, or optical code disk, to calculate the position offset. A circular code disk system calculates the rotation angle, while a linear code disk system calculates the linear motion distance. Regardless of the system, obtaining high-precision offset position information requires equalization of the raw captured signal. Because the pixel positions of the linear array sensor correspond to different light intensity distributions, each pixel has a different grayscale color space. That is, the darkest and brightest extremes of each pixel are different. Therefore, converting the light intensity signals collected at these different pixel positions into a signal metric in the same grayscale space is a prerequisite for subsequent calculations.

[0064] Referring to Figure 5 , the grayscale space described above refers to the range of pixel values ​​within a single-channel grayscale image. The sampled value for each pixel is an integer between 0 (black) and 255 (white). Due to the Lambertian distribution of light intensity, which is strong in the center and weak at the edges, the physical location of each pixel in the linear optical sensor 22 reacts differently to the color black and white of light. This difference manifests itself in different sampled values ​​for each pixel in the linear optical sensor 22 for the same color white or black.

[0065] In this embodiment, the host computer 3 can determine and store the actual grayscale space corresponding to each pixel based on the second and third sampling data. The result is shown in Figure 6. Figure 6 shows the grayscale space of the kth pixel to the k+9th pixel of the linear array optical sensor 22. At the kth pixel, the minimum black pixel value is 20, and the maximum white pixel value is 195; at the k+5th pixel, the minimum black pixel value is 40, and the maximum white pixel value is 235; and at the k+9th pixel, the minimum black pixel value is 20, and the maximum white pixel value is 180. It should be noted that the values ​​recorded in Figure 6 are for illustrative purposes only and do not specifically limit the specific grayscale space ranges of each pixel.

[0066] In this application, correction can be performed based on the actual grayscale space of each pixel. For example, if the actual grayscale space corresponding to each pixel needs to be converted to a uniform standard grayscale space, such as the grayscale space of [0, 255], in the actual calculation process, it is only necessary to calculate the conversion ratio based on the actual grayscale space of each pixel and the standard grayscale space to achieve the uniformity of the grayscale space of each pixel. For example, assuming that the grayscale space of the j-th pixel is [G min , G max ], the sampling value of this pixel point in actual work is G real If the grayscale space is to be uniformly placed in the grayscale space of [0, 255], the conversion ratio coefficient k=(Greal -G min ) / (G max -G min ), the value corresponding to the pixel in the grayscale space [0, 255] is G = k × 255. As shown in FIG7 , the grayscale space can be unified so that the values ​​collected by each pixel in the linear optical sensor 22 can be distributed in a unified grayscale space.

[0067] A point light source light quantity distribution equalization correction system provided by an embodiment of the present invention is provided. A correction plate 1 is provided, and a reflective area and a non-reflective area are provided in the correction plate 1 to simulate the white area and the black area in the optical ruler. The device 2 to be corrected is first placed across the reflective area and the non-reflective area. At this time, a part of the linear array optical sensor 22 obtains the brightness corresponding to the reflective area, and a part obtains the brightness corresponding to the non-reflective area. The shooting parameters of the linear array optical sensor 22 can be adjusted according to the brightness distribution collected by the linear array optical sensor 22; after the adjustment, the entire device to be corrected 2 is directed toward the reflective area to obtain second sampling data of the white area corresponding to each pixel point, and the entire device to be corrected 2 is directed toward the non-reflective area to obtain third sampling data of the black area corresponding to each pixel point; the second sampling data and the third sampling data can be combined to obtain the actual grayscale space corresponding to each pixel point, and then correction can be performed according to the actual grayscale space to achieve accurate point light source light quantity distribution equalization correction.

[0068] The specific contents of the point light source light distribution equalization correction system provided by this application will be introduced in detail in the following invention embodiments.

[0069] Please refer to FIG. 8 , which is a schematic structural diagram of a specific point light source light distribution equalization correction system provided by an embodiment of the present invention.

[0070] Different from the above-mentioned embodiment of the invention, the embodiment of the present invention further specifically defines the structure of the measuring device based on the above-mentioned embodiment of the invention. The remaining contents have been described in detail in the above-mentioned embodiment of the invention and will not be repeated here.

[0071] Referring to Figure 8, in an embodiment of the present invention, the measuring device includes a dark box 4, and the correction plate 1 and the device to be corrected 2 are located inside the dark box 4. Since the calibration system of this embodiment is highly sensitive to light, external visible light will become a source of interference. Therefore, in this embodiment, a dark box 4 needs to be set up. The dark box 4 mainly blocks the light in the external environment from irradiating the correction plate 1 and the device to be corrected 2, so that the light acquired by the linear array optical sensor 22 is only the light emitted by the point light source 21. Therefore, the above-mentioned dark box 4 needs to be made of opaque material to cover the entire system operating area, that is, the above-mentioned correction plate 1 and the device to be corrected 2 are specifically located inside the dark box 4.

[0072] Specifically, in this embodiment, the light reflection characteristics of the reflective area of ​​the correction plate 1 are the same as the light reflection characteristics of the reflective area of ​​the optical scale in the system in which the device 2 to be corrected is installed; and the light reflection characteristics of the non-reflective area of ​​the correction plate 1 are the same as the light reflection characteristics of the non-reflective area of ​​the optical scale. That is, the material of the correction plate 1, including the material of its reflective area and the material of its non-reflective area, is preferably the same as the corresponding material of the optical scale actually used in the device 2 to be corrected. This ensures that the light reflection characteristics of the reflective area of ​​the correction plate 1 are the same as the light reflection characteristics of the reflective area of ​​the optical scale, and at the same time ensures that the light reflection characteristics of the non-reflective area of ​​the correction plate 1 are the same as the light reflection characteristics of the non-reflective area of ​​the optical scale, thereby ensuring the accuracy of the correction.

[0073] During the calibration process, the distance between the calibration plate 1 and the device 2 to be calibrated must be the same as the distance between the optical scale in the system in which the device 2 to be calibrated is installed and the device 2 to be calibrated. That is, the distance between the calibration plate 1 and the device 2 to be calibrated within the darkroom 4 must be the same as the distance between the optical scale and the device 2 to be calibrated during actual use to ensure calibration accuracy.

[0074] In order to conveniently change the relative position between the correction plate 1 and the device to be corrected 2, the above-mentioned measuring device may also include a guide rail platform 5, the correction plate 1 is fixed to the guide rail platform 5, and the guide rail platform 5 is used to drive the correction plate 1 to move, so that the device to be corrected 2 is placed across the reflective area and the non-reflective area of ​​the correction plate 1, or the device to be corrected 2 is directed toward the reflective area, or the device to be corrected 2 is directed toward the non-reflective area. The above-mentioned guide rail platform 5 can be specifically connected to the host computer 3 for communication, and it specifically needs to realize reciprocating motion to drive the correction plate 1 to move and change the specific position of the device to be corrected 2 to be photographed. The above-mentioned track platform can specifically receive the control instructions issued by the host computer 3 to move. The above-mentioned track platform can realize automatic switching of the device to be detected relative to different areas of the correction plate 1 to prevent dust, scratches, etc. from causing pollution to the detection area. It is usually necessary to install multiple IO function photoelectric proximity switch sensors on the edge of the guide rail platform 5 to limit the moving area of ​​the sampling plate.

[0075] The specific data processing process of the host computer 3 will be described in detail in the following embodiments of the invention and will not be described in detail here.

[0076] A point light source light distribution equalization correction system provided by an embodiment of the present invention can calibrate the balance of light distribution in a system composed of an optical scale, a point light source 21, and a linear array optical sensor 22, as well as the configuration of the optimal built-in parameters of the linear array optical sensor 22, and ensure that the calibration configuration parameters are valid and can be used directly.

[0077] The specific contents of the point light source light distribution equalization correction system provided by this application will be introduced in detail in the following invention embodiments.

[0078] Different from the above-mentioned invention embodiment, the present invention embodiment further specifically defines the above-mentioned processing flow based on the above-mentioned invention embodiment. The rest of the content has been described in detail in the above-mentioned invention embodiment and will not be repeated here.

[0079] In this embodiment, the host computer 3 first needs to control the device to be corrected 2 to straddle the reflective area and non-reflective area of ​​the correction plate 1, usually so that the device to be corrected 2 is facing the boundary line between the reflective area and the non-reflective area of ​​the correction plate 1, that is, half of the linear optical sensor 22 is placed in the reflective area and half in the non-reflective area. After that, the host computer 3 sends instructions to control the device to be corrected 2 to collect data in the current environment and obtain the first sampled data. At this time, the overall data arrangement is basically as shown in Figure 4, with an obvious polarity jump from black to white in the middle interval. At this time, the host computer 3 can analyze this data through an algorithm to detect whether there is a data jump with a large difference, as well as the interval size of the extreme values ​​of the polarity end points [G min , G max ].

[0080] If the range of the two polarity values ​​is too small, we can combine the characteristics of the built-in parameters of the linear array optical sensor 22 and appropriately adjust the exposure value, brightness gain and other shooting parameters of the linear array optical sensor 22 to make G min With G max , but also keep the overall data within the range [0, 255] while avoiding overexposure. A clear sign of overexposure is when the highest point interval of the sampling curve maintains a value of 255 for multiple consecutive points. Therefore, in this embodiment, the host computer 3 needs to adjust the shooting parameters of the linear array optical sensor 22 based on the first sampling data and the built-in parameter characteristics of the linear array optical sensor 22, so that the linear array optical sensor 22 increases the difference between the two extreme values ​​in the first sampling data while avoiding overexposure. These shooting parameters include exposure value and brightness gain value.

[0081] After adjusting the linear array optical sensor 22, the upper computer 3 can control the device to be calibrated 2 to face the reflective area of ​​the sampling plate through the above-mentioned guide rail platform 5 or other methods, and then the upper computer sends instructions to control the device to be calibrated 2 to collect data in the current environment to obtain the second sampling data, that is, the brightness sampling value of "white" in the code disk corresponding to each pixel point.

[0082] In this embodiment, after acquiring the second sampled data, the host computer 3 can further determine whether the second sampled data is valid based on the variance and distribution characteristics of the second sampled data. If the second sampled data is valid, the valid second sampled data is recorded. Specifically, in this embodiment, the host computer 3 can calculate the variance of the entire set of data, that is, calculate the square of the difference between the sampling value of each pixel and the average sampling value. This variance value reflects the fluctuation of the light intensity of the linear optical sensor 22 in the reflective area. A larger variance value indicates a greater fluctuation. In addition, based on the overall data characteristics, if the second sampled data still exhibits a large sampling value in the middle and a small sampling value at the ends, it indicates that the second sampled data is valid and can be recorded.

[0083] After adjusting the linear array optical sensor 22, the upper computer 3 can control the device to be calibrated 2 to face the non-reflective area of ​​the sampling plate through the above-mentioned guide platform 5 or other methods, and then the upper computer sends instructions to control the device to be calibrated 2 to collect data in the current environment to obtain the third sampling data, that is, the brightness sampling value of "black" in the code disk corresponding to each pixel point.

[0084] In this embodiment, after obtaining the third sampled data, the host computer 3 can further determine whether the third sampled data is valid based on the variance and distribution characteristics of the third sampled data. If the third sampled data is valid, the valid third sampled data is recorded. Specifically, in this embodiment, the host computer 3 can calculate the variance of the entire set of data, that is, obtain the square of the difference between the sampling value of each pixel and the average sampling value. This variance value reflects the fluctuation of the light intensity of the linear optical sensor 22 in the reflective area. The larger the variance value, the greater the fluctuation. In addition, based on the overall data characteristics, if the third sampled data still shows the characteristic of large sampling values ​​in the middle and small sampling values ​​at the ends, it indicates that the third sampled data is valid and can be recorded.

[0085] It should be noted that there is usually no specific order for the generation process of the second sampling data and the generation process of the third sampling data. The second sampling data or the third sampling data can be calculated first, and there is no specific limitation here.

[0086] The host computer 3 can then determine the actual grayscale space corresponding to each pixel in the linear optical sensor 22 based on the second sampling data and the third sampling data. After determining the second sampling data and the third sampling data, the entire calibration system has obtained the light value from dark to bright at the corresponding position of each pixel, which we record as [G min , G max After data sorting, as shown in Table 1:

[0087] Table 1. Grayscale space table after sorting

[0088] In this embodiment, the host computer 3 can store the actual grayscale space in the device to be corrected 2, so that during actual operation, the standard sampling value corresponding to each pixel point in the same standard grayscale space can be determined based on the actual sampling value obtained from each pixel point in the linear array optical sensor 22 and the corresponding actual grayscale space.

[0089] That is, after the above table is organized, it can be re-sent to the internal flash memory of the device to be calibrated 2 for storage backup. During actual operation, after the device to be calibrated 2 determines the grayscale space value to be converted, that is, the above-mentioned standard grayscale space, as described above, a linear proportional conversion method is used to make the signals collected under different light intensities fall into the same grayscale color space. This ensures that the different maximum and minimum values ​​in different position intervals are all processed equally, and the local extreme values ​​can reach the same size, which facilitates the application and processing of subsequent algorithms.

[0090] A point light source light distribution equalization correction system provided by an embodiment of the present invention can calibrate the balance of light distribution in a system composed of an optical scale, a point light source 21, and a linear array optical sensor 22, as well as the configuration of the optimal built-in parameters of the linear array optical sensor 22, and ensure that the calibration configuration parameters are valid and can be used directly.

[0091] A point light source light distribution equalization correction method provided by an embodiment of the present invention is introduced below. The point light source light distribution equalization correction method described below and the point light source light distribution equalization correction system described above can be referred to each other.

[0092] Please refer to FIG. 9 , which is a flow chart of a method for balancing the light distribution of a point light source provided by an embodiment of the present invention.

[0093] 9 , in an embodiment of the present invention, the method for balancing the light distribution of a point light source is specifically applied to the host computer 3 provided in the above embodiment, which includes:

[0094] S101: When the component to be calibrated straddles the reflective area and the non-reflective area, a linear array optical sensor is used to obtain first sampling data generated by a point light source irradiating a calibration plate.

[0095] In this embodiment of the present invention, the device to be corrected 2 is located on one side of the correction plate 1. The surface of the correction plate 1 facing the device to be corrected 2 is provided with the reflective area and the non-reflective area. The device to be corrected 2 is provided with the point light source 21 and the linear array optical sensor 22. The specific structure of the point light source light distribution equalization correction system has been described in detail in the above-mentioned embodiments of the invention and will not be repeated here.

[0096] S102: Adjusting shooting parameters of the linear array optical sensor based on the first sampling data.

[0097] This step may specifically include adjusting the shooting parameters of the linear array optical sensor 22 based on the first sampling data and built-in parameter characteristics of the linear array optical sensor 22, so that the linear array optical sensor 22 increases the difference between two extreme values ​​in the first sampling data while avoiding overexposure. The shooting parameters specifically include an exposure value and a brightness gain value.

[0098] S103: After adjusting the shooting parameters of the linear array optical sensor, when the component to be calibrated faces the reflective area, the linear array optical sensor acquires second sampling data generated by the point light source irradiating the reflective area.

[0099] After this step, the method further includes: after acquiring the second sampling data, determining whether the second sampling data is valid according to the variance and distribution characteristics of the second sampling data; and when the second sampling data is valid, recording the valid second sampling data.

[0100] S104: After adjusting the shooting parameters of the linear array optical sensor, when the component to be calibrated faces the non-reflective area, the linear array optical sensor obtains third sampling data generated by the point light source irradiating the non-reflective area.

[0101] After this step, the method further includes: after obtaining the third sampling data, determining whether the third sampling data is valid according to the variance and distribution characteristics of the third sampling data; and when the third sampling data is valid, recording the valid third sampling data.

[0102] S105: Determine the actual grayscale space corresponding to each pixel point in the linear optical sensor according to the second sampling data and the third sampling data, so as to perform correction according to the actual grayscale space.

[0103] After this step, the method may further include: storing the actual grayscale space in the device to be corrected 2, so that during actual operation, the standard sampling value corresponding to each pixel point in the same standard grayscale space is determined based on the actual sampling value obtained from each pixel point in the linear array optical sensor 22 and the corresponding actual grayscale space.

[0104] The point light source light distribution equalization correction method of this embodiment is used for application to the aforementioned point light source light distribution equalization correction system. Therefore, the specific implementation of the point light source light distribution equalization correction method can be found in the embodiment of the point light source light distribution equalization correction system described above. Therefore, its specific implementation can be referred to the description of the corresponding embodiments of each part, and will not be repeated here. The specific operation process of the host computer 3 in this embodiment has been described in detail in the above embodiment and will not be repeated here.

[0105] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0106] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.

[0107] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

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

[0109] The above is a detailed introduction to a point light source light quantity distribution equalization correction system and correction method provided by the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A point light source light quantity distribution equalization correction system, characterized in that: Including measuring device and host computer; The measuring device comprises a correction plate, the device to be corrected is located on one side of the correction plate, and the device to be corrected is communicatively connected with the host computer; a reflective area and a non-reflective area are arranged on the surface of the correction plate facing the device to be corrected, and the device to be corrected is provided with a point light source and a linear array optical sensor; The host computer is used for: When the device to be corrected straddles the reflective area and the non-reflective area, first sampling data generated by the point light source irradiating the correction plate is acquired through the linear array optical sensor; adjusting a shooting parameter of the linear array optical sensor based on the first sampling data; After adjusting the shooting parameters, when the device to be calibrated faces the reflective area, the linear array optical sensor is used to obtain second sampling data generated by the point light source irradiating the reflective area; After adjusting the shooting parameters of the linear array optical sensor, when the device to be calibrated faces the non-reflective area, the linear array optical sensor is used to obtain third sampling data generated by the point light source irradiating the non-reflective area; According to the second sampling data and the third sampling data, an actual grayscale space corresponding to each pixel point in the linear array optical sensor is determined for correction according to the actual grayscale space.

2. The point light source light quantity distribution equalization correction system according to claim 1, characterized in that: The host computer is also used for: The actual grayscale space is stored in the device to be corrected, so that in actual operation, the standard sampling value corresponding to each pixel point in the same standard grayscale space is determined according to the actual sampling value obtained by each pixel point in the linear array optical sensor and the corresponding actual grayscale space.

3. The point light source light quantity distribution equalization correction system according to claim 1, characterized in that: The host computer is used for: According to the first sampling data and the built-in parameter characteristics of the linear array optical sensor, adjust The shooting parameters of the linear array optical sensor are adjusted so that the linear array optical sensor increases the difference between the two extreme values ​​in the first sampling data while avoiding overexposure.

4. The point light source light quantity distribution equalization correction system according to claim 3, characterized in that: The shooting parameters include an exposure value and a brightness gain value.

5. The point light source light quantity distribution equalization correction system according to claim 1, characterized in that: The host computer is used for: After acquiring the second sampling data, determining whether the second sampling data is valid according to the variance and distribution characteristics of the second sampling data; When the second sampling data is valid, recording the valid second sampling data; After acquiring the third sampling data, determining whether the third sampling data is valid according to the variance and distribution characteristics of the third sampling data; When the third sampling data is valid, the valid third sampling data is recorded.

6. The point light source light quantity distribution equalization correction system according to claim 1, characterized in that: The light reflection characteristics of the reflective area in the correction plate are the same as the light reflection characteristics of the reflective area of ​​the optical scale in the system in which the device to be corrected is installed; the light reflection characteristics of the non-reflective area in the correction plate are the same as the light reflection characteristics of the non-reflective area of ​​the optical scale.

7. The point light source light quantity distribution equalization correction system according to claim 6, characterized in that: The distance between the correction plate and the device to be corrected is the same as the distance between the optical scale and the device to be corrected in the system in which the device to be corrected is installed.

8. The point light source light quantity distribution equalization correction system according to claim 1, characterized in that: The measuring device comprises a dark box, and the correction plate and the device to be corrected are located in the dark box.

9. The point light source light quantity distribution equalization correction system according to claim 1, characterized in that: The measuring device includes a guide rail platform, the correction plate is fixed to the guide rail platform, and the guide rail platform is used to drive the correction plate to move, so that the device to be corrected spans the reflective area and the non-reflective area of ​​the correction plate, or the device to be corrected faces the reflective area, or the device to be corrected faces the non-reflective area.

10. A method for equalizing the light distribution of a point light source, characterized in that: Applied to the host computer, including: When the device to be corrected straddles the reflective area and the non-reflective area, the first sampling data generated by the point light source irradiating the correction plate is obtained by the linear array optical sensor; the device to be corrected is located on one side of the correction plate, the reflective area and the non-reflective area are arranged on the surface of the correction plate facing the device to be corrected, and the device to be corrected is provided with the point light source and the linear array optical sensor; adjusting a shooting parameter of the linear array optical sensor based on the first sampling data; After adjusting the shooting parameters of the linear array optical sensor, when the device to be calibrated faces the reflective area, the linear array optical sensor is used to obtain second sampling data generated by the point light source irradiating the reflective area; After adjusting the shooting parameters of the linear array optical sensor, when the device to be calibrated faces the non-reflective area, the linear array optical sensor is used to obtain third sampling data generated by the point light source irradiating the non-reflective area; According to the second sampling data and the third sampling data, an actual grayscale space corresponding to each pixel point in the linear array optical sensor is determined for correction according to the actual grayscale space.

Citation Information

Patent Citations

  • Novel single-camera and single-projection light source synchronous calibrating method

    CN102708566A

  • Large-object three-dimensional measurement LED label calibration method based on tracker

    CN106643504A

  • Linear array camera calibration device for stereo vision measurement and calibration method

    CN108198224A

  • Method for realizing cross-view high-precision measurement based on motion position error compensation technology of grating ruler positioning

    CN113421310A

  • Device for carrying out high-precision automatic calibration on brightness of image measuring instrument

    CN113483667A