[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN104079909A - Automatic white balance method and device for image - Google Patents

Automatic white balance method and device for image Download PDF

Info

Publication number
CN104079909A
CN104079909A CN201410353219.XA CN201410353219A CN104079909A CN 104079909 A CN104079909 A CN 104079909A CN 201410353219 A CN201410353219 A CN 201410353219A CN 104079909 A CN104079909 A CN 104079909A
Authority
CN
China
Prior art keywords
value
white balance
color temperature
colour temperature
present 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.)
Granted
Application number
CN201410353219.XA
Other languages
Chinese (zh)
Other versions
CN104079909B (en
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.)
Shenzhen Infinova Ltd
Original Assignee
Shenzhen Infinova Ltd
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 Shenzhen Infinova Ltd filed Critical Shenzhen Infinova Ltd
Priority to CN201410353219.XA priority Critical patent/CN104079909B/en
Publication of CN104079909A publication Critical patent/CN104079909A/en
Application granted granted Critical
Publication of CN104079909B publication Critical patent/CN104079909B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Color Television Image Signal Generators (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

The invention discloses an automatic white balance method. The method comprises the following steps: obtaining the driving current value of an LED white-light lamp; judging whether the driving current value is larger than the preset threshold value or not, if the driving current value is larger than the preset threshold value, setting the environment color temperature value of the current image to be the preset color temperature value, and if the driving current value is less than the preset threshold value, calculating the environment color temperature value of the current image; performing color temperature gain calculation according to the environment color temperature value of the current image to obtain gain coefficients u and v; performing color temperature adjusting on a next image according to the gain coefficients u and v; repeating the steps until the color difference signals Cr and Cb are less than the preset threshold value. The invention further discloses an automatic white balance device. The automatic white balance method and device disclosed by the invention can effectively reduce the influences of a lighting supplementary lamp on white balance, and improves the white balance effect and imaging quality.

Description

A kind of image auto white balance method and device
Technical field
The present invention relates to digital imagery field, particularly relate to a kind of image auto white balance method and device.
Background technology
The basic conception of white balance is " no matter under any light source, white object can be reduced to white ".Automatic white balance and automatic exposure are all the necessary functions of front end digital imaging apparatus, and the quality of its realization directly affects the quality of video.
Natural colour temperature span is extremely wide, and we can be low to moderate 1800K by common high-pressure sodium light path lamp color temperature, and the sunny blue sky colour temperature in overhead, waters can reach 27000K, and Automatic white balance algorithm can be guaranteed the good color performance of imaging device in different-colour environment.
Because the sensor devices of headend equipment exists limitation, in the time that illumination condition is bad, can not present good video effect, be mainly manifested in that noise increases, details resolution capability declines, dark space object cannot identification etc. problem, safety-security area addresses the above problem by the scheme that increases secondary light source at present.The secondary light source of current industry mainly contains two kinds, be infrared LED lamp and white LED lamp, both main distinctions are light wavelength difference, infrared LED lamp can only be used for black and white video, for not only needing good low photograph effect but also needing the occasion of color video also inapplicable, owing to there is heating and life problems, infrared LED lamp is endured to the fullest extent and is denounced always simultaneously.And white LED lamp is the novel green lighting of energy-conserving and environment-protective, it is a kind of visible ray, belong to cold light source, so can not generate heat and the life-span long, be widely used in the floor light of safety monitoring, because imaging device night is in the floor light situation of white light, the image of picked-up is colored, and can meet special applications is colored requirement for image always.
Because LED white light has its specific wavelength and light characteristics, can be on white balance time, colour temperature be calculated and is produced certain impact, affects white balance effect and image quality.
Summary of the invention
Technical problem to be solved by this invention is: a kind of auto white balance method is provided, and the method can effectively reduce the impact of LED white light on white balance, improves image quality.
In order to solve the problems of the technologies described above, the technical solution used in the present invention is:
A kind of auto white balance method, comprises step: the driving current value of obtaining LED white light; Judge whether described driving current value exceedes default threshold value, if so, the environment colour temperature of present image is set to default color temperature value, if not, calculates the environment color temperature value of present image; Carry out colour temperature gain according to the environment color temperature value of present image and calculate, obtain gain coefficient u and v; According to described gain coefficient u and v, lower piece image is carried out to colour temperature adjusting; Repeat above-mentioned steps, until color difference signal Cr and Cb are less than default threshold value.
For solving the problems of the technologies described above, the present invention also provides a kind of another technical scheme:
A kind of Automatic white balance device, comprises electric current acquisition module, judge module, gain calculation module, colour temperature adjustment module and loop module; Described electric current acquisition module is for obtaining the driving current value of LED white light; Described judge module is for judging whether described driving current value exceedes default threshold value, and if so, the environment colour temperature of present image is set to default color temperature value, if not, calculates the environment color temperature value of present image; Described gain calculation module is calculated for carry out colour temperature gain according to the environment color temperature value of present image, obtains gain coefficient u and v; Described colour temperature adjustment module is for carrying out colour temperature adjusting according to described gain coefficient u and v to lower piece image; Described loop module is used for repeating to call above-mentioned module, until color difference signal Cr and Cb are less than default threshold value.
Beneficial effect of the present invention is: be different from the white balance effect and the not good problem of imaging effect that in prior art, exist, the present invention is by including the drive current of LED white light in the reference factor of white balance control, judge whether described driving current value exceedes default threshold value, if, the environment colour temperature of present image is set to default color temperature value, therefore, effectively reduce the impact of LED white light on white balance, thereby improve effect and the image quality of Automatic white balance.
Brief description of the drawings
Fig. 1 is the manner of execution flow chart of a kind of auto white balance method in an embodiment of the present invention;
Fig. 2 is the functional block diagram of a kind of Automatic white balance device in an embodiment of the present invention;
Main label declaration:
10-electric current acquisition module; 20-judge module; 30-gain calculation module; 40-colour temperature adjustment module; 50-loop module.
Embodiment
Explanation of nouns:
The vision signal in color difference signal Cr and Cb:YCbCr space represents, Cb is the difference of blue component and luminance signal, and Cr is the difference of red component and luminance signal;
Gain coefficient u and v: system custom parameter, u and v are respectively the gain correction factor of Cr and Cb
Constraints α, β and γ: system custom parameter, α, β and γ are default binding occurrence, are obtained by a large amount of scrnario testings and lamp box test statistics;
By describing technology contents of the present invention, structural feature in detail, being realized object and effect, below in conjunction with execution mode and coordinate accompanying drawing to be explained in detail.
The design of most critical of the present invention is: by judging that LED white light drive current sets the image-context colour temperature of Automatic white balance, effectively reduce the impact of LED white light on white balance, thereby improve effect and the image quality of Automatic white balance.
Refer to Fig. 1, a kind of auto white balance method, comprises step:
S1, obtain the driving current value of LED white light;
S2, judge whether described driving current value exceedes default threshold value, if so, the environment colour temperature of present image is set to default color temperature value, if not, calculates the environment color temperature value of present image;
S3, carry out colour temperature gain according to the environment color temperature value of present image and calculate, obtain gain coefficient u and v;
S4, according to described gain coefficient u and v, lower piece image is carried out to colour temperature adjusting;
S5, repeat above-mentioned steps, until color difference signal Cr and Cb are less than default threshold value.
The designed Automatic white balance of the present invention is carried out at yuv space, does not consider brightness signal Y, uses color difference signal Cr, Cb to carry out computing.First processor obtains color difference signal Cr, Cb, in the time that color difference signal Cr, Cb are greater than default colour temperature threshold value, the environment colour temperature of computed image, and according to the calculating that gains of environment colour temperature, obtain and adjust gain coefficient u and v, then u, v value return to lower piece image and do colour temperature adjusting, if next width color temp is estimated also not pass through, continue iteration, otherwise, finishing iteration process,, when Cr, Cb are less than default threshold value, has completed the computing of an Automatic white balance.
Wherein, it is a most important ring in three basic operations of video camera Automatic white balance algorithm that environment colour temperature is calculated, color temperature estimation must estimate correct aberration, the correctness of guarantee subsequent operation, particularly in the time that reference picture is full of large-area colour, algorithm must have certain robustness, to ensure the integrality of color.
The present invention is directed to colour temperature and calculate this link, be optimized processing, take into full account the impact that LED white light uses reality, therefore, as color difference signal Cr, when Cb is greater than default colour temperature threshold value, obtain the driving current value of LED white light, by described drive current and default current threshold are compared, judge the leading colour temperature of colour temperature of current environment, the colour temperature that LED white light is described in the time that drive current is greater than current threshold is the leading colour temperature of present image, the colour temperature of all the other light is less for the impact of imaging device, therefore the environment color temperature value of present image is determined to the colour temperature of LED white light, described colour temperature is set as 6000K to 7000K in the present embodiment, thereby the colour temperature while effectively reducing low photograph is calculated erroneous judgement.
From foregoing description, beneficial effect of the present invention is: by the collection of LED white light drive current and judgement being adjusted to the environment colour temperature of present image, the colour temperature while effectively reducing low photograph is calculated erroneous judgement, improves effect and the image quality of Automatic white balance.
Further, in order to calculate more accurately the environment color temperature value of present image, present embodiment is carried out color temperature estimation and obtains the environment color temperature value of present image under the constraints α default, β and γ to the environment colour temperature of present image, wherein, α, β and γ are default binding occurrence, α, β and γ obtain by a large amount of scrnario testings and lamp box test statistics the constraints of finally deciding, as shown in Equation 1:
- &alpha; < cb < &alpha; - &beta; < cr < &beta; - &gamma; < cb + cr < - &gamma;
Formula 1
Further, in the present embodiment, in the time that described driving current value exceedes default threshold value, the environment colour temperature of present image is set to 6500K.
Further, in the above-described embodiment, in the described step front step that also comprises of " obtaining the driving current value of LED white light ":
Obtain the brightness value of present image, adjust aperture size, shutter speed, automatic gain and LED white light drive current according to described brightness value and carry out automatic exposure.
Present embodiment is included LED white light drive current in the adjustment parameter of automatic exposure in, makes automatic exposure more accurate.
Because there is certain impact to the quality of image in automatic gain, therefore, in order to improve the quality of image, reduce the impact of automatic gain on image, in the time carrying out automatic exposure, preferential adjust aperture size and shutter speed is carried out automatic exposure, in the time that aperture size and shutter speed exceed default threshold value, then adjust automatic gain and LED white light drive current carries out automatic exposure.
In the prior art, when LED white light is used to light filling, only be provided with and open and close or high, medium and low some shelves, therefore, in the time opening LED white light or adjust LED white light, the light of environment and colour temperature have obvious saltus step, thereby Automatic white balance is produced to impact impact, reduce the effect of white balance.Therefore, in the above-described embodiment, adjust the drive current of LED white light by PWM voltage regulator, realize the wireless adjustment of LED white light drive current, and the drive current initial value of LED white light is set to minimum firing current.Thereby, realize LED white light and drive the linear adjustment of electric wire, further improve Automatic white balance effect.
Refer to Fig. 2, the present invention also provides a kind of Automatic white balance device, and this device comprises electric current acquisition module 10, judge module 20, gain calculation module 30, colour temperature adjustment module 40 and loop module 50;
Described electric current acquisition module 10 is for obtaining the driving current value of LED white light;
Described judge module 20 is for judging whether described driving current value exceedes default threshold value, and if so, the environment colour temperature of present image is set to default color temperature value, if not, calculates the environment color temperature value of present image;
Described gain calculation module 30 is calculated for carry out colour temperature gain according to the environment color temperature value of present image, obtains gain coefficient u and v;
Described colour temperature adjustment module 40 is for carrying out colour temperature adjusting according to described gain coefficient u and v to lower piece image;
Described loop module 50 is called above-mentioned module for repeating, until color difference signal Cr and Cb are less than default threshold value.
Further, described judge module 20 comprises color temperature estimation unit, and described color temperature estimation unit for carrying out color temperature estimation and obtain the environment color temperature value of present image under default constraints α, β and γ to the environment colour temperature of present image.
Further, described judge module 20 comprises colour temperature setting unit, and described colour temperature setting unit is in the time that described driving current value exceedes default threshold value, and the environment colour temperature of present image is set to 6500K.
Further, described Automatic white balance device also comprises automatic exposure module, described automatic exposure module, for obtaining the brightness value of present image, is adjusted aperture size, shutter speed, automatic gain and LED white light drive current according to described brightness value and is carried out automatic exposure.
Further, described automatic exposure module comprises parameter set unit, described parameter set unit is in the time carrying out automatic exposure, preferential adjustment aperture size and shutter speed are carried out automatic exposure, in the time that aperture size and shutter speed exceed default threshold value, then adjust automatic gain and LED white light drive current carries out automatic exposure.
In sum, auto white balance method provided by the invention and device can effectively reduce the impact of LED white light on Automatic white balance, improve effect and the image quality of Automatic white balance, simultaneously, environment colour temperature of the present invention is calculated accurately, can effectively prevent from, because of the impact that Automatic white balance is caused that suddenlys change of LED white light light, further improving image quality.
The foregoing is only embodiments of the invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes specification of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. an auto white balance method, is characterized in that, comprises step:
Obtain the driving current value of LED white light;
Judge whether described driving current value exceedes default threshold value, if so, the environment colour temperature of present image is set to default color temperature value, if not, calculates the environment color temperature value of present image;
Carry out colour temperature gain according to the environment color temperature value of present image and calculate, obtain gain coefficient u and v;
According to described gain coefficient u and v, lower piece image is carried out to colour temperature adjusting;
Repeat above-mentioned steps, until color difference signal Cr and Cb are less than default threshold value.
2. auto white balance method according to claim 1, it is characterized in that, the method for described the environment color temperature value of present image " calculate " is: the environment color temperature value that the environment colour temperature of present image is carried out color temperature estimation and obtained present image under default constraints.
3. auto white balance method according to claim 1, is characterized in that, in the time that described driving current value exceedes default threshold value, the environment colour temperature of present image is set to 6500K.
4. auto white balance method according to claim 1, is characterized in that, in the described step front step that also comprises of " obtaining the driving current value of LED white light ":
Obtain the brightness value of present image, adjust aperture size, shutter speed, automatic gain and LED white light drive current according to described brightness value and carry out automatic exposure.
5. auto white balance method according to claim 4, it is characterized in that, in the time carrying out automatic exposure, preferential adjustment aperture size and shutter speed are carried out automatic exposure, in the time that aperture size and shutter speed exceed default threshold value, then adjust automatic gain and LED white light drive current carries out automatic exposure.
6. an Automatic white balance device, is characterized in that, comprises electric current acquisition module, judge module, gain calculation module, colour temperature adjustment module and loop module;
Described electric current acquisition module is for obtaining the driving current value of LED white light;
Described judge module is for judging whether described driving current value exceedes default threshold value, and if so, the environment colour temperature of present image is set to default color temperature value, if not, calculates the environment color temperature value of present image;
Described gain calculation module is calculated for carry out colour temperature gain according to the environment color temperature value of present image, obtains gain coefficient u and v;
Described colour temperature adjustment module is for carrying out colour temperature adjusting according to described gain coefficient u and v to lower piece image;
Described loop module is used for repeating to call above-mentioned module, until color difference signal Cr and Cb are less than default threshold value.
7. Automatic white balance device according to claim 6, it is characterized in that, described judge module comprises color temperature estimation unit, and described color temperature estimation unit for carrying out color temperature estimation and obtain the environment color temperature value of present image under default constraints to the environment colour temperature of present image.
8. Automatic white balance device according to claim 6, it is characterized in that, described judge module comprises colour temperature setting unit, and described colour temperature setting unit is in the time that described driving current value exceedes default threshold value, and the environment colour temperature of present image is set to 6500K.
9. Automatic white balance device according to claim 6, it is characterized in that, also comprise automatic exposure module, described automatic exposure module, for obtaining the brightness value of present image, is adjusted aperture size, shutter speed, automatic gain and LED white light drive current according to described brightness value and is carried out automatic exposure.
10. Automatic white balance device according to claim 9, it is characterized in that, described automatic exposure module comprises parameter set unit, described parameter set unit is in the time carrying out automatic exposure, preferential adjustment aperture size and shutter speed are carried out automatic exposure, in the time that aperture size and shutter speed exceed default threshold value, then adjust automatic gain and LED white light drive current carries out automatic exposure.
CN201410353219.XA 2014-07-23 2014-07-23 A kind of image auto white balance method and device Active CN104079909B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410353219.XA CN104079909B (en) 2014-07-23 2014-07-23 A kind of image auto white balance method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410353219.XA CN104079909B (en) 2014-07-23 2014-07-23 A kind of image auto white balance method and device

Publications (2)

Publication Number Publication Date
CN104079909A true CN104079909A (en) 2014-10-01
CN104079909B CN104079909B (en) 2016-04-13

Family

ID=51600921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410353219.XA Active CN104079909B (en) 2014-07-23 2014-07-23 A kind of image auto white balance method and device

Country Status (1)

Country Link
CN (1) CN104079909B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301702A (en) * 2014-10-31 2015-01-21 杭州海康威视数字技术股份有限公司 Color temperature value processing method and device and camera capable of adjusting color temperature
CN104618702A (en) * 2014-12-31 2015-05-13 湖南国科微电子有限公司 White block hypothesis based automatic white balance method of digital camera device
CN106375678A (en) * 2016-11-10 2017-02-01 北京小米移动软件有限公司 Method, device and system for adjusting shooting parameters
CN106793329A (en) * 2017-01-06 2017-05-31 广东德洛斯照明工业有限公司 A kind of automatic light-supplementing method based on RGBW
CN111988531A (en) * 2019-05-21 2020-11-24 北京小米移动软件有限公司 Light supplementing module, light supplementing control method of light supplementing module, terminal and device
US11252794B2 (en) 2019-03-29 2022-02-15 Electronic Theatre Controls, Inc. Systems, devices, and methods for controlling an LED light source based on a color temperature scale factor
CN114071106A (en) * 2020-08-10 2022-02-18 合肥君正科技有限公司 Cold-start rapid white balance method for low-power-consumption equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005020589A2 (en) * 2003-08-26 2005-03-03 Casio Computer Co., Ltd. Image pickup apparatus and white balance control method
CN101390010B (en) * 2006-02-21 2011-02-09 诺基亚公司 Color balanced camera with a flash light unit
CN102651818A (en) * 2011-02-28 2012-08-29 索尼公司 Image processing device, image processing method and program
CN103338383A (en) * 2013-06-25 2013-10-02 深圳市中兴移动通信有限公司 White balance calibrating method and device
CN103354601A (en) * 2013-07-31 2013-10-16 广东欧珀移动通信有限公司 Method and system for improving shooting effect of flash lamp

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005020589A2 (en) * 2003-08-26 2005-03-03 Casio Computer Co., Ltd. Image pickup apparatus and white balance control method
CN101390010B (en) * 2006-02-21 2011-02-09 诺基亚公司 Color balanced camera with a flash light unit
CN102651818A (en) * 2011-02-28 2012-08-29 索尼公司 Image processing device, image processing method and program
CN103338383A (en) * 2013-06-25 2013-10-02 深圳市中兴移动通信有限公司 White balance calibrating method and device
CN103354601A (en) * 2013-07-31 2013-10-16 广东欧珀移动通信有限公司 Method and system for improving shooting effect of flash lamp

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301702A (en) * 2014-10-31 2015-01-21 杭州海康威视数字技术股份有限公司 Color temperature value processing method and device and camera capable of adjusting color temperature
CN104618702A (en) * 2014-12-31 2015-05-13 湖南国科微电子有限公司 White block hypothesis based automatic white balance method of digital camera device
CN104618702B (en) * 2014-12-31 2016-04-20 湖南国科微电子股份有限公司 A kind of digital camera auto white balance method supposed based on white block
CN106375678A (en) * 2016-11-10 2017-02-01 北京小米移动软件有限公司 Method, device and system for adjusting shooting parameters
CN106793329A (en) * 2017-01-06 2017-05-31 广东德洛斯照明工业有限公司 A kind of automatic light-supplementing method based on RGBW
CN106793329B (en) * 2017-01-06 2018-11-30 广东德洛斯照明工业有限公司 A kind of automatic light-supplementing method based on RGBW
US11252794B2 (en) 2019-03-29 2022-02-15 Electronic Theatre Controls, Inc. Systems, devices, and methods for controlling an LED light source based on a color temperature scale factor
CN111988531A (en) * 2019-05-21 2020-11-24 北京小米移动软件有限公司 Light supplementing module, light supplementing control method of light supplementing module, terminal and device
CN114071106A (en) * 2020-08-10 2022-02-18 合肥君正科技有限公司 Cold-start rapid white balance method for low-power-consumption equipment
CN114071106B (en) * 2020-08-10 2023-07-04 合肥君正科技有限公司 Cold start fast white balance method for low-power-consumption equipment

Also Published As

Publication number Publication date
CN104079909B (en) 2016-04-13

Similar Documents

Publication Publication Date Title
CN104079909B (en) A kind of image auto white balance method and device
CN112752023B (en) Image adjusting method and device, electronic equipment and storage medium
EP3648459B1 (en) White balance adjustment method and apparatus, camera and medium
CN108600725A (en) A kind of white balance correction device and method based on RGB-IR image datas
CN104796683B (en) A kind of method and system of calibration image color
CN103426403B (en) The correction image-pickup method of LED display, picture display process and bearing calibration
CN101227623B (en) White balance adjustment method, system and camera
CN108174172B (en) Image pickup method and device, computer readable storage medium and computer equipment
US8866914B2 (en) Pattern position detection method, pattern position detection system, and image quality adjustment technique using the method and system
CN102572206B (en) Color correction method
CN102858072B (en) Lighting control method and system
CN103491357A (en) Auto white balance treatment method of image sensor
US9025820B2 (en) Image processing apparatus and image processing method
CN104113743A (en) Colour camera automatic white balance processing method and device under low illumination
CN103973992A (en) Automatic exposure method and device for LED white-light source
CN101370151B (en) Automatic white balance adjustment method
CN106550227B (en) A kind of image saturation method of adjustment and device
US20110273583A1 (en) Image processing apparatus, camera module and electronic device
CN103079077B (en) A kind of image processing method
CN208353496U (en) A kind of white balance correction device based on RGB-IR image data
CN103500457A (en) Method of color cast detection of video image
KR101854432B1 (en) Method and apparatus for detecting and compensating back light frame
CN108833875B (en) Automatic white balance correction method
US20200029016A1 (en) Moving object monitoring device and moving object monitoring system
CN105208362B (en) Image colour cast auto-correction method based on gray balance principle

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant