CMOS image sensor, camera system and method for improving dynamic range
By performing black level correction and dynamic base parameter determination in the CMOS image sensor, and adaptively adjusting the base parameters, the problem of signal data loss of the CMOS image sensor in a completely dark scene is solved, and the dynamic range and image quality are significantly improved.
Patent Information
- Application Number
- CN202410157716.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-04
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-02-04
AI Technical Summary
In the existing technology, CMOS image sensors suffer signal data loss due to noise distribution when collecting a completely black scene. The fixed base correction method results in a large range of signal loss and insufficient dynamic range.
By performing black level correction and dynamic base parameter determination in the image processor, the base parameters are adaptively adjusted, the bit width of the signal data is increased and the bit width is reduced during output, ensuring that the bit width of the target signal data is not changed. Significantly improve dynamic range.
Without reducing image quality, it significantly improves the dynamic range of the CMOS image sensor, overcomes the problem of signal range loss caused by fixed substrates, and provides better image quality and compatibility.
Smart Images

Figure CN118018874B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of imaging technology, and in particular to a CMOS image sensor, a camera system and a method for improving dynamic range. Background Art
[0002] The ability of a camera to capture a certain range of brightness (radiance) values of a scene is called dynamic range (DynamicRange, abbreviated as DR). A wider dynamic range can retain more image details in highlights and shadows. If the dynamic range is relatively narrow, it is easy to have undesirable effects such as overexposure in bright areas or complete blackness in dark areas. Therefore, dynamic range is a key indicator reflecting the performance of CMOS image sensors. For example, for a CMOS image sensor with a 10-bit (i.e., the bit width of the signal data occupies 10 bytes) output, the corresponding dynamic range is [0, 1023]. The size of the dynamic range of the CMOS image sensor affects the final image quality. However, even in a completely black scene, due to the presence of various noises, the CMOS image sensor will not output all 0s when collecting data, but a noise distribution with an output mean near 0. For details, please refer to Figure 1 , Figure 2 , Figure 1 A schematic diagram of the theoretical probability distribution density of pixel values collected in a completely black scene; Figure 2 The following is a schematic diagram of the actual probability distribution density of pixel values collected in a completely black scene in a specific example. It can be seen that noise distribution usually conforms to certain rules, such as Gaussian distribution.
[0003] Since data less than 0 cannot be output, in order to obtain complete noise distribution data and to facilitate the restoration of the original signal, the relevant technology usually pads (adds) a fixed base (pedestal) to the collected data to transmit out the noise near the 0 signal, thereby restoring the original signal. Figures 2 to 7 ,in, Figure 3 It is a schematic diagram of the actual probability distribution density after the collected data is corrected with a fixed basis in the related art. Figure 4 It is a schematic diagram of the principle of signal data processing by a CMOS image sensor in the related art; Figure 5 is a schematic diagram of raw signal data of a specific example; Figure 6 For one specific example, Figure 5 The schematic diagram of the collected signal data obtained from the original signal data and the data out of range when the fixed base is 64; Figure 7 For a fixed base of 64 pairs Figure 6 The schematic diagram of restored signal data after base correction of collected signal data is shown in FIG. Figure 3It can be seen that the size of the base will affect the range of the restored effective signal. Taking the 10-bit output as an example, the actual signal distribution will become [pedestal, 1023] (for example, if the pedestal is 64, the effective range of the actual signal is [64, 1023]). In order to improve the dynamic range of CMOS image sensors, the base is usually set to 64. Figure 6 and Figure 7 It can be seen that after base correction, for a 10-bit output CMOS image sensor, signal data exceeding 1023 will be cut off. Therefore, when base correction is performed using a base parameter of 64, the restored signal data can only obtain signals between 0 and 959. Compared with the original signal data, a larger signal range (such as signals between 959 and 1023) will be missing.
[0004] It should be noted that the information disclosed in the background technology section of the invention is only intended to deepen the understanding of the general background technology of the invention, and should not be regarded as an admission or suggestion in any form that the information constitutes prior art already known to those skilled in the art. Summary of the invention
[0005] The main purpose of the present invention is to provide a CMOS image sensor, a camera system and a method for improving the dynamic range in order to address the technical problem in the prior art that fixed substrate correction leads to a large range of signal data loss. The present invention can adaptively determine substrate parameters, significantly improve the dynamic range of the CMOS image sensor, and thus lay a good foundation for improving image quality.
[0006] To achieve the above object, the present invention is implemented through the following technical solutions: a CMOS image sensor, comprising a pixel array, a readout circuit, an image processor and an interface circuit; a first end of the pixel array is configured to collect an original light signal, a second end of the pixel array is coupled to a first end of the readout circuit, a second end of the readout circuit is coupled to a first end of the image processor, a second end of the image processor is coupled to a first end of the interface circuit, and a second end of the interface circuit is configured to couple to an application end;
[0007] The pixel array is further configured to generate electrical signal data based on the collected original light signal; the readout circuit is configured to perform analog-to-digital conversion on the electrical signal data to generate first signal data; the image processor is configured to perform black level correction on the first signal data to generate second signal data, and determine the substrate parameters and generate third signal data based on the second signal data and the acquired noise level parameters; the image processor is further configured to perform bit width reduction processing on the third signal data to generate target signal data; the interface circuit is configured to send the target signal data to the application end; the bit widths of the first signal data, the second signal data and the third signal data are the same, and are all greater than the bit width of the target signal data.
[0008] Optionally, the image processor comprises a black level correction unit, a base correction unit and a signal width reduction unit; the first end of the black level correction unit is configured to be coupled to the second end of the readout circuit, the second end of the black level correction unit is coupled to the first end of the base correction unit, the second end of the base correction unit is coupled to the first end of the signal width reduction unit, and the second end of the signal width reduction unit is coupled to the first end of the interface circuit;
[0009] The black level correction unit is configured to perform black level correction on the first signal data to generate the second signal data; the first signal data includes original image data, black level data and noise data; the second signal data includes noise data and original image data after black level correction; the base correction unit is configured to determine the base parameter and generate the third signal data according to the second signal data and the noise level parameter; the third signal data includes the original image data corrected by the base parameter; the signal bit width reduction unit is configured to perform bit width reduction processing on the third signal data to generate the target signal data, and send the target signal data to the application end through the interface circuit; the target signal data includes valid image data for reconstructing the target image.
[0010] Optionally, the black level correction unit comprises a defect elimination subunit, a strong light interference elimination subunit and a black level correction subunit; a first end of the defect elimination subunit is coupled to a second end of the readout circuit, a second end of the defect elimination subunit is coupled to a first end of the strong light interference elimination subunit, a second end of the strong light interference elimination subunit is coupled to a first end of the black level correction subunit, and a second end of the black level correction subunit is coupled to a first end of the substrate correction unit;
[0011] The defect elimination unit is configured to remove bad pixels from the bad pixel data in the first signal data to generate first signal data after the bad pixels are removed; the strong light interference elimination unit is configured to remove strong light interference from the first signal data after the bad pixels are removed to generate first signal data after the strong light interference is removed; the black level correction subunit is configured to obtain the black level value of each channel in the first signal data after the strong light interference is removed, and perform black level correction on the first signal data after the strong light interference is removed according to the black level value of each channel to generate the second signal data.
[0012] Optionally, the base correction unit includes a first noise parameter acquisition subunit and a first base correction subunit; the first end of the first noise parameter acquisition subunit is coupled to the second end of the black level correction unit, the second end of the first noise parameter acquisition subunit is coupled to the first end of the first base correction subunit, and the second end of the first base correction subunit is coupled to the first end of the signal width reduction unit;
[0013] The first noise parameter acquisition subunit is configured to determine the noise level parameter and generate fourth signal data according to the second signal data; the fourth signal data includes the original image data after black level correction;
[0014] The first base correction subunit is configured to determine the base parameter and generate the third signal data according to the noise level parameter and the fourth signal data; and send the base parameter to the application end, and send the third signal data to the signal bit width reduction unit.
[0015] Optionally, the base correction unit includes a second noise parameter acquisition subunit and a second base correction subunit; the second noise parameter acquisition subunit is coupled to a first end of the second base correction subunit, the second end of the second base correction subunit is coupled to a second end of the black level correction unit, and the third end of the second base correction subunit is coupled to a first end of the signal width reduction unit;
[0016] The second noise parameter acquisition subunit is configured to determine the noise level parameter based on a pre-acquired lookup table and the operating parameter configuration information of the CMOS image sensor;
[0017] The second base correction subunit is configured to determine the base parameter and generate the third signal data according to the noise level parameter and the second signal data; and send the base parameter to the application end, and send the third signal data to the signal bit width reduction unit.
[0018] Optionally, the base correction unit includes a third base correction sub-unit, a first end of the third base correction sub-unit is coupled to the black level correction unit, and a second end of the third base correction sub-unit is coupled to a first end of the signal width reduction unit;
[0019] The third base correction subunit is configured to determine the noise level parameter according to the black level value determined by the black level correction unit and the analog gain, and generate the third signal data according to the noise level parameter and the second signal data.
[0020] Optionally, the base correction unit includes a fourth base correction sub-unit, and the fourth base correction sub-unit is configured to receive the noise level parameter sent by the application end, and generate the third signal data according to the noise level parameter and the second signal data.
[0021] Optionally, the signal bit width reduction unit is configured to perform down-sampling and dither conversion on the third signal data to obtain the target signal data.
[0022] In order to achieve the above object, the present invention further provides a camera system, the camera system comprising an application end and any one of the above CMOS image sensors;
[0023] The CMOS image sensor is configured to collect raw light signals and perform analog-to-digital conversion, black level correction, and dynamic substrate parameter correction on the collected raw light signal data to generate target signal data;
[0024] The application end is configured to reconstruct the target signal data to obtain a target image corresponding to the original light signal.
[0025] In order to achieve the above object, the present invention further provides a method for improving dynamic range, which is used for any of the above-mentioned CMOS image sensors or the above-mentioned camera systems; the method for improving dynamic range comprises:
[0026] Collecting original optical signals and generating electrical signal data according to the collected original optical signals;
[0027] Performing analog-to-digital conversion on the electrical signal data to generate first signal data;
[0028] Performing black level correction on the first signal data to generate second signal data, and determining a base parameter and generating third signal data according to the second signal data and the acquired noise level parameter;
[0029] Performing bit width reduction processing on the third signal data to generate target signal data;
[0030] The target signal data is sent to the application end; the bit widths of the first signal data, the second signal data, and the third signal data are the same and are all greater than the bit width of the target signal data.
[0031] Compared with the prior art, the CMOS image sensor, camera system and method for improving dynamic range provided by the present invention have the following beneficial effects:
[0032] The CMOS image sensor provided by the present invention comprises a pixel array, a readout circuit, an image processor and an interface circuit. The first end of the pixel array is configured to collect original light signals, the second end of the pixel array is coupled to the first end of the readout circuit, the second end of the readout circuit is coupled to the first end of the image processor, the second end of the image processor is coupled to the first end of the interface circuit, and the second end of the interface circuit is configured to couple to an application end. The pixel array is also configured to generate electrical signal data according to the collected original light signals; the readout circuit is configured to perform analog-to-digital conversion on the electrical signal data to generate first signal data; the image processor is configured to perform black level correction on the first signal data to generate second signal data, and determine the base parameter and generate third signal data according to the second signal data and the acquired noise level parameter; the image processor is also configured to perform bit width reduction processing on the third signal data to generate target signal data; the interface circuit is configured to send the target signal data to the application end; the bit widths of the first signal data, the second signal data and the third signal data are the same and are all greater than the bit width of the target signal data. It can be seen that the CMOS image sensor provided by the present invention first performs black level correction on the first signal data (exemplarily, the first signal data includes original image data, black level data and noise data) through an image processor; then dynamically determines the substrate parameter according to the acquired noise level parameter to generate the third signal data (exemplarily, the third signal data includes the original image data after substrate parameter correction), and finally performs bit width reduction processing on the third signal data to generate target signal data. And the bit widths of the first signal data, the second signal data and the third signal data are the same, and are all greater than the bit width of the target signal data. In this configuration, by increasing the bit width of the signal data and performing bit width reduction processing when outputting, it is achieved that the determined substrate parameter can be significantly reduced without changing the bit width of the target signal data, thereby significantly improving the dynamic range of the CMOS image sensor. It can be seen that the present invention overcomes the shortcomings of the prior art that a fixed substrate (such as 64) is used to cause a large range of signal loss. Without reducing the image quality, the present invention can adaptively (dynamically) determine the substrate parameter (such as the substrate parameter is 16), which can significantly improve the dynamic range of the CMOS image sensor, thereby laying a solid foundation for improving image quality. Furthermore, the CMOS image sensor provided by the present invention adopts a modular design of pixel array, readout circuit, image processor and interface circuit, which does not require adaptive modification of the overall architecture of the existing camera system (such as the bit width of the target signal data received by the application end), has good compatibility and is easy to implement.
[0033] Since the camera system and the method for improving the dynamic range provided by the present invention belong to the same inventive concept as the CMOS image sensor provided by the present invention, the camera system and the method for improving the dynamic range provided by the present invention at least have all the beneficial effects of the CMOS image sensor provided by the present invention. For details, reference may be made to the above description of the beneficial effects of the CMOS image sensor provided by the present invention. Therefore, the beneficial effects of the camera system and the method for improving the dynamic range provided by the present invention will not be described one by one here. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A schematic diagram of the theoretical probability distribution density of pixel values collected in a completely black scene;
[0035] Figure 2 A schematic diagram of the actual probability distribution density of pixel values collected in a completely black scene in a specific example;
[0036] Figure 3 It is a schematic diagram of the actual probability distribution density after the collected data is corrected with a fixed basis in the related art;
[0037] Figure 4 It is a schematic diagram of the principle of signal data processing by a CMOS image sensor in the related art;
[0038] Figure 5 is a schematic diagram of raw signal data of a specific example;
[0039] Figure 6 For one specific example, Figure 5 The schematic diagram of the collected signal data obtained from the original signal data and the data out of range when the fixed base is 64;
[0040] Figure 7 For a fixed base of 64 pairs Figure 6 The schematic diagram of restored signal data after base correction of collected signal data is shown;
[0041] Figure 8 A schematic diagram of the principle of signal data processing by the CMOS image sensor provided by the present invention;
[0042] Fig. 9 For one specific example, Figure 5 The schematic diagram of the collected signal data obtained from the original signal data and the data out of range when the dynamic basis is 16;
[0043] Fig.10 To use a dynamic basis (e.g., dynamic basis n=16) Figure 6The schematic diagram of the restored signal data after the acquisition signal data base correction and the comparison with the restored signal data using the fixed base 64 is shown;
[0044] Fig.11 A structural block diagram of a camera system provided in Embodiment 1 of the present invention;
[0045] Fig.12 A structural block diagram of a CMOS image sensor provided in Embodiment 2 of the present invention;
[0046] Fig.13 for Fig.12 A block diagram of the structure of an image processor of the CMOS image sensor shown;
[0047] Fig.14 for Fig.13 A structural block diagram of a black level correction unit of the image processor shown;
[0048] Fig.15 for Fig.14 A schematic diagram showing a specific example of a defect elimination unit of a black level correction unit using a median filter to eliminate bad pixels;
[0049] Fig.16 A schematic structural diagram of a background correction unit of a CMOS image sensor provided in Embodiment 2 of the present invention;
[0050] Fig.17 for Fig.16 A specific schematic diagram of a Gaussian filter being a 5×5 filter kernel when the middle base correction unit uses a Gaussian filter to implement the first noise parameter acquisition subunit;
[0051] Fig.18a A schematic diagram of a pixel distribution waveform of an adaptive base parameter determined before noise reduction is performed using the first noise parameter acquisition subunit;
[0052] Fig.18b A schematic diagram of a pixel waveform of an adaptive base parameter determined before noise reduction is performed using the first noise parameter acquisition subunit;
[0053] Fig.19a is a noise distribution schematic diagram corresponding to the first signal data;
[0054] Fig.19b is a schematic diagram of noise distribution and corresponding base parameters corresponding to the second signal data;
[0055] Fig.19c is a schematic diagram of noise distribution and corresponding base parameters corresponding to fourth signal data;
[0056] Fig.19dis a schematic diagram of noise distribution and corresponding base parameters corresponding to the third signal data;
[0057] Fig. 20 A schematic diagram of the structure of a CMOS image sensor provided in Embodiment 3 of the present invention;
[0058] Fig.21 A lookup table of a specific example of a correspondence between a noise level parameter and a background parameter determined by an analog gain and an exposure time of a CMOS image sensor acquired in advance;
[0059] Fig.22a for Fig.21 A schematic diagram of the waveform of noise distribution and the corresponding base parameters when the analog gain is analog gain 1 (Gain1) and the exposure time is exposure time 1 (Exp1);
[0060] Figure 22b for Fig.21 A schematic diagram of the waveform of the noise distribution and the corresponding base parameters when the analog gain is analog gain 2 (Gain2) and the exposure time is exposure time 2 (Exp2);
[0061] Fig.23 A schematic diagram of the structure of a CMOS image sensor provided in Embodiment 4 of the present invention;
[0062] Fig.24 A schematic diagram of the structure of a CMOS image sensor provided in Embodiment 5 of the present invention;
[0063] Fig.25 A schematic flow chart of a method for improving dynamic range provided in Embodiment 6 of the present invention;
[0064] The reference numerals are described as follows:
[0065] CMOS image sensor-100; application end-AP;
[0066] Timing control logic unit-110, pixel array-120, readout circuit-130, image processor-140, black level correction unit-141, defect elimination subunit-1411, strong light interference elimination subunit-1412, black level correction subunit-1413, base correction unit-142, first noise parameter acquisition subunit-14211, first base correction subunit-14212, second noise parameter acquisition subunit-14221, second base correction subunit-14222, third base correction subunit-14223, fourth base correction subunit-14224, signal width reduction unit-143, interface circuit-150. DETAILED DESCRIPTION
[0067] In order to make the purpose, advantages and features of the present invention clearer, the CMOS image sensor, camera system and method for improving dynamic range proposed by the present invention are further described in detail below in conjunction with the accompanying drawings. It should be noted that the drawings are all in a very simplified form and are not in precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention. It should be understood that the drawings in the specification do not necessarily show the specific structure of the present invention in proportion, and the illustrative features used to illustrate certain principles of the present invention in the drawings in the specification will also adopt a slightly simplified drawing method. The specific design features of the present invention disclosed herein include, for example, specific dimensions, directions, positions and shapes, which will be determined in part by the specific application and use environment. And, in the embodiments described below, sometimes the same figure mark is used in common between different drawings to represent the same part or a part with the same function, and its repeated description is omitted. In this specification, similar numbers and letters are used to represent similar items, so once an item is defined in one drawing, it does not need to be further discussed in subsequent drawings.
[0068] Where appropriate, these terms used in this manner are interchangeable. Similarly, if a method described herein includes a series of steps, the order in which the steps are presented herein is not necessarily the only order in which the steps may be performed, and some of the steps described may be omitted and / or some other steps not described herein may be added to the method.
[0069] It should be understood that when an element is referred to as being "connected to" or "coupled to" another element, it may be directly connected to the other element or there may be intervening elements. Conversely, when an element is referred to as being "directly connected to" another element, there are no intervening elements.
[0070] The core idea provided by the present invention is to provide a CMOS image sensor, a camera system and a method for improving the dynamic range. The present invention can adaptively determine the substrate parameters, can significantly improve the dynamic range of the CMOS image sensor, and thus can lay a good foundation for improving image quality.
[0071] In order to facilitate understanding and explanation of the present invention, before specifically describing the CMOS image sensor, camera system and method for improving dynamic range provided by the present invention, the basic principle of the CMOS image sensor provided by the present invention is briefly described. For example, see Figures 8 to 10 ,in, Figure 8 A schematic diagram of the principle of signal data processing by the CMOS image sensor provided by the present invention; Fig. 9 For one specific example, Figure 5 The schematic diagram of the collected signal data obtained from the original signal data and the data out of range when the dynamic basis is 16; Fig.10To use a dynamic basis (e.g., dynamic basis n=16) Figure 6 The restored signal data after base correction of the collected signal data is shown in the figure and compared with the restored signal data using the fixed base 64. Figure 8 It can be seen that the basic principle of the present invention is to adaptively adjust the fixed substrate correction during substrate correction in the related technology to improve the dynamic range of the CMOS image sensor. Exemplarily, the CMOS image sensor provided by the present invention collects the original light signal, and dynamically (adaptively) determines the substrate parameter by performing operations such as electrical signal conversion and analog-to-digital conversion on the original light signal. For example, if the dynamically determined substrate parameter is n, then the application end can restore the signal between 0 and (1023-n) based on the received substrate parameter n given by the CMOS image sensor. Therefore, in a scene with less noise, the signal data with noise distribution in (1023-n) can be covered. Thereby restoring a larger dynamic range (DR) and improving the performance of the CMOS image sensor. Thereby overcoming the deficiency of the prior art that a fixed substrate (such as 64) is used to cause a large range of signal loss. For details, please refer to Fig. 9 and Fig.10 ,from Fig. 9 and Fig.10 It can be seen that compared with the related technical solutions using a fixed substrate 64, the substrate parameter 16 adaptively determined by the CMOS image sensor provided by the present invention can also restore signal data between 959 (i.e. 1023-64) and 1007 (i.e. 1023-16), significantly improving the dynamic range.
[0072] It should be particularly noted that those skilled in the art should be able to understand that the present invention does not limit the specific form of the CMOS image sensor. For example, in some embodiments, the CMOS image sensor provided by the present invention can be a chip; in other embodiments, the CMOS image sensor provided by the present invention can be a circuit; in yet other embodiments, the CMOS image sensor provided by the present invention can also be a discrete component. In addition, it should be noted that, as those skilled in the art can understand, the CMOS image sensor, camera system and method for improving the dynamic range provided by the present invention have dynamic and adaptive base parameters, which are only used for a frame (frame) of target image that currently needs to be reconstructed. For target images of different frames (frames), the base parameters may be the same or different.
[0073] Furthermore, for the convenience of understanding and description, this document first describes the camera system provided by the present invention, and then describes the CMOS image sensor and the method for improving the dynamic range provided by the present invention.
[0074] Embodiment 1
[0075] This embodiment provides a camera system. Specifically, see Fig.11 , which schematically shows a structural block diagram of the camera system provided by this embodiment. Fig.11 It can be seen that the camera system provided in this embodiment includes an application end AP and a CMOS image sensor 100 provided in any of the following embodiments of this document. Specifically, the CMOS image sensor 100 is configured to collect raw light signals and perform analog-to-digital conversion, black level correction, and dynamic base parameter correction on the collected raw light signal data to generate target signal data; the application end AP is configured to reconstruct the target signal data to obtain a target image corresponding to the raw light signal.
[0076] Since the camera system provided by the present invention and the CMOS image sensor provided by the present invention belong to the same inventive concept, the camera system provided by the present invention at least has all the beneficial effects of the CMOS image sensor provided by the present invention. For details, reference may be made to the following description of the beneficial effects of the CMOS image sensor provided by the present invention. In order to avoid redundancy, the beneficial effects of the camera system provided by the present invention will not be described in detail here.
[0077] It should be noted that, as can be understood by those skilled in the art, the present invention does not limit the data transmission method between the application end AP and the CMOS image sensor 100. For example, the application end AP and the CMOS image sensor 100 can use, including but not limited to, the mobile industry processor interface (MIPI, Mobile Industry Processor Interface) for data transmission to send the target signal data to the application end AP. Further, in addition to the components described in this article, the CMOS image sensor 100 also includes a timing control logic unit 110. The timing control logic unit 110 is configured to make each part of the circuit of the CMOS image sensor 100 move according to the specified beat, and output relevant timing signals (which may be but not limited to synchronization signals, line start signals, field start signals, etc.) to the application end AP. For more detailed content of the timing control logic unit 110, please refer to the relevant technology of timing control of the CMOS image sensor 100 known to those skilled in the art for adaptive understanding, which will not be elaborated here. Furthermore, the present invention does not limit the timing communication method between the application end AP and the CMOS image sensor 100. The timing communication between the application end AP and the CMOS image sensor 100 may include but is not limited to an integrated circuit bus (IIC, Inter-Integrated Circuit) timing communication.
[0078] Embodiment 2
[0079] This embodiment provides a CMOS image sensor. Specifically, see Fig.12 and Fig.13 ,in, Fig.12 A structural block diagram of a CMOS image sensor provided in Embodiment 2 of the present invention, Fig.13 for Fig.12 FIG. 1 is a block diagram of the structure of the image processor 140 of the CMOS image sensor. Fig.12 and Fig.13 It can be seen that the CMOS image sensor provided in this embodiment includes a pixel array 120, a readout circuit 130, an image processor 140, and an interface circuit 150. The first end of the pixel array 120 is configured to collect raw light signals, the second end of the pixel array 120 is coupled to the first end of the readout circuit 130, the second end of the readout circuit 130 is coupled to the first end of the image processor 140, the second end of the image processor 140 is coupled to the first end of the interface circuit 150, and the second end of the interface circuit 150 is configured to be coupled to the application end AP.
[0080] Specifically, the pixel array 120 is further configured to generate electrical signal data based on the collected original light signal; the readout circuit 130 is configured to perform analog-to-digital conversion on the electrical signal data to generate first signal data; the image processor 140 is configured to perform black level correction on the first signal data to generate second signal data, and determine the substrate parameters and generate third signal data based on the second signal data and the acquired noise level parameters; the image processor 140 is further configured to perform bit width reduction processing on the third signal data to generate target signal data; the interface circuit 150 is configured to send the target signal data to the application terminal AP; the bit widths of the first signal data, the second signal data and the third signal data are the same, and are all greater than the bit width of the target signal data.
[0081] It can be seen that the CMOS image sensor provided by the present invention first performs black level correction on the first signal data (exemplarily, the first signal data includes the original image data, black level data and noise data) through the image processor 140; then dynamically determines the base parameter according to the acquired noise level parameter to generate the third signal data (exemplarily, the third signal data includes the original image data after base parameter correction), and finally performs bit width reduction processing on the third signal data to generate the target signal data. And the bit widths of the first signal data, the second signal data and the third signal data are the same, and are all greater than the bit width of the target signal data. In this configuration, by increasing the bit width of the signal data and performing bit width reduction processing when outputting, it is achieved that the determined base parameter can be significantly reduced without changing the bit width of the target signal data, thereby significantly improving the dynamic range of the CMOS image sensor. It can be seen that the present invention overcomes the shortcomings of the prior art that a fixed base (such as 64) is used to cause a large range of signal loss. Without reducing the image quality, the present invention can adaptively (dynamically) determine the base parameter (such as the base parameter is 16), which can significantly improve the dynamic range of the CMOS image sensor, thereby laying a solid foundation for improving image quality. Furthermore, the CMOS image sensor provided by the present invention adopts a modular design of pixel array 120, readout circuit 130, image processor 140 and interface circuit 150, which does not require adaptive modification of the overall architecture of the existing camera system (such as the bit width of the target signal data received by the application end AP), has good compatibility and is easy to implement.
[0082] It should be noted that the present invention does not limit the specific structure of the pixel array 120 and the readout circuit 130. For example, each pixel of the image array of the CMOS image sensor can be regarded as an active pixel sensor (APS); the readout circuit 130 can include an operational amplifier, a current source, and a MOS tube. For more detailed information about the pixel array 120 and the readout circuit 130, please refer to the relevant description of the pixel array 120 of the CMOS image sensor and the readout circuit 130 of the CMOS image sensor known to those skilled in the art, and will not be described one by one here.
[0083] It should be noted that, for ease of understanding and description, Fig. 9 and Fig.10As shown, the bit width of the target signal data is 10 bits, and the bit width of the first signal data output by the readout circuit 130 is 11 bits. However, it should be understood that this is only an exemplary description of a preferred embodiment, and not a limitation of the present invention. In other embodiments, the bit width of the target signal data can also be any other value other than 10 bits, such as 12 bits, and the bit width of the first signal data output by the readout circuit 130 can be increased by at least 1 bit on the basis of the bit width of the target signal data to retain a larger dynamic range.
[0084] Preferably, in some of the exemplary embodiments, please continue to refer to Fig.13 ,from Fig.13 It can be seen that the image processor 140 includes a black level correction unit 141, a base correction unit 142 and a signal width reduction unit 143; the first end of the black level correction unit 141 is configured to be coupled to the second end of the readout circuit 130, the second end of the black level correction unit 141 is coupled to the first end of the base correction unit 142, the second end of the base correction unit 142 is coupled to the first end of the signal width reduction unit 143, and the second end of the signal width reduction unit 143 is coupled to the first end of the interface circuit 150.
[0085] Specifically, the black level correction unit 141 is configured to perform black level correction on the first signal data to generate the second signal data; the first signal data includes original image data, black level data and noise data; the second signal data includes noise data and original image data after black level correction; the base correction unit 142 is configured to determine the base parameter and generate the third signal data according to the second signal data and the noise level parameter; the third signal data includes the original image data corrected by the base parameter; the signal bit width reduction unit 143 is configured to perform bit width reduction processing on the third signal data to generate the target signal data, and send the target signal data to the application end AP through the interface circuit 150; the target signal data includes valid image data for reconstructing the target image.
[0086] Therefore, the image processor 140 of the CMOS image sensor provided by the present invention includes a black level correction unit 141, a base correction unit 142 and a signal width reduction unit 143. With such configuration, the CMOS image sensor provided by the present invention can increase a bit width when performing analog-to-digital conversion of the electrical signal through the readout circuit 130, thereby maintaining a 10-bit dynamic range of the real signal while retaining the noise distribution and the black level, and performing black level correction (i.e., removing the black level) and noise reduction (removing noise) by the black level correction unit 141, thereby reducing the demand for base parameters, thereby maintaining a larger dynamic range of the signal while maintaining a 10-bit output bit width. Further, the image processor 140 includes a black level correction unit 141, a base correction unit 142 and a signal width reduction unit 143. This modular design method has clear logic, a simple circuit structure and is easy to implement.
[0087] For example, in some preferred embodiments, see Fig.14 , Fig.14 for Fig.13 FIG. 1 is a block diagram of the structure of the black level correction unit 141 of the image processor 140. Fig.14 It can be seen that the black level correction unit 141 includes a defect elimination subunit 1411, a strong light interference elimination subunit 1412 and a black level correction subunit 1413; the first end of the defect elimination subunit 1411 is coupled to the second end of the readout circuit 130, the second end of the defect elimination subunit 1411 is coupled to the first end of the strong light interference elimination subunit 1412, the second end of the strong light interference elimination subunit 1412 is coupled to the first end of the black level correction subunit 1413, and the second end of the black level correction subunit 1413 is coupled to the first end of the substrate correction unit 142.
[0088] Specifically, the defect elimination unit is configured to remove bad pixels from the bad pixel data in the first signal data to generate first signal data after the bad pixels are removed; the strong light interference elimination unit is configured to remove strong light interference from the first signal data after the bad pixels are removed to generate first signal data after the strong light interference is removed; the black level correction subunit 1413 is configured to obtain the black level value of each channel in the first signal data after the strong light interference is removed, and perform black level correction on the first signal data after the strong light interference is removed according to the black level value of each channel to generate the second signal data.
[0089] Therefore, the black level correction unit 141 of the CMOS image sensor provided by the present invention includes a defect elimination subunit 1411, a strong light interference elimination subunit 1412 and a black level correction subunit 1413. With such configuration, the CMOS image sensor provided by the present invention can not only eliminate bad pixels and strong light in the first signal data through the black level correction unit 141, but also distinguish different channels to calculate the black level (BL), and can retain the subtle black level differences between different channels including but not limited to timing and / or routing, so as to obtain a more accurate black level value, which lays a solid foundation for improving image quality; thus, through black level correction, only a smaller base parameter is needed to cover the range of noise distribution, thereby laying a good foundation for improving the dynamic range of the CMOS image sensor. Furthermore, the black level correction unit 141 includes a defect elimination subunit 1411, a strong light interference elimination subunit 1412 and a black level correction subunit 1413. This modular design method has clear logic, simple circuit structure and is easy to implement.
[0090] For example, see Fig.15 , Fig.15 for Fig.14 A schematic diagram showing a specific example of a defect elimination unit of the black level correction unit 141 using a median filter to eliminate bad pixels. Fig.15 In the figure, an example of using a 3×3 median filter to perform defect removal is given. Median filtering is a smoothing filter technique in image processing, which is used to remove noise in an image. Its basic idea is to use the median of the pixel values in the neighborhood around the pixel point to replace the original value of the pixel point. Specifically, the pixel value of the target pixel point P can be updated by the following formula (1):
[0091] P est = median Filte(P 1 -P 9 ) (1)
[0092] In formula (1), P 1 -P 9 Represents the pixel value in the 3×3 neighborhood around the target pixel point P, P est Represents the median value of the pixels in the 3×3 neighborhood around the target pixel P.
[0093] It should be noted that, as those skilled in the art can understand, the present invention does not limit the window size of the median filter, and the window of the median filter can also be other values besides 3×3, such as 5×5, 7×7, etc. For more detailed information about the median filter, please refer to the relevant technologies known to those skilled in the art. Due to space limitations, it will not be elaborated here. It should be further noted that although this article uses the median filter as an example to illustrate the defect elimination subunit 1411, it should be understood that this is only an exemplary description and not a limitation of the present invention. When implementing the present invention, other methods besides the median filter can also be used to achieve bad pixel elimination, but they are all within the protection scope of the present invention.
[0094] For example, in some exemplary implementations, the strong light interference elimination subunit 1412 may eliminate the strong light interference by using a strong light interference fixed threshold method. The detailed logic may refer to the following pseudo code for strong light interference elimination:
[0095] If (ob data <SLR thre ), then use ob data Calculate the black level value; otherwise, it is considered that ob data Affected by strong light interference, it does not participate in the calculation of black level value. data For black level (OB, Optical Black), SLR thre Sets a fixed threshold for preset strong light interference.
[0096] Different from the above-mentioned strong light interference elimination subunit 1412 which can eliminate strong light interference through the strong light interference fixed threshold method, in some other embodiments, the strong light interference elimination subunit 1412 can also obtain the strong light threshold through a mapping table (look-up table, LUT).
[0097] It should be noted that, as those skilled in the art can understand, the above description of the relevant implementation method of the strong light interference elimination sub-unit 1412 is only an illustrative description of a preferred embodiment, and not a limitation of the present invention. In other embodiments, the relevant technologies for eliminating strong light interference known to those skilled in the art can also be used to implement the functions that can be achieved by the strong light interference elimination sub-unit 1412, and they will not be described one by one here.
[0098] Exemplarily, in some exemplary implementations, the black level correction subunit 1413 is configured to obtain the black level value of each channel in the first signal data after the strong light interference is removed, and perform black level correction on the first signal data after the strong light interference is removed according to the black level value of each channel to generate the second signal data, specifically including:
[0099] Each pixel point corresponding to the first signal data after removing the strong light interference is divided into four channels of Gr, Gb, R, and B, and the target black level value corresponding to the first signal data after removing the strong light interference is obtained by calculating the average value or the median value of the four channels, and then the target black level value is deducted from each pixel point corresponding to the first signal data to obtain the second signal data.
[0100] It should be noted that those skilled in the art should be able to understand that the above description of the black level correction subunit 1413 is only an exemplary description of a preferred embodiment, and is not a limitation of the present invention. For example, in other embodiments, the black level correction subunit 1413 may also adopt the black level correction related technologies known to those skilled in the art, such as the fixed value subtraction method, the ISO linkage method, and the curve fitting method, and the more detailed content will not be elaborated here.
[0101] See also Fig.16 , Fig.16 This is a schematic diagram of the structure of the background correction unit 142 of the CMOS image sensor provided in the second embodiment of the present invention. Fig.16 It can be seen that the base correction unit 142 includes a first noise parameter acquisition subunit 14211 and a first base correction subunit 14212; the first end of the first noise parameter acquisition subunit 14211 is coupled to the second end of the black level correction unit 141, the second end of the first noise parameter acquisition subunit 14211 is coupled to the first end of the first base correction subunit 14212, and the second end of the first base correction subunit 14212 is coupled to the first end of the signal width reduction unit 143.
[0102] Specifically, the first noise parameter acquisition subunit 14211 is configured to determine the noise level parameter and generate the fourth signal data according to the second signal data; the fourth signal data includes the original image data after black level correction. The first base correction subunit 14212 is configured to determine the base parameter and generate the third signal data according to the noise level parameter and the fourth signal data; and send the base parameter to the application terminal AP, and send the third signal data to the signal width reduction unit 143.
[0103] Therefore, the base correction unit 142 of the CMOS image sensor provided in this embodiment includes a first noise parameter acquisition subunit 14211 and a first base correction subunit 14212. With such configuration, the CMOS image sensor provided in this embodiment can reduce the noise distribution through the first noise parameter acquisition subunit 14211, so that only a smaller base parameter is needed to cover the range of the noise distribution, further laying a good foundation for improving the dynamic range of the CMOS image sensor. Moreover, through the base correction unit 142, further, the first base correction subunit 14212 can determine the base parameter and generate the third signal data according to the noise level parameter and the fourth signal data, and send the base parameter to the application end AP, and send the third signal data to the signal width reduction unit 143, thereby improving the dynamic range of the CMOS image sensor, thereby laying a solid foundation for the application end AP to generate high-quality target images.
[0104] Preferably, in one exemplary embodiment, the first noise parameter acquisition subunit 14211 is implemented by a Gaussian filter. Gaussian filtering is a linear smoothing filter, which is suitable for eliminating Gaussian noise and is widely used in the noise reduction process of image processing. For example, see Fig.17 , Fig.17 for Fig.16 When the base correction unit 142 uses a Gaussian filter to implement the first noise parameter acquisition subunit 14211, the Gaussian filter is a specific schematic diagram of a 5×5 filter kernel. Further, the output value of the Gaussian filter can be calculated by the following formula (2):
[0105]
[0106] In formula (2), I dn is the output value of the Gaussian filter, W filter is the filter coefficient (the sum of the filter weights of each pixel position in the filter kernel), i is the sequence number of the pixel in the 5×5 filter kernel, OB raw_i is the pixel value corresponding to the i-th pixel, filter i is the i-th (from top to bottom, from left to right, with Fig.17 For example, when i is 3, the filter weight corresponding to the 1st row and 3rd column is the filter weight corresponding to 6) pixels.
[0107] It should be noted that, as those skilled in the art can understand, the present invention does not limit the size of the filter kernel of the Gaussian filter and the filter weight corresponding to each pixel, and the size of the filter kernel of the Gaussian filter can also be other values other than 5×5, such as 7×7 or 9×9, etc. For more details about the Gaussian filter, please refer to the related technology known to those skilled in the art, which will not be elaborated here due to space limitations.
[0108] Different from the above-mentioned first noise parameter acquisition subunit 14211 using a Gaussian filter for noise reduction, in some other embodiments, the first noise parameter acquisition subunit 14211 can also use a bilateral filter for noise reduction. Bilateral filtering is a processing method that combines the spatial proximity of an image with the similarity of pixel values, and is a type of nonlinear filtering. When filtering, this filtering method considers both spatial proximity information and color similarity information, and can preserve edges while filtering out noise and smoothing the image. Specifically, the output value of the bilateral filter can be obtained by the following formula (3):
[0109]
[0110] In the above formula (3), I dn is the output value of the bilateral filter, is the spatial domain kernel, is the image pixel domain kernel, p and q are the coordinates of the pixel points, I p and I q are the pixel values of coordinate point p and coordinate point q respectively, W p It is the sum of the filter weights corresponding to each pixel in the filter kernel.
[0111] It should be noted that, as those skilled in the art can understand, the above description of the relevant implementation method of the first noise parameter acquisition subunit 14211 is only an illustrative description of a preferred embodiment, and not a limitation of the present invention. In other embodiments, the first noise parameter acquisition subunit 14211 can also be implemented by using relevant image denoising techniques known to those skilled in the art, and they will not be described one by one here.
[0112] In summary, after the first noise parameter acquisition subunit 14211 performs noise reduction on the second signal data, the noise level of the fourth signal data can be evaluated, and then the first base correction subunit 14212 can adaptively increase or decrease the appropriate base parameter according to the noise level. For example, see Fig.18a and Fig.18b ,in, Fig.18aA schematic diagram of a pixel distribution waveform of an adaptive base parameter determined before noise reduction is performed using the first noise parameter acquisition subunit 14211; Fig.18b FIG. 1 is a schematic diagram of a pixel waveform of an adaptive base parameter determined before noise reduction using the first noise parameter acquisition subunit 14211. Fig.18a and Fig.18b It can be seen that before noise reduction, the required base parameter of 32DN (dark noise) is 32, while after noise reduction, only the base parameter of 8DN is required, thereby significantly improving the dynamic range of the CMOS image sensor.
[0113] For more details on how the first base correction subunit 14212 determines the base parameter according to the noise level parameter, please refer to the relevant technology known to those skilled in the art, which will not be elaborated here.
[0114] Exemplarily, in some exemplary embodiments, the first base correction subunit 14212 may output the determined base parameters (such as 8DN) to the application end AP via an embedded data line (EDB) in CSI-2 (Camera Serial Interface).
[0115] Please continue to see Fig.13 , exemplarily, in some exemplary embodiments, the signal bit width reduction unit 143 is configured to downsample and jitter convert the third signal data to obtain the target signal data. Thus, by downsampling and jitter converting the third signal data, and the target signal data includes valid image data for reconstructing the target image, it is achieved that the determined base parameter can be significantly reduced without changing the bit width of the target signal data, while maintaining the image quality to the maximum extent, thereby significantly improving the dynamic range of the CMOS image sensor. It should be noted that, as can be understood by those skilled in the art, the relevant description that the signal bit width reduction unit 143 is configured to downsample and jitter convert the third signal data to achieve the bit width reduction function is only an exemplary description, and not a limitation of the present invention. In other embodiments, other methods other than downsampling and jitter conversion can also be used to achieve the bit width reduction of signal data. Due to space limitations, examples are not given here one by one.
[0116] For example, see Fig.19a , Fig.19b , Fig.19c as well as Fig.19d ,in, Fig.19a is a schematic diagram of a pixel distribution waveform corresponding to the first signal data; Fig.19bis a schematic diagram of a pixel distribution waveform and corresponding base parameters corresponding to the second signal data; Fig.19c is a schematic diagram of a pixel distribution waveform and corresponding base parameters corresponding to fourth signal data; Fig.19d : is a schematic diagram of the pixel distribution waveform and the corresponding base parameters corresponding to the third signal data. Fig.19a , Fig.19b , Fig.19c as well as Fig.19d It can be seen that the noise distribution is optimized after noise reduction is performed by the black level correction unit 141 and the first noise parameter acquisition subunit 14211. Therefore, the CMOS image sensor provided by the present invention significantly reduces the demand for the substrate through the black level correction unit 141 and the first noise parameter acquisition subunit 14211, thereby increasing the proportion of the signal in the limited bit width.
[0117] Embodiment 3
[0118] This embodiment provides another CMOS image sensor, and the basic principle and structure of the CMOS image sensor provided in this embodiment are basically similar to those of the CMOS image sensor provided in the second embodiment. The CMOS image sensor provided in this embodiment includes a pixel array 120, a readout circuit 130, a readout circuit 130, and an image processor 140. Basically similar to the second embodiment, the image processor 140 of the CMOS image sensor provided in this embodiment also includes a black level correction unit 141, a base correction unit 142, a signal width reduction unit 143, and an interface circuit 150. However, the difference from the second embodiment is that the base correction unit 142 of the CMOS image sensor provided in this embodiment is slightly different from the base correction unit 142 of the CMOS image sensor provided in the second embodiment. In order to avoid redundant description, only the differences between this embodiment and the second embodiment are described below. For the parts not mentioned in this embodiment, please refer to the above description of the second embodiment for adaptive understanding.
[0119] For example, see Fig. 20 , Fig. 20 The schematic diagram of the structure of the CMOS image sensor provided in this embodiment. Fig. 20 It can be seen that the base correction unit 142 of the CMOS image sensor provided in this embodiment includes a second noise parameter acquisition subunit 14221 and a second base correction subunit 14222; the second noise parameter acquisition subunit 14221 is coupled to the first end of the second base correction subunit 14222, the second end of the second base correction subunit 14222 is coupled to the second end of the black level correction unit 141, and the third end of the second base correction subunit 14222 is coupled to the first end of the signal width reduction unit 143.
[0120] Specifically, the second noise parameter acquisition subunit 14221 is configured to determine the noise level parameter based on a pre-acquired lookup table and the working parameter configuration information of the CMOS image sensor. The second base correction subunit 14222 is configured to determine the base parameter and generate the third signal data according to the noise level parameter and the second signal data; and send the base parameter to the application terminal AP, and send the third signal data to the signal bit width reduction unit 143.
[0121] With such configuration, the CMOS image sensor provided in this embodiment makes full use of the characteristic that the size of the noise distribution is closely related to the exposure configuration of the CMOS image sensor. Compared with the CMOS image sensor provided in the second embodiment of the present invention, the first noise parameter acquisition subunit 14211 (such as a Gaussian filter or a bilateral filter, etc.) is no longer required to reduce the noise of the second signal data, thereby saving the cost of the image processor 140. The CMOS image sensor provided in this embodiment only needs to calibrate different noise level parameters according to the configuration of the CMOS image sensor during the mass production stage of the CMOS image sensor, and then store them in a one-time programmable memory, including but not limited to OTP (One Time Programmable) or eFuse, etc. The second noise parameter acquisition subunit 14221 only needs to select appropriate base parameters according to the configuration of the CMOS image sensor to dynamically adapt to the noise level parameter distribution under different configurations, so as to achieve the purpose of improving the dynamic range.
[0122] For example, see Fig.21 , Fig.22a as well as Figure 22b ,in, Fig.21 A lookup table of a specific example of a correspondence between a noise level parameter and a background parameter determined by an analog gain and an exposure time of a CMOS image sensor acquired in advance; Fig.22a for Fig.21 A schematic diagram of the waveform of noise distribution and the corresponding base parameters when the analog gain is analog gain 1 (Gain1) and the exposure time is exposure time 1 (Exp1); Figure 22b for Fig.21 Schematic diagram of the waveform of the noise distribution and the corresponding base parameters when the analog gain is analog gain 2 (Gain2) and the exposure time is exposure time 2 (Exp2). In this example, the working parameter configuration information of the CMOS image sensor includes analog gain and exposure time. Fig.21 as well as Fig.22a and Figure 22bIt can be seen that according to different working parameter configuration information of the CMOS image sensor (such as analog gain and exposure time), the corresponding noise level can be determined according to the lookup table, and then the substrate parameters can be adaptively determined according to the determined noise level. Fig.21 as well as Fig.22a and Figure 22b Take the case where the noise level and the base parameter are equal ( Fig.21 When the analog gain is 1 and the exposure time is 1, the noise level is 8. Fig.22a The mid-base parameter is also 8; Fig.21 When the analog gain is 2 and the exposure time is 2, the noise level is 16. Figure 22b The background parameter is also 16) for example, but it should be understood that this is only an exemplary description of a preferred embodiment, and not a limitation of the present invention. In other embodiments, the specific values of the noise level and the background parameter may also be different, and the corresponding relationship between the two can be determined according to actual needs.
[0123] It should be noted that those skilled in the art should be able to understand that the present invention does not limit the specific content of the working parameter configuration information of the CMOS image sensor. In other implementations, the working parameter configuration information of the CMOS image sensor may also include a magnification, etc. The lookup table can be obtained by pre-calibration. For more details on how to obtain the corresponding noise level according to the configuration of the CMOS image sensor, please refer to the relevant technology known to those skilled in the art, which will not be elaborated here.
[0124] Embodiment 4
[0125] The present embodiment provides a CMOS image sensor, and the basic principle and structure of the CMOS image sensor provided in the present embodiment are basically similar to those of the CMOS image sensor provided in the third embodiment. The CMOS image sensor provided in the present embodiment includes a pixel array 120, a readout circuit 130, a readout circuit 130, and an image processor 140. Basically similar to the third embodiment, the image processor 140 of the CMOS image sensor provided in the present embodiment also includes a black level correction unit 141, a base correction unit 142, a signal width reduction unit 143, and an interface circuit 150. However, the difference from the third embodiment is that the base correction unit 142 of the CMOS image sensor provided in the present embodiment is slightly different from the base correction unit 142 of the CMOS image sensor provided in the third embodiment. In order to avoid redundant description, only the differences between the present embodiment and the third embodiment are described below. For the parts not mentioned in the present embodiment, please refer to the above description of the third embodiment for adaptive understanding. For the parts not described in detail in the third embodiment, please refer to the above description of the second embodiment for adaptive understanding.
[0126] For example, see Fig.23 , Fig.23 The schematic diagram of the structure of the CMOS image sensor provided in this embodiment. Fig.23 It can be seen that the base correction unit 142 includes a third base correction subunit 14223, a first end of the third base correction subunit 14223 is coupled to the black level correction unit 141, and a second end of the third base correction subunit 14223 is coupled to a first end of the signal width reduction unit 143. Specifically, the third base correction subunit 14223 is configured to determine the noise level parameter according to the black level value and the analog gain determined by the black level correction unit 141, and generate the third signal data according to the noise level parameter and the second signal data.
[0127] Configured in this way, the CMOS image sensor provided in this embodiment, the third base correction subunit 14223 can obtain the noise distribution (i.e., noise level parameters) of the current frame according to the specific settings of the black level value and the analog gain, and then determine the appropriate base parameters according to the determined noise level parameters, thereby achieving the purpose of improving the dynamic range.
[0128] For example, in some exemplary embodiments, the noise level parameter may be determined by the following formula (4):
[0129]
[0130] In the above formula (4), Noise is the determined noise level parameter, Bl value is the black level value (determined by the black level correction unit), A gain The analog gain is the working parameter configuration information of the CMOS image sensor, and offset is the preset distribution coefficient.
[0131] Embodiment 5
[0132] The present embodiment provides a CMOS image sensor, and the basic principle and structure of the CMOS image sensor provided by the present embodiment are basically similar to those of the CMOS image sensor provided by the second embodiment. The CMOS image sensor provided by the present embodiment includes a pixel array 120, a readout circuit 130, a readout circuit 130, and an image processor 140. Basically similar to the second embodiment, the image processor 140 of the CMOS image sensor provided by the present embodiment also includes a black level correction unit 141, a base correction unit 142, a signal width reduction unit 143, and an interface circuit 150. However, the difference from the second embodiment is that the base correction unit 142 of the CMOS image sensor provided by the present embodiment is slightly different from the base correction unit 142 of the CMOS image sensor provided by the second embodiment. In order to avoid redundant description, only the differences between the present embodiment and the second embodiment are described below. For the parts not mentioned in the present embodiment, please refer to the above description of the second embodiment for adaptive understanding.
[0133] For example, see Fig.24 , Fig.24 The schematic diagram of the structure of the CMOS image sensor provided in this embodiment. Fig.24 It can be seen that the base correction unit 142 includes a fourth base correction subunit 14224, and the fourth base correction subunit 14224 is configured to receive the noise level parameter sent by the application end AP, and generate the third signal data according to the noise level parameter and the second signal data.
[0134] It can be seen that the CMOS image sensor provided in this embodiment only needs to provide a corresponding configuration interface; the application end AP can send different noise level parameters (i.e., base parameter requirements) according to different exposure configurations, and the CMOS image sensor only needs to adapt according to the received noise level parameters, thereby achieving the purpose of improving the dynamic range; on the other hand, it also simplifies the complexity of the CMOS image sensor, thereby saving the resources and costs of the CMOS image sensor.
[0135] It should be noted that, as those skilled in the art can understand, the present invention does not limit the specific manner in which the application-end AP obtains the noise level parameter. For details, reference may be made to the relevant technologies known to those skilled in the art, which will not be elaborated herein.
[0136] It should be understood that, based on the above description, those skilled in the art should be able to understand that the noise level parameters of the CMOS image sensor provided in this embodiment are sent from the application end AP to the CMOS image sensor. Therefore, the application end AP can configure the corresponding base parameters according to its known noise level parameters, without the need for the CMOS image sensor provided in Embodiments 2, 3 and 4 of this document, where the base parameters need to be sent from the CMOS image sensor to the application end AP.
[0137] Embodiment 6
[0138] This embodiment provides a method for improving the dynamic range. The method for improving the dynamic range provided by this embodiment is used for the CMOS image sensor provided by any embodiment of the present invention or the camera system provided by the above embodiment. Fig.25 , Fig.25 The flowchart of the method for improving the dynamic range provided by the sixth embodiment of the present invention is as follows. Fig.25 It can be seen that the method for improving the dynamic range provided in this embodiment includes the following steps:
[0139] S100: Collecting original optical signals and generating electrical signal data according to the collected original optical signals;
[0140] S200: Perform analog-to-digital conversion on the electrical signal data to generate first signal data;
[0141] S300: performing black level correction on the first signal data to generate second signal data, and determining a base parameter according to the second signal data and the acquired noise level parameter to generate third signal data;
[0142] S400: performing bit width reduction processing on the third signal data to generate target signal data;
[0143] S500: Sending the target signal data to the application end; the bit widths of the first signal data, the second signal data, and the third signal data are the same and are all greater than the bit width of the target signal data.
[0144] Therefore, the method for improving the dynamic range provided by the present embodiment increases the bit width of the signal data and performs bit width reduction processing when outputting, thereby achieving the situation that the determined base parameter can be significantly reduced without changing the bit width of the target signal data, thereby significantly improving the dynamic range of the CMOS image sensor. It can be seen that the present embodiment overcomes the deficiency of the prior art that a fixed base (such as 64) is used to cause a large range of signal loss. Without reducing the image quality, the present invention can adaptively (dynamically) determine the base parameter (such as the base parameter is 16), which can significantly improve the dynamic range of the CMOS image sensor, thereby laying a solid foundation for improving image quality.
[0145] Specifically, since the method for improving the dynamic range provided in this embodiment belongs to the same inventive concept as the CMOS image sensor provided by the present invention, and the basic principles of the two are the same, due to space limitations, this article will no longer provide a detailed description of the method for improving the dynamic range provided by the present invention. For details, please refer to the relevant part of the adaptability of the CMOS image sensor provided by the present invention.
[0146] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0147] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0148] Compared with the prior art, the CMOS image sensor, camera system and method for improving dynamic range provided by the present invention have the following beneficial effects:
[0149] The CMOS image sensor provided by the present invention first performs black level correction on the first signal data (exemplarily, the first signal data includes original image data, black level data and noise data) through an image processor; then dynamically determines the substrate parameter according to the acquired noise level parameter to generate the third signal data (exemplarily, the third signal data includes original image data after substrate parameter correction), and finally performs bit width reduction processing on the third signal data to generate target signal data. And the bit widths of the first signal data, the second signal data and the third signal data are the same, and are all greater than the bit width of the target signal data. In this configuration, by increasing the bit width of the signal data and performing bit width reduction processing when outputting, it is achieved that the determined substrate parameter can be significantly reduced without changing the bit width of the target signal data, thereby significantly improving the dynamic range of the CMOS image sensor. It can be seen that the present invention overcomes the shortcomings of the prior art that a fixed substrate (such as 64) is used to cause a large range of signal loss. Without reducing the image quality, the present invention can adaptively (dynamically) determine the substrate parameter (such as the substrate parameter is 16), which can significantly improve the dynamic range of the CMOS image sensor, thereby laying a solid foundation for improving image quality. Furthermore, the CMOS image sensor provided by the present invention adopts a modular design of pixel array, readout circuit, image processor and interface circuit, which does not require adaptive modification of the overall architecture of the existing camera system (such as the bit width of the target signal data received by the application end), has good compatibility and is easy to implement.
[0150] Since the camera system and the method for improving the dynamic range provided by the present invention belong to the same inventive concept as the CMOS image sensor provided by the present invention, the camera system and the method for improving the dynamic range provided by the present invention at least have all the beneficial effects of the CMOS image sensor provided by the present invention. For details, reference may be made to the above description of the beneficial effects of the CMOS image sensor provided by the present invention. Therefore, the beneficial effects of the camera system and the method for improving the dynamic range provided by the present invention will not be described one by one here.
[0151] In summary, the above embodiments provide detailed descriptions of different configurations of the CMOS image sensor, the camera system, and the method for improving the dynamic range proposed in the present invention. Of course, the above description is only a description of the preferred embodiments of the present invention, and is not any limitation to the scope of the present invention. The present invention includes but is not limited to the configurations listed in the above implementations. Those skilled in the art can draw inferences based on the contents of the above embodiments. Any changes and modifications made by those of ordinary skill in the field of the present invention based on the above disclosure shall fall within the scope of protection of the claims.
Claims
1. A CMOS image sensor, characterized in that: The device comprises a pixel array, a readout circuit, an image processor and an interface circuit; the first end of the pixel array is configured to collect an original light signal, the second end of the pixel array is coupled to the first end of the readout circuit, the second end of the readout circuit is coupled to the first end of the image processor, the second end of the image processor is coupled to the first end of the interface circuit, and the second end of the interface circuit is configured to couple to an application end; The pixel array is further configured to generate electrical signal data according to the collected original light signal; The readout circuit is configured to perform analog-to-digital conversion on the electrical signal data to generate first signal data; the image processor is configured to perform black level correction on the first signal data to generate second signal data, and determine the base parameter and generate third signal data based on the second signal data and the acquired noise level parameter, and the third signal data includes the original image data corrected by the base parameter; the image processor is also configured to perform bit width reduction processing on the third signal data to generate target signal data; the interface circuit is configured to send the target signal data to the application end; the bit widths of the first signal data, the second signal data and the third signal data are the same, and are all greater than the bit width of the target signal data.
2. The CMOS image sensor according to claim 1, characterized in that: The image processor comprises a black level correction unit, a base correction unit and a signal width reduction unit; the first end of the black level correction unit is configured to be coupled to the second end of the readout circuit, the second end of the black level correction unit is coupled to the first end of the base correction unit, the second end of the base correction unit is coupled to the first end of the signal width reduction unit, and the second end of the signal width reduction unit is coupled to the first end of the interface circuit; The black level correction unit is configured to perform black level correction on the first signal data to generate the second signal data; the first signal data includes original image data, black level data and noise data; the second signal data includes noise data and original image data after black level correction; the base correction unit is configured to determine the base parameter and generate the third signal data according to the second signal data and the noise level parameter; the signal width reduction unit is configured to perform width reduction processing on the third signal data to generate the target signal data, and send the target signal data to the application end through the interface circuit; the target signal data includes valid image data for reconstructing the target image.
3. The CMOS image sensor according to claim 2, characterized in that: The black level correction unit comprises a defect elimination subunit, a strong light interference elimination subunit and a black level correction subunit; the first end of the defect elimination subunit is coupled to the second end of the readout circuit, the second end of the defect elimination subunit is coupled to the first end of the strong light interference elimination subunit, the second end of the strong light interference elimination subunit is coupled to the first end of the black level correction subunit, and the second end of the black level correction subunit is coupled to the first end of the substrate correction unit; The defect elimination subunit is configured to remove bad pixels from the bad pixel data in the first signal data to generate first signal data after the bad pixels are removed; The strong light interference elimination subunit is configured to perform strong light interference removal on the first signal data after bad pixels are removed, and generate the first signal data after strong light interference is removed; the black level correction subunit is configured to obtain the black level value of each channel in the first signal data after strong light interference is removed, and perform black level correction on the first signal data after strong light interference is removed according to the black level value of each channel, and generate the second signal data.
4. The CMOS image sensor according to claim 2, characterized in that: The base correction unit includes a first noise parameter acquisition subunit and a first base correction subunit; the first end of the first noise parameter acquisition subunit is coupled to the second end of the black level correction unit, the second end of the first noise parameter acquisition subunit is coupled to the first end of the first base correction subunit, and the second end of the first base correction subunit is coupled to the first end of the signal width reduction unit; The first noise parameter acquisition subunit is configured to determine the noise level parameter and generate fourth signal data according to the second signal data; the fourth signal data includes the original image data after black level correction; The first base correction subunit is configured to determine the base parameter and generate the third signal data according to the noise level parameter and the fourth signal data; and send the base parameter to the application end, and send the third signal data to the signal bit width reduction unit.
5. The CMOS image sensor according to claim 2, characterized in that: The base correction unit includes a second noise parameter acquisition subunit and a second base correction subunit; the second noise parameter acquisition subunit is coupled to a first end of the second base correction subunit, a second end of the second base correction subunit is coupled to a second end of the black level correction unit, and a third end of the second base correction subunit is coupled to a first end of the signal width reduction unit; The second noise parameter acquisition subunit is configured to determine the noise level parameter based on a pre-acquired lookup table and the operating parameter configuration information of the CMOS image sensor; The second base correction subunit is configured to determine the base parameter and generate the third signal data according to the noise level parameter and the second signal data; and send the base parameter to the application end, and send the third signal data to the signal bit width reduction unit.
6. The CMOS image sensor according to claim 2, characterized in that: The base correction unit comprises a third base correction sub-unit, a first end of the third base correction sub-unit is coupled to the black level correction unit, and a second end of the third base correction sub-unit is coupled to the first end of the signal width reduction unit; The third base correction subunit is configured to determine the noise level parameter according to the black level value determined by the black level correction unit and the analog gain, and generate the third signal data according to the noise level parameter and the second signal data.
7. The CMOS image sensor according to claim 2, characterized in that: The base correction unit includes a fourth base correction sub-unit, and the fourth base correction sub-unit is configured to receive the noise level parameter sent by the application end, and generate the third signal data according to the noise level parameter and the second signal data.
8. The CMOS image sensor according to any one of claims 2 to 7, characterized in that: The signal bit width reduction unit is configured to perform down-sampling and dither conversion on the third signal data to obtain the target signal data.
9. A camera system, comprising an application end, characterized in that: The camera system further comprises a CMOS image sensor as claimed in any one of claims 1 to 8; The CMOS image sensor is configured to collect raw light signals and perform analog-to-digital conversion, black level correction, and dynamic substrate parameter correction on the collected raw light signal data to generate target signal data; The application end is configured to reconstruct the target signal data to obtain a target image corresponding to the original light signal.
10. A method for improving dynamic range, characterized in that: Used for the CMOS image sensor according to any one of claims 1 to 8 or the camera system according to claim 9; The method for improving the dynamic range comprises: Collecting original optical signals and generating electrical signal data according to the collected original optical signals; Performing analog-to-digital conversion on the electrical signal data to generate first signal data; Performing black level correction on the first signal data to generate second signal data, and determining a base parameter and generating third signal data according to the second signal data and the acquired noise level parameter, wherein the third signal data includes original image data corrected by using the base parameter; Performing bit width reduction processing on the third signal data to generate target signal data; The target signal data is sent to the application end; the bit widths of the first signal data, the second signal data, and the third signal data are the same and are all greater than the bit width of the target signal data.
Citation Information
Patent Citations
Imaging apparatus and imaging method
CN102547163A
Signal drift dynamic correction method and device
CN108363445A
Active signal detection using adaptive identification of a noise floor
CN111868561A
Self-adaptive noise floor estimation method and broadband carrier detection method thereof
CN112737711A
Image sensing device and operation method thereof
CN115701134A
