System, method, and apparatus for detecting non-uniformity in an illumination field - Patents.com
The system addresses illumination non-uniformity detection by controlling photoelectric and image sensors to acquire and process response signals, correcting non-uniformity using a non-uniformity index, enhancing accuracy and reproducibility in illumination field detection.
Patent Information
- Application Number
- JP2023580871
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-07-29
- Filing Date
- 2022-12-16
- Publication Date
- 2024-10-30
- Estimated Expiration
- 2042-12-16
AI Technical Summary
Existing methods struggle to accurately and efficiently detect and correct illumination non-uniformity in large fields of view due to limitations in photoelectric detectors and image sensors, leading to inconsistent and non-reproducible results, and lack of standard light sources for calibration.
A system and method utilizing a displacement control module, illumination signal acquisition module, data processing module, and non-uniformity detection module to control photoelectric detectors and image sensors, acquire and process response signals, and correct illumination non-uniformity using a non-uniformity index based on gradation distribution.
Improves accuracy and reproducibility of illumination uniformity detection by reducing human and machine errors, enabling simultaneous acquisition of photoelectric and CCD data, and optimizing the detection process for improved man-machine interaction.
Smart Images

Figure 0007576192000043 
Figure 0007576192000044 
Figure 0007576192000045
Abstract
Description
[Technical field]
[0001] The present disclosure relates to the technical field of illumination non-uniformity, and in particular to a system, method, and apparatus for detecting, correcting, and correcting non-uniformity in an illumination field.
[0002] CROSS REFERENCE TO RELATED APPLICATIONS This disclosure claims priority to Chinese applications filed on July 29, 2022 with application number 202210919563.5 and application number 202210914322.1, the entire contents of which are incorporated herein by reference. [Background technology]
[0003] Currently, in some precision processing fields, there is a high demand for uniformity of illuminance distribution within a certain region of an illumination field. Also, in order to meet the high demand for high accuracy of the detection result of the system under test, there are high demands for the accuracy of the detection device, the consistency between the detection result and the state of the system under test, the reproducibility of the detection method, etc.
[0004] Regarding the magnitude of illuminance, a photoelectric detector (photometer, illuminometer, etc.) is usually used to detect the illuminance within the detector's photosensitive range. However, in order to evaluate the illuminance distribution within a certain area of the illumination field, discrete acquisition of the magnitude of illuminance with a single photoelectric detector in the illumination field is often limited by the size of the photosensitive area of the sensor itself, and cannot meet the detection requirements of illuminance in a large-area illumination field. In addition, the time cost of detection is high, and it is difficult to ensure the stability of the detection result when using a photoelectric detector for a long time. By acquiring an image of the illumination field using an image sensor (charge-coupled device, CCD camera, etc.), and reproducing the distribution of illuminance in the illumination field by analyzing and using the grayscale values corresponding to the pixels of the image and their distribution status, it is possible to simultaneously achieve micron-scale spatial detection accuracy and hundreds of millions of detection units in a single acquisition (depending on the pixel size and resolution of the camera). However, a survey of literature on the prior art revealed that the image sensor itself has a non-uniformity problem, and the response outputs of different detection units under the same conditions are not the same. Therefore, when reproducing the illuminance distribution in the illumination field as an image, the non-uniformity of the image sensor itself affects the detection results, and the non-uniformity of the illuminance distribution in the illumination field formed by the test system cannot be expressed.
[0005] The conventional method for detecting the illumination uniformity of a light source usually requires a standard light source to calibrate the effect of the camera lens on the light beam, and after reducing the effect of the camera lens on the light beam, the image captured by the camera is used to represent the illumination uniformity of the light source, but the standard light source may be insufficient during the experiment. In addition, the conventional technology lacks a system for simultaneously acquiring data from a photoelectric detector and a CCD, and pre-processing the data to facilitate subsequent data processing, and the related uniformity detection system has insufficient human-machine interaction, which is inconvenient for users. Summary of the Invention
[0006] In view of the above technical problems, the present disclosure provides a system, a detection method, a correction method and an apparatus for detecting non-uniformity in an illumination field to solve the technical problems of the lack of systematic detection of non-uniformity in an illumination field and the lack of a standard light source in an experimental process.
[0007] A non-uniformity detection system for an illumination field according to a first aspect of an embodiment of the present disclosure includes a displacement control module that controls a displacement table to drive a photoelectric detector and an image sensor to move in the illumination field; an illumination signal acquisition module that controls the photoelectric detector to acquire different response signals at different acquisition frequencies in the illumination field and controls the image sensor to acquire a response image in the illumination field; a data processing module that acquires an illumination field having a plurality of different illuminances and an illuminance distribution considered to be uniform based on the different response signals, acquires a plurality of corrected image sensor gradation matrices based on the illumination field having a plurality of different illuminances and an illuminance distribution considered to be uniform, performs fitting on the plurality of corrected image sensor gradation matrices to obtain a parameter matrix, and a non-uniformity detection module that corrects the response image based on the parameter matrix and expresses the non-uniformity of the illuminance distribution in the illumination field using a non-uniformity index of the gradation distribution of the corrected response image. According to an embodiment of the present disclosure, the lighting signal acquisition module further controls the photoelectric detector to acquire the power output from the lighting system during a predetermined time period, thereby checking the time domain stability of the lighting system, and controls the photoelectric detector to acquire a response signal after the time domain of the lighting system is stabilized.
[0008] According to an embodiment of the present disclosure, the illumination signal acquisition module is formed with a data processing unit, a frequency setting unit, and a frequency verification unit, in which, when the data processing unit is turned on, it judges the validity of the data detected by the photoelectric detector each time, and takes the valid data as response data; when the data processing unit is turned off, the frequency verification unit takes all the data detected by the photoelectric detector as response data, the frequency setting unit sets an acquisition frequency, and the frequency verification unit further verifies, based on all the data, whether the actual frequency when the photoelectric detector acquires the response signal is consistent with the acquisition frequency.
[0009] According to an embodiment of the present disclosure, a first flag and a second flag are set for the data processing unit, and when the first flag is set for the data processing unit, the illumination signal acquisition module continues to store the acquired valid data, and when the second flag is set for the data processing unit, the illumination signal acquisition module stores an average value of all valid data from one acquisition.
[0010] According to an embodiment of the present disclosure, if the acquisition frequency is greater than a frequency threshold, a first flag is packed by way of an asynchronous callback.
[0011] According to an embodiment of the present disclosure, the data processing module obtains an illumination field having a plurality of different illuminances and an illuminance distribution considered to be uniform based on different response signals, specifically, obtaining a vertical size of the illumination field considered to be uniform based on a distribution curve of response data acquired for a column corresponding to an apex of a distribution curve of response data acquired for any one row of the illumination field by the photoelectric detector, and obtaining a horizontal size of the illumination field considered to be uniform based on a distribution curve of response data acquired for a row corresponding to an apex of the distribution curve of response data acquired for the column, or obtaining a plurality of initial sizes of the illumination field considered to be uniform based on the distribution curve of response data acquired for each row of the illumination field by the photoelectric detector. The method includes obtaining an initial lateral size of the illumination field based on a distribution curve of response data obtained by the photoelectric detector for each column of the illumination field and determining the smallest initial lateral size among the initial lateral sizes as the lateral size of the illumination field to be considered uniform; obtaining an initial vertical size based on a distribution curve of response data obtained by the photoelectric detector for each column of the illumination field and determining the smallest initial vertical size among the initial vertical sizes as the vertical size of the illumination field to be considered uniform; or obtaining the lateral size of the illumination field based on the distribution curve of response data obtained by the photoelectric detector for any one row of the illumination field and obtaining the vertical size of the illumination field based on the distribution curve of response data obtained by the photoelectric detector for any one column of the illumination field.
[0012] According to an embodiment of the present disclosure, the data processing module obtaining multiple corrected image sensor grayscale matrices based on an illumination field having multiple different illuminances and an illumination distribution considered to be uniform specifically includes: obtaining image response values of all pixel points at each target position obtained by setting the horizontal and vertical sizes of the uniform illumination field as step lengths of the image sensor in the horizontal and vertical directions, respectively, to construct original images of the corresponding target positions; processing the original images to obtain calibration images; and obtaining corrected image sensor grayscale matrices based on the grayscale of each pixel point of the calibration image.
[0013] According to an embodiment of the present disclosure, processing the original image to obtain a calibration image specifically includes: cutting out an image area whose width and height are the same as the horizontal and vertical sizes in the original image at each target position, stitching it into a first central image, windowing and traversing each pixel point in the first central image, changing the image response value of a pixel point that does not satisfy a predetermined condition to the average or median of the image response values of all pixel points within the window of the first central image, and obtaining a calibration image; or windowing and traversing each pixel point in the original image at each target position, changing the image response value of a pixel point that does not satisfy a predetermined condition to the average or median of the image response values of all pixel points within the window of the original image, obtaining a second central image corresponding to each target position, cutting out an image area whose width and height are the same as the horizontal and vertical sizes in the second central image at each target position, and stitching it into the calibration image.
[0014] According to an embodiment of the present disclosure, the displacement control module controls the displacement table to drive the photodetector and the image sensor to step in a zigzag manner across the illumination field.
[0015] A method for detecting non-uniformity in an illumination field according to a second aspect of an embodiment of the present disclosure includes the steps of: controlling a displacement table by a displacement control module to drive a photoelectric detector and an image sensor to move in the illumination field; controlling the photoelectric detector by an illumination signal acquisition module to acquire different response signals at different acquisition frequencies in the illumination field, and controlling the image sensor to acquire a response image in the illumination field; acquiring an illumination field having a plurality of different illuminances and an illuminance distribution considered to be uniform based on the different response signals by a data processing module, acquiring a plurality of corrected image sensor gradation matrices based on an illumination field having a plurality of different illuminances and an illuminance distribution considered to be uniform, performing fitting to the plurality of corrected image sensor gradation matrices to obtain a parameter matrix; and correcting the response image based on the parameter matrix by a non-uniformity detection module, and expressing the non-uniformity of the illuminance distribution in the illumination field using a non-uniformity index of the gradation distribution of the corrected response image.
[0016] A third aspect of an embodiment of the present disclosure provides a method for correcting a non-uniformity detection system for an illumination field, the non-uniformity detection system including a displacement table, and a photoelectric detector and an image sensor attached to the displacement table, the correction method including the steps of: moving a pinhole close to a photosensitive surface attached to the photoelectric detector so that light from the illumination field passes only through the pinhole and a response occurs on the photosensitive surface of the photoelectric detector; controlling the displacement table to drive the photoelectric detector to which the pinhole is attached to step-scan a target position in the illumination field to acquire a response signal, and acquiring an illumination field having an illuminance distribution that is deemed uniform based on the distribution of the response signals in the horizontal and vertical directions. and a step of controlling the displacement table to drive the image sensor to step-scan a target position in the illumination field for each illuminance to acquire a response image, processing the response image based on the illumination field having an illuminance distribution deemed to be uniform, and acquiring a calibration image. A step of performing fitting on a plurality of calibration images acquired at different illuminances to acquire calibration parameters. A step of correcting the orientation target response image acquired by the image sensor at an arbitrary illuminance based on the calibration parameters, and determining the non-uniformity of the illuminance distribution in the current illumination field based on the non-uniformity of the gradation distribution of the orientation target response image after the correction.
[0017] According to an embodiment of the present disclosure, the method further includes a step of verifying the time domain stability of the lighting system by obtaining the power output from the lighting system during a predetermined time period by a photoelectric detector, and after the time domain of the lighting system is stabilized, a step of bringing a pinhole close to a photosensitive surface attached to the photoelectric detector.
[0018] According to an embodiment of the present disclosure, the step of obtaining an illumination field having an illuminance distribution deemed to be uniform based on the distribution of response signals in the horizontal and vertical directions specifically includes the steps of setting a non-uniformity index, and calculating the spatial detection range of the illumination field in the horizontal and vertical directions as the size of the illumination field having an illuminance distribution deemed to be uniform based on the response values corresponding to the response signals in the horizontal and vertical directions and the non-uniformity index.
[0019] According to an embodiment of the present disclosure, the step of processing the response image based on an illumination field having an illuminance distribution considered to be uniform specifically includes the steps of: cutting out an image area in the response image of each target position, the width and height of which are the horizontal and vertical sizes of the illumination field having an illuminance distribution considered to be uniform, respectively, and stitching it into a first central image, windowing and traversing each pixel point in the first central image, changing the image response value of the pixel point that does not satisfy the predetermined condition to the median or average value of the image response values of all pixel points in the window of the first central image, and obtaining a calibration image; or windowing and traversing each pixel point in the response image of each target position, changing the image response value of the pixel point that does not satisfy the predetermined condition to the median or average value of the image response values of all pixel points in the window of the original image, and obtaining a second central image corresponding to each target position, and cutting out an image area in the second central image of each target position, the width and height of which are the horizontal and vertical sizes of the illumination field having an illuminance distribution considered to be uniform, and stitching it into the calibration image.
[0020] According to an embodiment of the present disclosure, the step of performing fitting on a plurality of calibration images obtained under different illuminances to obtain calibration parameters includes the step of performing nonlinear fitting on the plurality of calibration images to obtain calibration parameters that satisfy the condition of the smallest residual, in which the fitting model used for the nonlinear fitting is an S-curve or a higher-order curve having an intermediate part close to linearity.
[0021] According to an embodiment of the present disclosure, the step of correcting the orientation target response image acquired by the image sensor at an arbitrary illuminance based on the calibration parameters, and determining the non-uniformity of the illuminance distribution in the current illumination field of view based on the non-uniformity of the gradation distribution of the orientation target response image after the correction specifically includes the steps of: calculating the corrected gradation value of each pixel point of the orientation target response image by the following formula: JPEG0007576192000001.jpg15153 however, JPEG0007576192000002.jpg1279 is the calibration parameter corresponding to pixel point (I, J), JPEG0007576192000003.jpg1317 is the gradation value before correction of pixel point (I, J), JPEG0007576192000004.jpg1215 is the corrected gradation value of pixel point (I, J), and the step of calculating an index of non-uniformity of illuminance distribution in the current illumination field of view from the maximum gradation value and the minimum gradation value among the corrected gradation values of all pixel points is included.
[0022] According to an embodiment of the present disclosure, the step length when controlling the displacement table to drive the photodetector with the pinhole attached thereto to step-scan the target position in the illumination field is equal to or less than the diameter of the pinhole.
[0023] According to an embodiment of the present disclosure, the horizontal and vertical sizes of an illumination field having an illuminance distribution considered to be uniform are set as step lengths in the horizontal and vertical directions of an image sensor, and a response image of each target position is acquired.
[0024] According to an embodiment of the present disclosure, the above correction method further includes a step of adjusting the time domain stability of the illumination system when the time domain of the illumination system is unstable by an adjustment method including at least one of adjusting parameters of the illumination source of the illumination system by circuit design, adjusting parameters of the illumination source of the illumination system by optical materials, adjusting parameters of the illumination source of the illumination system with proportional differential and integral based on temperature feedback, and replacing the illumination source of the illumination system.
[0025] A fourth aspect of an embodiment of the present disclosure provides a correction device for a system for detecting non-uniformity in an illumination field, the non-uniformity detection system including a displacement table, and a photoelectric detector and an image sensor attached to the displacement table, the correction device including an attachment module for moving a pinhole close to a photosensitive surface attached to the photoelectric detector so that light from the illumination field passes only through the pinhole and generates a response on the photosensitive surface of the photoelectric detector, an acquisition module for controlling the displacement table to drive the photoelectric detector to which the pinhole is attached to step-scan a target position in the illumination field and acquire a response signal, and acquiring an illumination field having an illuminance distribution that is deemed uniform based on the distribution of the response signals in the horizontal and vertical directions, and an illuminance acquisition module for acquiring an illuminance distribution that is deemed uniform based on the distribution of the response signals in the horizontal and vertical directions. The calibration system includes a processing module that controls the displacement table to drive the image sensor to step-scan a target position in the illumination field to acquire a response image, processes the response image based on the illumination field having an illuminance distribution that is considered to be uniform, and obtains a calibration image; a fitting module that performs fitting on a plurality of calibration images acquired at different illuminances to obtain calibration parameters; and a correction module that corrects the orientation target response image acquired by the image sensor at an arbitrary illuminance based on the calibration parameters, and determines the non-uniformity of the illuminance distribution in the current illumination field based on the non-uniformity of the gradation distribution of the orientation target response image after the correction.
[0026] The illumination field non-uniformity detection system, detection method, correction method and apparatus according to the embodiments of the present disclosure have at least the following technical effects.
[0027] The lighting module is set to control the photoelectric detector and the image sensor to obtain data in the lighting field, so that the photoelectric detector data and the CCD data can be obtained simultaneously. The data processing module obtains the lighting field having a plurality of different illuminances and an illuminance distribution that is considered to be uniform based on the different response signals, and defines the appropriate section of the image sensor before performing image scanning, thereby reducing the influence of human error, machine error and environmental error on the detection result and improving the accuracy of the detection result. In addition, the photoelectric detector data and the CCD data are obtained simultaneously, and the optimized parameter matrix is obtained, and the non-uniformity of the illuminance distribution in the lighting field is expressed by the non-uniformity index of the gray scale distribution of the response image after correcting the response image, thereby systematizing the detection of non-uniformity of illumination and improving man-machine interaction.
[0028] By forming a data processing unit in the illumination signal acquisition module, whether to judge the validity of the detected data is determined according to whether the data processing unit is on or off, thereby improving the intelligence of the non-uniformity detection system. By setting a first flag and a second flag for the data processing unit and controlling whether to record data continuously or only once with different flags, the intelligence of the system can be further improved, providing users with more choices and satisfying user needs. Stepping the data in a zigzag manner eliminates the need for the displacement table to return to its initial position for each row to scan the next row, saving scanning time and protecting the equipment by reducing wear and tear, thus extending the equipment's lifespan.
[0029] By combining a photoelectric detector and an image sensor, firstly, an illumination field having an illuminance distribution regarded as uniform by the photoelectric detector is obtained, and then the response image obtained from the image sensor is processed according to the illumination field having an illuminance distribution regarded as uniform, and calibration parameters are obtained to evaluate the non-uniformity, thereby optimizing the application scene of the illumination field and improving the systematicity of the orientation and correction process, which is particularly suitable for measuring the uniformity index of the illumination field in the absence of a standard light source.
[0030] By performing nonlinear fitting on multiple calibration images using an S-curve fitting model, the calibration points selected by the fitting have an intermediate portion close to linearity. Therefore, there is no need to select an excessive number of calibration points, and overfitting can be avoided. Meanwhile, the calibration points selected at both ends are relatively dense, which enhances the fitting effect. This improves the fitting effect to be closer to the actual situation, the obtained calibration parameters are more accurate, and the correction based on the calibration parameters is more accurate.
[0031] In order to make the above and other objects, features and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described with reference to the following drawings. [Brief description of the drawings]
[0032] [Figure 1] FIG. 1 shows a schematic block diagram of a system for detecting non-uniformity in an illumination field according to an embodiment of the present disclosure. [Diagram 2] 1A and 1B are schematic diagrams illustrating the principle of obtaining a deemed uniform illumination field according to an embodiment of the present disclosure; [Diagram 3] FIG. 2 is a schematic diagram illustrating the principle of acquiring a calibration image according to an embodiment of the present disclosure; [Figure 4] 1 illustrates a schematic flow chart of a method for detecting non-uniformity in an illumination field according to an embodiment of the present disclosure. [Diagram 5]1 illustrates a schematic flow chart of a method for correcting an illumination field non-uniformity detection system according to an embodiment of the present disclosure. [Figure 6] 1 illustrates a block diagram of a correction device for a system for detecting non-uniformity in an illumination field according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0033] In order to make the objectives, technical solutions and advantages of the present disclosure clearer, the present disclosure will be described in more detail below with reference to specific embodiments and drawings. It is clear that the described embodiments are only some embodiments of the present disclosure, and are not all embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by a person skilled in the art without using inventive ability also belong to the protection scope of the present disclosure.
[0034] The terms used in the specification of the present disclosure are merely for the purpose of describing specific embodiments and are not intended to limit the present disclosure. Terms such as "having", "including", and the like, used in the specification of the present disclosure, indicate the presence of features, steps, operations and / or components, and are not intended to exclude the presence or addition of one or more other features, steps, operations or components.
[0035] In the description of the present disclosure, unless otherwise clearly defined or limited, the terms "attached", "linked", "connected", "fixed" and the like should be understood in a broad sense. For example, they may be fixedly connected, detachably connected, or integrally connected. They may be mechanically connected, electrically connected, or may communicate with each other. They may be directly connected, indirectly connected via an intermediate, or the interiors of two elements may communicate with each other or two elements may interact with each other. Those skilled in the art can understand the specific meanings of the above terms in the present disclosure according to the specific circumstances.
[0036] In describing the present disclosure, directions or positional relationships expressed by terms such as "longitudinal," "length," "circumferential," "front," "rear," "left," "right," "top," "bottom," "inside," "outside," and the like are based on the drawings and are merely for the purpose of conveniently and simply describing the present disclosure, and do not expressly or imply that the relevant subsystems or elements necessarily have a particular orientation or are configured or operated in a particular direction, and therefore should not be understood as limiting the present disclosure.
[0037] In all drawings, the same elements are indicated by the same or similar reference numerals. If there is a risk of confusing the understanding of the present disclosure, familiar configurations or structures are omitted. In addition, the shape, size, and positional relationship of each part in the drawings do not reflect the actual size, scale, and actual positional relationship. In addition, in the claims, any reference numerals enclosed in parentheses do not limit the scope of the claims.
[0038] Similarly, in order to simplify the disclosure and facilitate understanding of one or more aspects of the disclosure, in the above description of exemplary embodiments of the disclosure, each feature of the disclosure may be divided into one embodiment, figure, or description thereof. Reference to a description such as "one embodiment," "some embodiments," "examples," "specific examples," or "some examples" means that the specific feature, structure, material, or characteristic described using the embodiment or example is included in at least one embodiment or example in the disclosure. In the specification of the disclosure, the exemplary expressions for the above terms do not necessarily refer to the same embodiment or example. In addition, the specific features, structures, materials, or characteristics described may be appropriately combined in any one or more embodiments or examples.
[0039] It should be noted that the terms "first" and "second" are for descriptive purposes only and do not express or imply a relative importance or a number of technical features. Thus, a feature qualified by "first" and "second" may expressly or imply that it includes one or more of the feature. In the description of this disclosure, unless specifically limited otherwise, "plurality" means more than two, e.g., two, three, etc.
[0040] FIG. 1 is a schematic block diagram of a system for detecting non-uniformity in an illumination field according to an embodiment of the present disclosure.
[0041] As shown in FIG. 1, the illumination field non-uniformity detection system 100 includes, for example, a displacement control module 110, an illumination signal acquisition module 120, a data processing module 130, and a non-uniformity detection module 140. The displacement control module 110 controls the displacement table to drive the photoelectric detector and the image sensor to move in the illumination field. The illumination signal acquisition module 120 controls the photoelectric detector to acquire different response signals at different acquisition frequencies in the illumination field, and controls the image sensor to acquire response images in the illumination field. The data processing module 130 acquires an illumination field having a plurality of different illuminances and an illuminance distribution considered to be uniform based on the different response signals, acquires a plurality of corrected grayscale matrices of the image sensor based on the illumination field having a plurality of different illuminances and an illuminance distribution considered to be uniform, and performs fitting on the plurality of corrected grayscale matrices of the image sensor to obtain a parameter matrix. The non-uniformity detection module 140 corrects the response image based on the parameter matrix, and expresses the non-uniformity of the illuminance distribution in the illumination field using a non-uniformity index of the grayscale distribution of the corrected response image.
[0042] The illumination field non-uniformity detection system 100 may further include a host device 150 that is communicatively connected to the displacement control module 110, the illumination signal acquisition module 120, the data processing module 130, and the non-uniformity detection module 140, controls each module, and stores and displays detected data. The host device 150 may include a status display module that can display information such as the specific position of the displacement table, the travel direction, and parameters such as temperature, the space occupied by the data acquisition, and the data acquisition frequency measured by the frequency verification unit.
[0043] In one embodiment of the present disclosure, the lighting signal acquisition module 120 further controls the photoelectric detector to acquire the power output from the lighting system during a predetermined time period, thereby checking the time domain stability of the lighting system, and controls the photoelectric detector to acquire a response signal after the time domain of the lighting system is stabilized.
[0044] For example, the displacement control module 110 controls the displacement table to drive the photoelectric detector to move. The photoelectric detector stops at any position in the illumination field, and its photosensitive surface is perpendicular to the illumination optical axis. The illumination signal acquisition module 120 controls the photoelectric detector to acquire the power output from the illumination system for a long time, thereby checking the time domain stability of the illumination system. In a specific example, continuous acquisition is performed for 8 hours, and the specific time period is not limited by the present disclosure and can be set according to actual needs.
[0045] Once the illumination system has time domain stability, a precision pinhole is attached to the photosensitive surface of the photoelectric detector, and the displacement control module 110 controls the displacement table to drive the pinhole and the photoelectric detector to scan the entire illumination field. The displacement control module 110 can control the stop time at each scanning position of the displacement table and the step length between adjacent stop positions. At the stop positions of the displacement table, the illumination signal acquisition module 120 controls the photoelectric detector to acquire a response signal.
[0046] In an embodiment of the present disclosure, the illumination signal acquisition module 120 is formed with a data processing unit, a frequency setting unit, and a frequency verification unit. When the data processing unit is turned on, it judges the validity of the data detected by the photoelectric detector each time, and takes the valid data as the response data. When the data processing unit is turned off, the frequency verification unit takes all the data detected by the photoelectric detector as the response data. The frequency setting unit is for setting the acquisition frequency. The frequency verification unit further verifies whether the actual frequency when the photoelectric detector acquires the response signal is consistent with the acquisition frequency according to all the data.
[0047] For example, the data processing unit can continuously receive data using User Datagram Protocol (UDP) multicast. Also, on or off can be selected. When on, it judges whether the acquired data is valid data or not each time, and discards invalid data. When off, it does not judge the validity of the acquired data, and stores all acquired data, i.e., original data. The frequency verification unit stores all data acquired during the set time period in a txt file, and judges whether the acquisition frequency setting is successful or not according to the number of data by reading the number of bytes of data in the txt file. When the number of acquired data in the txt file is 49 to 51 per second, the current actual acquisition frequency is regarded as 50 Hz. The multiple data acquisition frequencies set by the frequency setting unit can be 50 Hz, 200 Hz, 1 KHz, 2 KHz, and 5 KHz.
[0048] In one embodiment of the present disclosure, a first flag and a second flag may be set for the data processing unit, and the first flag and the second flag are independent of each other. When the first flag is set for the data processing unit, the illumination signal acquisition module 120 continues to store the acquired valid data. When the second flag is set for the data processing unit, the illumination signal acquisition module 120 stores the average value of all valid data from one acquisition.
[0049] For example, when the first flag is true, the acquired valid data is continuously stored, and when the second flag is true, the average value of all the valid data acquired in one stop is calculated and displayed in a table of the host device 150, and the average value of the valid data acquired in one stop is stored in one cell of the table.
[0050] When the first flag is true, the method of obtaining valid data may be any one of the following three methods.
[0051] The first method is to set upper and lower limits for the received data, and if the acquired data is between the upper and lower limits, the detected data is valid data, and if it is not between the upper and lower limits, the detected data is invalid data.
[0052] The second method is to set a window size so that the data filtered by the sliding window filtering is invalid data, but the window size must be set to 2n+1, where n is a positive integer and is equal to or smaller than the number obtained in one stop.
[0053] The third method is to first set upper and lower limit values, acquire data between them, and then perform sliding window filtering on the acquired data.
[0054] However, in sliding window filtering, the window size and the upper and lower limit values of the received data can be switched according to the magnitude of the data acquisition frequency. After the user sets the acquisition frequency through the acquisition frequency setting unit, the window size and the upper and lower limit values of the received data can be set by corresponding defaults or can be set independently by the user. This allows more data to be discarded at high frequencies, resulting in more accurate results and saving time. Also, low frequency sampling can be used to retain more data.
[0055] Furthermore, if the acquisition frequency is greater than the frequency threshold, a first flag is packed by way of an asynchronous callback.
[0056] For example, when the data acquisition frequency is 2KHz or 5KHz, the first flag of the data processing unit can be packed by the asynchronous callback method. If the acquisition frequency is too high and the actual acquisition frequency and the set acquisition frequency in the first flag are high at the same time during verification, the frequency verification program is prone to errors. Therefore, by packing the first flag by the asynchronous callback method, the frequency verification can be performed smoothly even in the case of high frequency.
[0057] In one embodiment of the present disclosure, the method in which the data processing module 130 obtains an illumination field having multiple different illuminances and an illuminance distribution considered to be uniform based on different response signals may include, for example, any one of the following three methods.
[0058] The first method obtains the vertical size of the illumination field considered to be uniform based on the distribution curve of the response data acquired for the column corresponding to the apex of the distribution curve of the response data acquired for any one row of the illumination field by the photoelectric detector, and obtains the horizontal size of the illumination field considered to be uniform based on the distribution curve of the response data acquired for the row corresponding to the apex of the distribution curve of the response data acquired for the column. Of course, the columns may be scanned first, and then the rows. Specifically, the horizontal size of the illumination field considered to be uniform is obtained based on the distribution curve of the response data acquired for the row corresponding to the apex of the distribution curve of the response data acquired for any one column of the illumination field by the photoelectric detector, and obtains the vertical size of the illumination field considered to be uniform based on the distribution curve of the response data acquired for the column corresponding to the apex of the distribution curve of the response data acquired for the row.
[0059] The second method obtains multiple initial horizontal sizes based on a distribution curve of response data acquired by a photoelectric detector for each row of the illumination field, and determines the smallest initial horizontal size among the multiple initial horizontal sizes as the horizontal size of the illumination field that is considered to be uniform, and obtains multiple initial vertical sizes based on the distribution curve of response data acquired by a photoelectric detector for each column of the illumination field, and determines the smallest initial vertical size among the multiple initial vertical sizes as the vertical size of the illumination field that is considered to be uniform.
[0060] The third method obtains the horizontal size of the illumination field based on the distribution of response data acquired by the photoelectric detector for any one row of the illumination field, and obtains the vertical size of the illumination field based on the distribution of response data acquired by the photoelectric detector for any one column of the illumination field.
[0061] FIG. 2 is a schematic diagram showing the principle of obtaining a deemed uniform illumination field according to an embodiment of the present disclosure.
[0062] 2, the data processing module 130 receives data acquired by the illumination signal acquisition module 120. The data may be any one of data acquired when the data processing unit is off, when the first flag is true, and when the second flag is true.
[0063] The distribution curve of the response value V of the photoelectric detector in any one row or any one column of the illumination field is a parabola, and the response curves of each row and each column are not necessarily the same. The lateral (x-direction) size L of the illumination field that is considered to be uniform by the data processing module 130 x The method for obtaining this is as follows:
[0064] The illumination signal acquisition module 120 transmits the acquired response output value V of the photodetector in a certain row to the data processing module 130, which processes the response output value V in the certain row in the form of the equation PV V =(V max -V min ) / (V max +V min )*100% by PV V Calculate PV V When the value is equal to the PV value preset by the host device 150, V is calculated by the following formula: min Calculate the value. JPEG0007576192000005.jpg2064
[0065] The required V min From the values, the size L in the x direction of the illumination field that is considered uniform by the distribution curve of the response values V of this row x get.
[0066] Similarly, the vertical (y) size of the illuminated field to be considered uniform, L y You can get.
[0067] Of course, Figure 2 is a diagram showing the principle of determining the horizontal or vertical size of the illumination field based on the distribution of response data obtained by scanning a row or a column, but in reality, when flexibly selecting any one of the above three methods according to needs to obtain the size of the illumination field that is considered to be uniform, the method of determining the horizontal or vertical size of the illumination field based on the distribution of response data obtained by scanning a row or a column in any method can all refer to Figure 2.
[0068] The advantage of the first method is that x and L y Only three scans are required to obtain, which saves scanning time. In reality, most of the distribution curves (quadratic function images) of the response data except for the edges are relatively close, and the L selected by this method x and L y is not only fast but also expressive.
[0069] The advantage of the second method is that it scans the entire illumination field, so the L x and L y The expression meaning is the strongest. In addition, because there is an effect of edges, in order to save time, the edge parts are removed (for example, do not select the 5% part from the four edges of the top, bottom, left, and right), and the shortest L is scanned. x and L y Let be the final size of the illuminated field to be considered uniform.
[0070] The advantage of the third method is that it takes the shortest time to scan, since it selects any one row or any one column.
[0071] In one embodiment of the present disclosure, a method in which the data processing module 130 obtains multiple corrected image sensor grayscale matrices based on an illumination field having multiple different illuminances and an illumination distribution considered to be uniform includes, for example, obtaining image response values of all pixel points at each target position obtained by setting the horizontal and vertical sizes of the illumination field considered to be uniform as step lengths of the image sensor in the horizontal and vertical directions, respectively, to construct original images at the corresponding target positions, processing the original images to obtain calibration images, and obtaining corrected image sensor grayscale matrices based on the grayscale of each pixel point of the calibration images.
[0072] For example, the displacement control module 110 controls the displacement table to step in the illumination field, and drives the image sensor to move relative to the illumination field. x , the step length in the y direction is L y The illumination signal acquisition module 120 controls the image sensor to step to the target position and then acquires an image n times. An averaging filter is applied to the n image response values for each pixel point acquired at the target position. Specifically, the average value is calculated by the following formula. JPEG0007576192000006.jpg2078
[0073] Finally, the image response values of all pixels at each target position JPEG0007576192000007.jpg97 constitutes the original image at the corresponding target position, and furthermore, the original grayscale matrix of the image sensor is obtained from the original image. The grayscale matrices of the image sensor at all the target positions constitute the original grayscale matrix set of the image sensor.
[0074] The data processing module 130 utilizes the original image sensor grayscale matrix set to obtain a corrected image sensor grayscale matrix, and stitches it into a desired assumed uniform image sensor grayscale matrix with an assumed uniform illumination field.
[0075] FIG. 3 schematically shows a schematic diagram of the principle of obtaining a calibration image according to an embodiment of the present disclosure.
[0076] As shown in FIG. 3, there are two methods for processing the original image to obtain a calibration image.
[0077] One method is to cut out an image area with the horizontal size and vertical size in the original image of each target position as the vertical and horizontal sizes and splice it to the first central image, perform windowing and traversing on each pixel point in the first central image, and change the image response value of the pixel point that does not meet the predetermined conditions to the average value or median value of the image response values of all pixel points within the window of the first central image to obtain a calibration image.
[0078] For example, the data processing module 130 first cuts out the central L x ×L y illumination area and splices it to the response image (the first central image) of the image sensor with the desired size. Then, windowing and traversing are performed on each pixel of the spliced response image. Centering on any pixel (I, J) of the original tone matrix after splicing, windowing and traversing are performed with a window size including (2m + 1)*(2n + 1) pixels. However, m and n are non-negative integers, usually m≧2, n≧2, I of the selected pixel (I, J) is m + 1 or more, and J is n + 1 or more. Then, it is determined whether to remove the response value of this pixel. The criterion for determining whether to remove the response value of a pixel is whether its response value is within the interval [μ - 3σ, μ + 3σ]. The response values not within the interval [μ - 3σ, μ + 3σ] are removed. However, μ is the average value of the response tone values of all pixels within the window, and σ^2 is the variance of all response tone values within the window. For the removed response values, the median value of all image response values JPEG0007576192000008.jpg96 within the window is assigned as the tone value of the corresponding pixel in the response image of the image sensor, and the tone matrix of the corrected image sensor is obtained. For pixels with I < m + 1 and J < n + 1, their tone distribution remains unchanged from the original value. JPEG0007576192000008.jpg96 to obtain the tone matrix of the corrected image sensor. For pixels with I < m + 1 and J < n + 1, their tone distribution remains unchanged from the original value.
[0079] Another method involves windowing and traversing each pixel point in the original image at each target position, changing the image response value of pixel points that do not satisfy a specified condition to the average or median of the image response values of all pixel points within the window of the original image, obtaining a second central image corresponding to each target position, cutting out an image area whose horizontal and vertical sizes are the same as those of the second central image at each target position, and stitching it into the calibration image.
[0080] For example, using the obtained original gradation matrix set of the image sensor, an arbitrary pixel (I, J) of the output image at each target position is centered and traced with a window size including (2m+1)*(2n+1) pixels. Here, m and n are non-negative integers, and usually m≧2, n≧2, and I of the selected pixel (I, J) is m+1 or more, and J is n+1 or more. Then, it is determined whether or not to remove the response value of this pixel. The standard for determining whether or not to remove the response value of a pixel is whether the response value is in the interval [μ-3σ, μ+3σ]. Response values that are not in the interval [μ-3σ, μ+3σ] are removed. Here, μ is the average response gradation value of all pixels in the window, and σ^2 is the variance of all response gradation values in the window. For the removed response value, all image response values in the window are used as the gradation value of the response image of the corresponding pixel. The median value of JPEG0007576192000009.jpg96 is added to obtain the gradation matrix of the image sensor after correction at each target position. x ×L y The grayscale matrix of the response image in the region is cropped and stitched together with the grayscale matrix of the corrected image sensor of the desired size at the current illumination.
[0081] The host device 150 controls the different illuminance φ k N illumination fields having k (1≦k≦N) are obtained, and the above operation is repeated to obtain N corrected image sensor grayscale matrices of the same size. The data processing module 130 performs nonlinear fitting on the N corrected image sensor grayscale matrices by polynomial fitting using the least squares method, and finds the polynomial parameter matrix that satisfies the condition of the smallest residual. I get JPEG0007576192000010.jpg118.
[0082] Furthermore, in the process of obtaining the above detection data, the displacement control module 110 can control the displacement table to drive the photoelectric detector and the image sensor to make a zigzag stepwise movement in the illumination field.
[0083] In one embodiment of the present disclosure, a method for detecting the non-uniformity of the illuminance distribution in the illumination field of view by correcting a response image based on a parameter matrix and using a non-uniformity index of the gradation distribution of the corrected response image is, for example, the following method. k Actual response output value at JPEG0007576192000011.jpg1030 and parameter matrix JPEG0007576192000012.jpg118 is multiplied to obtain the corrected expected matrix, and the response grayscale matrix of the image sensor of the desired size is formed by the expected matrices of all pixels, and the formula PV V =(V max -V min ) / (V max +V min )*100% to obtain the non-uniformity index value of the illumination field.
[0084] The illumination field non-uniformity detection system according to the embodiment of the present disclosure can realize simultaneous acquisition of photoelectric detector data and CCD data. The data processing module 130 acquires an illumination field having a plurality of different illuminances and an illuminance distribution that is considered to be uniform based on the different response signals, and performs image scanning after defining an appropriate section of the image sensor, thereby reducing the influence of human error, machine error, and environmental error on the detection result and improving the accuracy of the detection result. In addition, the photoelectric detector data and CCD data are simultaneously acquired, and the response image is corrected by obtaining an optimized parameter matrix to detect the non-uniformity of the illuminance distribution in the illumination field using the non-uniformity index of the gray scale distribution of the response image, thereby systematizing the detection of illumination non-uniformity and improving man-machine interaction. In addition, the illumination signal acquisition module 120 is formed with a data processing unit, which determines whether to judge the validity of the detected data according to whether the data processing unit is on or off, thereby improving the intelligence of the non-uniformity detection system. By setting the first and second flags for the data processing unit to control whether data is recorded continuously or only once with different flags, the system intelligence can be further improved, providing more choices for users and satisfying user needs. In addition, by step-scanning the data in a zigzag manner, the displacement table does not need to return to the initial position for each row to scan the next row, which can save scanning time, reduce wear and tear to protect the equipment and extend the life of the equipment.
[0085] Based on the same inventive idea, an embodiment of the present disclosure further provides a method for detecting non-uniformity of an illumination field.
[0086] FIG. 4 illustrates a schematic flow chart of a method for detecting non-uniformity in an illumination field according to an embodiment of the present disclosure.
[0087] As shown in FIG. 4, the method for detecting non-uniformity in an illumination field includes, for example, steps S401 to S404.
[0088] Step S401: The displacement control module controls the displacement table to drive the photoelectric detector and the image sensor to move in the illumination field.
[0089] Step S402 controls the photoelectric detector to acquire different response signals at different acquisition frequencies in the illumination field by the illumination signal acquisition module, and controls the image sensor to acquire a response image in the illumination field.
[0090] In step S403, the data processing module acquires an illumination field having a plurality of different illuminances and an illuminance distribution that is deemed uniform based on different response signals, acquires a plurality of corrected image sensor grayscale matrices based on the illumination field having a plurality of different illuminances and an illuminance distribution that is deemed uniform, and performs fitting on the plurality of corrected image sensor grayscale matrices to obtain a parameter matrix.
[0091] In step S404, the non-uniformity detection module corrects the response image according to the parameter matrix, and uses a non-uniformity index of the gray level distribution of the corrected response image to represent the non-uniformity of the illuminance distribution in the illumination field.
[0092] In addition, the method for detecting unevenness in an illumination field according to an embodiment of the present disclosure corresponds to the system for detecting unevenness in an illumination field according to an embodiment of the present disclosure, and the specific implementation content and technical effects are also the same, so a description thereof will be omitted here.
[0093] Based on the same inventive idea, the embodiment of the present disclosure further provides a method for correcting the illumination field non-uniformity detection system.
[0094] FIG. 5 illustrates a schematic flow chart of a method for correcting an illumination field non-uniformity detection system according to an embodiment of the present disclosure.
[0095] As shown in FIG. 5, the correction method for the illumination field non-uniformity detection system includes, for example, steps S501 to S505.
[0096] Step S501 brings a pinhole close to a photosensitive surface attached to a photodetector so that light from the illumination field passes only through the pinhole to generate a response on the photosensitive surface of the photodetector.
[0097] Step S502 controls the displacement table to drive the photoelectric detector equipped with a pinhole to step-scan a target position in the illumination field to acquire a response signal, thereby acquiring an illumination field having an illuminance distribution that is deemed uniform based on the distribution of the response signals in the horizontal and vertical directions.
[0098] Step S503 controls the displacement table to drive the image sensor to step-scan the target position in the illumination field for each illuminance to obtain a response image, and processes the response image based on the illumination field having an illuminance distribution considered to be uniform to obtain a calibration image.
[0099] Step S504 performs fitting on a plurality of calibration images obtained under different illuminances to obtain calibration parameters.
[0100] Step S505 corrects the orientation object response image acquired by the image sensor at an arbitrary illuminance based on the calibration parameters, and determines the non-uniformity of the illuminance distribution in the current illumination field of view based on the non-uniformity of the gradation distribution of the orientation object response image after the correction.
[0101] A non-uniformity detection system according to an embodiment of the present disclosure includes a displacement table, a photoelectric detector, and an image sensor, the displacement table being movable in an illumination field of a target illumination system, the photoelectric detector and the image sensor being mounted on the displacement table, and the photosensitive surface of the image sensor and the photosensitive surface of the photoelectric detector being stabilized in a same plane and perpendicular to an illumination optical axis.
[0102] Before performing step S501, the embodiment of the present disclosure can check the time domain stability of the illumination system by obtaining the power output from the illumination system during a predetermined time period (e.g., 8 consecutive hours) by a photoelectric detector. After the time domain of the illumination system is stabilized, a pinhole is brought close to a photosensitive surface attached to the photoelectric detector.
[0103] If the time domain of the illumination system is found to be unstable through continuous measurement, the time domain stability of the illumination system can be adjusted through an adjustment method including at least one of: improving the experiment environment, adjusting the parameters of the illumination source of the illumination system through circuit design, adjusting the parameters of the illumination source of the illumination system through optical materials, adjusting the parameters of the illumination source of the illumination system with proportional differential and integral based on temperature feedback, and replacing the illumination source of the illumination system. Such adjustments avoid the influence of temperature, vibration, and the quality of the illumination source itself on the time domain stability of the illumination system.
[0104] In an embodiment of the present disclosure, the method of obtaining an illumination field having an illuminance distribution that is deemed uniform based on the distribution of response signals in the horizontal and vertical directions is similar to the method of obtaining an illumination field having a plurality of different illuminances and an illuminance distribution that is deemed uniform based on different response signals by the data processing module 130 described above, and therefore will not be described here.
[0105] For each method, the step of calculating the size of the illumination field that is considered to be uniform based on the distribution of response signals obtained for rows and the distribution of response signals obtained for columns includes, for example, setting a non-uniformity index, and calculating the spatial detection range of the illumination field in the horizontal and vertical directions as the size of the illumination field having an illuminance distribution that is considered to be uniform based on the response values corresponding to the response signals in the horizontal and vertical directions and the non-uniformity index.
[0106] Based on the selected pinhole diameter, the desired illumination field non-uniformity index PV VBased on this, the light fields passing through the pinholes are connected together to form a field with an area of L x ×L y The illumination field is formed with an area of L x ×L y is considered to have acceptable uniformity.
[0107] Specifically, the displacement table makes the pinhole and the photoelectric detector step-scan the illumination field in the plane of the illumination field with a step length equal to or less than the diameter of the pinhole. At the same time, the response value of the photoelectric detector at the corresponding position is obtained. In the embodiment, when the pinhole and the photoelectric detector step along the x direction (horizontal direction), the distribution curve of the response value of the photoelectric detector along the x axis is a parabola, and the response curves of each row and column are not necessarily the same. In other words, when the y coordinate (vertical direction) of the row scanned by the pinhole and the photoelectric detector is different, the distribution curve of the response value of the photoelectric detector along the x axis obtained is different. Similarly, the distribution curve of the response value of the photoelectric detector along the y axis is different according to the x coordinate of the signal acquisition location.
[0108] Photoelectric detector results and non-uniformity index PV V (Inhomogeneity index PV according to needs V Based on the above, the spatial detection range L of the illumination field in the x and y directions is x and L y Set the PV V The value of is the maximum response output value of the photoelectric detector V max and the minimum value V min The absolute value of the ratio of the difference between them to their sum, that is, (V max -V min ) / (V max +V min )*100%.
[0109] Since the response values acquired in the illumination field constitute a three-dimensional arc surface, to simplify the selection of the uniform illumination surface, a rectangular uniform illumination surface is acquired.
[0110] The distribution curves of the response data acquired at any x coordinate and any y coordinate of the illumination field are both Gaussian distributions, so the uniformity at the center of the illumination field can be considered to be the best. Therefore, when acquiring an illumination field considered to be uniform by the third method, the displacement table is used to step-scan the pinhole and the photoelectric detector along the x and y directions that pass through the center of the illumination field, respectively, within the plane of the illumination field.
[0111] In one embodiment of the present disclosure, the step length when controlling the displacement table to drive the photodetector having the pinhole attached thereto to step-scan the target position in the illumination field may be equal to or less than the diameter of the pinhole.
[0112] The user can select the diameter of the precision pinhole and the step length of the displacement table in one axis direction according to the non-uniformity index as needed. For example, the user can select the non-uniformity index PV V is less than 1% and the pinhole diameter is 5μm~100μm, and the non-uniformity index PV V is 1% to 5% and the pinhole diameter is 100 μm to 500 μm, and the non-uniformity index PV V is greater than 5% and the pinhole diameter is 500 μm to 1 mm.
[0113] The embodiment of the present disclosure provides three options for the user to select as needed, thereby improving the applicability of the correction method of the illumination field non-uniformity detection system.
[0114] In one embodiment of the present disclosure, the horizontal and vertical sizes of an illumination field having an illuminance distribution considered to be uniform may be set as step lengths in the horizontal and vertical directions when scanning, respectively, and a response image of each target position may be obtained.
[0115] For example, when the illumination system and the illumination field are fixed and the illumination system is stable (parameters including illuminance, area size, position, etc. are constant), the displacement table drives the image sensor to move in the x and y directions relative to the illumination field, and the illumination field scans within a desired image sensor area relative to the image sensor. In this case, the step length of the displacement table in the x direction is L x and the step length in the y direction is L y The image sensor is controlled to continuously capture images n times each time it moves stepwise to the target position, and after averaging filter processing, the grayscale distribution of the response image at the target position is obtained. Also, there are A × B pixel points for each target position. The averaging filter takes the average value of n response values V for each pixel point at any target position. That is, it is as follows. JPEG0007576192000013.jpg2075
[0116] In one embodiment of the present disclosure, there are two methods for processing an original image to obtain a calibration image based on an illumination field having a considered uniform illuminance distribution.
[0117] As shown in FIG. 3, the two methods for processing the original image are similar to the two methods for processing the original image by the data processing module 130 to obtain the calibration image described above, and the description thereof is omitted here.
[0118] In addition, the illumination field is left unchanged and the illuminance φ k N illumination fields with (1≦k≦N) are obtained, and the above operation is repeated to obtain N calibration images.
[0119] In one embodiment of the present disclosure, a method for performing fitting on a plurality of calibration images to obtain calibration parameters includes, for example, performing nonlinear fitting on a plurality of calibration images to obtain calibration parameters that satisfy a condition that minimizes residuals. The calibration parameters can be expressed by a polynomial parameter matrix. However, the fitting model used for the nonlinear fitting is an S-curve or a high-order curve having an intermediate portion close to linearity. The nonlinear fitting can use polynomial fitting using the least squares method.
[0120] For example, the calibration image is a gray scale matrix of the image sensor. Convert to JPEG0007576192000014.jpg1023 and use the image sensor's gradation matrix Tone values of all pixels in JPEG0007576192000015.jpg1023 Median or mean of JPEG0007576192000016.jpg1030 JPEG0007576192000017.jpg1220 can be obtained as the corrected expected value of all gradation values in the gradation matrix of the image sensor. k ), and each element value in the matrix is the same as A matrix that is JPEG0007576192000018.jpg1121 JPEG0007576192000019.jpg1122 is the corrected expected matrix.
[0121] Illuminance φ k For any pixel point (I,J) in JPEG0007576192000020.jpg1121 and tone value The fitting function model for JPEG0007576192000021.jpg1030 is as follows. JPEG0007576192000022.jpg9145 however, JPEG0007576192000023.jpg1079 is the calibration parameter.
[0122] This results in a sum of squared errors, for example, as follows: JPEG0007576192000024.jpg20158
[0123] Furthermore, the calibration parameter that minimizes the sum of the squared errors is JPEG0007576192000025.jpg1382 is obtained, that is, the calibration parameters that satisfy the condition of the smallest residual error are obtained. Find JPEG0007576192000026.jpg1382.
[0124] For different illuminances, the calibration parameters that satisfy the condition that the residual error of any pixel point (I, J) is smallest are calculated by the following formula. JPEG0007576192000027.jpg1382 can be obtained. JPEG0007576192000028.jpg46140
[0125] Image sensor grayscale matrix Calibration parameters for all pixel points (I,J) for JPEG0007576192000029.jpg1024 JPEG0007576192000030.jpg979 is obtained, and parameter matrices A, B, C, and D that satisfy the condition for the smallest residual are obtained. Note that the number of points in matrix A is the grayscale matrix of the image sensor. The number of points in JPEG0007576192000031.jpg1023 is the same as the number of points in the matrix. JPEG0007576192000032.jpg1015, and the same is true for other matrices B, C, and D, and the values of each point in the matrix are The image is JPEG0007576192000033.jpg1157.
[0126] In one embodiment of the present disclosure, a method for correcting a target response image acquired by an image sensor at an arbitrary illuminance based on a calibration parameter, and determining the non-uniformity of the illuminance distribution in the current illumination field of view based on the non-uniformity of the gradation distribution of the corrected target response image includes, for example, performing fitting as described above for the gradation value of each pixel point of the target response image and the calibration parameter corresponding to the pixel point to obtain the corrected gradation value of each pixel point. A non-uniformity index of the illuminance distribution in the current illumination field of view is calculated from the maximum gradation value and the minimum gradation value of the corrected gradation values of all pixel points.
[0127] For example, in the detection target illumination field of view, the photosensitive surface of the image sensor is perpendicular to the illumination optical axis. JPEG0007576192000034.jpg810 tone value JPEG0007576192000035.jpg1115 and the calibration parameters Multiply this by JPEG0007576192000036.jpg1279 and get the following corrected gradation value: I get JPEG0007576192000037.jpg1217. JPEG0007576192000038.jpg15153
[0128] Then, among the corrected gradation values of all the pixels, the maximum gradation value V max and the minimum gradation value V min Extract (V max -V min ) / (V max +V min )*100% to calculate the non-uniformity index value of the illumination field.
[0129] In addition, the above PV V In the formula, V represents the response value from different acquisition devices, such as a voltage value in the case of a photoelectric detector and a grayscale value in the case of an image sensor.
[0130] The correction method of the illumination field non-uniformity detection system according to the embodiment of the present disclosure uses a combination of a photoelectric detector and an image sensor to first obtain an illumination field with an illuminance distribution that is considered uniform by the photoelectric detector, and then processes the response image obtained from the image sensor according to the illumination field with an illuminance distribution that is considered uniform to obtain calibration parameters to evaluate the non-uniformity, thereby optimizing the application scene of the illumination field and improving the systematicity of the orientation and correction process, which is particularly suitable for measuring the uniformity index of an illumination field that lacks a standard light source.
[0131] Based on the same inventive idea, an embodiment of the present disclosure further provides a correction device for an illumination field non-uniformity detection system.
[0132] FIG. 6 illustrates a block diagram of a correction device of a system for detecting non-uniformity of an illumination field according to an embodiment of the present disclosure.
[0133] As shown in FIG. 6, the correction device 600 of the illumination field non-uniformity detection system includes, for example, an attachment module 610, an acquisition module 620, a processing module 630, a fitting module 440, and a correction module 650.
[0134] The mounting module 610 brings the pinhole close to the photosensor surface attached to the photodetector so that light from the illumination field passes only through the pinhole to produce a response at the photosensor surface of the photodetector.
[0135] The acquisition module 620 controls the displacement table to drive a photoelectric detector equipped with a pinhole to step-scan a target position in the illumination field and acquire a response signal, thereby acquiring an illumination field having an illuminance distribution that is deemed uniform based on the distribution of the response signals in the horizontal and vertical directions.
[0136] The processing module 630 controls the displacement table to drive the image sensor to step-scan a target position in the illumination field for each illuminance to obtain a response image, and processes the response image based on the illumination field having an illuminance distribution considered to be uniform to obtain a calibration image.
[0137] The fitting module 640 performs fitting on a plurality of calibration images obtained under different illumination intensities to obtain calibration parameters.
[0138] The correction module 650 corrects the orientation target response image acquired by the image sensor at any illuminance based on the calibration parameters, and determines the non-uniformity of the illuminance distribution in the current illumination field of view based on the non-uniformity of the gradation distribution of the orientation target response image after the correction.
[0139] In addition, the correction device of the illumination field non-uniformity detection system according to the embodiment of the present disclosure corresponds to the correction method of the illumination field non-uniformity detection system according to the embodiment of the present disclosure, and the specific implementation content and technical effects are also the same, so they will not be described here.
[0140] In the embodiments of the present disclosure, the described system or device may be realized in other forms. For example, the embodiment of the connection circuit of the system described above is merely illustrative. For example, the module division is merely a logical functional division, and may be another division in actual implementation. For example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be an electrical, mechanical or other type of connection.
[0141] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules, i.e., they may be located in the same location or distributed among multiple network modules. Some or all of the modules can be selected according to actual requirements to achieve the purpose of the proposed embodiment.
[0142] In addition, each functional module in the embodiment of the present disclosure may be integrated into one processing module, may function as an independent physical entity, or two or more modules may be integrated into one module. The integrated modules may be realized in the form of hardware or software functional modules.
[0143] The integrated module can be realized in the form of a software function module and stored in a computer-readable storage medium when sold or used as an independent product. From this understanding, the technical solution of the present disclosure itself, or a part that can contribute to the prior art, or all or a part of the technical solution can be realized in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of commands for a computer device (such as a personal computer, a server, or a network device) to execute all or a part of the steps of the above method in each embodiment of the present disclosure. The above storage medium includes various media capable of storing program code, such as a USB disk, a portable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0144] Although the above method embodiments are described as a combination of a series of operations for ease of explanation, those skilled in the art should understand that the present disclosure is not limited to the described order of operations, since some steps can be performed in other orders or simultaneously according to the present disclosure. In addition, those skilled in the art should understand that the embodiments described herein are all preferred embodiments, and the associated operations and modules are not necessarily essential to the present disclosure.
[0145] In the above embodiments, the description of each embodiment is focused on its own, and for the parts not described in detail in one embodiment, reference can be made to the relevant descriptions of other embodiments. The above describes the system, method, and apparatus for detecting non-uniformity of illuminance distribution in an illumination field in the photoelectric detection field according to the present disclosure. However, based on the concept of the embodiments of the present disclosure, there are changes in the specific embodiments and application scope, and therefore, those skilled in the art should not understand the contents of this specification as limiting the present disclosure.
Claims
1. a displacement control module for controlling the displacement table to drive the photoelectric detector and the image sensor to move in the illumination field; an illumination signal acquisition module for controlling the photoelectric detector to acquire different response signals at different acquisition frequencies in an illumination field and for controlling the image sensor to acquire response images in the illumination field; a data processing module for acquiring an illumination field having a plurality of different illuminances and an illuminance distribution considered to be uniform based on the different response signals, acquiring a plurality of corrected image sensor grayscale matrices based on the illumination field having a plurality of different illuminances and an illuminance distribution considered to be uniform, and performing fitting on the plurality of corrected image sensor grayscale matrices to obtain a parameter matrix; a non-uniformity detection module that corrects the response image based on the parameter matrix and expresses the non-uniformity of the illuminance distribution in the illumination field of view using a non-uniformity index of the grayscale distribution of the corrected response image; Specifically, the data processing module acquires an illumination field having a plurality of different illuminances and an illuminance distribution that is considered to be uniform based on the different response signals, obtaining a vertical size of the illumination field considered to be uniform based on a distribution curve of response data acquired for a column corresponding to an apex of a distribution curve of response data acquired for any one row of the illumination field by the photoelectric detector, and obtaining a horizontal size of the illumination field considered to be uniform based on a distribution curve of response data acquired for a row corresponding to an apex of the distribution curve of response data acquired for the column; or Obtaining a plurality of initial lateral sizes based on a distribution curve of response data acquired by the photoelectric detector for each row of the illumination field, and determining the smallest initial lateral size among the plurality of initial lateral sizes as the lateral size of the illumination field considered to be uniform; obtaining a plurality of initial vertical sizes based on a distribution curve of response data acquired by the photoelectric detector for each column of the illumination field, and determining the smallest initial vertical size among the plurality of initial vertical sizes as the vertical size of the illumination field considered to be uniform; or obtaining a horizontal size of the illumination field considered to be uniform based on a distribution curve of response data acquired by the photoelectric detector for any one row of the illumination field, and obtaining a vertical size of the illumination field considered to be uniform based on a distribution curve of response data acquired by the photoelectric detector for any one column of the illumination field.
13. A system for detecting non-uniformity in an illumination field, comprising:
2. The lighting signal acquisition module further controls the photoelectric detector to acquire power output from the lighting system during a predetermined time period, thereby verifying the time domain stability of the lighting system, and controls the photoelectric detector to acquire the response signal after the time domain of the lighting system is stabilized.
2. The system of claim 1, wherein the illumination field non-uniformity is detected by a first detecting means.
3. The illumination signal acquisition module includes a data processing unit, a frequency setting unit, and a frequency verification unit; When the data processing unit is turned on, it judges the validity of the data detected by the photoelectric detector every time, and takes the valid data as the response data; when the data processing unit is turned off, the frequency verification unit takes all the data detected by the photoelectric detector as the response data; The frequency setting unit sets the acquisition frequency; The frequency verification unit further verifies whether the actual frequency when the photoelectric detector acquires the response signal is consistent with the acquisition frequency according to all the data.
2. The system of claim 1, wherein the illumination field non-uniformity is detected by a first detecting means.
4. setting a first flag and a second flag for the data processing unit; When a first flag is set for the data processing unit, the illumination signal acquisition module continues to store the acquired valid data; When a second flag is set for the data processing unit, the illumination signal acquisition module stores an average value of all valid data from one acquisition.
4. A system for detecting non-uniformity of an illumination field according to claim 3.
5. If the acquisition frequency is greater than a frequency threshold, pack the first flag by means of an asynchronous callback.
5. A system for detecting non-uniformity of an illumination field according to claim 4.
6. The data processing module acquires a plurality of corrected image sensor grayscale matrices based on an illumination field having a plurality of different illuminances and an illuminance distribution that is considered to be uniform, specifically, obtaining image response values of all pixel points of each target position obtained by setting the horizontal and vertical sizes of the uniform illumination field as step lengths of the image sensor in the horizontal and vertical directions, respectively, to construct an original image of each corresponding target position; and processing the original image to obtain a calibration image, and obtaining a grayscale matrix of the image sensor after correction based on the grayscale of each pixel point of the calibration image.
2. The system of claim 1, wherein the illumination field non-uniformity is detected by a first detecting means.
7. Specifically, the step of processing the original image to obtain a calibration image includes the steps of: Cutting out an image area having a horizontal size and a vertical size in the original image of each target position and splicing it into a first central image, windowing and traversing each pixel point in the first central image, changing the image response value of a pixel point that does not satisfy a predetermined condition to the average value or median value of the image response values of all pixel points within the window of the first central image, thereby obtaining the calibration image; or traversing each pixel point in the original image at each target position by windowing, changing the image response value of a pixel point that does not satisfy a predetermined condition to an average value or median value of the image response values of all pixel points within the window of the original image, obtaining a second central image corresponding to each target position, cutting out an image area having a horizontal size and a vertical size in the second central image at each target position, and stitching the image area to the calibration image.
7. A system for detecting non-uniformity of an illumination field according to claim 6.
8. A displacement control module controls a displacement table to drive the photodetector and the image sensor to step in a zigzag manner in the illumination field.
2. The system of claim 1, wherein the illumination field non-uniformity is detected by a first detecting means.
9. controlling the displacement table by a displacement control module to drive the photoelectric detector and the image sensor to move in the illumination field; Controlling the photoelectric detector to acquire different response signals at different acquisition frequencies in the illumination field by an illumination signal acquisition module, and controlling the image sensor to acquire response images in the illumination field; A data processing module acquires an illumination field having a plurality of different illuminances and an illuminance distribution considered to be uniform based on the different response signals, acquires a plurality of corrected image sensor grayscale matrices based on the illumination field having a plurality of different illuminances and an illuminance distribution considered to be uniform, and performs fitting on the plurality of corrected image sensor grayscale matrices to obtain a parameter matrix; correcting the response image based on the parameter matrix by a non-uniformity detection module, and expressing the non-uniformity of the illuminance distribution in the illumination field of view using a non-uniformity index of the grayscale distribution of the corrected response image; Specifically, acquiring an illumination field having a plurality of different illuminances and an illuminance distribution considered to be uniform based on the different response signals by the data processing module includes: obtaining a vertical size of the illumination field considered to be uniform based on a distribution curve of response data acquired for a column corresponding to an apex of a distribution curve of response data acquired for any one row of the illumination field by the photoelectric detector, and obtaining a horizontal size of the illumination field considered to be uniform based on a distribution curve of response data acquired for a row corresponding to an apex of the distribution curve of response data acquired for the column; or Obtaining a plurality of initial lateral sizes based on a distribution curve of response data acquired by the photoelectric detector for each row of the illumination field, and determining the smallest initial lateral size among the plurality of initial lateral sizes as the lateral size of the illumination field considered to be uniform; obtaining a plurality of initial vertical sizes based on a distribution curve of response data acquired by the photoelectric detector for each column of the illumination field, and determining the smallest initial vertical size among the plurality of initial vertical sizes as the vertical size of the illumination field considered to be uniform; or obtaining a horizontal size of the illumination field considered to be uniform based on a distribution curve of response data acquired by the photoelectric detector for any one row of the illumination field, and obtaining a vertical size of the illumination field considered to be uniform based on a distribution curve of response data acquired by the photoelectric detector for any one column of the illumination field.
13. A method for detecting non-uniformity in an illumination field, comprising:
10. A method for correcting a non-uniformity detection system for an illumination field according to any one of claims 1 to 8, comprising the steps of: bringing the pinhole close to a photosensitive surface attached to a photodetector such that light from the illuminated field passes only through the pinhole to generate a response at the photosensitive surface of the photodetector; controlling a displacement table to drive a photoelectric detector having a pinhole mounted thereon to step-scan a target position in an illumination field and acquire a response signal, thereby acquiring an illumination field having an illuminance distribution that is deemed uniform based on the distribution of the response signal in the horizontal and vertical directions; For each illuminance, controlling a displacement table to drive an image sensor to step-scan a target position in an illumination field to acquire a response image, and processing the response image based on the illumination field having the illuminance distribution considered to be uniform to obtain a calibration image; performing fitting on a plurality of calibration images obtained under different illuminances to obtain calibration parameters; and correcting a response image of the target object acquired by the image sensor at an arbitrary illuminance based on the calibration parameters, and determining the non-uniformity of the illuminance distribution in the current illumination field of view based on the non-uniformity of the gradation distribution of the response image of the target object after the correction.
13. A method for correcting illumination field non-uniformity detection systems, comprising:
11. verifying the time domain stability of the lighting system by obtaining the power output from the lighting system during a predetermined time period by the photoelectric detector; and after the time domain of the illumination system has stabilized, moving a pinhole close to a photosensitive surface attached to the photodetector.
11. The method of claim 10, wherein the illumination field non-uniformity detection system is a detection system for detecting a non-uniformity of an illumination field.
12. The step of obtaining an illumination field having an illuminance distribution that is deemed uniform based on the distribution of the response signals in the horizontal and vertical directions specifically includes: establishing a heterogeneity index; calculating a spatial detection range of the illumination field in the horizontal and vertical directions based on the response values corresponding to the response signals in the horizontal and vertical directions and the non-uniformity index as a size of the illumination field having the illuminance distribution considered to be uniform.
11. The method of claim 10, wherein the illumination field non-uniformity detection system is a detection system for detecting a non-uniformity of an illumination field.
13. The step of processing the response image based on the illumination field having the considered uniform illuminance distribution specifically includes: a step of cutting out an image area in the response image of each target position, the image area having the horizontal and vertical sizes of the illumination field having the illuminance distribution considered to be uniform, connecting the image area to a first central image, windowing and traversing each pixel point in the first central image, changing the image response value of a pixel point that does not satisfy a predetermined condition to the median or average value of the image response values of all pixel points within the window of the first central image, and obtaining the calibration image; or a step of windowing and traversing each pixel point in the response image of each target position, changing the image response value of a pixel point that does not satisfy a predetermined condition to a median or average value of the image response values of all pixel points within the window of the original image, obtaining a second center image corresponding to each target position, cutting out an image area in the second center image of each target position, the image area having a horizontal and vertical size equal to the horizontal and vertical sizes of an illumination field having the illuminance distribution considered to be uniform, and stitching the image area to the calibration image.
11. The method of claim 10, wherein the illumination field non-uniformity detection system is a detection system for detecting a non-uniformity of an illumination field.
14. The step of performing fitting on a plurality of calibration images obtained under different illuminances to obtain calibration parameters includes: The method includes a step of performing nonlinear fitting on the plurality of calibration images to obtain calibration parameters that satisfy a condition for minimizing residual error, wherein the fitting model used for the nonlinear fitting is an S-shaped curve having an intermediate portion close to linearity, or a high-order curve.
11. The method of claim 10, wherein the illumination field non-uniformity detection system is a detection system for detecting a non-uniformity of an illumination field.
15. The step of correcting the orientation target response image acquired by the image sensor at an arbitrary illuminance based on the calibration parameters, and determining the non-uniformity of the illuminance distribution in the current illumination field of view based on the non-uniformity of the gradation distribution of the orientation target response image after the correction, specifically includes: Calculating a corrected gradation value of each pixel point of the orientation target response image by the following formula: however, are the calibration parameters corresponding to pixel point (I, J), is the gradation value of the pixel point (I, J) before correction, is the corrected gradation value of pixel point (I, J), and calculating an index of non-uniformity of the illuminance distribution in the current illumination field of view from the maximum and minimum gradation values of the corrected gradation values of all pixel points.
11. The method of claim 10, wherein the illumination field non-uniformity detection system is a detection system for detecting a non-uniformity of an illumination field.
16. When the displacement table is controlled to drive the photoelectric detector having the pinhole attached thereto to step-scan the target position in the illumination field, the step length is equal to or less than the diameter of the pinhole.
11. The method of claim 10, wherein the illumination field non-uniformity detection system is a detection system for detecting a non-uniformity of an illumination field.
17. The horizontal and vertical sizes of an illumination field having a uniform illuminance distribution are set as step lengths in the horizontal and vertical directions of the image sensor, and a response image of each target position is obtained.
11. The method of claim 10, wherein the illumination field non-uniformity detection system is a detection system for detecting a non-uniformity of an illumination field.
18. If the illumination system is unstable in the time domain, Adjusting parameters of an illumination source of the illumination system by circuit design; adjusting parameters of an illumination source of the illumination system by means of an optical material; adjusting a parameter of an illumination source of the illumination system in a proportional differential integral manner based on temperature feedback; replacing an illumination source of the illumination system; The method further comprises adjusting the time domain stability of the illumination system by an adjustment method comprising at least one of:
12. The method of claim 11, wherein the illumination field non-uniformity detection system is a detection system for detecting a non-uniformity of an illumination field.
19. A correction device for a system for detecting unevenness in an illumination field according to any one of claims 1 to 8, comprising a displacement table, and a photoelectric detector and an image sensor attached to the displacement table, a mounting module for bringing a pinhole close to a photosensor surface mounted on the photodetector such that light from an illumination field passes only through the pinhole to generate a response at the photosensor surface of the photodetector; an acquisition module for controlling a displacement table to drive a photoelectric detector having a pinhole mounted thereon to step-scan a target position in an illumination field and acquire a response signal, thereby acquiring an illumination field having an illuminance distribution that is deemed uniform based on the distribution of the response signal in the horizontal and vertical directions; a processing module for controlling a displacement table to drive the image sensor to step-scan a target position in an illumination field for each illuminance to obtain a response image, and processing the response image based on the illumination field having the illuminance distribution considered to be uniform to obtain a calibration image; a fitting module that performs fitting on a plurality of calibration images obtained under different illuminances to obtain calibration parameters; A correction module corrects a target response image acquired by an image sensor at an arbitrary illuminance based on the calibration parameters, and determines the non-uniformity of the illuminance distribution in the current illumination field of view based on the non-uniformity of the gradation distribution of the corrected target response image.
13. A correction device for a system for detecting non-uniformity of an illumination field, comprising:
Citation Information
Patent Citations
Light field light intensity distribution measurement method utilizing multiple detectors
CN107036710A
Illumination field real-time monitoring method and device
CN112304424A
Calibration and correction method and device for illumination field non-uniformity detection system
CN115265767A
Illumination field heterogeneity detection system and method
CN115265772A
