CN105898260B - A kind of method and device for adjusting camera white balance - Google Patents
A kind of method and device for adjusting camera white balance Download PDFInfo
- Publication number
- CN105898260B CN105898260B CN201610214480.0A CN201610214480A CN105898260B CN 105898260 B CN105898260 B CN 105898260B CN 201610214480 A CN201610214480 A CN 201610214480A CN 105898260 B CN105898260 B CN 105898260B
- Authority
- CN
- China
- Prior art keywords
- current environment
- colour temperature
- outdoor
- relative
- color temperature
- 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.)
- Expired - Fee Related
Links
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
-
- 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/10—Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Color Television Image Signal Generators (AREA)
- Processing Of Color Television Signals (AREA)
Abstract
The embodiment of the invention discloses a kind of method and device for adjusting camera white balance.The embodiment of the present invention is indoor or outdoors by detecting current environment, if detect current environment for interior, picture low colour temperature in being, the weight of the reference point of low colour temperature in increase, if detect current environment for outdoor, picture is middle high color temperature, the weight of the reference point of high color temperature in increase, the reference point of colour temperature based on determination, calculate the colour temperature under current environment, calculated colour temperature, white balance adjusting is carried out to camera, can be with automatic identification indoor and outdoor environment, improve the order of accuarcy that AWB calculates, solve partially red in image room, the problem of outdoor partially blue.
Description
Technical field
The present invention relates to image imaging field, more particularly to a kind of method and device for adjusting camera white balance.
Background technology
The video camera apparatus such as DV and digital camera generally comprises optical lens, imaging sensor, image
Process chip, image transmission module and image display.A kind of color can show different under the irradiation of different light sources
Color, for example, yellow can be presented in grey under incandescent lamp irradiation, and cyan can be presented under cold light irradiation.Therefore, it is necessary to defeated
The color of the original image entered is handled, and is allowed to that normal grey is presented under different light source irradiations, at present, more general
Bearing calibration is white balance correction.By taking grey as an example, under the irradiation of different light sources by imaging sensor after can show not
Same color, and light source is usually to quantify to show with colour temperature.The definition of colour temperature is:The color of source emissioning light is with black matrix at certain
Simultaneously, the temperature of black matrix is referred to as the colour temperature of the light source to radiant light form and aspect at a temperature of one.By the light that most of light source is sent can
To be referred to as white light, therefore the colour temperature of light source can also be censuring its photochromic relatively white degree.Photochromic more blue, colour temperature is got over
Height, color are colder;Partially red then colour temperature is lower, and color is warmer.
The AWB (Auto White Balance, AWB) of camera, it is to start the image letter of camera module
After number processor (Image Signal Processor, ISP), the color of current environment is calculated according to the view data got
Temperature, then it is adjusted according to colour temperature.
However, for indoor and outdoors environment, if all put down in vain to camera using same colour temperature reference point
Weighing apparatus regulation, AWB calculate inaccuracy, can cause the problem of partially red, outdoor partially blue in image room.
The content of the invention
The embodiments of the invention provide a kind of method and device for adjusting camera white balance, to solve indoor and outdoors ring
In border, white balance adjusting is carried out to camera using same colour temperature reference point, AWB calculates inaccurate, image room
The problem of inside partially red, outdoor partially blue.
On the one hand, there is provided a kind of method for adjusting camera white balance, methods described include:
It is indoor or outdoors to detect current environment;
If current environment is interior, picture low colour temperature in being, the weight of the reference point of low colour temperature during increase is described;
If current environment is outdoor, picture is middle high color temperature, increases the weight of the reference point of the middle high color temperature;
The reference point of colour temperature based on determination, calculate the colour temperature under current environment;
Calculated colour temperature, white balance adjusting is carried out to camera.
Preferably, the calculated colour temperature, white balance adjusting is carried out to camera, including:
Using the colour temperature being calculated as the target colour temperature of the camera, white balance tune is carried out to the camera
Section.
Preferably, methods described also includes:
If current environment is interior, give up the color temperature point that indoor light is unable to reach;
If current environment is outdoor, give up the color temperature point of interior.
Preferably, the detection current environment is indoor or outdoors, including:
Detect ratio of the infrared ray shared by relative to full spectrum in current environment;
According to indoor and outdoors infrared ray relative to the ratio shared by full spectrum difference, and in current environment it is red
Ratio of the outside line shared by relative to full spectrum, it is indoor or outdoors to determine current environment.
Preferably, ratio of the infrared ray shared by relative to full spectrum in the detection current environment, including:
Obtain ratio of the multiple infrared rays in the range of setting time in current environment shared by relative to full spectrum;
Average value of the multiple infrared ray relative to the ratio shared by full spectrum is calculated, as infrared ray in current environment
Relative to the ratio shared by full spectrum.
On the other hand, there is provided a kind of device for adjusting camera white balance, described device include:
Detection module, it is indoor or outdoors for detecting current environment;
Increase module, if detecting that current environment for interior, picture low colour temperature in being, increases institute for the detection module
The weight of the reference point of low colour temperature in stating;
If the increase module is additionally operable to the detection module and detects current environment as outdoor, picture is middle high color temperature,
Increase the weight of the reference point of the middle high color temperature;
Computing module, for the reference point of the colour temperature based on determination, calculate the colour temperature under current environment;
Adjustment module, for the colour temperature being calculated using the computing module, white balance adjusting is carried out to camera.
Preferably, the adjustment module is specifically used for:
Target colour temperature using the colour temperature that the computing module is calculated as the camera, the camera is carried out
White balance adjusting.
Preferably, described device also includes:
Give up module, if detecting that current environment for interior, is given up indoor light and is unable to reach for the detection module
Color temperature point;
If it is described give up module be additionally operable to the detection module detect current environment for outdoor, give up interior colour temperature
Point.
Preferably, the detection module includes:
Detection unit, for detect infrared ray in current environment relative to full spectrum shared by ratio;
Determining unit, for according to indoor and outdoors infrared ray relative to the ratio shared by full spectrum difference, with
And ratio of the infrared ray shared by relative to full spectrum in current environment, it is indoor or outdoors to determine current environment.
Preferably, the detection unit includes:
Acquiring unit, for obtaining multiple infrared rays in the range of setting time in current environment relative to shared by full spectrum
Ratio;
Computing unit, for calculating average value of the multiple infrared ray relative to the ratio shared by full spectrum, as work as
Ratio of the infrared ray shared by relative to full spectrum in preceding environment.
Implement a kind of method and device for adjusting camera white balance provided in an embodiment of the present invention, have following beneficial to effect
Fruit:
Detection current environment is indoor or outdoors, if detecting current environment for interior, picture low colour temperature in being, in increase
The weight of the reference point of low colour temperature, if detecting, current environment for outdoor, picture is middle high color temperature, the reference of high color temperature in increase
The weight of point, the reference point of the colour temperature based on determination, calculate the colour temperature under current environment, calculated colour temperature, to taking the photograph
As head progress white balance adjusting, the order of accuarcy that AWB calculates can be improved with automatic identification indoor and outdoor environment, solved
The problem of partially red, outdoor partially blue in image room;
And by automatic identification indoor and outdoor environment, give up indoor and outdoor color temperature point, the fortune of AWB can be improved
Speed is calculated, reduces the power consumption of device, reduces the operation time of AWB algorithm.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of method for adjusting camera white balance provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another method for adjusting camera white balance provided in an embodiment of the present invention;
Fig. 3 is curve synoptic diagram of the infrared ray composition with full spectral component of example;
Fig. 4 is a kind of structural representation of device for adjusting camera white balance provided in an embodiment of the present invention;
Fig. 5 is the structural representation of another device for adjusting camera white balance provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
Fig. 1 be it is provided in an embodiment of the present invention it is a kind of adjust camera white balance method schematic flow sheet, this method
Comprise the following steps:
S101, detection current environment is indoor or outdoors.
Indoor environment is mainly incandescent light, and outdoor environment is natural light, a kind of meeting under the irradiation of different light sources of color
Different colors is showed, and light source is usually to quantify to show with colour temperature, if not differentiating between indoor and outdoors environment, is all used
Same colour temperature reference point to carry out camera white balance adjusting, and AWB calculates inaccuracy, can caused in image room
The problem of partially red, outdoor partially blue.Therefore, it is necessary to which it is indoor or outdoors to detect current environment.
Detection current environment is that the mode of indoor or outdoors is relatively more, such as can be using detection infra-red intensity come area
Point, it will be discussed in detail in the following examples.
S102 ', if current environment is interior, picture low colour temperature in being, the weight of the reference point of low colour temperature during increase is described.
S102 ", if current environment is outdoor, picture is middle high color temperature, increases the weight of the reference point of the middle high color temperature.
Different colour temperature can be directed in AWB algorithm model and chooses reference point, general reference color temperature be 1000K~
10000K, for this bigger reference color temperature, the reference point of basic, normal, high colour temperature is different, for indoor environment, picture master
Low colour temperature in being, for outdoor environment, the predominantly middle high color temperature of picture, may if choosing mode according to the colour temperature of routine
Inaccuracy can be chosen, causes the problem of indoor partially red, outdoor partially blue.Therefore, for the indoor environment identified, low color in increase
The weight of the reference point of temperature, for the outdoor environment identified, the weight of the reference point of high color temperature in increase, can cause colour temperature to select
It is more accurate to take.
S103, the reference point of the colour temperature based on determination, calculate the colour temperature under current environment.
The reference point of colour temperature based on determination calculates the colour temperature under current environment again, and the colour temperature calculated is more accurate.
S104, calculated colour temperature, white balance adjusting is carried out to camera.
The AWB of camera, after the ISP of camera module is started, calculated according to the view data got
The colour temperature of current environment, then it is adjusted according to colour temperature.
A kind of method of the regulation camera white balance provided according to embodiments of the present invention, detection current environment to be indoor or
Outdoor, if detecting current environment as interior, picture low colour temperature in being, the weight of the reference point of low colour temperature in increase, if detection
It is outdoor to current environment, picture is middle high color temperature, the weight of the reference point of high color temperature in increase, the ginseng of the colour temperature based on determination
Examination point, the colour temperature under current environment is calculated, calculated colour temperature, white balance adjusting is carried out to camera, can be automatic
Indoor and outdoor environment is identified, improves the order of accuarcy that AWB calculates, solves partially red, outdoor partially blue in image room ask
Topic.
Fig. 2 adjusts the schematic flow sheet of the method for camera white balance, the party for another kind provided in an embodiment of the present invention
Method comprises the following steps:
S201, detect ratio of the infrared ray shared by relative to full spectrum in current environment.
When user opens camera, ambient light sensor is opened, reads infra-red intensity relative to shared by full spectrum
Ratio, and scale segment is counted, ratio can be divided into (0%,<10%,<20%,<30%...<90%,<100%).Fig. 3 is
The infrared ray composition of example and the curve synoptic diagram of full spectral component, what wherein curve ch1 was represented is the change of infrared ray, curve
What ch0 was represented is the change of all spectrum.Ch1/ch0 means that ratio of the infrared ray shared by relative to full spectrum.
Specifically, ratio of the infrared ray shared by relative to full spectrum in current environment is detected, including:
Obtain ratio of the multiple infrared rays in the range of setting time in current environment shared by relative to full spectrum;
Average value of the multiple infrared ray relative to the ratio shared by full spectrum is calculated, as infrared ray in current environment
Relative to the ratio shared by full spectrum.
By the calculating of the average value of proportion, infrared ray can be more accurately obtained in current environment relative to full light
The shared ratio of spectrum.
S202, infrared ray and works as front ring relative to the difference of the ratio shared by full spectrum according to indoor and outdoors
Ratio of the infrared ray shared by relative to full spectrum in border, it is indoor or outdoors to determine current environment.
The infrared ray difference of indoor and outdoor is larger, if interior is common incandescence lamp, infrared ray ratio is all often
Less than 20%, and outdoor infra-red intensity is often all higher than 35%, and certainly, influence of the weather for infra-red intensity is also compared
Greatly, such as the cloudy day is all often 35% or so, and fine day is then higher than 45%.
Generally the infrared ratio of outdoor scene more than 75% is all in 21%--40%, and the indoor scene ratio is low
In 5%;In addition, it is invalid that indoor scene, which has 10% ratio, and invalid statistics ratio is not present in outdoor scene.By upper
The result of calculating is stated, more than 90% probability, which is known, currently belongs to indoor or outdoor (light or natural light).
S203 ', if current environment is interior, picture low colour temperature in being, the weight of the reference point of low colour temperature during increase is described.
S203 ", if current environment is outdoor, picture is middle high color temperature, increases the weight of the reference point of the middle high color temperature.
Different colour temperature can be directed in AWB algorithm model and chooses reference point, general reference color temperature be 1000K~
10000K, for this bigger reference color temperature, the reference point of basic, normal, high colour temperature is different, for indoor environment, picture master
Low colour temperature in being, for outdoor environment, the predominantly middle high color temperature of picture, may if choosing mode according to the colour temperature of routine
Inaccuracy can be chosen, causes the problem of indoor partially red, outdoor partially blue.Therefore, for the indoor environment identified, low color in increase
The weight of the reference point of temperature, for the outdoor environment identified, the weight of the reference point of high color temperature in increase, can cause colour temperature to select
It is more accurate to take.
S204 ', it is indoor environment for current environment, gives up the color temperature point that indoor light is unable to reach.
S204 ", it is outdoor environment for current environment, gives up the color temperature point of interior.
If it is indoor environment to identify current environment, AWB algorithms selection is directly given up to fall light and is unable to reach
Color temperature point;If it is outdoor environment to identify current environment, directly gives up to fall the color temperature point of interior, color temperature point was carried out
Filter, the arithmetic speed of AWB can be improved, reduce the power consumption of device, reduce the operation time of AWB algorithm.
S205, the reference point of the colour temperature based on determination and gives up the color temperature point fallen, calculates the colour temperature under current environment.
Color temperature point that the reference point of colour temperature based on determination and giving up is fallen calculates the colour temperature under current environment, can make
The selection of color temperature point is more accurate, more efficient.
S206, using the colour temperature being calculated as the target colour temperature of the camera, the camera is carried out white
Balance adjustment.
White balance adjusting is carried out to camera according to the colour temperature that upper type is calculated, AWB meter can be improved
The order of accuarcy of calculation, solve the problems, such as partially red, outdoor partially blue in image room;And by automatic identification indoor and outdoor environment, give up
Indoor and outdoor color temperature point, the arithmetic speed of AWB can be improved, reduce the power consumption of device, reduce AWB algorithm
Operation time.
A kind of method of the regulation camera white balance provided according to embodiments of the present invention, detection current environment to be indoor or
Outdoor, if detecting current environment as interior, picture low colour temperature in being, the weight of the reference point of low colour temperature in increase, if detection
It is outdoor to current environment, picture is middle high color temperature, the weight of the reference point of high color temperature in increase, the ginseng of the colour temperature based on determination
Examination point, the colour temperature under current environment is calculated, calculated colour temperature, white balance adjusting is carried out to camera, can be automatic
Indoor and outdoor environment is identified, improves the order of accuarcy that AWB calculates, solves partially red, outdoor partially blue in image room ask
Topic;And by automatic identification indoor and outdoor environment, give up indoor and outdoor color temperature point, the computing speed of AWB can be improved
Degree, the power consumption of device is reduced, reduce the operation time of AWB algorithm.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because
According to the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know
Know, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention
It is necessary.
Fig. 4 be it is provided in an embodiment of the present invention it is a kind of adjust camera white balance device structural representation, the device
1000 include:
Detection module 11, it is indoor or outdoors for detecting current environment.
Indoor environment is mainly incandescent light, and outdoor environment is natural light, a kind of meeting under the irradiation of different light sources of color
Different colors is showed, and light source is usually to quantify to show with colour temperature, if not differentiating between indoor and outdoors environment, is all used
Same colour temperature reference point to carry out camera white balance adjusting, and AWB calculates inaccuracy, can caused in image room
The problem of partially red, outdoor partially blue.Therefore, it is indoor or outdoors that detection module 11, which needs to detect current environment,.
Detection current environment is that the mode of indoor or outdoors is relatively more, such as can be using detection infra-red intensity come area
Point, it will be discussed in detail in the following examples.
Increase module 12, if detecting current environment for the detection module as interior, picture low colour temperature in being, increase
The weight of the reference point of low colour temperature in described.
If increase module 12 is additionally operable to the detection module and detects current environment as outdoor, picture is middle high color temperature, is increased
Add the weight of the reference point of the middle high color temperature.
Different colour temperature can be directed in AWB algorithm model and chooses reference point, general reference color temperature be 1000K~
10000K, for this bigger reference color temperature, the reference point of basic, normal, high colour temperature is different, for indoor environment, picture master
Low colour temperature in being, for outdoor environment, the predominantly middle high color temperature of picture, may if choosing mode according to the colour temperature of routine
Inaccuracy can be chosen, causes the problem of indoor partially red, outdoor partially blue.Therefore, for the indoor environment identified, module 12 is increased
The weight of the reference point of low colour temperature in increase, for the outdoor environment identified, the weight of the reference point of high color temperature, meeting in increase
So that colour temperature selection is more accurate.
Computing module 13, for the reference point of the colour temperature based on determination, calculate the colour temperature under current environment.
The reference point of colour temperature based on determination calculates the colour temperature under current environment again, and the colour temperature calculated is more accurate.
Adjustment module 14, for the colour temperature being calculated using the computing module, white balance adjusting is carried out to camera.
The AWB of camera, after the ISP of camera module is started, calculated according to the view data got
The colour temperature of current environment, then it is adjusted according to colour temperature.
A kind of device of the regulation camera white balance provided according to embodiments of the present invention, detection current environment to be indoor or
Outdoor, if detecting current environment as interior, picture low colour temperature in being, the weight of the reference point of low colour temperature in increase, if detection
It is outdoor to current environment, picture is middle high color temperature, the weight of the reference point of high color temperature in increase, the ginseng of the colour temperature based on determination
Examination point, the colour temperature under current environment is calculated, calculated colour temperature, white balance adjusting is carried out to camera, can be automatic
Indoor and outdoor environment is identified, improves the order of accuarcy that AWB calculates, solves partially red, outdoor partially blue in image room ask
Topic.
Fig. 5 adjusts the structural representation of the device of camera white balance, the dress for another kind provided in an embodiment of the present invention
Putting 2000 includes:
Detection module 21, it is indoor or outdoors for detecting current environment.
In the present embodiment, detection module 21 includes detection unit 211 and determining unit 212.
Detection unit 211, for detect infrared ray in current environment relative to full spectrum shared by ratio.
When user opens camera, ambient light sensor is opened, reads infra-red intensity relative to shared by full spectrum
Ratio, and scale segment is counted, ratio can be divided into (0%,<10%,<20%,<30%...<90%,<100%).Fig. 3 is
The infrared ray composition of example and the curve synoptic diagram of full spectral component, what wherein curve ch1 was represented is the change of infrared ray, curve
What ch0 was represented is the change of all spectrum.Ch1/ch0 means that ratio of the infrared ray shared by relative to full spectrum.
Specifically, detection unit 211 includes:
Acquiring unit, for obtaining multiple infrared rays in the range of setting time in current environment relative to shared by full spectrum
Ratio;
Computing unit, for calculating average value of the multiple infrared ray relative to the ratio shared by full spectrum, as work as
Ratio of the infrared ray shared by relative to full spectrum in preceding environment.
By the calculating of the average value of proportion, infrared ray can be more accurately obtained in current environment relative to full light
The shared ratio of spectrum.
Determining unit 212, for according to indoor and outdoors infrared ray relative to the ratio shared by full spectrum difference,
And ratio of the infrared ray shared by relative to full spectrum in current environment, it is indoor or outdoors to determine current environment.
The infrared ray difference of indoor and outdoor is larger, if interior is common incandescence lamp, infrared ray ratio is all often
Less than 20%, and outdoor infra-red intensity is often all higher than 35%, and certainly, influence of the weather for infra-red intensity is also compared
Greatly, such as the cloudy day is all often 35% or so, and fine day is then higher than 45%.
Generally the infrared ratio of outdoor scene more than 75% is all in 21%--40%, and the indoor scene ratio is low
In 5%;In addition, it is invalid that indoor scene, which has 10% ratio, and invalid statistics ratio is not present in outdoor scene.By upper
The result of calculating is stated, more than 90% probability, which is known, currently belongs to indoor or outdoor (light or natural light).
Increase module 22, if detecting current environment for the detection module as interior, picture low colour temperature in being, increase
The weight of the reference point of low colour temperature in described.
If increase module 22 is additionally operable to the detection module and detects current environment as outdoor, picture is middle high color temperature, is increased
Add the weight of the reference point of the middle high color temperature.
Different colour temperature can be directed in AWB algorithm model and chooses reference point, general reference color temperature be 1000K~
10000K, for this bigger reference color temperature, the reference point of basic, normal, high colour temperature is different, for indoor environment, picture master
Low colour temperature in being, for outdoor environment, the predominantly middle high color temperature of picture, may if choosing mode according to the colour temperature of routine
Inaccuracy can be chosen, causes the problem of indoor partially red, outdoor partially blue.Therefore, for the indoor environment identified, low color in increase
The weight of the reference point of temperature, for the outdoor environment identified, the weight of the reference point of high color temperature in increase, can cause colour temperature to select
It is more accurate to take.
Give up module 23, if for detecting that current environment is indoor environment for the detection module, give up indoor lamp
The color temperature point that light is unable to reach.
If the module 23 of giving up is additionally operable to detect that current environment is outdoor environment for the detection module, give up room
Interior color temperature point.
If it is indoor environment to identify current environment, AWB algorithms selection is directly given up to fall light and is unable to reach
Color temperature point;If it is outdoor environment to identify current environment, directly gives up to fall the color temperature point of interior, color temperature point was carried out
Filter, the arithmetic speed of AWB can be improved, reduce the power consumption of device, reduce the operation time of AWB algorithm.
Computing module 24, for the colour temperature based on determination reference point and give up the color temperature point fallen, calculate current environment
Under colour temperature.
Color temperature point that the reference point of colour temperature based on determination and giving up is fallen calculates the colour temperature under current environment, can make
The selection of color temperature point is more accurate, more efficient.
Adjustment module 25, for the target colour temperature using the colour temperature being calculated as the camera, taken the photograph to described
As head carries out white balance adjusting.
White balance adjusting is carried out to camera according to the colour temperature that upper type is calculated, AWB meter can be improved
The order of accuarcy of calculation, solve the problems, such as partially red, outdoor partially blue in image room;And by automatic identification indoor and outdoor environment, give up
Indoor and outdoor color temperature point, the arithmetic speed of AWB can be improved, reduce the power consumption of device, reduce AWB algorithm
Operation time.
A kind of device of the regulation camera white balance provided according to embodiments of the present invention, detection current environment to be indoor or
Outdoor, if detecting current environment as interior, picture low colour temperature in being, the weight of the reference point of low colour temperature in increase, if detection
It is outdoor to current environment, picture is middle high color temperature, the weight of the reference point of high color temperature in increase, the ginseng of the colour temperature based on determination
Examination point, the colour temperature under current environment is calculated, calculated colour temperature, white balance adjusting is carried out to camera, can be automatic
Indoor and outdoor environment is identified, improves the order of accuarcy that AWB calculates, solves partially red, outdoor partially blue in image room ask
Topic;And by automatic identification indoor and outdoor environment, give up indoor and outdoor color temperature point, the computing speed of AWB can be improved
Degree, the power consumption of device is reduced, reduce the operation time of AWB algorithm.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiment.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can be with
Realized with hardware, or firmware is realized, or combinations thereof mode is realized.When implemented in software, can be by above-mentioned function
It is stored in computer-readable medium or is transmitted as one or more instructions on computer-readable medium or code.Meter
Calculation machine computer-readable recording medium includes computer-readable storage medium and communication media, and wherein communication media includes being easy to from a place to another
Any medium of individual place transmission computer program.Storage medium can be any usable medium that computer can access.With
Exemplified by this but it is not limited to:Computer-readable medium can include random access memory (Random Access Memory,
RAM), read-only storage (Read-Only Memory, ROM), EEPROM (Electrically
Erasable Programmable Read-Only Memory, EEPROM), read-only optical disc (Compact Disc Read-
Only Memory, CD-ROM) or other optical disc storages, magnetic disk storage medium or other magnetic storage apparatus or can be used in
Carry or storage with instruction or data structure form desired program code and can by computer access any other
Medium.In addition.Any connection can be suitably turn into computer-readable medium.For example, if software is using coaxial cable, light
Fine optical cable, twisted-pair feeder, Digital Subscriber Line (Digital Subscriber Line, DSL) or such as infrared ray, radio and
The wireless technology of microwave etc is transmitted from website, server or other remote sources, then coaxial cable, optical fiber cable, double
The wireless technology of twisted wire, DSL or such as infrared ray, wireless and microwave etc be included in belonging to medium it is fixing in.Such as this hair
Used in bright, disk (Disk) and dish (disc) include compressing laser disc (CD), laser disc, laser disc, Digital Versatile Disc (DVD),
Floppy disk and Blu-ray Disc, the replicate data of the usual magnetic of which disk, and dish is then with laser come optical replicate data.Group above
Conjunction should also be as being included within the protection domain of computer-readable medium.
In a word, the preferred embodiment of technical solution of the present invention is the foregoing is only, is not intended to limit the present invention's
Protection domain.Within the spirit and principles of the invention, any modification, equivalent substitution and improvements made etc., should be included in
Within protection scope of the present invention.
Claims (2)
- A kind of 1. method for adjusting camera white balance, it is characterised in that methods described includes:The segmentation of multiple infrared rays in the range of setting time in current environment is obtained in a manner of being segmented and count relative to full light The shared ratio of spectrum;The segmentation of the multiple infrared ray is calculated relative to the average value of the ratio shared by full spectrum, as current Ratio of the infrared ray shared by relative to full spectrum in environment;If infrared ray is less than 20% relative to the ratio shared by full spectrum, it is determined that current environment is interior;If infrared ray is relative In the ratio shared by full spectrum be higher than 35%, it is determined that current environment for outdoor, or, if currently for fine day and infrared ray it is relative Determine current environment for outdoor higher than 45% in the ratio shared by full spectrum;If current environment is interior, picture low colour temperature in being, the weight of the reference point of low colour temperature during increase is described;If current environment is outdoor, picture is middle high color temperature, increases the weight of the reference point of the middle high color temperature;If current environment is interior, give up the color temperature point that indoor light is unable to reach;If current environment is outdoor, give up the color temperature point of interior;The reference point of colour temperature based on determination and give up the color temperature point fallen, calculate the colour temperature under current environment;Colour temperature to be calculated carries out white balance adjusting as the target colour temperature of the camera to the camera.
- 2. a kind of device for adjusting camera white balance, it is characterised in that described device includes:Acquiring unit, for obtaining multiple infrared rays in the range of setting time in current environment relative to the ratio shared by full spectrum Example;Computing unit, for calculating average value of the multiple infrared ray relative to the ratio shared by full spectrum, as working as front ring Ratio of the infrared ray shared by relative to full spectrum in border;Determining unit, if being less than 20% relative to the ratio shared by full spectrum for infrared ray, it is determined that current environment is interior; If infrared ray is higher than 35% relative to the ratio shared by full spectrum, it is determined that current environment is outdoor, or, if being currently fine day And infrared ray determines current environment for outdoor relative to the ratio shared by full spectrum higher than 45%;Increase module, if detecting current environment for the determining unit as interior, picture low colour temperature in being, during increase is described The weight of the reference point of low colour temperature;If the increase module is additionally operable to the determining unit and detects current environment as outdoor, picture is middle high color temperature, increase The weight of the reference point of the middle high color temperature;Give up module, if detecting that current environment for interior, gives up the color that indoor light is unable to reach for the determining unit Warm spot;If it is described give up module be additionally operable to the determining unit detect current environment for outdoor, give up interior color temperature point;Computing module, for the colour temperature based on determination reference point and give up the color temperature point fallen, calculate current environment under color Temperature;Adjustment module, for the target colour temperature using the colour temperature that computing module is calculated as the camera, to the shooting Head carries out white balance adjusting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610214480.0A CN105898260B (en) | 2016-04-07 | 2016-04-07 | A kind of method and device for adjusting camera white balance |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610214480.0A CN105898260B (en) | 2016-04-07 | 2016-04-07 | A kind of method and device for adjusting camera white balance |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105898260A CN105898260A (en) | 2016-08-24 |
CN105898260B true CN105898260B (en) | 2018-01-19 |
Family
ID=57012786
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610214480.0A Expired - Fee Related CN105898260B (en) | 2016-04-07 | 2016-04-07 | A kind of method and device for adjusting camera white balance |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105898260B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106454081B (en) * | 2016-09-29 | 2019-03-22 | 宇龙计算机通信科技(深圳)有限公司 | Photographic method and device |
CN107371007A (en) * | 2017-07-25 | 2017-11-21 | 广东欧珀移动通信有限公司 | White balancing treatment method, device and terminal |
CN108024055B (en) * | 2017-11-03 | 2019-09-17 | Oppo广东移动通信有限公司 | Method, apparatus, mobile terminal and the storage medium of white balance processing |
CN108156435B (en) * | 2017-12-25 | 2020-03-13 | Oppo广东移动通信有限公司 | Image processing method and device, computer readable storage medium and computer device |
CN108280857A (en) * | 2017-12-28 | 2018-07-13 | 努比亚技术有限公司 | Camera method for parameter configuration, mobile terminal and computer readable storage medium |
TWI715142B (en) * | 2019-08-07 | 2021-01-01 | 瑞昱半導體股份有限公司 | Image sensing device and method for auto white balance therefor |
US11849264B2 (en) * | 2019-11-22 | 2023-12-19 | Samsung Electronics Co., Ltd. | Apparatus and method for white balance editing |
CN110827365B (en) * | 2019-11-26 | 2022-08-26 | Oppo广东移动通信有限公司 | Method and device for determining light source information, electronic equipment and storage medium |
CN111027489B (en) * | 2019-12-12 | 2023-10-20 | Oppo广东移动通信有限公司 | Image processing method, terminal and storage medium |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0723413A (en) * | 1993-06-29 | 1995-01-24 | Canon Inc | Image pickup device |
JPH1146367A (en) * | 1997-07-25 | 1999-02-16 | Matsushita Electric Ind Co Ltd | Automatic color temperature correction device |
JP3821729B2 (en) * | 2002-03-07 | 2006-09-13 | 富士写真フイルム株式会社 | Digital camera |
CN102271218B (en) * | 2011-01-17 | 2012-08-29 | 深圳市保千里电子有限公司 | Scene-oriented ultra-intelligent video camera and camera shooting method thereof |
JP2013086784A (en) * | 2011-10-24 | 2013-05-13 | Alps Electric Co Ltd | Light source identification apparatus and light source identification method |
CN103634581A (en) * | 2012-08-21 | 2014-03-12 | 联想(北京)有限公司 | White balance control method, device and electronic equipment |
CN104848892B (en) * | 2015-04-02 | 2017-09-22 | 广东小天才科技有限公司 | Method and device for spectrum detection of user environment |
-
2016
- 2016-04-07 CN CN201610214480.0A patent/CN105898260B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN105898260A (en) | 2016-08-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105898260B (en) | A kind of method and device for adjusting camera white balance | |
CN108024055B (en) | Method, apparatus, mobile terminal and the storage medium of white balance processing | |
CN104580896B (en) | A kind of video camera diurnal pattern switching method and apparatus | |
TWI345919B (en) | Estimation method for white-point and correction method of the white balance | |
CN107948538B (en) | Imaging method, imaging device, mobile terminal and storage medium | |
CN104113743B (en) | Colour TV camera AWB processing method and processing device under low-light (level) | |
CN110163810A (en) | A kind of image processing method, device and terminal | |
CN105721845A (en) | Automatic white balance methods and systems for electronic cameras | |
CN108551576A (en) | A kind of white balance method and device | |
CN105847705A (en) | Method and device for adjusting camera exposure time | |
CN108805942B (en) | Infrared image wide dynamic compression method | |
CN107123227A (en) | A kind of embedded image flame detector and its recognition methods based on two waveband | |
WO2018055457A1 (en) | Glass coating recognition system and method | |
CN108012135B (en) | Image processing method and device, computer readable storage medium and computer equipment | |
CN107346653A (en) | A kind of GAMMA curves adjusting process and device based on deep learning | |
CN113329217B (en) | Automatic white balance parameter processing method and device, and computer readable storage medium | |
CN110448146A (en) | A kind of cooking control method and cereal cooker of cereal cooker | |
US11687316B2 (en) | Audio based image capture settings | |
CN105763861B (en) | Auto white balance system for Electrofax | |
CN109688332A (en) | Image pickup mode method of adjustment, device and terminal device | |
CN106686320A (en) | Tone mapping method based on numerical density balance | |
CN108184076B (en) | Brightness calculation method based on color statistics | |
CN106921837B (en) | Camera module group lens shadow compensating method and device, image-signal processor | |
CN106791760B (en) | Colour temperature for camera detects, adjusts the method, apparatus and camera of white balance | |
WO2023087663A1 (en) | Image capture method, electronic device and computer-readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180119 |
|
CF01 | Termination of patent right due to non-payment of annual fee |