An automatic test method and terminal for image sensor saturation capacity

By collecting bright field data of the image sensor at different exposure times, calculating the exposure time interval and obtaining image data, the problem of low saturation capacity testing of image sensors is solved, automated testing is realized, and testing accuracy is improved .

CN114401397BActive Publication Date: 2024-12-06FUZHOU XINTU OPTOELECTRONICS CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210216889.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-07
Publication Date
2024-12-06
Estimated Expiration
2042-03-07

AI Technical Summary

Technical Problem

The saturation capacity test of image sensors is usually done manually, which is inefficient and requires multiple manual interventions, resulting in insufficient testing efficiency and accuracy.

Method used

By collecting bright field images under different exposure times, calculate the exposure time interval, and set the preset group exposure time according to the interval to obtain bright field and dark field image data, calculate the average gray value difference and variance difference, and perform data mapping Combined to automatically calculate the saturation capacity.

Benefits of technology

This reduces manual intervention during the testing process, improves testing efficiency and accuracy, and realizes automated saturation capacity calculation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114401397B_ABST
    Figure CN114401397B_ABST
Patent Text Reader

Abstract

The present invention discloses an automatic test method and terminal for the saturation capacity of an image sensor. The method comprises the following steps: performing bright field image acquisition at different exposure times, calculating an exposure time interval when an average grayscale value of the acquired image reaches a preset grayscale value; setting a preset group exposure time according to the exposure time interval, and acquiring image data of the preset group exposure time in the bright field and the dark field; calculating an average grayscale value difference and a grayscale value variance difference for each group of image data in the bright field and the dark field, respectively, and performing data fitting, thereby calculating the saturation capacity according to a fitting formula; therefore, multiple groups of image data in the bright field and the dark field can be obtained by automatically calculating the exposure time interval, and the saturation capacity of the sensor can be automatically calculated, thereby reducing manual intervention in the test process and improving test efficiency and test accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic component testing, and in particular to an automatic testing method and terminal for saturation capacity of an image sensor. Background Art

[0002] Image sensors are developing rapidly and are widely used in electronics and semiconductor manufacturing, automobile manufacturing, industrial testing, drug testing and packaging, food packaging, printing testing, railway and highway testing, public safety, finance, biomedicine, entertainment, military, chemical industry and scientific research. In production and important application fields, it is required to test and screen the performance of image sensors to monitor product quality. In the performance test of image sensors, the saturation capacity test is a very important link and is also a necessary link for testing other optoelectronic parameters.

[0003] However, the saturation capacity of image sensors is usually tested manually, which requires multiple human interventions and has low efficiency. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide an automatic test method and terminal for saturation capacity of an image sensor, which can improve the test efficiency and accuracy.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0006] An automatic test method for saturation capacity of an image sensor comprises the following steps:

[0007] Bright field images are collected at different exposure times, and the exposure time interval is calculated when the average gray value of the collected images reaches a preset gray value;

[0008] Setting a preset group exposure time according to the exposure time interval, and acquiring image data of the preset group exposure time in bright field and dark field;

[0009] The average gray value difference and the gray value variance difference of each group of image data in the bright field and the dark field are calculated respectively, and data fitting is performed, and the saturation capacity is calculated according to the fitting formula.

[0010] In order to solve the above technical problems, another technical solution adopted by the present invention is:

[0011] An image sensor saturation capacity automatic test terminal includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:

[0012] Bright field images are collected at different exposure times, and the exposure time interval is calculated when the average gray value of the collected images reaches a preset gray value;

[0013] Setting a preset group exposure time according to the exposure time interval, and acquiring image data of the preset group exposure time in bright field and dark field;

[0014] The average gray value difference and the gray value variance difference of each group of image data in the bright field and the dark field are calculated respectively, and data fitting is performed, and the saturation capacity is calculated according to the fitting formula.

[0015] The beneficial effects of the present invention are as follows: performing bright field image acquisition at different exposure times, and calculating the exposure time interval when the average grayscale value of the acquired image reaches a preset grayscale value; setting a preset group exposure time according to the exposure time interval, and acquiring image data of the preset group exposure time in the bright field and the dark field; calculating the average grayscale value difference and the grayscale value variance difference of each group of image data in the bright field and the dark field, respectively, and performing data fitting, so as to calculate the saturation capacity according to the fitting formula; therefore, by automatically calculating the exposure time interval, multiple groups of image data in the bright field and the dark field can be obtained, and the saturation capacity of the sensor can be automatically calculated, thereby reducing manual intervention in the test process and improving test efficiency and test accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A flowchart of an automatic testing method for saturation capacity of an image sensor according to an embodiment of the present invention;

[0017] Figure 2 A schematic diagram of an automatic test terminal for saturated capacity of an image sensor according to an embodiment of the present invention;

[0018] Figure 3 It is a schematic diagram of modules of an embodiment of the present invention;

[0019] Figure 4 A flowchart of calculating the exposure time interval according to an embodiment of the present invention;

[0020] Figure 5 A flow chart of automatic testing of bright field and dark field according to an embodiment of the present invention;

[0021] Figure 6 A flowchart of test data calculation and storage according to an embodiment of the present invention;

[0022] Figure 7 A schematic diagram of straight line fitting of the difference in average grayscale and grayscale value variance between bright and dark field images according to an embodiment of the present invention;

[0023] Description of labels:

[0024] 1. An automatic test terminal for saturation capacity of an image sensor; 2. A memory; 3. A processor. DETAILED DESCRIPTION

[0025] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.

[0026] Please refer to Figure 1 , Figures 3 to 7 The embodiment of the present invention provides an automatic test method for saturation capacity of an image sensor, comprising the steps of:

[0027] Bright field images are collected at different exposure times, and the exposure time interval is calculated when the average gray value of the collected images reaches a preset gray value;

[0028] Setting a preset group exposure time according to the exposure time interval, and acquiring image data of the preset group exposure time in bright field and dark field;

[0029] The average gray value difference and the gray value variance difference of each group of image data in the bright field and the dark field are calculated respectively, and data fitting is performed, and the saturation capacity is calculated according to the fitting formula.

[0030] From the above description, it can be seen that the beneficial effects of the present invention are: performing bright field image acquisition at different exposure times, and calculating the exposure time interval when the average grayscale value of the acquired image reaches a preset grayscale value; setting a preset group exposure time according to the exposure time interval, and obtaining image data of the preset group exposure time in the bright field and dark field; calculating the average grayscale value difference and grayscale value variance difference of each group of image data in the bright field and dark field, respectively, and performing data fitting, so as to calculate the saturation capacity according to the fitting formula; therefore, by automatically calculating the exposure time interval, multiple groups of image data in the bright field and dark field can be obtained, and the saturation capacity of the sensor can be automatically calculated, thereby reducing manual intervention in the test process and improving test efficiency and test accuracy.

[0031] Furthermore, the bright field image acquisition is performed at different exposure times until the average grayscale value of the acquired image reaches a preset grayscale value, and the exposure time interval is calculated, comprising:

[0032] Setting the gain and initial exposure time of the image sensor, taking the initial exposure time as the current exposure time, and performing bright field image acquisition according to the gain and the current exposure time to obtain a set of acquired images;

[0033] Calculate the average grayscale value of the acquired image, and determine whether the average grayscale value reaches the preset grayscale value. If not, recalculate the latest exposure time: latest exposure time = current exposure time + current exposure time * (1-average grayscale value / preset grayscale value);

[0034] The latest exposure time is used as the current exposure time to continue the bright field image acquisition and the calculation and judgment of the average grayscale value until the average grayscale value of the acquired image reaches the preset grayscale value, the final latest exposure time is used as the saturation exposure time, and the number of groups of acquired images is obtained;

[0035] Calculate and obtain the exposure time interval: exposure time interval = saturation exposure time / number of groups.

[0036] From the above description, it can be seen that the initial exposure time is used as the current exposure time, and bright field image acquisition is performed according to the gain and the current exposure time, the exposure time is updated according to the average grayscale value and the preset grayscale value of the acquired image, and the latest exposure time is used as the current exposure time to continue image acquisition until the average grayscale value of the acquired image reaches the preset grayscale value, the latest exposure time is used as the saturation exposure time, and the exposure time interval is calculated, so that subsequent testing based on the obtained optimal exposure time interval can improve the accuracy of the test.

[0037] Further, obtaining the image data of the preset group exposure time in bright field and dark field includes:

[0038] The integrating sphere light source is set to bright field and the gain of the image sensor is set, and a preset group of bright field image data is obtained according to the preset group exposure time;

[0039] The integrating sphere light source is set to dark field, and a preset group of dark field image data is obtained according to the preset group exposure time.

[0040] It can be seen from the above description that by automatically switching the integrating sphere light source between bright field and dark field, it is possible to obtain preset group bright field and dark field image data according to the preset group exposure time, thereby improving the test efficiency.

[0041] Furthermore, the step of respectively calculating the average grayscale value difference and the grayscale value variance difference of each group of the image data in the bright field and the dark field, and performing data fitting comprises:

[0042] Calculating the average grayscale value and grayscale value variance of each group of image data in the bright field and the dark field respectively;

[0043] The average gray value difference and gray value variance difference of the bright field and the dark field under each group of exposure time are calculated, and a straight line fitting is performed according to the average gray value difference and gray value variance difference under each group of exposure time to obtain a fitting formula.

[0044] From the above description, it can be seen that by performing straight line fitting based on the difference in the average grayscale value of the bright and dark fields and the difference in the variance of the grayscale value of the bright and dark fields under each group of exposure time, a fitting formula is obtained, which can further improve the efficiency and accuracy of the test.

[0045] Further, the saturation capacity is calculated according to the fitted formula including:

[0046] The coefficient k of the fitted formula is obtained, and the maximum grayscale value of the acquired image is divided by the coefficient k to calculate the saturation capacity.

[0047] From the above description, it can be seen that according to the maximum grayscale value of the acquired image and the coefficient of the fitting formula, the accurate saturation capacity can be obtained, thereby improving the accuracy of the test.

[0048] Please refer to Figure 2 Another embodiment of the present invention provides an image sensor saturation capacity automatic test terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0049] Bright field images are collected at different exposure times, and the exposure time interval is calculated when the average gray value of the collected images reaches a preset gray value;

[0050] Setting a preset group exposure time according to the exposure time interval, and acquiring image data of the preset group exposure time in bright field and dark field;

[0051] The average gray value difference and the gray value variance difference of each group of image data in the bright field and the dark field are calculated respectively, and data fitting is performed, and the saturation capacity is calculated according to the fitting formula.

[0052] From the above description, it can be seen that bright field image acquisition is performed under different exposure times, and the exposure time interval is calculated when the average grayscale value of the acquired image reaches the preset grayscale value; the preset group exposure time is set according to the exposure time interval, and the image data of the preset group exposure time in the bright field and dark field are obtained; the average grayscale value difference and the grayscale value variance difference of each group of image data in the bright field and dark field are calculated respectively, and the data are fitted, so as to calculate the saturation capacity according to the fitting formula; therefore, by automatically calculating the exposure time interval, multiple groups of image data in the bright field and dark field can be obtained, and the saturation capacity of the sensor can be automatically calculated, thereby reducing manual intervention in the test process and improving test efficiency and test accuracy.

[0053] Furthermore, the bright field image acquisition is performed at different exposure times until the average grayscale value of the acquired image reaches a preset grayscale value, and the exposure time interval is calculated, comprising:

[0054] Setting the gain and initial exposure time of the image sensor, taking the initial exposure time as the current exposure time, and performing bright field image acquisition according to the gain and the current exposure time to obtain a set of acquired images;

[0055] Calculate the average grayscale value of the acquired image, and determine whether the average grayscale value reaches the preset grayscale value. If not, recalculate the latest exposure time: latest exposure time = current exposure time + current exposure time * (1-average grayscale value / preset grayscale value);

[0056] The latest exposure time is used as the current exposure time to continue the bright field image acquisition and the calculation and judgment of the average grayscale value until the average grayscale value of the acquired image reaches the preset grayscale value, the final latest exposure time is used as the saturation exposure time, and the number of groups of acquired images is obtained;

[0057] Calculate and obtain the exposure time interval: exposure time interval = saturation exposure time / number of groups.

[0058] From the above description, it can be seen that the initial exposure time is used as the current exposure time, and bright field image acquisition is performed according to the gain and the current exposure time, the exposure time is updated according to the average grayscale value and the preset grayscale value of the acquired image, and the latest exposure time is used as the current exposure time to continue image acquisition until the average grayscale value of the acquired image reaches the preset grayscale value, the latest exposure time is used as the saturation exposure time, and the exposure time interval is calculated, so that subsequent testing based on the obtained optimal exposure time interval can improve the accuracy of the test.

[0059] Further, obtaining the image data of the preset group exposure time in bright field and dark field includes:

[0060] The integrating sphere light source is set to bright field and the gain of the image sensor is set, and a preset group of bright field image data is obtained according to the preset group exposure time;

[0061] The integrating sphere light source is set to dark field, and a preset group of dark field image data is obtained according to the preset group exposure time.

[0062] It can be seen from the above description that by automatically switching the integrating sphere light source between bright field and dark field, it is possible to obtain preset group bright field and dark field image data according to the preset group exposure time, thereby improving the test efficiency.

[0063] Furthermore, the step of respectively calculating the average grayscale value difference and the grayscale value variance difference of each group of the image data in the bright field and the dark field, and performing data fitting comprises:

[0064] Calculating the average grayscale value and grayscale value variance of each group of image data in the bright field and the dark field respectively;

[0065] The average gray value difference and gray value variance difference of the bright field and the dark field under each group of exposure time are calculated, and a straight line fitting is performed according to the average gray value difference and gray value variance difference under each group of exposure time to obtain a fitting formula.

[0066] From the above description, it can be seen that by performing straight line fitting based on the difference in the average grayscale value of the bright and dark fields and the difference in the variance of the grayscale value of the bright and dark fields under each group of exposure time, a fitting formula is obtained, which can further improve the efficiency and accuracy of the test.

[0067] Further, the saturation capacity is calculated according to the fitted formula including:

[0068] The coefficient k of the fitted formula is obtained, and the maximum grayscale value of the acquired image is divided by the coefficient k to calculate the saturation capacity.

[0069] From the above description, it can be seen that according to the maximum grayscale value of the acquired image and the coefficient of the fitting formula, the accurate saturation capacity can be obtained, thereby improving the accuracy of the test.

[0070] The above-mentioned image sensor saturation capacity automatic testing method and terminal of the present invention are suitable for automatic testing of the saturation capacity of the image sensor, which can effectively reduce manual intervention in the testing process and improve the testing efficiency, and can make the test results more accurate by automatically calculating the exposure time interval. The following is an explanation through specific implementation methods:

[0071] Embodiment 1

[0072] Please refer to Figure 1 , Figures 3 to 7 , an automatic test method for saturation capacity of an image sensor, comprising the steps of:

[0073] S1. Collect bright field images at different exposure times, and calculate the exposure time interval when the average grayscale value of the collected images reaches a preset grayscale value.

[0074] S11. Setting the gain and initial exposure time of the image sensor, taking the initial exposure time as the current exposure time, and performing bright field image acquisition according to the gain and the current exposure time to obtain a group of acquired images.

[0075] Specifically, by adjusting the integrating sphere light source, setting the bright field environment, setting the gain and initial exposure time, the initial exposure time is used as the current exposure time. The integrating sphere power supply needs to be turned on for preheating, the image sensor and the integrating sphere aperture are closely fitted and the center is aligned, and the integrating sphere light source is automatically controlled by the software to switch between the bright field environment and the dark field environment.

[0076] The gain exposure time control module configures the image sensor to perform image acquisition under different gains and exposure times. Specifically, bright field image acquisition is performed according to the gain and current exposure time to obtain a group of acquired images, and the image data format is automatically set to the Bayer image data format.

[0077] S12. Calculate the average grayscale value of the captured image and determine whether the average grayscale value reaches a preset grayscale value. If not, recalculate the latest exposure time: latest exposure time = current exposure time + current exposure time * (1-average grayscale value / preset grayscale value).

[0078] Specifically, the captured image is obtained and the average grayscale value of the captured image is calculated. In this embodiment, the preset grayscale value is a saturated grayscale value. When the average grayscale value is less than the saturated grayscale value, the current exposure time is added to (1-average grayscale / saturated grayscale value) times the current exposure time to obtain the latest exposure time. The latest exposure time is used as the current exposure time, the image is recaptured, and the average grayscale value of the captured image is calculated.

[0079] S13. Use the latest exposure time as the current exposure time to continue bright field image acquisition and calculation and judgment of the average grayscale value until the average grayscale value of the acquired image reaches a preset grayscale value. Use the final latest exposure time as the saturation exposure time, obtain the number of groups of acquired images, and calculate and obtain the exposure time interval: exposure time interval = saturation exposure time / number of groups.

[0080] Specifically, when the average grayscale value reaches the saturated grayscale, the current exposure time is the saturated exposure time, and the optimal exposure time interval can be calculated by dividing the saturated exposure time by the number of groups n.

[0081] S2. Setting a preset group of exposure times according to the exposure time interval, and acquiring image data of the preset group of exposure times in bright field and dark field.

[0082] Step S2 includes:

[0083] The integrating sphere light source is set to bright field and the gain of the image sensor is set, and a preset group of bright field image data is obtained according to the preset group exposure time;

[0084] The integrating sphere light source is set to dark field, and a preset group of dark field image data is obtained according to the preset group exposure time.

[0085] Specifically, the integrating sphere light source is adjusted to set a bright field environment, the gain of the image sensor is set, n sets of exposure time are set, and n sets of bright field image data are obtained; the integrating sphere light source is adjusted to set a dark field environment, n sets of exposure time are set, and n sets of dark field image data are obtained.

[0086] S3. Calculate the average gray value difference and gray value variance difference of each group of image data in the bright field and the dark field respectively, perform data fitting, and calculate the saturation capacity according to the fitting formula.

[0087] S31, respectively calculating the average grayscale value and grayscale value variance of each group of the image data in the bright field and the dark field.

[0088] Specifically, calculate the average gray level and the variance of gray level values of n groups of bright-field image data, calculate the average gray level and the variance of gray level values of n groups of dark-field image data, and save the average gray levels and variance data of bright and dark fields.

[0089] S32. Calculate the difference in average gray level values and the difference in variance of gray level values between the bright field and the dark field under each exposure time. Perform data fitting based on the difference in average gray level values and the difference in variance of gray level values under each exposure time to obtain a fitting formula.

[0090] Specifically, calculate the difference between the average gray level of the bright field and the average gray level of the dark field for n groups of exposure times, and calculate the difference between the variance of gray level values of the bright field and the variance of gray level values of the dark field for n groups of exposure times; please refer to Figure 7 , take the differences in average gray levels and variances of gray level values of the first m (m < n) groups for linear fitting. Among them, according to the linear model of the image sensor based on the photon conversion theory in the EMVA1288 standard (image sensor and camera test standard formulated by the European Machine Vision Association), perform linear fitting on the difference in average gray levels and the difference in variances of gray level values, and the slope of the straight line is the system gain K.

[0091] S33. Calculate the saturation capacity according to the formula obtained by fitting.

[0092] Specifically, saturation capacity = maximum output gray level value / system gain K.

[0093] Therefore, the automatic test system for the saturation capacity of the image sensor in this embodiment can effectively reduce manual intervention during the test, improve the test efficiency, and the method of automatically calculating the exposure time interval makes the test results more accurate.

[0094] Embodiment 2

[0095] Please refer to Figure 2 , an automatic test terminal 1 for the saturation capacity of an image sensor, including a memory 2, a processor 3, and a computer program stored on the memory 2 and executable on the processor 3. When the processor 3 executes the computer program, it implements each step of the optimization method for a message push in Embodiment 1.

[0096] In summary, the present invention provides an automatic test method and terminal for saturated capacity of an image sensor, sets the gain and initial exposure time of the image sensor, takes the initial exposure time as the current exposure time, performs bright field image acquisition according to the gain and the current exposure time, and obtains a group of acquired images; calculates the average gray value of the acquired images, and determines whether the average gray value reaches the preset gray value. If not, the latest exposure time is recalculated: the latest exposure time = the current exposure time + the current exposure time * (1-average gray value / preset gray value); takes the latest exposure time as the current exposure time and continues to perform bright field image acquisition and calculation and judgment of the average gray value until the average gray value of the acquired image reaches the preset gray value, takes the final latest exposure time as the saturated exposure time, and obtains the number of groups of acquired images. The preset group exposure time is set according to the exposure time interval, and the bright field and dark field are automatically set using an integrating sphere light source, so as to obtain image data of the preset group exposure time under the bright field and the dark field. The average grayscale value difference and grayscale value variance difference of each group of image data in the bright field and dark field are calculated respectively, and a straight line fitting is performed, so as to calculate the saturation capacity according to the coefficient of the fitting formula; therefore, by automatically calculating the exposure time interval, multiple groups of image data in the bright field and dark field can be obtained, and the saturation capacity of the sensor can be automatically calculated, thereby reducing manual intervention in the test process and improving test efficiency and test accuracy.

[0097] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. An automatic test method for image sensor saturation capacity, It is characterized in that Includes steps: Bright field images are collected at different exposure times, and the exposure time interval is calculated when the average gray value of the collected images reaches a preset gray value; Setting a preset group exposure time according to the exposure time interval, and acquiring image data of the preset group exposure time in bright field and dark field; The average gray value difference and the gray value variance difference of each group of image data in the bright field and the dark field are calculated respectively, and the data are fitted, and the saturation capacity is calculated according to the fitting formula; The bright field image acquisition is performed at different exposure times until the average grayscale value of the acquired image reaches a preset grayscale value, and the exposure time interval is calculated, comprising: Setting the gain and initial exposure time of the image sensor, taking the initial exposure time as the current exposure time, and performing bright field image acquisition according to the gain and the current exposure time to obtain a set of acquired images; Calculate the average grayscale value of the acquired image, and determine whether the average grayscale value reaches the preset grayscale value. If not, recalculate the latest exposure time: latest exposure time = current exposure time + current exposure time * (1-average grayscale value / preset grayscale value); The latest exposure time is used as the current exposure time to continue the bright field image acquisition and the calculation and judgment of the average grayscale value until the average grayscale value of the acquired image reaches the preset grayscale value, the final latest exposure time is used as the saturation exposure time, and the number of groups of acquired images is obtained; Calculate and obtain the exposure time interval: exposure time interval = saturation exposure time / number of groups.

2. The automatic testing method for saturation capacity of an image sensor according to claim 1, It is characterized in that Acquiring image data of the preset group exposure time in bright field and dark field includes: The integrating sphere light source is set to bright field and the gain of the image sensor is set, and a preset group of bright field image data is obtained according to the preset group exposure time; The integrating sphere light source is set to dark field, and a preset group of dark field image data is obtained according to the preset group exposure time.

3. The automatic testing method for saturation capacity of an image sensor according to claim 1, It is characterized in that The step of respectively calculating the average grayscale value difference and the grayscale value variance difference of each group of image data in the bright field and the dark field, and performing data fitting comprises: Calculating the average grayscale value and grayscale value variance of each group of image data in the bright field and the dark field respectively; The average gray value difference and gray value variance difference of the bright field and the dark field under each group of exposure time are calculated, and a straight line fitting is performed according to the average gray value difference and gray value variance difference under each group of exposure time to obtain a fitting formula.

4. The automatic testing method for saturation capacity of an image sensor according to claim 3, It is characterized in that The saturation capacity is calculated according to the fitted formula including: The coefficient k of the fitted formula is obtained, and the maximum grayscale value of the acquired image is divided by the coefficient k to calculate the saturation capacity.

5. An image sensor saturation capacity automatic test terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the following steps are implemented: Bright field images are collected at different exposure times, and the exposure time interval is calculated when the average gray value of the collected images reaches a preset gray value; Setting a preset group exposure time according to the exposure time interval, and acquiring image data of the preset group exposure time in bright field and dark field; The average gray value difference and the gray value variance difference of each group of image data in the bright field and the dark field are calculated respectively, and the data are fitted, and the saturation capacity is calculated according to the fitting formula; The bright field image acquisition is performed at different exposure times until the average grayscale value of the acquired image reaches a preset grayscale value, and the exposure time interval is calculated, comprising: Setting the gain and initial exposure time of the image sensor, taking the initial exposure time as the current exposure time, and performing bright field image acquisition according to the gain and the current exposure time to obtain a set of acquired images; Calculate the average grayscale value of the acquired image, and determine whether the average grayscale value reaches the preset grayscale value. If not, recalculate the latest exposure time: latest exposure time = current exposure time + current exposure time * (1-average grayscale value / preset grayscale value); The latest exposure time is used as the current exposure time to continue the bright field image acquisition and the calculation and judgment of the average grayscale value until the average grayscale value of the acquired image reaches the preset grayscale value, the final latest exposure time is used as the saturation exposure time, and the number of groups of acquired images is obtained; Calculate and obtain the exposure time interval: exposure time interval = saturation exposure time / number of groups.

6. The image sensor saturation capacity automatic test terminal according to claim 5, It is characterized in that Acquiring image data of the preset group exposure time in bright field and dark field includes: The integrating sphere light source is set to bright field and the gain of the image sensor is set, and a preset group of bright field image data is obtained according to the preset group exposure time; The integrating sphere light source is set to dark field, and a preset group of dark field image data is obtained according to the preset group exposure time.

7. The image sensor saturation capacity automatic test terminal according to claim 5, It is characterized in that The step of respectively calculating the average grayscale value difference and the grayscale value variance difference of each group of image data in the bright field and the dark field, and performing data fitting comprises: Calculating the average grayscale value and grayscale value variance of each group of image data in the bright field and the dark field respectively; The average gray value difference and gray value variance difference of the bright field and the dark field under each group of exposure time are calculated, and a straight line fitting is performed according to the average gray value difference and gray value variance difference under each group of exposure time to obtain a fitting formula.

8. The image sensor saturation capacity automatic test terminal according to claim 7, It is characterized in that The saturation capacity is calculated according to the fitted formula including: The coefficient k of the fitted formula is obtained, and the maximum grayscale value of the acquired image is divided by the coefficient k to calculate the saturation capacity.

Citation Information

Patent Citations

  • CCD (Charge Coupled Device) system gain measurement device and method

    CN104125456A

  • Test method for full well of complementary metal oxide semiconductor active pixel sensor after irradiation

    CN106998466A

  • Method and terminal of correcting camera exposure response

    CN108510462A

  • Adaptive timing control of light integration process in one-dimensional CMOS image sensors

    US6493114B1