CN114071109B - Method for improving white balance instability and camera module - Google Patents
Method for improving white balance instability and camera module Download PDFInfo
- Publication number
- CN114071109B CN114071109B CN202111409235.2A CN202111409235A CN114071109B CN 114071109 B CN114071109 B CN 114071109B CN 202111409235 A CN202111409235 A CN 202111409235A CN 114071109 B CN114071109 B CN 114071109B
- Authority
- CN
- China
- Prior art keywords
- white balance
- compensation
- falling point
- standard light
- color
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000004364 calculation method Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 claims description 3
- 239000000463 material Substances 0.000 claims description 3
- 230000008447 perception Effects 0.000 abstract description 3
- 238000003384 imaging method Methods 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 241001464837 Viridiplantae Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004880 explosion Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000008204 material by function Substances 0.000 description 1
- 238000004383 yellowing Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
- H04N23/84—Camera processing pipelines; Components thereof for processing colour signals
- H04N23/88—Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Color Television Image Signal Generators (AREA)
- Processing Of Color Television Signals (AREA)
Abstract
The invention discloses a method for improving unstable white balance, which comprises the following steps: on the basis of white balance correction under a standard light source, the camera module obtains a new white balance falling point of the enlarged color temperature frame area by enlarging the color temperature frame area of an unstable scene, calculates compensation values of an R channel, a G channel and a B channel of the new white balance falling point, and takes a linear distance between the new white balance falling point and the white balance falling point under the standard light source as a compensation weight value of white balance compensation to carry out white balance compensation on the camera module. The invention can prevent certain scene falling points from falling outside the color temperature frame area by enlarging the color temperature control area, and can simultaneously carry out color cast compensation according to the new white balance falling points and the distance between the white balance falling points under the standard light source, so that a customer can not generate color cast when shooting pictures of certain scenes, and can adjust the color cast degree according to own preference and the perception of the color cast of the image so as to obtain self-recognition satisfactory pictures.
Description
Technical Field
The invention belongs to the technical field of camera shooting, and particularly relates to a method for improving white balance instability and a camera shooting module.
Background
At present, information such as characters and scenes in thousands of worlds is acquired by a camera module and displayed on a screen, the production and processing process of the camera module is actually a process of stacking and combining various functional materials, and the camera module is generally composed of a lens, a voice coil motor, an infrared filter, a photosensitive chip, a PCB (printed circuit board) and the like. However, when shooting, white balance is unstable because some scene falling points can appear outside a color temperature frame. For example, when a green plant scene is shot, the white balance is easy to be unstable, the current optimization algorithm is to enlarge a color temperature frame so as to contain more white points and solve the unstable phenomenon, but the color temperature frame is enlarged to change the white balance falling point, so that the shot picture is subjected to white balance adjustment to bring color cast conditions, such as redness or yellowing, and the like, and therefore, the optimization is limited.
Disclosure of Invention
The invention aims to solve the technical problem of providing a method for improving unstable white balance and a camera module, which can improve the problem of unstable white balance, and simultaneously can enable a user to adjust color cast weight according to personal perception and personal preference so as to enable a shot image to adapt to the requirements of the user.
In order to solve the problems, the invention adopts the following technical scheme:
a method of improving white balance instability, the method comprising: on the basis of white balance correction under a standard light source, the camera module obtains a new white balance falling point of the enlarged color temperature frame area by enlarging the color temperature frame area of an unstable scene, calculates compensation values of an R channel, a G channel and a B channel of the new white balance falling point, and takes a linear distance between the new white balance falling point and the white balance falling point under the standard light source as a compensation weight value of white balance compensation to carry out white balance compensation on the camera module.
Further, the white balance correction of the camera module under the standard light source corrects the white balance falling point of the camera module by utilizing the white balance falling points of a plurality of different-color-temperature standard light sources so as to reduce the difference caused by objective factors such as materials among the camera modules, wherein the white balance falling point under the standard light source is the white balance falling point of a standard image shot under the standard light source, and the plurality of different-color-temperature standard light sources are a plurality of standard light sources simulating different-color-temperature scenes.
Further, the method for improving the white balance instability comprises the following steps:
s1, enlarging a color temperature frame area corresponding to an unstable scene, and acquiring a new white balance falling point;
s2, calculating compensation values of a new white balance falling point R channel, a new white balance falling point G channel and a new white balance falling point B channel;
s3, calculating the distance from the new white balance falling point to the white balance falling point under the standard light source, defining the distance as a compensation weight value of the color cast degree, and carrying out white balance compensation by a user according to different compensation weight values to obtain the color cast compensation effect required by the user.
Further, the step S3 includes the following steps:
s31, calculating the distance between the new white balance falling point and the white balance falling point under the standard light source;
s32, defining the distance in the step S31 as a compensation weight value of the color cast degree, wherein the percentage of the maximum compensation weight is 100%, the percentage of the minimum compensation weight is 0%, and the compensation weight value of the color cast degree corresponds to the distance one by one, namely the compensation weight value of the color cast degree of the new white balance falling point corresponds to the distance one by one, namely the R, G, B compensation value of the color cast degree corresponding to a certain distance is obtained by one correspondence between the color cast degree of the new white balance falling point and R, G, B without color cast under a standard light source;
s33, assuming that the maximum compensation weight value is a 256 variable value, a user can select any value between 1 and 256 as the color cast weight value to perform white balance compensation.
Further, in step S32, the color cast degree compensation weight value and the R, G, B compensation value of the color cast degree corresponding to each different distance are calculated according to the algorithm program built in the debugging platform and applied to the white balance compensation algorithm of the camera module, and the user directly calls the relevant compensation value according to the compensation weight value during shooting.
Preferably, when the new white balance drop point is obtained in step S1, all white points of the color temperature frame area are obtained, and then the new white balance drop point is calculated according to the new white point set.
Preferably, the number of white pixels in the block is used as a statistical standard, and the situations of over-explosion and too few white pixels in the block are not included.
Further, the calculation of the distance is performed according to a coordinate system, wherein the coordinate system is a plane coordinate system with R/G as a horizontal axis and B/G as a vertical axis.
The image pickup platform comprises an image pickup module, a memory and an image processor, wherein the memory stores programs and data of the method for improving the instability of white balance.
The beneficial effects of adopting above-mentioned technical scheme to produce lie in:
the invention can prevent certain scene falling points from falling outside the color temperature control area by enlarging the color temperature control area, and can simultaneously carry out color cast compensation according to the new white balance falling points and the distance between the white balance falling points under the standard light source, so that a customer can not generate color cast when shooting pictures of certain scenes, and can adjust the color cast degree according to own preference and the perception of the color cast of the image so as to obtain self-recognition satisfactory pictures.
Drawings
Fig. 1 is a flow chart of the method of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to specific embodiments of the present invention and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention relates to a method for improving unstable white balance and a camera module adopting the method for debugging, wherein the method is used for shooting some scenes by a user when the white balance is unstable, and the method is as follows: on the basis of white balance correction under a standard light source, the camera module obtains a new white balance falling point of the enlarged color temperature frame area by enlarging the color temperature frame area of an unstable scene, calculates compensation values of an R channel, a G channel and a B channel of the new white balance falling point, and takes a linear distance between the new white balance falling point and the white balance falling point under the standard light source as a compensation weight value of white balance compensation to carry out white balance compensation on the camera module. The white balance correction of the camera module under the standard light source is to correct the white balance falling point of the camera module by utilizing the white balance falling points under the standard light sources with different color temperatures, so as to find out the optimal white balance falling point of the camera module under the standard light sources with different color temperatures, reduce the difference between the camera modules caused by objective factors such as materials, and prevent that the scene falling point is not included in the enlarged color temperature frame after the color temperature frame area is enlarged when an unstable scene is shot. The white balance falling point under the standard light source refers to the white balance falling point of a standard image shot under the standard light source, and the plurality of standard light sources with different color temperatures refer to a plurality of standard light sources simulating different color temperature scenes.
As shown in fig. 1, the method for improving white balance instability according to the present invention comprises the following steps:
s1, enlarging a color temperature frame area corresponding to an unstable scene, and acquiring a new white balance falling point; in the step, the color temperature frame area is enlarged based on the color temperature frame area under the standard light source, parameters such as an enlarging coefficient and the like are stored in a debugging file of an imaging platform (a mobile phone or a camera), and are written in when the imaging module is debugged; in this step, when a new white balance drop point is obtained, all white points of the color temperature frame area are obtained, and then the new white balance drop point is calculated according to the new white point set. The algorithm of the white point is iterated according to the updating of the platform, and is not limited to the conventional gray world algorithm, the brightness weighted gray world algorithm and the total reflection algorithm or the combination of two or more, the algorithm program is stored in the platform, and the algorithm program is calculated in an image processor of the platform.
S2, calculating compensation values of a new white balance falling point R channel, a new white balance falling point G channel and a new white balance falling point B channel;
s3, calculating the distance from the new white balance falling point to the white balance falling point under the standard light source, defining the distance as a compensation weight value of the color cast degree, and carrying out white balance compensation by a user according to different compensation weight values to obtain the color cast compensation effect required by the user.
Wherein the step S3 includes the steps of:
s31, calculating the distance between the new white balance falling point and the white balance falling point under the standard light source, wherein the distance is a straight line distance;
s32, defining the distance in the step S31 as a compensation weight value of the color cast degree, wherein the percentage of the maximum compensation weight is 100%, the percentage of the minimum compensation weight is 0%, and the compensation weight value of the color cast degree corresponds to the distance one by one, namely the compensation weight value of the color cast degree of the new white balance falling point corresponds to the distance one by one, namely the R, G, B compensation value of the color cast degree corresponding to a certain distance is obtained by one correspondence between the color cast degree of the new white balance falling point and R, G, B without color cast under a standard light source;
s33, assuming that the maximum compensation weight value is a 256 variable value, a user can select any value between 1 and 256 as a color cast weight value to perform white balance compensation; 256 in this step may be other values, and in general, 256 is more likely to correspond to the R, G, B compensation value, so the R, G, B compensation value of the color cast degree in step S32 is calculated according to the compensation weight value in actual use.
The color cast degree compensation weight value and R, G, B compensation value of the color cast degree corresponding to each different distance in the step S32 are calculated according to the algorithm program built in the debugging platform and applied to the white balance compensation algorithm of the camera module, and the user directly calls the relevant compensation value according to the compensation weight value during shooting.
For the present invention, the calculation of the distance is performed based on a coordinate system, which is a planar coordinate system with R/G as the horizontal axis and B/G as the vertical axis.
The invention provides an image pickup platform, which comprises an image pickup module, a memory and an image processor, wherein the memory is an EEPROM memory, and the memory stores programs and data for improving the unstable white balance method according to the technical scheme.
Claims (6)
1. A method of improving white balance instability, the method comprising: on the basis of white balance correction under a standard light source, the camera module obtains a new white balance falling point of an enlarged color temperature frame area by enlarging the color temperature frame area of an unstable scene, calculates compensation values of an R channel, a G channel and a B channel of the new white balance falling point, and takes a linear distance between the new white balance falling point and the white balance falling point under the standard light source as a compensation weight value of white balance compensation to carry out white balance compensation on the camera module;
the white balance correction of the camera module under the standard light source is to correct the white balance falling point of the camera module by utilizing the white balance falling points of a plurality of different-color-temperature standard light sources so as to reduce the difference caused by objective factors such as materials among the camera modules, wherein the white balance falling point under the standard light source is the white balance falling point of a standard image shot under the standard light source, and the plurality of different-color-temperature standard light sources are the standard light sources simulating different-color-temperature scenes; the method specifically comprises the following steps:
s1, enlarging a color temperature frame area corresponding to an unstable scene, and acquiring a new white balance falling point;
s2, calculating compensation values of a new white balance falling point R channel, a new white balance falling point G channel and a new white balance falling point B channel;
s3, calculating the distance from the new white balance falling point to the white balance falling point under the standard light source, defining the distance as a compensation weight value of the color cast degree, and carrying out white balance compensation by a user according to different compensation weight values to obtain the color cast compensation effect required by the user;
wherein, the step S3 includes the following steps:
s31, calculating the distance between the new white balance falling point and the white balance falling point under the standard light source;
s32, defining the distance in the step S31 as a compensation weight value of the color cast degree, wherein the percentage of the maximum compensation weight is 100%, the percentage of the minimum compensation weight is 0%, and the compensation weight value of the color cast degree corresponds to the distance one by one, namely the compensation weight value of the color cast degree of the new white balance falling point corresponds to the distance one by one, namely the R, G, B compensation value of the color cast degree corresponding to a certain distance is obtained by one correspondence between the color cast degree of the new white balance falling point and R, G, B without color cast under a standard light source;
s33, assuming that the maximum compensation weight value is a 256 variable value, a user can select any value between 1 and 256 as the color cast weight value to perform white balance compensation.
2. A method of improving white balance instability according to claim 1, wherein: in step S32, the color cast degree compensation weight value and R, G, B compensation value of the color cast degree corresponding to each different distance are calculated according to the algorithm program built in the debugging platform and applied to the white balance compensation algorithm of the camera module, and the user directly calls the relevant compensation value according to the compensation weight value during shooting.
3. A method for improving white balance instability according to any of claims 1-2, wherein: when the new white balance drop point is obtained in the step S1, all white points of the color temperature frame area are obtained, and then the new white balance drop point is calculated according to the new white point set.
4. A method of improving white balance instability according to claim 3, wherein: the white points are all statistical standards of the number of the white pixels in the block, and the situation of overexposure and too few white pixels in the block is not included.
5. A method of improving white balance instability according to claim 4, wherein: the calculation of the distance is performed according to a coordinate system, wherein the coordinate system is a plane coordinate system with R/G as a horizontal axis and B/G as a vertical axis.
6. A camera platform, its characterized in that: comprising an image capturing module, a memory, and an image processor, wherein the memory stores therein a program and data for the method for improving white balance instability according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111409235.2A CN114071109B (en) | 2021-11-19 | 2021-11-19 | Method for improving white balance instability and camera module |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111409235.2A CN114071109B (en) | 2021-11-19 | 2021-11-19 | Method for improving white balance instability and camera module |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114071109A CN114071109A (en) | 2022-02-18 |
CN114071109B true CN114071109B (en) | 2024-04-12 |
Family
ID=80276065
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111409235.2A Active CN114071109B (en) | 2021-11-19 | 2021-11-19 | Method for improving white balance instability and camera module |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114071109B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004312553A (en) * | 2003-04-09 | 2004-11-04 | Fuji Photo Film Co Ltd | White balance control method and imaging apparatus |
CN102685513A (en) * | 2012-05-21 | 2012-09-19 | 信利光电(汕尾)有限公司 | White balance processing method and device |
JP2013013134A (en) * | 2012-09-05 | 2013-01-17 | Nikon Corp | Imaging apparatus |
CN104581105A (en) * | 2015-02-03 | 2015-04-29 | 中国人民解放军国防科学技术大学 | Automatic white balance method based on color temperature range conversion weight map |
CN106973242A (en) * | 2017-05-16 | 2017-07-21 | 信利光电股份有限公司 | A kind of light source compensating method of camera module |
CN106973279A (en) * | 2017-05-26 | 2017-07-21 | 信利光电股份有限公司 | A kind of camera module white balance debugging method and device |
CN109729332A (en) * | 2018-12-12 | 2019-05-07 | 珠海亿智电子科技有限公司 | A kind of automatic white balance antidote and system |
CN110493585A (en) * | 2019-09-19 | 2019-11-22 | 天津英田视讯科技有限公司 | Based on the method for manual white balance Overlay again after automatic white balance |
CN112365626A (en) * | 2020-10-19 | 2021-02-12 | 合肥晟泰克汽车电子股份有限公司 | Vehicle-mounted camera picture processing method |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100566564B1 (en) * | 2005-04-25 | 2006-03-31 | 엠텍비젼 주식회사 | Method and apparatus for detecting color temperature |
JP5545191B2 (en) * | 2010-11-30 | 2014-07-09 | ブラザー工業株式会社 | Image processing apparatus and image processing program |
-
2021
- 2021-11-19 CN CN202111409235.2A patent/CN114071109B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004312553A (en) * | 2003-04-09 | 2004-11-04 | Fuji Photo Film Co Ltd | White balance control method and imaging apparatus |
CN102685513A (en) * | 2012-05-21 | 2012-09-19 | 信利光电(汕尾)有限公司 | White balance processing method and device |
JP2013013134A (en) * | 2012-09-05 | 2013-01-17 | Nikon Corp | Imaging apparatus |
CN104581105A (en) * | 2015-02-03 | 2015-04-29 | 中国人民解放军国防科学技术大学 | Automatic white balance method based on color temperature range conversion weight map |
CN106973242A (en) * | 2017-05-16 | 2017-07-21 | 信利光电股份有限公司 | A kind of light source compensating method of camera module |
CN106973279A (en) * | 2017-05-26 | 2017-07-21 | 信利光电股份有限公司 | A kind of camera module white balance debugging method and device |
CN109729332A (en) * | 2018-12-12 | 2019-05-07 | 珠海亿智电子科技有限公司 | A kind of automatic white balance antidote and system |
CN110493585A (en) * | 2019-09-19 | 2019-11-22 | 天津英田视讯科技有限公司 | Based on the method for manual white balance Overlay again after automatic white balance |
CN112365626A (en) * | 2020-10-19 | 2021-02-12 | 合肥晟泰克汽车电子股份有限公司 | Vehicle-mounted camera picture processing method |
Non-Patent Citations (3)
Title |
---|
Automatic white balance based on adaptive feature selection with standard illuminants;Sujung Kim;2008 15th IEEE International Conference on Image Processing;20081212;全文 * |
基于人工欠曝光融合和白平衡技术的水下图像增强算法;陶冶;计算机应用;20210527;全文 * |
论摄像机色彩调整;林凡;;有线电视技术;20171215(12);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN114071109A (en) | 2022-02-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9288392B2 (en) | Image capturing device capable of blending images and image processing method for blending images thereof | |
CN108234971B (en) | White balance parameter determines method, white balance adjustment method and device, storage medium, terminal | |
CN108009997B (en) | Method and device for adjusting image contrast | |
TWI493967B (en) | Automatic color correction method and color correction module thereof | |
CN110266954B (en) | Image processing method, image processing device, storage medium and electronic equipment | |
CN113313661A (en) | Image fusion method and device, electronic equipment and computer readable storage medium | |
US20220270345A1 (en) | Subject detection method and apparatus, electronic device, and computer-readable storage medium | |
CN111711767A (en) | Automatic exposure control method and electronic equipment | |
CN112218065B (en) | Image white balance method, system, terminal device and storage medium | |
CN111031256B (en) | Image processing method, image processing device, storage medium and electronic equipment | |
CN106803920B (en) | Image processing method and device and intelligent conference terminal | |
CN114071109B (en) | Method for improving white balance instability and camera module | |
CN111784598B (en) | Training method of tone mapping model, tone mapping method and electronic equipment | |
CN109410308A (en) | Image processing method and device, electronic equipment, computer readable storage medium | |
CN112839182B (en) | Automatic exposure control system and method | |
CN113284062A (en) | Lens shadow correction method, device, medium and terminal | |
US7305126B2 (en) | Photo dazzle color temperature correction | |
CN115474028B (en) | Industrial camera color correction device and method | |
CN114071108B (en) | Image processing method, apparatus, electronic device, and computer-readable storage medium | |
CN113542615B (en) | Method for improving effect consistency of camera at terminal | |
CN114189666B (en) | Method for improving mixed color image quality effect of camera and shooting device | |
CN114554106B (en) | Automatic exposure method, device, image acquisition method, medium and equipment | |
CN114205573B (en) | Lens shading correction method for camera imaging into circular picture and camera module | |
CN112991233B (en) | Image correction method and device | |
WO2023189456A1 (en) | Information processing device, information processing method, and recording medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |