CN112752041A - CMOS image sensor correction method, system and image processing equipment - Google Patents

CMOS image sensor correction method, system and image processing equipment Download PDF

Info

Publication number
CN112752041A
CN112752041A CN201911050823.4A CN201911050823A CN112752041A CN 112752041 A CN112752041 A CN 112752041A CN 201911050823 A CN201911050823 A CN 201911050823A CN 112752041 A CN112752041 A CN 112752041A
Authority
CN
China
Prior art keywords
image
correction
image sensor
average value
cmos image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911050823.4A
Other languages
Chinese (zh)
Inventor
陈园园
周楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei Meyer Optoelectronic Technology Inc
Original Assignee
Hefei Meyer Optoelectronic Technology Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Meyer Optoelectronic Technology Inc filed Critical Hefei Meyer Optoelectronic Technology Inc
Priority to CN201911050823.4A priority Critical patent/CN112752041A/en
Publication of CN112752041A publication Critical patent/CN112752041A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/60Noise processing, e.g. detecting, correcting, reducing or removing noise
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/60Noise processing, e.g. detecting, correcting, reducing or removing noise
    • H04N25/67Noise processing, e.g. detecting, correcting, reducing or removing noise applied to fixed-pattern noise, e.g. non-uniformity of response

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Transforming Light Signals Into Electric Signals (AREA)

Abstract

The invention provides a method and a system for correcting a CMOS image sensor and image processing equipment, wherein the method comprises the following steps: after the CMOS image sensor is powered on, acquiring initial environment temperature; acquiring an image required for correction, and calculating a correction parameter according to the image required for correction; obtaining an ambient temperature change value; judging whether the ambient temperature change value is greater than or equal to a preset ambient temperature change value or not; if so, acquiring the image required by correction again, and recalculating the correction parameters to obtain corrected correction parameters; and correcting the CMOS image sensor according to the corrected correction parameters. According to the invention, in the working process of the equipment, the correction parameters of the CMOS image sensor can be corrected according to the change condition of the environmental temperature, and the accuracy and reliability of the correction parameters are improved, so that the temperature adaptability of the CMOS image sensor is improved, the correction result is accurate and reliable, the column noise is effectively eliminated, and the image quality is improved.

Description

CMOS image sensor correction method, system and image processing equipment
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method and a system for correcting a CMOS image sensor, and an image processing apparatus.
Background
At present, the mainstream processing structure of a CMOS (Complementary Metal Oxide Semiconductor) image sensor system adopts a column-shared processing circuit, i.e. each column of pixels shares one set of signal processing circuit, and the most obvious problem of the structure is the column noise problem caused by mismatch of the column-shared processing circuit, which is called column fixed pattern noise. Column fixed pattern noise is clearly observed in an uncorrected CMOS image sensor, and appears as "vertical lines" of varying brightness on the image. Therefore, in use, each column of the CMOS image sensor needs to be corrected to eliminate these "vertical lines", i.e., to eliminate column fixed pattern noise.
At present, the related technology for column correction of a CMOS image sensor mainly acquires correction parameters at a debugging stage, then stores the correction parameters in a memory, and reads the correction parameters from the memory during actual use, and then corrects the CMOS image sensor.
However, the method for acquiring and storing the sensor correction parameters in advance is not applicable to occasions with obvious temperature changes, and the correction parameters are affected by the temperature changes, so that the correction result is not accurate, and the quality of the image is affected; in addition, the method of acquiring and storing the correction parameters in advance may cause the correction parameters to change after the device is used for a period of time, which may also cause inaccurate correction results and affect the quality of the image.
Disclosure of Invention
The present invention is directed to solving at least one of the above problems.
Therefore, an object of the present invention is to provide a method for correcting a CMOS image sensor, which can correct a correction parameter of the CMOS image sensor according to a change of an ambient temperature during an operation of a device, so as to improve accuracy and reliability of the correction parameter, thereby improving temperature adaptability of the CMOS image sensor, further making a correction result accurate and reliable, thereby effectively eliminating column noise and improving image quality.
To this end, a second object of the present invention is to provide a calibration system for a CMOS image sensor.
To this end, a third object of the present invention is to propose an image processing apparatus.
In order to achieve the above object, an embodiment of a first aspect of the present invention proposes a calibration method for a CMOS image sensor, including the steps of: after the CMOS image sensor is powered on, acquiring initial environment temperature; acquiring an image required for correction, and calculating a correction parameter according to the image required for correction; detecting the ambient temperature in real time, and obtaining an ambient temperature change value by combining the initial ambient temperature; judging whether the environmental temperature change value is larger than or equal to a preset environmental temperature change value or not; if so, acquiring the image required by correction again, and recalculating the correction parameters to obtain corrected correction parameters; and correcting the CMOS image sensor according to the corrected correction parameters.
According to the correction method of the CMOS image sensor, the correction parameters of the CMOS image sensor can be corrected according to the environment temperature change condition in the working process of equipment, the accuracy and the reliability of the correction parameters are improved, the temperature adaptability of the CMOS image sensor is improved, the correction result is accurate and reliable, column noise is effectively eliminated, and the image quality is improved.
In addition, the correction method of the CMOS image sensor according to the above embodiment of the present invention may further have the following additional technical features:
in some examples, the image required for correction includes a first image output by the CMOS image sensor with a luminance higher than a preset luminance and a second image output by the CMOS image sensor with a luminance lower than the preset luminance, and the calculating of the correction parameter from the image required for correction includes: calculating the average value of pixels of each column of the first image and the second image; calculating the pixel average value of the first image and the second image; and calculating the correction parameter according to the pixel average value of each column of the first image and the second image and the pixel average value of the first image and the second image.
In some examples, the modified correction parameters include a correction gain and a correction offset, and the correcting the CMOS image sensor according to the modified correction parameters includes:
y′i=Ki×yi+bi
wherein i is any column in the CMOS image sensor, and yiImage data to be corrected, y ', acquired for a CMOS image sensor'iFor corrected image data, KiFor the correction gain, biIs the correction bias.
In some examples, the correction gain is calculated by:
Figure BDA0002255292860000021
where i is any column in the CMOS image sensor, and KiFor the purpose of the said correction gain, the gain is,
Figure BDA0002255292860000022
is the average value of the pixels of the ith column of the first image,
Figure BDA0002255292860000023
is the average value of the pixels of the first image,
Figure BDA0002255292860000024
is the average value of the pixels of the ith column of the second image,
Figure BDA0002255292860000025
is the average value of the pixels of the second image.
In some examples, the correction bias is calculated by:
Figure BDA0002255292860000026
where i is any column in the CMOS image sensor, biIn order to correct the offset, the offset is corrected,
Figure BDA0002255292860000031
is the average value of the pixels of the ith column of the first image,
Figure BDA0002255292860000032
is the average value of the pixels of the first image,
Figure BDA0002255292860000033
is the average value of the pixels of the ith column of the second image,
Figure BDA0002255292860000034
is the average value of the pixels of the second image.
In order to achieve the above object, an embodiment of a second aspect of the present invention proposes a correction system of a CMOS image sensor, including: the acquisition module is used for acquiring the initial environment temperature after the CMOS image sensor is electrified; the calculation module is used for acquiring an image required by correction and calculating a correction parameter according to the image required by correction; the detection module is used for detecting the ambient temperature in real time and obtaining an ambient temperature change value by combining the initial ambient temperature; the judging module is used for judging whether the environment temperature change value is larger than or equal to a preset environment temperature change value; the correction module is used for controlling the calculation module to acquire an image required by correction again and calculating correction parameters again to obtain corrected correction parameters when the ambient temperature change value is larger than or equal to a preset ambient temperature change value; and the correction module is used for correcting the CMOS image sensor according to the corrected correction parameters.
According to the correction system of the CMOS image sensor, provided by the embodiment of the invention, the correction parameters of the CMOS image sensor can be corrected according to the environment temperature change condition in the working process of equipment, so that the accuracy and the reliability of the correction parameters are improved, the temperature adaptability of the CMOS image sensor is improved, the correction result is accurate and reliable, the column noise is effectively eliminated, and the image quality is improved.
In addition, the correction system of the CMOS image sensor according to the above embodiment of the present invention may further have the following additional technical features:
in some examples, the image required for correction includes a first image output by the CMOS image sensor with a luminance higher than a preset luminance and a second image output by the CMOS image sensor with a luminance lower than the preset luminance, and the calculation module calculates the correction parameter according to the image required for correction, including: calculating the average value of pixels of each column of the first image and the second image; calculating the pixel average value of the first image and the second image; and calculating the correction parameter according to the pixel average value of each column of the first image and the second image and the pixel average value of the first image and the second image.
In some examples, the modified correction parameters include a correction gain and a correction offset, and the correction module corrects the CMOS image sensor according to the modified correction parameters, including:
y′i=Ki×yi+bi
wherein i is any column in the CMOS image sensor, and yiImage data to be corrected, y ', acquired for a CMOS image sensor'iFor corrected image data, KiFor the correction gain, biIs the correction bias.
In some examples, the correction gain is calculated by:
Figure BDA0002255292860000041
where i is any column in the CMOS image sensor, and KiFor the purpose of the said correction gain, the gain is,
Figure BDA0002255292860000042
is the average value of the pixels of the ith column of the first image,
Figure BDA0002255292860000043
is the average value of the pixels of the first image,
Figure BDA0002255292860000044
is the average value of the pixels of the ith column of the second image,
Figure BDA0002255292860000045
is the average value of the pixels of the second image.
In some examples, the correction bias is calculated by:
Figure BDA0002255292860000046
where i is any column in the CMOS image sensor, biIn order to correct the offset, the offset is corrected,
Figure BDA0002255292860000047
is the average value of the pixels of the ith column of the first image,
Figure BDA0002255292860000048
is the average value of the pixels of the first image,
Figure BDA0002255292860000049
is the average value of the pixels of the ith column of the second image,
Figure BDA00022552928600000410
is the average value of the pixels of the second image.
In order to achieve the above object, an embodiment of a third aspect of the present invention proposes an image processing apparatus including: a CMOS image sensor; and the correction system of the CMOS image sensor according to the above embodiment of the present invention.
According to the image processing equipment provided by the embodiment of the invention, the correction parameters of the CMOS image sensor can be corrected according to the change condition of the environmental temperature in the working process of the equipment, so that the accuracy and the reliability of the correction parameters are improved, the temperature adaptability of the CMOS image sensor is improved, the correction result is accurate and reliable, the column noise is effectively eliminated, and the image quality is improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart of a calibration method of a CMOS image sensor according to an embodiment of the present invention;
fig. 2 is a block diagram of a correction system of a CMOS image sensor according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on those shown in the drawings, and are used only for convenience in describing the present invention and for simplicity in description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and thus, are not to be construed as limiting the present invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
A correction method, system, and image processing apparatus of a CMOS image sensor according to embodiments of the present invention are described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a calibration method of a CMOS image sensor according to an embodiment of the present invention. As shown in fig. 1, the method for correcting a CMOS image sensor includes the steps of:
step S1: after the CMOS image sensor is powered on, the initial environment temperature is obtained. The initial ambient temperature is the current ambient temperature corresponding to the CMOS image sensor when being powered on.
Step S2: an image required for correction is acquired, and correction parameters are calculated from the image required for correction.
In one embodiment of the invention, the images required for correction include a first image output by the CMOS image sensor with a luminance higher than a preset luminance and a second image output by the CMOS image sensor with a luminance lower than the preset luminance, i.e., the luminance of the first image is higher and the luminance of the second image is lower. Then, calculating a correction parameter according to the image required for correction, including: calculating the average value of pixels of each column of the first image and the second image; calculating the pixel average value of the first image and the second image; and calculating to obtain a correction parameter according to the pixel average value of each column of the first image and the second image and the pixel average value of the first image and the second image.
In a specific embodiment, the method for acquiring the image required for correction may be: when the device turns on the light source, the CMOS image sensor outputs a first image, and when the device turns off the light source, the CMOS image sensor outputs a second image.
In a specific embodiment, the method for acquiring the image required for correction may further include: the first image and the second image are two pictures with different brightness, wherein,
1. the lower brightness image acquisition mode is:
and turning off the LED light source, setting the camera to enter a dark image acquisition mode, setting relevant parameters, and acquiring lower-brightness image data, namely a second image.
2. The higher brightness image acquisition mode is:
and (3) turning on an LED light source, enabling the LED to emit blue light, shooting a picture, checking the picture, judging whether the obtained image meets the threshold value and the uniformity requirement of a brighter image, if so, determining the picture to be a first image, and starting to calculate a correction parameter according to the first image, if not, adjusting the illumination intensity of the LED, and repeating the steps 1 and 2 until the first image meeting the requirement is obtained.
Further, the correction parameters include a correction gain and a correction offset, wherein,
the calculation method of the correction gain is as follows:
Figure BDA0002255292860000061
where i is any column in the CMOS image sensor, and KiFor the purpose of the said correction gain, the gain is,
Figure BDA0002255292860000062
is the average value of the pixels of the ith column of the first image,
Figure BDA0002255292860000063
is the average value of the pixels of the first image,
Figure BDA0002255292860000064
is the average value of the pixels of the ith column of the second image,
Figure BDA0002255292860000065
is the average value of the pixels of the second image.
The calculation method of the correction offset is as follows:
Figure BDA0002255292860000066
where i is any column in the CMOS image sensor, biIn order to correct the offset, the offset is corrected,
Figure BDA0002255292860000067
is the average value of the pixels of the ith column of the first image,
Figure BDA0002255292860000068
is the average value of the pixels of the first image,
Figure BDA0002255292860000069
is the average value of the pixels of the ith column of the second image,
Figure BDA00022552928600000610
is the average value of the pixels of the second image.
As a specific example, the correction to the CMOS image sensor may include column correction or dot correction.
The following describes a method for calculating a correction parameter for column correction of a CMOS image sensor, and specifically includes:
a CMOS image sensor outputs a first image;
2. calculating the average value of the pixels of the ith column of the first image
Figure BDA00022552928600000611
And the pixel average value of the first image
Figure BDA00022552928600000612
Figure BDA00022552928600000613
Figure BDA00022552928600000614
The CMOS image sensor outputs a second image;
4. calculating the average value of the pixels of the i columns of the second image
Figure BDA00022552928600000615
And the pixel average value of the second image
Figure BDA00022552928600000616
Figure BDA00022552928600000617
Figure BDA0002255292860000071
Wherein i is any column in the CMOS image sensor, j is any row in the CMOS image sensor, a is the total number of columns in the CMOS image sensor, and B is the total number of rows in the CMOS image sensor.
The following describes a method for calculating correction parameters for point correction of a CMOS image sensor, and specifically includes:
a CMOS image sensor outputs a first image;
2. calculating an average value of pixels of the first image
Figure BDA0002255292860000072
Figure BDA0002255292860000073
The CMOS image sensor outputs a second image;
4. calculating the pixel average value of the second image
Figure BDA0002255292860000074
Figure BDA0002255292860000075
Wherein i is any column in the CMOS image sensor, j is any row in the CMOS image sensor, a is the total number of columns in the CMOS image sensor, and B is the total number of rows in the CMOS image sensor.
Further, Ki,jA correction gain for said point (j, i); bi,jA correction bias for said (j, i) point;
Figure BDA0002255292860000076
Figure BDA0002255292860000077
wherein, Yi,j(xH) Is the pixel value of the (j, i) point in the first image;
Figure BDA0002255292860000078
is the pixel average of the first image; y isi,j(xL) Is the pixel value of the (j, i) point in the second image;
Figure BDA0002255292860000079
is the average value of the pixels of the second image.
In order to save memory space and reduce the amount of computation, column correction may be used instead of dot correction in general in the case of not demanding image quality in combination with the physical characteristics of the CMOS image sensor (the same signal processing circuit is used for the pixels in the same column, and therefore the correction parameters for the pixels in the same column are substantially the same).
Step S3: and detecting the ambient temperature in real time, and combining the initial ambient temperature to obtain an ambient temperature change value. Namely, in the working process of the equipment, the environmental temperature is detected in real time, and the corresponding environmental temperature change value is obtained by combining the initial environmental temperature detected when the equipment is powered on.
Step S4: and judging whether the ambient temperature change value is greater than or equal to a preset ambient temperature change value. Specifically, the preset ambient temperature change value is a critical value for determining whether the ambient temperature change is large, if the ambient temperature change value is larger than or equal to the preset ambient temperature change value, the ambient temperature change value is large, the ambient temperature change is obvious, that is, the correction parameter needs to be corrected, otherwise, the ambient temperature change value is small, the ambient temperature change is not obvious, and the correction parameter does not need to be corrected.
Step S5: if the ambient temperature change value is larger than or equal to the preset ambient temperature change value, the image required by correction is obtained again, and the correction parameter is calculated again to obtain the corrected correction parameter, so that the condition that the correction parameter is inaccurate due to large ambient temperature change and long service time is avoided, the temperature adaptability of the CMOS image sensor is enhanced, the accuracy and the reliability of the correction parameter are improved, and the image quality is further improved.
Step S6: and correcting the CMOS image sensor according to the corrected correction parameters.
In one embodiment of the present invention, the correcting the CMOS image sensor according to the corrected correction parameter includes:
y′i=Ki×yi+bi
wherein, yiThe image correction method comprises the steps of acquiring image data to be corrected, namely original image data, for a CMOS image sensor; y'iFor corrected image data, KiTo correct the gain, biTo correct for the offset.
Specifically, the correction parameter K is obtained by the calculation method of the correction parameteriAnd biThen, when the CMOS image sensor newly acquires the image data, the original data y of each column of imageiFrom formula y'i=Ki×yi+biCorrected image data y 'are obtained after correction'iCorrected image data y'iNamely, the column noise of the image can be basically eliminated, and the image quality is higher.
The method comprises the steps of acquiring environmental temperature data in real time after the equipment normally operates, judging whether the environmental temperature changes to a threshold value (namely a preset temperature change value) which needs to be corrected again, when the environmental temperature reaches the threshold value which needs to be corrected, correcting and storing the parameters again by the equipment, namely, acquiring an image which needs to be corrected again, recalculating a new correction parameter according to the image which needs to be corrected, storing the new correction parameter, and finally correcting the CMOS image sensor according to the new correction parameter, so that the condition that the correction parameter is inaccurate due to large environmental temperature change and long service time is avoided, the temperature adaptability of the CMOS image sensor is enhanced, the accuracy and the reliability of the correction parameter are improved, and the image quality is improved.
According to the correction method of the CMOS image sensor, the correction parameters of the CMOS image sensor can be corrected according to the environment temperature change condition in the working process of equipment, the accuracy and the reliability of the correction parameters are improved, the temperature adaptability of the CMOS image sensor is improved, the correction result is accurate and reliable, column noise is effectively eliminated, and the image quality is improved.
The invention further provides a correction system of the CMOS image sensor.
Fig. 2 is a block diagram of a correction system of a CMOS image sensor according to an embodiment of the present invention. As shown in fig. 2, the calibration system 100 of the CMOS image sensor includes: an acquisition module 110, a calculation module 120, a detection module 130, a determination module 140, a modification module 50, and a correction module 160.
The obtaining module 110 is configured to obtain an initial ambient temperature after the CMOS image sensor is powered on. The initial ambient temperature is the current ambient temperature corresponding to the CMOS image sensor when being powered on.
The calculation module 120 is configured to obtain an image required for correction, and calculate a correction parameter according to the image required for correction.
In one embodiment of the invention, the images required for correction include a first image output by the CMOS image sensor when the luminance is higher than the preset luminance and a second image output by the CMOS image sensor when the luminance is lower than the preset luminance, that is, the luminance of the first image is higher and the luminance of the second image is lower. The calculation module 120 calculates correction parameters according to the image required for correction, including: calculating the average value of pixels of each column of the first image and the second image; calculating the pixel average value of the first image and the second image; and calculating to obtain a correction parameter according to the pixel average value of each column of the first image and the second image and the pixel average value of the first image and the second image.
In a specific embodiment, the method for acquiring the image required for correction may be: when the device turns on the light source, the CMOS image sensor outputs a first image, and when the device turns off the light source, the CMOS image sensor outputs a second image.
In a specific embodiment, the method for acquiring the image required for correction may further include: the first image and the second image are two pictures with different brightness, wherein,
1. the lower brightness image acquisition mode is:
and turning off the LED light source, setting the camera to enter a dark image acquisition mode, setting relevant parameters, and acquiring lower-brightness image data, namely a second image.
2. The higher brightness image acquisition mode is:
and (3) turning on an LED light source, enabling the LED to emit blue light, shooting a picture, checking the picture, judging whether the obtained image meets the threshold value and the uniformity requirement of a brighter image, if so, determining the picture to be a first image, and starting to calculate a correction parameter according to the first image, if not, adjusting the illumination intensity of the LED, and repeating the steps 1 and 2 until the first image meeting the requirement is obtained.
Further, the correction parameters include a correction gain and a correction offset, wherein,
the calculation method of the correction gain is as follows:
Figure BDA0002255292860000091
where i is any column in the CMOS image sensor, and KiFor the purpose of the said correction gain, the gain is,
Figure BDA0002255292860000092
is the average value of the pixels of the ith column of the first image,
Figure BDA0002255292860000093
is the average value of the pixels of the first image,
Figure BDA0002255292860000094
is the average value of the pixels of the ith column of the second image,
Figure BDA0002255292860000095
is the average value of the pixels of the second image.
The calculation method of the correction offset is as follows:
Figure BDA0002255292860000101
where i is any column in the CMOS image sensor, biIn order to correct the offset, the offset is corrected,
Figure BDA0002255292860000102
is the average value of the pixels of the ith column of the first image,
Figure BDA0002255292860000103
is the average value of the pixels of the first image,
Figure BDA0002255292860000104
is the average value of the pixels of the ith column of the second image,
Figure BDA0002255292860000105
is the average value of the pixels of the second image.
As a specific example, the correction to the CMOS image sensor may include column correction or dot correction.
The following describes a method for calculating a correction parameter for column correction of a CMOS image sensor, and specifically includes:
a CMOS image sensor outputs a first image;
2. calculating the average value of the pixels of the ith column of the first image
Figure BDA0002255292860000106
And the pixel average value of the first image
Figure BDA0002255292860000107
Figure BDA0002255292860000108
Figure BDA0002255292860000109
The CMOS image sensor outputs a second image;
4. calculating the average value of the pixels of the i columns of the second image
Figure BDA00022552928600001010
And the pixel average value of the second image
Figure BDA00022552928600001011
Figure BDA00022552928600001012
Figure BDA00022552928600001013
Wherein i is any column in the CMOS image sensor, j is any row in the CMOS image sensor, a is the total number of columns in the CMOS image sensor, and B is the total number of rows in the CMOS image sensor.
The following describes a method for calculating correction parameters for point correction of a CMOS image sensor, and specifically includes:
a CMOS image sensor outputs a first image;
2. calculating an average value of pixels of the first image
Figure BDA00022552928600001014
Figure BDA00022552928600001015
The CMOS image sensor outputs a second image;
4. calculating the pixel average value of the second image
Figure BDA00022552928600001016
Figure BDA0002255292860000111
Wherein i is any column in the CMOS image sensor, j is any row in the CMOS image sensor, a is the total number of columns in the CMOS image sensor, and B is the total number of rows in the CMOS image sensor.
Further, Ki,jA correction gain for said point (j, i); bi,jA correction bias for said (j, i) point;
Figure BDA0002255292860000112
Figure BDA0002255292860000113
wherein, Yi,j(xH) Is the pixel value of the (j, i) point in the first image;
Figure BDA0002255292860000114
is the pixel average of the first image; y isi,j(xL) Is the pixel value of the (j, i) point in the second image;
Figure BDA0002255292860000115
is the average value of the pixels of the second image.
In order to save memory space and reduce the amount of computation, column correction may be used instead of dot correction in general in the case of not demanding image quality in combination with the physical characteristics of the CMOS image sensor (the same signal processing circuit is used for the pixels in the same column, and therefore the correction parameters for the pixels in the same column are substantially the same).
The detection module 130 is configured to detect the ambient temperature in real time, and obtain an ambient temperature variation value by combining the initial ambient temperature. Namely, in the working process of the equipment, the environmental temperature is detected in real time, and the corresponding environmental temperature change value is obtained by combining the initial environmental temperature detected when the equipment is powered on.
The determining module 140 is configured to determine whether the ambient temperature variation value is greater than or equal to a preset ambient temperature variation value. Specifically, the preset ambient temperature change value is a critical value for determining whether the ambient temperature change is large, if the ambient temperature change value is larger than or equal to the preset ambient temperature change value, the ambient temperature change value is large, the ambient temperature change is obvious, that is, the correction parameter needs to be corrected, otherwise, the ambient temperature change value is small, the ambient temperature change is not obvious, and the correction parameter does not need to be corrected.
The correction module 150 is configured to control the calculation module to reacquire an image required for correction and recalculate the correction parameter to obtain the corrected correction parameter when the ambient temperature variation value is greater than or equal to the preset ambient temperature variation value, so as to avoid the situation that the correction parameter is inaccurate due to large ambient temperature variation and long service time, enhance the temperature adaptability of the CMOS image sensor, and facilitate improvement of accuracy and reliability of the correction parameter, thereby improving image quality.
The correction module 160 is configured to correct the CMOS image sensor according to the corrected correction parameter.
In an embodiment of the present invention, the calibration module 160 calibrates the CMOS image sensor according to the corrected calibration parameter, including:
y′i=Ki×yi+bi
wherein i is any column in the CMOS image sensor, and yiTo-be-calibrated for CMOS image sensor acquisitionPositive image data, y'iFor corrected image data, KiTo correct the gain, biTo correct for the offset.
Specifically, the correction parameter K is obtained by the calculation method of the correction parameteriAnd biThen, when the CMOS image sensor newly acquires the image data, the original data y of each column of imageiFrom formula y'i=Ki×yi+biCorrected image data y 'are obtained after correction'iCorrected image data y'iNamely, the column noise of the image can be basically eliminated, and the image quality is higher.
The method comprises the steps of acquiring environmental temperature data in real time after the equipment normally operates, judging whether the environmental temperature changes to a threshold value (namely a preset temperature change value) which needs to be corrected again, when the environmental temperature reaches the threshold value which needs to be corrected, correcting and storing the parameters again by the equipment, namely, acquiring an image which needs to be corrected again, recalculating a new correction parameter according to the image which needs to be corrected, storing the new correction parameter, and finally correcting the CMOS image sensor according to the new correction parameter, so that the condition that the correction parameter is inaccurate due to large environmental temperature change and long service time is avoided, the temperature adaptability of the CMOS image sensor is enhanced, the accuracy and the reliability of the correction parameter are improved, and the image quality is improved.
According to the correction system of the CMOS image sensor, provided by the embodiment of the invention, the correction parameters of the CMOS image sensor can be corrected according to the environment temperature change condition in the working process of equipment, so that the accuracy and the reliability of the correction parameters are improved, the temperature adaptability of the CMOS image sensor is improved, the correction result is accurate and reliable, the column noise is effectively eliminated, and the image quality is improved.
Further embodiments of the present invention also propose an image processing apparatus including a CMOS image sensor, and a correction system of the CMOS image sensor described in any of the above embodiments of the present invention. Therefore, a specific implementation manner of the image processing apparatus according to the embodiment of the present invention is similar to that of the calibration system of the CMOS image sensor according to the embodiment of the present invention, and please refer to the description of the system part specifically, and details are not repeated here in order to reduce redundancy.
According to the image processing equipment provided by the embodiment of the invention, the correction parameters of the CMOS image sensor can be corrected according to the change condition of the environmental temperature in the working process of the equipment, so that the accuracy and the reliability of the correction parameters are improved, the temperature adaptability of the CMOS image sensor is improved, the correction result is accurate and reliable, the column noise is effectively eliminated, and the image quality is improved.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims (11)

1. A method for calibrating a CMOS image sensor, comprising the steps of:
after the CMOS image sensor is powered on, acquiring initial environment temperature;
acquiring an image required for correction, and calculating a correction parameter according to the image required for correction;
detecting the ambient temperature in real time, and obtaining an ambient temperature change value by combining the initial ambient temperature;
judging whether the environmental temperature change value is larger than or equal to a preset environmental temperature change value or not;
if so, acquiring the image required by correction again, and recalculating the correction parameters to obtain corrected correction parameters;
and correcting the CMOS image sensor according to the corrected correction parameters.
2. The method according to claim 1, wherein the images required for correction include a first image output from the CMOS image sensor with a luminance higher than a preset luminance and a second image output from the CMOS image sensor with a luminance lower than the preset luminance, and the calculating of the correction parameter based on the images required for correction includes:
calculating the average value of pixels of each column of the first image and the second image;
calculating the pixel average value of the first image and the second image;
and calculating the correction parameter according to the pixel average value of each column of the first image and the second image and the pixel average value of the first image and the second image.
3. The method according to claim 2, wherein the corrected correction parameters comprise a correction gain and a correction offset, and the correcting the CMOS image sensor according to the corrected correction parameters comprises:
y'i=Ki×yi+bi
wherein i is any column in the CMOS image sensor, and yiImage data to be corrected, y ', acquired for a CMOS image sensor'iFor corrected image data, KiFor the correction gain, biIs the correction bias.
4. The method of claim 3, wherein the correction gain is calculated by:
Figure FDA0002255292850000011
where i is any column in the CMOS image sensor, and KiFor the purpose of the said correction gain, the gain is,
Figure FDA0002255292850000012
is the average value of the pixels of the ith column of the first image,
Figure FDA0002255292850000013
is the average value of the pixels of the first image,
Figure FDA0002255292850000014
is the average value of the pixels of the ith column of the second image,
Figure FDA0002255292850000021
is the average value of the pixels of the second image.
5. The method of claim 4, wherein the correction bias is calculated by:
Figure FDA0002255292850000022
where i is any column in the CMOS image sensor, biIn order to correct the offset, the offset is corrected,
Figure FDA0002255292850000023
is the average value of the pixels of the ith column of the first image,
Figure FDA0002255292850000024
is the average value of the pixels of the first image,
Figure FDA0002255292850000025
is the average value of the pixels of the ith column of the second image,
Figure FDA0002255292850000026
is the average value of the pixels of the second image.
6. A calibration system for a CMOS image sensor, comprising:
the acquisition module is used for acquiring the initial environment temperature after the CMOS image sensor is electrified;
the calculation module is used for acquiring an image required by correction and calculating a correction parameter according to the image required by correction;
the detection module is used for detecting the ambient temperature in real time and obtaining an ambient temperature change value by combining the initial ambient temperature;
the judging module is used for judging whether the environment temperature change value is larger than or equal to a preset environment temperature change value;
the correction module is used for controlling the calculation module to acquire an image required by correction again and calculating correction parameters again to obtain corrected correction parameters when the ambient temperature change value is larger than or equal to a preset ambient temperature change value;
and the correction module is used for correcting the CMOS image sensor according to the corrected correction parameters.
7. The CMOS image sensor correction system of claim 6, wherein the images required for correction include a first image output by the CMOS image sensor with a brightness higher than a preset brightness and a second image output by the CMOS image sensor with a brightness lower than the preset brightness, and the calculation module calculates correction parameters according to the images required for correction, including:
calculating the average value of pixels of each column of the first image and the second image;
calculating the pixel average value of the first image and the second image;
and calculating the correction parameter according to the pixel average value of each column of the first image and the second image and the pixel average value of the first image and the second image.
8. The CMOS image sensor calibration system of claim 7, wherein the modified calibration parameters comprise a calibration gain and a calibration offset, and the calibration module calibrates the CMOS image sensor according to the modified calibration parameters, comprising:
y'i=Ki×yi+bi
wherein i is any column in the CMOS image sensor, and yiImage data to be corrected, y ', acquired for a CMOS image sensor'iFor corrected image data, KiFor the correction gain, biIs the correction bias.
9. The CMOS image sensor calibration system of claim 8,
the calculation mode of the correction gain is as follows:
Figure FDA0002255292850000031
where i is any column in the CMOS image sensor, and KiFor the purpose of the said correction gain, the gain is,
Figure FDA0002255292850000032
is the average value of the pixels of the ith column of the first image,
Figure FDA0002255292850000033
is the average value of the pixels of the first image,
Figure FDA0002255292850000034
is the image of the ith column of the second imageThe average value of the elements is calculated,
Figure FDA0002255292850000035
is the average value of the pixels of the second image.
10. The CMOS image sensor calibration system of claim 9,
the calculation method of the correction bias is as follows:
Figure FDA0002255292850000036
where i is any column in the CMOS image sensor, biIn order to correct the offset, the offset is corrected,
Figure FDA0002255292850000037
is the average value of the pixels of the ith column of the first image,
Figure FDA0002255292850000038
is the average value of the pixels of the first image,
Figure FDA0002255292850000039
is the average value of the pixels of the ith column of the second image,
Figure FDA00022552928500000310
is the average value of the pixels of the second image.
11. An image processing apparatus characterized by comprising:
a CMOS image sensor; and
a correction system for a CMOS image sensor as claimed in any one of claims 6 to 10.
CN201911050823.4A 2019-10-31 2019-10-31 CMOS image sensor correction method, system and image processing equipment Pending CN112752041A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911050823.4A CN112752041A (en) 2019-10-31 2019-10-31 CMOS image sensor correction method, system and image processing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911050823.4A CN112752041A (en) 2019-10-31 2019-10-31 CMOS image sensor correction method, system and image processing equipment

Publications (1)

Publication Number Publication Date
CN112752041A true CN112752041A (en) 2021-05-04

Family

ID=75641449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911050823.4A Pending CN112752041A (en) 2019-10-31 2019-10-31 CMOS image sensor correction method, system and image processing equipment

Country Status (1)

Country Link
CN (1) CN112752041A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115755155A (en) * 2022-11-04 2023-03-07 成都善思微科技有限公司 Detector image quality monitoring method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11205655A (en) * 1998-01-12 1999-07-30 Star Micronics Co Ltd Preset camera
US20100020205A1 (en) * 2006-09-14 2010-01-28 Kozo Ishida Image processing apparatus and imaging apparatus and method
JP2010071659A (en) * 2008-09-16 2010-04-02 Konica Minolta Medical & Graphic Inc Radiation solid-state detector
CN102042878A (en) * 2010-10-21 2011-05-04 电子科技大学 Infared nonuniformity correction method for removing temperature shift
CN105466563A (en) * 2014-09-09 2016-04-06 南京理工大学 Infrared thermal imager inhomogeneity two-point correction module and method
CN108240863A (en) * 2016-12-23 2018-07-03 南京理工大学 For real-time 2 asymmetric correction methods of Uncooled infrared camera
CN108846805A (en) * 2018-05-02 2018-11-20 重庆邮电大学 A kind of thermal-induced imagery two o'clock non-uniform correction method based on scene adaptive

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11205655A (en) * 1998-01-12 1999-07-30 Star Micronics Co Ltd Preset camera
US20100020205A1 (en) * 2006-09-14 2010-01-28 Kozo Ishida Image processing apparatus and imaging apparatus and method
JP2010071659A (en) * 2008-09-16 2010-04-02 Konica Minolta Medical & Graphic Inc Radiation solid-state detector
CN102042878A (en) * 2010-10-21 2011-05-04 电子科技大学 Infared nonuniformity correction method for removing temperature shift
CN105466563A (en) * 2014-09-09 2016-04-06 南京理工大学 Infrared thermal imager inhomogeneity two-point correction module and method
CN108240863A (en) * 2016-12-23 2018-07-03 南京理工大学 For real-time 2 asymmetric correction methods of Uncooled infrared camera
CN108846805A (en) * 2018-05-02 2018-11-20 重庆邮电大学 A kind of thermal-induced imagery two o'clock non-uniform correction method based on scene adaptive

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115755155A (en) * 2022-11-04 2023-03-07 成都善思微科技有限公司 Detector image quality monitoring method and system

Similar Documents

Publication Publication Date Title
JP3984936B2 (en) Imaging apparatus and imaging method
US8149305B2 (en) Method and apparatus to detect a dead pixel of an image sensor and method and apparatus to capture an image from an image sensor
US8441561B2 (en) Image pickup apparatus and control method that correct image data taken by image pickup apparatus
US7564491B2 (en) Pixel defect detecting/correcting device and pixel defect detecting/correcting method
US8330678B2 (en) Method of correcting nonuniformity of pixels in an OLED
US20160105656A1 (en) White balance method in multi-exposure imaging system
US9781365B2 (en) Method, apparatus and system providing adjustment of pixel defect map
US7557842B2 (en) Image processing circuit and image processing method
JP5848662B2 (en) Image processing apparatus and control method thereof
KR100978659B1 (en) Apparatus and method for controlling gain of color signal
JPWO2012057277A1 (en) Imaging device and dark current correction method thereof
JP4534825B2 (en) Defect inspection method and defect inspection apparatus
US20120092471A1 (en) Endoscopic device
US20040179132A1 (en) Camera system and camera control method
CN114757853A (en) Flat field correction function acquisition method and system and flat field correction method and system
CN112752041A (en) CMOS image sensor correction method, system and image processing equipment
JP3884952B2 (en) Imaging device
JP2006135381A (en) Calibration method and calibration apparatus
CN111383280A (en) Spatial remote sensing TDICCD camera non-uniformity correction method and device
WO2012086139A1 (en) Image pickup apparatus and method of forming image data
JP2012059213A (en) Binarization processing method and image processing apparatus
JP6995510B2 (en) Imaging device
US11228724B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium for interpolating pixel value of determined defective pixel to be corrected
KR100517324B1 (en) Method for inspecting dot badness in a flat panel display module
KR101450258B1 (en) Method for correcting time variant defect of infrared detector

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination