CN101159879A - Digital picture capturing device and white balance adjustment method thereof - Google Patents

Digital picture capturing device and white balance adjustment method thereof Download PDF

Info

Publication number
CN101159879A
CN101159879A CNA2006101412748A CN200610141274A CN101159879A CN 101159879 A CN101159879 A CN 101159879A CN A2006101412748 A CNA2006101412748 A CN A2006101412748A CN 200610141274 A CN200610141274 A CN 200610141274A CN 101159879 A CN101159879 A CN 101159879A
Authority
CN
China
Prior art keywords
value
white balance
block
image
balance program
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
CNA2006101412748A
Other languages
Chinese (zh)
Other versions
CN101159879B (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.)
Fujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
PULIER SCIENCE AND TECHNOLOGY Co 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 PULIER SCIENCE AND TECHNOLOGY Co Ltd filed Critical PULIER SCIENCE AND TECHNOLOGY Co Ltd
Priority to CN2006101412748A priority Critical patent/CN101159879B/en
Publication of CN101159879A publication Critical patent/CN101159879A/en
Application granted granted Critical
Publication of CN101159879B publication Critical patent/CN101159879B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention provides a digital image acquisition device and a white balance adjustment method. The method of white balance adjustment provided by the invention includes the following steps: acquire an image; divide the image into more than one blocks; obtain and store a first luminance value of every block; obtain and store a second luminance value, red (R) value, green (G) value and blue (B) value of every block; according to the first and the second luminance value and R value, G value and B value of every block, judge whether the blocks are grey blocks; according to the grey block number, judge whether to perform a first white balance program or a second white balance program to the image.

Description

The method that digital picture capturing device and white balance thereof are adjusted
Technical field
The present invention relates to the method that a kind of digital picture capturing device and white balance thereof are adjusted, especially a kind of can be according to having/luminance difference during flashless lamp and carry out digital picture capturing device and the method thereof that white balance is adjusted.
Background technology
Generally speaking, the light color that reflects of object is decided on the color of light source.People's brain can detect and correct of this sort color and change, no matter be under the weather at sunlight, haze, indoor incandescent lamp or the fluorescent therefore, people's eyes all can adapt to such color and change, and can not influence the white object that people see.Yet with regard to digital picture capturing device, these " whites " that produced by Different Light still are not quite similar on color.For example the photo of taking with the environment of tungsten lamp (bulb) illumination may be yellow partially, and the presumable meeting of the photo that other environment are taken is light blue partially or red.
In order to press close to people's vision, digital picture capturing device just must imitate human brain and adjust color according to light, what defines is white, so that in the end can present the white that naked eyes are seen in the photograph, this adjustment promptly is referred to as " white balance " (White Balance).
Though present digital picture capturing device can be at environment automatic setting white balance of living in, yet, the white balance of prior art normally defines grey at obtained red (R) value, green (G) value and indigo plant (B) value, and does not consider the influence of brightness of flash lamp.In fact, the brightness of photoflash lamp also can impact white balance, and makes digital picture capturing device can not manifest best color picture.
Therefore, if can provide a kind of brightness with photoflash lamp that the influence of white balance is included in the digital picture capturing device and the white balance method of consideration, can make digital picture capturing device manifest the color picture better than prior art.
Summary of the invention
In view of the existing in prior technology problem, the method that the object of the present invention is to provide a kind of digital picture capturing device and white balance thereof to adjust.
Digital picture capturing device of the present invention comprises a processor, an image collection module and a photoflash lamp.Image collection module and photoflash lamp electrically connect with processor respectively; And processor may command image collection module and photoflash lamp, and realize the purpose that white balance is adjusted.
In one embodiment of this invention, digital picture capturing device according to the present invention comprises: a processor; One image collection module electrically connects with this processor; And a photoflash lamp, electrically connecting with this processor, wherein this this image collection module of processor may command and this photoflash lamp are to realize following processing: obtain an image; With this image segmentation is more than one block; One first brightness value of each block of this image when obtaining this photoflash lamp and not triggering; One second brightness value, a R value, a G value and a B value of each block of this image when obtaining this photoflash lamp and having triggered; According to a difference, this R value, this G value and this B value of first brightness value and second brightness value of each block, judge whether each block is a grey block; And, judge whether to carry out one first white balance program or one second white balance program at this image according to a quantity of this grey block.
In one embodiment of this invention, mainly comprise following steps according to white balance adjustment method provided by the present invention: obtain an image; With image segmentation is more than one block; When obtaining photoflash lamp and not triggering, first brightness value of each block; When obtaining photoflash lamp and having triggered, second brightness value of each block, red (R) value, green (G) value and blue (B) value; According to a difference, R value, G value and the B value of first brightness value and second brightness value of each block, judge whether each block is a grey block; And, judge whether to carry out the first white balance program or the second white balance program at image according to the quantity of grey block.Wherein, the first white balance program is the white balance program of a consideration flash light effect; And the second white balance program is one not consider the white balance program of flash light effect.
According to digital picture capturing device provided by the present invention and white balance adjustment method, can include the brightness of photoflash lamp in consideration to the influence of white balance, thereby can make digital picture capturing device manifest the color picture better than prior art.
Description of drawings
Fig. 1 is the system block diagram schematic diagram according to digital picture capturing device of the present invention.
Fig. 2 is the flow chart of steps according to the white balance adjustment method of digital picture capturing device of the present invention.
Fig. 3 is for showing the schematic diagram according to an image segmentation of the present invention.
Wherein, description of reference numerals is as follows:
1 digital picture capturing device, 11 processors
12 image collection module, 13 photoflash lamps
Embodiment
For above-mentioned and other purposes, feature and advantage of the present invention can be become apparent, cited below particularlyly go out preferred embodiment and conjunction with figs., be described in detail below.
At first, please refer to the system block diagram schematic diagram of Fig. 1 about the digital picture capturing device of present embodiment.As shown in Figure 1, present embodiment provides a kind of digital picture capturing device 1, and it comprises a processor 11, an image collection module 12 and a photoflash lamp 13.Wherein, image collection module 12 and photoflash lamp 13 electrically connect with processor 11 respectively, and processor 11 may command image collection module 12 and photoflash lamp 13, and as shown in Figure 2 white balance adjustment method below realizing.
Then, please refer to the white balance adjustment method flow chart of steps of Fig. 2 about the digital picture capturing device of one embodiment of the present invention.As shown in Figure 2, the method for present embodiment comprises step S201, S202, S203, S204, S205, S206, S207, S208 and S209, below will further specify the detailed process of each step.
As shown in Figure 2, present embodiment at first carries out step S201, obtains an image by image collection module 12 as shown in Figure 1.
Then, present embodiment carries out step S202, is N block with this image segmentation; Wherein, N is more than one.For example, as shown in Figure 3, present embodiment becomes 8 * 6 totally 48 block B1~B48 with this image segmentation.It should be noted that herein only in order to illustrate, quantity that it is cut apart or mode are not in order to restriction the present invention to Fig. 3.
Then, present embodiment carries out step S203, when obtaining and storing photoflash lamp and not triggering, and the first brightness value Y1 of each block B1~B48 of image.Wherein in one embodiment of this invention, the first brightness value Y1 is that R, G, the B value of each block B1~B48 obtained when not triggered by photoflash lamp calculated gained.Because it is known that obtain and the calculating of relevant brightness value and R, G, B value are actually the those skilled in the art, therefore do not give unnecessary details this technology at this more.
Then, present embodiment carries out step S204, when obtaining and storing photoflash lamp and having triggered, and the second brightness value Y2 of each block B1~B48 of image and R, G, the B value of each block B1~B48.Wherein in one embodiment of this invention, the second brightness value Y2 is that R, G, the B value of each block B1~B48 obtained when having been triggered by photoflash lamp calculated gained.
Then, present embodiment carries out step S205, according to the first brightness value Y1 of each block B1~B48 and the difference D (that is D=Y2-Y1) of the second brightness value Y2, and R, G, the B value of photoflash lamp obtained each block B1~B48 when having triggered, judge whether each block B1~B48 is a grey block.
In one embodiment of this invention, carry out the judgement of step S205 according to following condition:
(1), whether a R/G ratio of R value and G value is in one first preset range.
(2), whether a B/G ratio of B value and G value is in one second preset range.
(3), whether difference D is greater than one first critical value.
If the R/G ratio that a block arranged among each block B1~B48 in this first preset range, B/G ratio in this second preset range and difference D greater than this first critical value, then defining this block is a grey block.For example, as shown in Figure 3, block B10, B35, B21, B31 and B24 are the grey block that meets above-mentioned condition.
Then, present embodiment carries out step S206, according to the quantity of resulting grey block in step S205, optionally carries out the first white balance program of step S207 or the second white balance program of step S208 at image.Wherein the first white balance program is the white balance program of a consideration flash light effect; And the second white balance program is one not consider the white balance program of flash light effect.Furthermore, present embodiment is when carrying out the first white balance program, obtained R, G, B value when using photoflash lamp to trigger, calculate the yield value of each R, G, B value according to a predefined white balance algorithm, and then utilize each yield value to adjust R, G, B value originally, and reach the purpose that white balance is adjusted.Similarly, present embodiment is when carrying out the second white balance program, obtained R, G, B value when using photoflash lamp not trigger, calculate the yield value of each R, G, B value according to another predefined white balance algorithm, and then utilize each yield value to adjust R, G, B value originally, and reach the purpose of white balance.Since the carrying out of white balance program and wherein the calculating of yield value to be actually the those skilled in the art known, therefore do not give unnecessary details this technology at this more.
In step S206, present embodiment judges that whether the quantity of grey block is greater than one second critical value.If the quantity of grey block is then carried out the first white balance program (consideration flash light effect) of step S207 greater than second critical value at this image; On the contrary, if the quantity of grey block is then carried out the second white balance program (not considering flash light effect) of step S208 less than second critical value.
At last, after completing steps S207 or S208, present embodiment promptly carries out step S209, carries out the subsequent image processing supervisor at image.
Though the present invention with preferred embodiment openly as above; yet it is not in order to limit the present invention; those of ordinary skill in the field without departing from the spirit and scope of the present invention; can carry out various changes and modification, so protection scope of the present invention should be as the criterion with accompanying Claim institute restricted portion.

Claims (10)

1. the white balance adjustment method of a digital picture capturing device, this digital picture capturing device comprises a photoflash lamp, and the method includes the steps of:
Obtain an image;
With this image segmentation is more than one block;
When obtaining this photoflash lamp and not triggering, one first brightness value of each block of this image;
When obtaining this photoflash lamp and having triggered, one second brightness value of each block of this image, a red value are that R value, a green value are that a G value and a blue value are the B value;
According to a difference, this R value, this G value and this B value of this first brightness value and this second brightness value of each block, judge whether each block is a grey block; And
According to a quantity of this grey block, judge whether to carry out one first white balance program or one second white balance program at this image.
2. the method for claim 1, wherein this first white balance program is one to consider the white balance program of flash light effect; This second white balance program is one not consider the white balance program of flash light effect.
3. the method for claim 1, wherein judging that whether each block is in the step of a grey block, further comprises following steps:
Whether a R/G ratio of judging this R value and this G value is in one first preset range;
Whether a B/G ratio of judging this B value and this G value is in one second preset range;
Judge that whether this difference is greater than one first critical value; And
If this R/G ratio in this first preset range, this B/G ratio in this second preset range and this difference greater than this first critical value, then defining this block is a grey block.
4. the method for claim 1, wherein carry out at this image further comprising following steps in the step of one first white balance program or one second white balance program judging whether:
Whether the quantity of judging this grey block is greater than one second critical value; And
If the quantity of this grey block is then carried out this first white balance program at this image greater than this second critical value.
5. the method for claim 1, wherein when carrying out the step of this first white balance program, the yield value according to this R value, this G value and this B value of each grey block calculated carries out this first white balance program.
6. digital picture capturing device comprises:
One processor;
One image collection module electrically connects with this processor; And
One photoflash lamp electrically connects with this processor, wherein this this image collection module of processor may command and this photoflash lamp, to realize following processing:
Obtain an image;
With this image segmentation is more than one block;
One first brightness value of each block of this image when obtaining this photoflash lamp and not triggering;
One second brightness value, a R value, a G value and a B value of each block of this image when obtaining this photoflash lamp and having triggered;
According to a difference, this R value, this G value and this B value of this first brightness value and this second brightness value of each block, judge whether each block is a grey block; And
According to a quantity of this grey block, judge whether to carry out one first white balance program or one second white balance program at this image.
7. digital picture capturing device as claimed in claim 6, wherein this first white balance program is the white balance program of a consideration flash light effect; This second white balance program is one not consider the white balance program of flash light effect.
8. digital picture capturing device as claimed in claim 6, wherein this processor can further be realized following processing:
Whether a R/G ratio of judging this R value and this G value is in one first preset range;
Whether a B/G ratio of judging this B value and this G value is in one second preset range;
Judge that whether this difference is greater than one first critical value; And
If this R/G ratio in this first preset range, this B/G ratio in this second preset range and this difference greater than this first critical value, then defining this block is a grey block.
9. digital picture capturing device as claimed in claim 6, wherein this processor can further be realized following processing:
Whether this quantity of judging this grey block is greater than one second critical value; And
If this quantity of this grey block is then carried out this first white balance program at this image greater than this second critical value.
10. digital picture capturing device as claimed in claim 6, wherein when carrying out this first white balance program, the yield value that this processor is calculated according to this R value, this G value and this B value of each grey block is to carry out this first white balance program.
CN2006101412748A 2006-10-08 2006-10-08 Digital picture capturing device and white balance adjustment method thereof Expired - Fee Related CN101159879B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006101412748A CN101159879B (en) 2006-10-08 2006-10-08 Digital picture capturing device and white balance adjustment method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006101412748A CN101159879B (en) 2006-10-08 2006-10-08 Digital picture capturing device and white balance adjustment method thereof

Publications (2)

Publication Number Publication Date
CN101159879A true CN101159879A (en) 2008-04-09
CN101159879B CN101159879B (en) 2010-08-25

Family

ID=39307775

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006101412748A Expired - Fee Related CN101159879B (en) 2006-10-08 2006-10-08 Digital picture capturing device and white balance adjustment method thereof

Country Status (1)

Country Link
CN (1) CN101159879B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101600121B (en) * 2008-06-03 2011-03-23 亚洲光学股份有限公司 Computing method of white balance correct value
CN102387372A (en) * 2010-09-02 2012-03-21 佳能株式会社 Image processing apparatus, image processing method, and recording medium
CN103227928A (en) * 2013-03-29 2013-07-31 华为技术有限公司 White balance adjusting method and device
CN103250418A (en) * 2010-11-30 2013-08-14 富士胶片株式会社 Image processing device, imaging device, image processing method, and white balance adjustment method
CN103327345A (en) * 2012-03-19 2013-09-25 华晶科技股份有限公司 White balance processing method and processing device thereof
CN105391831A (en) * 2015-12-08 2016-03-09 深圳天珑无线科技有限公司 Mobile terminal and method for calibrating photographing color effect
CN105721845A (en) * 2014-12-19 2016-06-29 全视技术有限公司 Automatic white balance methods and systems for electronic cameras
CN105915875A (en) * 2016-06-01 2016-08-31 广东欧珀移动通信有限公司 White balance calibration method and device and calibration parameter obtaining method and device thereof
CN106033596A (en) * 2015-03-16 2016-10-19 联想(北京)有限公司 Information processing method and electronic device
CN106375636A (en) * 2016-10-10 2017-02-01 硕诺科技(深圳)有限公司 Camera flash vignetting effect compensating method
WO2017096858A1 (en) * 2015-12-08 2017-06-15 乐视控股(北京)有限公司 Method and device for calibrating white balance of images
CN112184916A (en) * 2019-07-03 2021-01-05 光宝电子(广州)有限公司 Augmented reality rendering method of planar object

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5568194A (en) * 1994-05-31 1996-10-22 Asahi Kogaku Kogyo Kabushiki Kaisha Adjusting a white balance in a camera using a flash
JP4379129B2 (en) * 2004-01-23 2009-12-09 ソニー株式会社 Image processing method, image processing apparatus, and computer program

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101600121B (en) * 2008-06-03 2011-03-23 亚洲光学股份有限公司 Computing method of white balance correct value
CN102387372A (en) * 2010-09-02 2012-03-21 佳能株式会社 Image processing apparatus, image processing method, and recording medium
US8704911B2 (en) 2010-09-02 2014-04-22 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and recording medium
CN103250418A (en) * 2010-11-30 2013-08-14 富士胶片株式会社 Image processing device, imaging device, image processing method, and white balance adjustment method
CN103250418B (en) * 2010-11-30 2014-10-15 富士胶片株式会社 Image processing device, imaging device, image processing method, and white balance adjustment method
CN103327345A (en) * 2012-03-19 2013-09-25 华晶科技股份有限公司 White balance processing method and processing device thereof
CN103327345B (en) * 2012-03-19 2015-03-11 华晶科技股份有限公司 White balance processing method and processing device thereof
CN103227928A (en) * 2013-03-29 2013-07-31 华为技术有限公司 White balance adjusting method and device
CN103227928B (en) * 2013-03-29 2015-04-29 华为技术有限公司 White balance adjusting method and device
CN105721845A (en) * 2014-12-19 2016-06-29 全视技术有限公司 Automatic white balance methods and systems for electronic cameras
CN105721845B (en) * 2014-12-19 2018-06-22 豪威科技股份有限公司 For the auto white balance system of Electrofax
CN106033596A (en) * 2015-03-16 2016-10-19 联想(北京)有限公司 Information processing method and electronic device
CN106033596B (en) * 2015-03-16 2019-07-26 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105391831A (en) * 2015-12-08 2016-03-09 深圳天珑无线科技有限公司 Mobile terminal and method for calibrating photographing color effect
WO2017096858A1 (en) * 2015-12-08 2017-06-15 乐视控股(北京)有限公司 Method and device for calibrating white balance of images
CN105391831B (en) * 2015-12-08 2018-06-05 深圳天珑无线科技有限公司 Mobile terminal and the method for calibrating color effect of taking pictures
CN105915875A (en) * 2016-06-01 2016-08-31 广东欧珀移动通信有限公司 White balance calibration method and device and calibration parameter obtaining method and device thereof
CN106375636A (en) * 2016-10-10 2017-02-01 硕诺科技(深圳)有限公司 Camera flash vignetting effect compensating method
CN106375636B (en) * 2016-10-10 2018-07-17 硕诺科技(深圳)有限公司 A kind of compensation method of the vignetting effect of the flash of light of camera
CN112184916A (en) * 2019-07-03 2021-01-05 光宝电子(广州)有限公司 Augmented reality rendering method of planar object

Also Published As

Publication number Publication date
CN101159879B (en) 2010-08-25

Similar Documents

Publication Publication Date Title
CN101159879B (en) Digital picture capturing device and white balance adjustment method thereof
ES2626649T3 (en) LED flash pairing compensation algorithm with camera ambient light
KR101493064B1 (en) In-camera based method of detecting defect eye with high accuracy
US20100254692A1 (en) Camera illumination device
US20140085503A1 (en) Mobile Communication Apparatus and Flashlight Controlling Method
US7394488B2 (en) System and method for dual white balance compensation of images
CN103227928B (en) White balance adjusting method and device
CN113452980B (en) Image processing method, terminal and storage medium
CN107948538A (en) Imaging method, device, mobile terminal and storage medium
EP1722575A3 (en) White balance controlling apparatus, method, program and image pickup apparatus
US20120008004A1 (en) Lighting identification
JP4430656B2 (en) Digital image capture device and white balance adjustment method
CN104469174B (en) Handheld communication device and method for adjusting flash module of handheld communication device
CN202617286U (en) Image acquisition apparatus
CN1753459B (en) Object taking condition determining apparatus, image quality regulator and image taking apparatus
CN101175143A (en) Digital picture capturing device and white balance adjustment method thereof
US10154201B2 (en) Method for adjusting photographic images to higher resolution
US20070041064A1 (en) Image sampling method for automatic white balance
TW201417589A (en) Method for regulating white balancing
JP2005109999A5 (en)
US7728884B2 (en) Method for white balance adjustment and digital image capturing device using the same
US9006983B1 (en) System and method for detecting the source of glare in imagery
CN113132617A (en) Image jitter judgment method and device and image identification triggering method and device
EP4224837B1 (en) Ir-cut filter switch control
Gao et al. Scene Metering and Exposure Control for Enhancing High Dynamic Range Imaging

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: HONGFUJIN PRECISION INDUSTRY (SHENZHEN) CO., LTD.

Free format text: FORMER OWNER: PULIER SCI-TECH CO., LTD.

Effective date: 20090515

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20090515

Address after: 2, Dong Huan two road, tenth Industrial Zone, Longhua Town, Baoan District, Guangdong, Shenzhen Province, China: 518109

Applicant after: Fujin Precision Industry (Shenzhen) Co., Ltd.

Co-applicant after: Hon Hai Precision Industry Co., Ltd.

Address before: Taipei City, Taiwan, China

Applicant before: Pulier Science and Technology Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100825

Termination date: 20151008

EXPY Termination of patent right or utility model