CN110493585A - Based on the method for manual white balance Overlay again after automatic white balance - Google Patents
Based on the method for manual white balance Overlay again after automatic white balance Download PDFInfo
- Publication number
- CN110493585A CN110493585A CN201910887699.0A CN201910887699A CN110493585A CN 110493585 A CN110493585 A CN 110493585A CN 201910887699 A CN201910887699 A CN 201910887699A CN 110493585 A CN110493585 A CN 110493585A
- Authority
- CN
- China
- Prior art keywords
- white balance
- colour temperature
- manual
- rgain
- bgain
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
- H04N9/73—Colour balance circuits, e.g. white balance circuits or colour temperature control
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Processing Of Color Television Signals (AREA)
Abstract
The present invention provides a kind of based on the method for manual white balance Overlay again after automatic white balance, true effect is unable to get using automatic white balance under certain special screnes, and carry out manual setting, the artificial option for increasing R ' and B ', artificial intervention is carried out to Rgain and Bgain, to achieve the effect that the true scene of reduction.It is of the present invention a kind of based on the method for manual white balance Overlay again after automatic white balance, when special scenes scene white balance can not restore, it is normal that artificial setting is allowed to reduction, achieve the effect that special scenes special setting, without directly switching manual mode, only need to finely tune that under automatic white balance, averaging effect can be reached.
Description
Technical field
The invention belongs to technical field of video monitoring, are based on after automatic white balance manual white balance again more particularly, to one kind
The method of Overlay.
Background technique
In video monitoring, under most of scene, we can obtain judging current light source by automatic white balance,
Then it compensates to eliminate wherein possible colour cast.The accuracy of judgement depends greatly on algorithm.In fact it is eternal
It will not be perfect.Ideally, camera it should be understood that in special scenes light source colour temperature, and carry out needed for color school
Just, it is white to make white displays, if not there is selection white balance appropriate, it will have apparent colour cast, for example, such as day
The often certificate photograph that we often take pictures if the personage that takes pictures does not have any problems using white background, but uses blue back
When scape and red background, the light of background reflection has occurred variation and (has been absorbed the light of other colors.It only reflects red
Color, blue), however the light on face or white light are impinged upon, if will lead to judgment basis may using automatic white balance
It is bias light, last portrait will colour cast.
Summary of the invention
In view of this, proposing the present invention is directed to overcome above-mentioned defect existing in the prior art based on after automatic white balance
The method of manual white balance Overlay again.
In order to achieve the above objectives, the technical scheme of the present invention is realized as follows:
Based on the method for manual white balance Overlay again after automatic white balance, include the following steps:
S1. colour temperature curve is drawn, the compensation Rgain and Bgain of corresponding curve are calculated;
S2. colour temperature calculates, and calculates the distributed areas of entire image neutral color temperature white blocks, and obtain most of white blocks collection
In the reference color temperature that arrives, to obtain corresponding Rgain and Bgain;
S3. if image has colour cast phenomenon, the R ' and B ' of manual white balance are adjusted.
Further, the method for drafting of the step S1 colour temperature curve is as follows:
S101. it shoots under different-colour environment, the colour temperature of solid background is shone;
S102. colour temperature is according to correction, and records the parameter Rgain and Bgain of correction R and channel B;
S103. by Rgain and Bgain and colour temperature, colour temperature curve is drawn.
Further, the solid background of the S101 uses but is not limited to white.
Further, the method that the step S2 colour temperature calculates is as follows:
S201. a frame image is divided into M*N block, the essential information of each piece of statistics;
S202. according to the statistical value in step a, white blocks all in image are found out, colour temperature is judged according to colour temperature curve;
S203. it obtains all possibility colour temperatures in image, takes colour temperature most, as current colour temperature.
Further, the Color temperature calculating method, essential information includes the quantity and R/ of white pixel in step S201
The mean value of the component in the channel G/B.
Further, the corresponding relationship of R ' and B ' and R/G/B and Rgain and Bgain is as follows in the step S3:
Rgain=G/ (R+R ');
Bgain=G/ (B+B ').
Compared with the existing technology, present invention has the advantage that
A method of based on manual white balance Overlay, special scenes white balance can not restore again after automatic white balance
When, artificial setting is allowed to reduction normally, achievees the effect that special scenes special setting, without directly switching manual mould
Formula only needs to finely tune that averaging effect can be reached under automatic white balance.
Detailed description of the invention
The attached drawing for constituting a part of the invention is used to provide further understanding of the present invention, schematic reality of the invention
It applies example and its explanation is used to explain the present invention, do not constitute improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is colour temperature curve Rgain/Bgain relation schematic diagram described in the embodiment of the present invention;
Fig. 2 is colour temperature curve Rgain/ colour temperature relation schematic diagram described in the embodiment of the present invention;
Fig. 3 is described in the embodiment of the present invention based on the stream of the method for manual white balance Overlay again after automatic white balance
Journey figure schematic diagram.
Specific embodiment
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase
Mutually combination.
In the description of the present invention, it is to be understood that, term " center ", " longitudinal direction ", " transverse direction ", "upper", "lower",
The orientation or positional relationship of the instructions such as "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outside" is
It is based on the orientation or positional relationship shown in the drawings, is merely for convenience of description of the present invention and simplification of the description, rather than instruction or dark
Show that signified device or element must have a particular orientation, be constructed and operated in a specific orientation, therefore should not be understood as pair
Limitation of the invention.In addition, term " first ", " second " etc. are used for description purposes only, it is not understood to indicate or imply phase
To importance or implicitly indicate the quantity of indicated technical characteristic.The feature for defining " first ", " second " etc. as a result, can
To explicitly or implicitly include one or more of the features.In the description of the present invention, unless otherwise indicated, " multiple "
It is meant that two or more.
In the description of the present invention, it should be noted that unless otherwise clearly defined and limited, term " installation ", " phase
Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can
To be mechanical connection, it is also possible to be electrically connected;It can be directly connected, can also can be indirectly connected through an intermediary
Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood by concrete condition
Concrete meaning in the present invention.
The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
Based on the method for manual white balance Overlay again after automatic white balance, as shown in figure 3, including the following steps:
S1. colour temperature curve is drawn, the compensation Rgain and Bgain for calculating corresponding curve are as shown in Figure 1, Figure 2;
S2. colour temperature calculates, and calculates the distributed areas of entire image neutral color temperature white blocks, and obtain most of white blocks collection
In the reference color temperature that arrives, to obtain corresponding Rgain and Bgain;
S3. if image has colour cast phenomenon, the R ' and B ' of manual white balance are adjusted.
The method for drafting of the step S1 colour temperature curve is as follows:
S101. it shoots under different-colour environment, the colour temperature of solid background is shone;
S102. colour temperature is according to correction, and records the parameter Rgain and Bgain of correction R and channel B;
S103. by Rgain and Bgain and colour temperature, colour temperature curve is drawn.
The solid background uses but is not limited to white.It can be realized under particular/special requirement by change background color, no
With blank level adjustment image effect manual after the automatic white balance of color.
The method that the step S2 colour temperature calculates is as follows:
S201. a frame image is divided into M*N block, the essential information of each piece of statistics;
S202. according to the statistical value in step a, white blocks all in image are found out, colour temperature is judged according to colour temperature curve;
S203. it obtains all possibility colour temperatures in image, takes colour temperature most, as current colour temperature.
The Color temperature calculating method, essential information includes quantity and the channel R/G/B of white pixel in step S201
The mean value of component.
When the reduction scene that automatic white balance can not be authentic and valid when certain special screnes, we are in dish
Artificially increase R ' and B in list ' option, artificial intervention is carried out to Rgain and Bgain, picture is made to become true effect.
Rgain=G/ (R+R ');
Bgain=G/ (B+B ').
By modification R ' and G ' adjustable range to change compensating parameter, specific ambient compensation occurs
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (6)
1. based on the method for manual white balance Overlay again after automatic white balance, characterized by the following steps:
S1. colour temperature curve is drawn, the compensation Rgain and Bgain of corresponding curve are calculated;
S2. colour temperature calculates, and calculates the distributed areas of entire image neutral color temperature white blocks, and obtain most of white blocks and focus on
Reference color temperature, to obtain corresponding Rgain and Bgain;
S3. if image has colour cast phenomenon, the R ' and B ' of manual white balance are adjusted.
2. according to claim 1 based on the method for manual white balance Overlay, feature exist again after automatic white balance
In: the method for drafting of the step S1 colour temperature curve is as follows:
S101. it shoots under different-colour environment, the colour temperature of solid background is shone;
S102. colour temperature is according to correction, and records the parameter Rgain and Bgain of correction R and channel B;
S103. by Rgain and Bgain and colour temperature, colour temperature curve is drawn.
3. according to claim 2 based on the method for manual white balance Overlay, feature exist again after automatic white balance
In: the solid background of the S101 uses but is not limited to white.
4. according to claim 1 based on the method for manual white balance Overlay, feature exist again after automatic white balance
In: the method that the step S2 colour temperature calculates is as follows:
S201. a frame image is divided into M*N block, the essential information of each piece of statistics;
S202. according to the statistical value in step a, white blocks all in image are found out, colour temperature is judged according to colour temperature curve;
S203. it obtains all possibility colour temperatures in image, takes colour temperature most, as current colour temperature.
5. according to claim 4 based on the method for manual white balance Overlay, feature exist again after automatic white balance
Essential information includes the quantity of white pixel and the component in the channel R/G/B in the Color temperature calculating method, step S201
Mean value.
6. according to claim 1 based on the method for manual white balance Overlay, feature exist again after automatic white balance
In: the corresponding relationship of R ' and B ' and R/G/B and Rgain and Bgain is as follows in the step S3:
Rgain=G/ (R+R ');
Bgain=G/ (B+B ').
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910887699.0A CN110493585A (en) | 2019-09-19 | 2019-09-19 | Based on the method for manual white balance Overlay again after automatic white balance |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910887699.0A CN110493585A (en) | 2019-09-19 | 2019-09-19 | Based on the method for manual white balance Overlay again after automatic white balance |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110493585A true CN110493585A (en) | 2019-11-22 |
Family
ID=68558737
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910887699.0A Pending CN110493585A (en) | 2019-09-19 | 2019-09-19 | Based on the method for manual white balance Overlay again after automatic white balance |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110493585A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114071109A (en) * | 2021-11-19 | 2022-02-18 | 信利光电股份有限公司 | Method for improving instability of white balance and camera module |
CN114697483A (en) * | 2020-12-31 | 2022-07-01 | 复旦大学 | Device and method for shooting under screen based on compressed sensing white balance algorithm |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102326392A (en) * | 2009-02-20 | 2012-01-18 | 韩国科亚电子股份有限公司 | The AWB adjustment |
US20160330368A1 (en) * | 2015-05-06 | 2016-11-10 | Xiaomi Inc. | Method and Device for Setting Shooting Parameter |
-
2019
- 2019-09-19 CN CN201910887699.0A patent/CN110493585A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102326392A (en) * | 2009-02-20 | 2012-01-18 | 韩国科亚电子股份有限公司 | The AWB adjustment |
US20160330368A1 (en) * | 2015-05-06 | 2016-11-10 | Xiaomi Inc. | Method and Device for Setting Shooting Parameter |
Non-Patent Citations (2)
Title |
---|
WZWXIAOZHENG: "自动白平衡(AWB)算法--- 2,色温计算", 《HTTPS://BLOG.CSDN.NET/WZWXIAOZHENG/ARTICLE/DETAILS/40586293》 * |
WZWXIAOZHENG: "自动白平衡(AWB)算法---1,色温曲线", 《HTTPS://BLOG.CSDN.NET/WZWXIAOZHENG/ARTICLE/DETAILS/38434391》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114697483A (en) * | 2020-12-31 | 2022-07-01 | 复旦大学 | Device and method for shooting under screen based on compressed sensing white balance algorithm |
CN114697483B (en) * | 2020-12-31 | 2023-10-10 | 复旦大学 | Under-screen camera shooting device and method based on compressed sensing white balance algorithm |
CN114071109A (en) * | 2021-11-19 | 2022-02-18 | 信利光电股份有限公司 | Method for improving instability of white balance and camera module |
CN114071109B (en) * | 2021-11-19 | 2024-04-12 | 信利光电股份有限公司 | Method for improving white balance instability and camera module |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103402102B (en) | The method and apparatus of dual camera camera system and white balance adjusting thereof | |
US8208059B2 (en) | Interchangeable lens and image pickup apparatus | |
KR101879161B1 (en) | Calibration of defective image sensor elements | |
US8830348B2 (en) | Imaging device and imaging method | |
JP5877277B2 (en) | Imaging apparatus and image display method | |
CN1649418B (en) | Image sensing apparatus | |
US7791640B2 (en) | Electronic camera and image generating apparatus generating stereo image | |
CN103426403B (en) | The correction image-pickup method of LED display, picture display process and bearing calibration | |
CN110493585A (en) | Based on the method for manual white balance Overlay again after automatic white balance | |
KR20120052286A (en) | Method and system for brightness correction for three-dimensional (3d) projection | |
CN103327259A (en) | Parameter adjusting method and device of camera for correcting LED (Light Emitting Diode) display screen | |
US20070002081A1 (en) | Image display device, and control method for the same | |
CN103390395A (en) | Method and electronic equipment for adjusting brightness of display | |
US9232144B2 (en) | Imaging device, electronic viewfinder, and display control method | |
CN105744177A (en) | Video exhibition stand light control method and system | |
JP2001036917A (en) | Digital camera and storage medium for processing picture signal | |
US9769391B2 (en) | Imaging device including light modulation element that varies between high and low transmittance for each segment | |
JP2013156540A (en) | Imaging apparatus and method for controlling the same | |
JP2014225828A (en) | Image pickup device | |
CN208353496U (en) | A kind of white balance correction device based on RGB-IR image data | |
JP2000324503A (en) | Television camera and white balance correcting method of television camera | |
CN111182242B (en) | RGB-IR image correction method and device | |
CN109218714A (en) | A kind of automatic correction method for camera lens shade | |
US8212837B1 (en) | Color processing pipelines generating a lower color bit-depth image compared to an unprocessed image from a wide-angle camera | |
US5576799A (en) | Camera photometry system |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191122 |
|
RJ01 | Rejection of invention patent application after publication |