CN105872499A - Green area judging method based on RGB sensor - Google Patents
Green area judging method based on RGB sensor Download PDFInfo
- Publication number
- CN105872499A CN105872499A CN201610196106.2A CN201610196106A CN105872499A CN 105872499 A CN105872499 A CN 105872499A CN 201610196106 A CN201610196106 A CN 201610196106A CN 105872499 A CN105872499 A CN 105872499A
- Authority
- CN
- China
- Prior art keywords
- awb
- green zone
- rgb sensor
- color temperature
- less
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- 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
-
- 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/70—Circuitry for compensating brightness variation in the scene
- H04N23/73—Circuitry for compensating brightness variation in the scene by influencing the exposure time
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
- H04N23/84—Camera processing pipelines; Components thereof for processing colour signals
- H04N23/88—Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Processing Of Color Television Signals (AREA)
- Color Television Image Signal Generators (AREA)
Abstract
The embodiment of the invention discloses a green area judging method based on an RGB sensor. The green area judging method based on the RGB sensor comprises the steps of reading environment correlated color temperature CCT, environment light brightness and positions of AWB auto white balance statistical points in a current environment by the RGB sensor; judging an AE auto exposure gain; judging whether the positions of the AWB auto white balance statistical points are in the range of a green area or not; carrying out statistics on the values of the correlated color temperature and light brightness output by the RGB sensor; and using different standard correlated color temperature reference points according to the environments with different correlated color temperatures and light brightness. According to the method, multi-stage judgment is set, and the green area AWB misjudgment phenomenon that the picture is blueish or yellowish caused by use of unsuitable reference points in a shadow scene or a sunlight perpendicular incidence scene can be avoided.
Description
Technical field
The present embodiments relate to image processing field, particularly relate to a kind of Green Zone based on RGB sensor and sentence
Disconnected method.
Background technology
The Green Zone misjudgment of mobile phone photograph always affects the problem that AWB (AWB) is stable.AWB
Judgement be that the statistics point of the original image directly exported based on camera sensing device is carried out, generally use
Statistics point is the gray area of central area, and Green Zone is under yuv image or the image pane of YCbCr
Under formula, statistics point occurs in the region of green.Take pictures in preview interface when large-area green area occurs in
Time, owing to green not existing the Grey Statistical information needed for AWB judges, Green Zone AWB often occurs
, there is the unstable and serious colour cast of Same Scene AWB in wrongheaded problem, takes pictures and can not reduce true field
The problem of scape.
Inventive embodiments content
In order to overcome all deficiencies of existing Related product, the embodiment of the present invention proposes a kind of based on RGB (R
Representing redness, G represents green, and B represents blueness) the Green Zone determination methods of sensor, it is set with multistage judgement,
Can avoid the occurrence of under shade scene or under direct sunlight scene, select inappropriate reference point to cause picture the most blue
Or the Green Zone AWB of picture Huang partially sentences wrong phenomenon.
The embodiment of the present invention solves its technical problem and be the technical scheme is that
A kind of based on RGB sensor the Green Zone determination methods that the embodiment of the present invention is provided, including following step
Rapid:
Step 1: read ambient color temperature value CCT under current environment, environmental light brightness by RGB sensor
Position with the statistics point of AWB AWB;
Step 2: the gain to AE automatic exposure judges;
Step 3: the position added up AWB AWB a little judges, sees whether it is positioned at Green Zone
Scope;
Step 4: statistics RGB sensor output colour temperature and the numerical value of brightness;
Step 5: different-colour is used different standard color temperature reference points with the environment of brightness.
As a further improvement on the present invention, in above-mentioned steps 2, it is judged that the gain condition of AE automatic exposure is:
Whether gain A E_gain is less than 2.0.
As a further improvement on the present invention, in above-mentioned steps 2, if the gain of AE automatic exposure is more than 2.0,
Then carry out indoor AWB AWB to judge and do not carry out the judgement of AWB AWB Green Zone;If
The gain of AE automatic exposure is less than 2.0, then carry out step 3.
As a further improvement on the present invention, in above-mentioned steps 3, if the statistics point of AWB AWB
Position does not enters into the scope of Green Zone, then judge that AWB is automatic according to the statistical value of AWB AWB
White balance is added in the gain A WB Rgain of red channel and the gain A WB Bgain of blue channel respectively;If
The scope of the entrance Green Zone, position of the statistics point of AWB AWB, then carry out step 4.
As a further improvement on the present invention, in above-mentioned steps 5, if the brightness of environment is less than 400lux,
Then present frame judges to terminate, and returns to step 1 and judges next frame.
As a further improvement on the present invention, if the brightness of environment is more than 400lux but less than 1000lux, then
Determine whether whether the color temperature value under current environment is more than 6500K and is less than 7500K.
As a further improvement on the present invention, if the color temperature value under current environment is not greater than 6500K and is less than
7500K, then the Green Zone carrying out AWB AWB with the color temperature value under current environment for reference point judges;
If the color temperature value under current environment more than 6500K less than 7500K, then using the light source of colour temperature 7500K as
Reference point carries out the Green Zone of AWB AWB and judges.
As a further improvement on the present invention, in above-mentioned steps 5, if the brightness of environment is more than 1000lux,
Then determine whether the color temperature value under current environment.
As a further improvement on the present invention, if the color temperature value under current environment is less than 6000K more than 5000K,
Then the light source with colour temperature as 5000K is as a reference point;If the color temperature value under current environment is little more than 6500K
In 7500K, then the light source with colour temperature 7500K is as a reference point;If the color temperature value under current environment is not upper
In the range of stating two kinds, then carry out the Green Zone of AWB AWB with the color temperature value under current environment for reference point
Judge.
Compared with prior art, present invention have the advantage that
Be set with multistage judgement, can avoid the occurrence of select under shade scene or direct sunlight scene inappropriate
Reference point causes partially blue or that picture is the partially yellow Green Zone AWB of picture to sentence wrong phenomenon.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of embodiment of the present invention Green Zone based on RGB sensor determination methods.
Detailed description of the invention
For the ease of understanding the embodiment of the present invention, below with reference to relevant drawings, the embodiment of the present invention is carried out more
Comprehensively describe.Accompanying drawing gives the preferred embodiment of the embodiment of the present invention.But, the embodiment of the present invention
Can realize in many different forms, however it is not limited to embodiment described herein.On the contrary, provide
The purpose of these embodiments is to make the understanding of the disclosure to the embodiment of the present invention more thoroughly comprehensively.
Unless otherwise defined, all of technology used herein and scientific terminology with belong to the embodiment of the present invention
The implication that is generally understood that of those skilled in the art identical.Herein in the description of the embodiment of the present invention
Used in term be intended merely to describe the purpose of specific embodiment, it is not intended that in limiting, the present invention is real
Execute example.
Refering to shown in Fig. 1, described Green Zone based on RGB sensor determination methods comprises the following steps:
Step 1: read ambient color temperature value CCT under current environment, environmental light brightness by RGB sensor
Position with the statistics point of AWB AWB;
Step 2: the gain to AE automatic exposure judges;
Step 3: the position added up AWB AWB a little judges, sees whether it is positioned at Green Zone
Scope;
Step 4: statistics RGB sensor output colour temperature and the numerical value of brightness;
Step 5: different-colour is used different standard color temperature reference points with the environment of brightness.
In above-mentioned steps 2, it is judged that the gain condition of AE automatic exposure is: whether gain A E_gain is less than
2.0, if the gain of AE automatic exposure is more than 2.0, then carries out indoor AWB AWB and judge and do not enter
The judgement of row AWB AWB Green Zone, indoor AWB AWB judges to refer to carry out normal flow
Judge without judge this two field picture statistics point position whether enter Green Zone;If the increasing of AE automatic exposure
Benefit less than 2.0, then carries out step 3.
In above-mentioned steps 3, if the position of the statistics point of AWB AWB does not enters into the scope of Green Zone,
Statistical value according to AWB AWB uses existing AWB based on grey world algorithm to judge to come
Judge that AWB AWB is added in gain A WB Rgain and the gain of blue channel of red channel respectively
AWB Bgain;If the scope of the entrance Green Zone, position of the statistics point of AWB AWB, then carry out step
4。
In above-mentioned steps 5, if the brightness of environment is less than 400lux, then present frame judges to terminate, and returns to step
Rapid 1 pair of next frame judges.
If the brightness of environment is more than 400lux (lux) but less than 1000lux, then determine whether current
Whether the color temperature value under environment is less than 7500K more than 6500K (Kelvin, temperature unit), if currently
Color temperature value under environment is not greater than 6500K and less than 7500K, then with the color temperature value under current environment for ginseng
Examination point carries out the Green Zone of AWB AWB and judges;If the color temperature value under current environment is more than 6500K
Less than 7500K, then with the light source Green Zone carrying out AWB AWB as a reference point of colour temperature 7500K
Judge.
In above-mentioned steps 5, if the brightness of environment is more than 1000lux, then determine whether under current environment
Color temperature value, if the color temperature value under current environment is less than 6000K more than 5000K, then with colour temperature as 5000K
Light source as a reference point;If the color temperature value under current environment is less than 7500K more than 6500K, then with color
The light source of temperature 7500K is as a reference point;If the color temperature value under current environment is not in the range of above two, then
The Green Zone that color temperature value under current environment carries out AWB AWB for reference point judges.
By RGB sensor, current frame image is carried out information reading and statistics, carry out multiple judgement, not
Under the conditions of Tong, different-colour is used different standard color temperature reference points with the environment of brightness, it is to avoid in outdoor
In environment, under direct sunlight scene, use the reference point of D75 (light source of colour temperature 7500K) that picture Huang partially occurs
Green Zone AWB, under shade scene, Green Zone AWB uses the reference point of D50 (colour temperature is the light source of 5000K)
That causes picture indigo plant partially sentences wrong phenomenon.
Above-described embodiment is the embodiment of the present invention preferably embodiment, but the embodiment of the embodiment of the present invention
And be not restricted to the described embodiments, other any spirit without departing from the embodiment of the present invention and principle
Lower made change, modify, substitute, combine, simplify, all should be the substitute mode of equivalence, be included in
Within the protection domain of the embodiment of the present invention.
Claims (9)
1. Green Zone based on a RGB sensor determination methods, it is characterised in that comprise the following steps:
Step 1: read ambient color temperature value CCT under current environment, environmental light brightness by RGB sensor
Position with the statistics point of AWB AWB;
Step 2: the gain to AE automatic exposure judges;
Step 3: the position added up AWB AWB a little judges, sees whether it is positioned at Green Zone
Scope;
Step 4: statistics RGB sensor output colour temperature and the numerical value of brightness;
Step 5: different-colour is used different standard color temperature reference points with the environment of brightness.
2. according to Green Zone based on the RGB sensor determination methods described in claim 1, it is characterised in that:
In above-mentioned steps 2, it is judged that the gain condition of AE automatic exposure is: whether gain A E_gain is less than 2.0.
Green Zone based on RGB sensor the most according to claim 2 determination methods, it is characterised in that:
In above-mentioned steps 2, if the gain of AE automatic exposure is more than 2.0, then carry out indoor AWB AWB
Judge and do not carry out the judgement of AWB AWB Green Zone;If the gain of AE automatic exposure is less than 2.0,
Then carry out step 3.
Green Zone based on RGB sensor the most according to claim 1 determination methods, it is characterised in that:
In above-mentioned steps 3, if the position of the statistics point of AWB AWB does not enters into the scope of Green Zone, then root
Judge that AWB AWB is added in the gain of red channel respectively according to the statistical value of AWB AWB
The gain A WB Bgain of AWB Rgain and blue channel;If the position of the statistics point of AWB AWB
Put the scope entering Green Zone, then carry out step 4.
Green Zone based on RGB sensor the most according to claim 1 determination methods, it is characterised in that:
In above-mentioned steps 5, if the brightness of environment is less than 400lux, then present frame judges to terminate, and returns to step 1
Next frame is judged.
Green Zone based on RGB sensor the most according to claim 5 determination methods, it is characterised in that:
If the brightness of environment is more than 400lux but less than 1000lux, then determine whether the color temperature value under current environment
Whether it is more than 6500K and is less than 7500K.
Green Zone based on RGB sensor the most according to claim 6 determination methods, it is characterised in that:
If the color temperature value under current environment is not greater than 6500K and less than 7500K, then with the colour temperature under current environment
The Green Zone that value carries out AWB AWB for reference point judges;If the color temperature value under current environment is more than
6500K and less than 7500K, then put down the most in vain with the light source AWB that carries out as a reference point of colour temperature 7500K
The Green Zone of weighing apparatus judges.
Green Zone based on RGB sensor the most according to claim 1 determination methods, it is characterised in that:
In above-mentioned steps 5, if the brightness of environment is more than 1000lux, then determine whether the colour temperature under current environment
Value.
Green Zone based on RGB sensor the most according to claim 8 determination methods, it is characterised in that:
If the color temperature value under current environment is more than 5000K less than 6000K, then the light source with colour temperature as 5000K is made
For reference point;If the color temperature value under current environment is less than 7500K more than 6500K, then with colour temperature 7500K
Light source as a reference point;If the color temperature value under current environment is not in the range of above two, then to work as front ring
Color temperature value under border is the Green Zone judgement that reference point carries out AWB AWB.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610196106.2A CN105872499A (en) | 2016-03-31 | 2016-03-31 | Green area judging method based on RGB sensor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610196106.2A CN105872499A (en) | 2016-03-31 | 2016-03-31 | Green area judging method based on RGB sensor |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105872499A true CN105872499A (en) | 2016-08-17 |
Family
ID=56627537
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610196106.2A Pending CN105872499A (en) | 2016-03-31 | 2016-03-31 | Green area judging method based on RGB sensor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105872499A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106454305A (en) * | 2016-11-14 | 2017-02-22 | 浙江宇视科技有限公司 | White balance correcting method and device |
CN106791760A (en) * | 2016-12-16 | 2017-05-31 | 歌尔股份有限公司 | Colour temperature detection, the method for regulation white balance, device and camera for camera |
CN113269031A (en) * | 2021-04-08 | 2021-08-17 | 天津天地伟业智能安全防范科技有限公司 | Method and device for separating image green plant area, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03198494A (en) * | 1989-12-26 | 1991-08-29 | Sanyo Electric Co Ltd | White balance controller |
US20040095478A1 (en) * | 2002-11-20 | 2004-05-20 | Konica Minolta Holdings, Inc. | Image-capturing apparatus, image-processing apparatus, image-recording apparatus, image-processing method, program of the same and recording medium of the program |
CN101529889A (en) * | 2006-10-26 | 2009-09-09 | 高通股份有限公司 | Automatic white balance statistics collection |
JP2010213213A (en) * | 2009-03-12 | 2010-09-24 | Ricoh Co Ltd | Imaging device and imaging method |
CN105282451A (en) * | 2015-05-26 | 2016-01-27 | 维沃移动通信有限公司 | Method for adjusting white balance of camera of mobile terminal and mobile terminal thereof |
-
2016
- 2016-03-31 CN CN201610196106.2A patent/CN105872499A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03198494A (en) * | 1989-12-26 | 1991-08-29 | Sanyo Electric Co Ltd | White balance controller |
US20040095478A1 (en) * | 2002-11-20 | 2004-05-20 | Konica Minolta Holdings, Inc. | Image-capturing apparatus, image-processing apparatus, image-recording apparatus, image-processing method, program of the same and recording medium of the program |
CN101529889A (en) * | 2006-10-26 | 2009-09-09 | 高通股份有限公司 | Automatic white balance statistics collection |
JP2010213213A (en) * | 2009-03-12 | 2010-09-24 | Ricoh Co Ltd | Imaging device and imaging method |
CN105282451A (en) * | 2015-05-26 | 2016-01-27 | 维沃移动通信有限公司 | Method for adjusting white balance of camera of mobile terminal and mobile terminal thereof |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106454305A (en) * | 2016-11-14 | 2017-02-22 | 浙江宇视科技有限公司 | White balance correcting method and device |
CN106791760A (en) * | 2016-12-16 | 2017-05-31 | 歌尔股份有限公司 | Colour temperature detection, the method for regulation white balance, device and camera for camera |
CN106791760B (en) * | 2016-12-16 | 2019-02-26 | 歌尔股份有限公司 | Colour temperature for camera detects, adjusts the method, apparatus and camera of white balance |
CN113269031A (en) * | 2021-04-08 | 2021-08-17 | 天津天地伟业智能安全防范科技有限公司 | Method and device for separating image green plant area, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9420248B2 (en) | Multi-LED camera flash for color temperature matching | |
CN104796683B (en) | A kind of method and system of calibration image color | |
US11277595B2 (en) | White balance method for image and terminal device | |
WO2017059732A1 (en) | Display device for adjusting display colour gamut and method for adjusting display colour gamut therefor | |
US20140085503A1 (en) | Mobile Communication Apparatus and Flashlight Controlling Method | |
CN101621705A (en) | Method and apparatus for automatic white balance | |
CN103327345B (en) | White balance processing method and processing device thereof | |
RU2013114372A (en) | AUTOMATIC PROCESSING OF WHITE BALANCE WITH FLEXIBLE SELECTION OF COLOR SPACE | |
US20220412798A1 (en) | Ambient light source classification | |
CN103227928B (en) | White balance adjusting method and device | |
TWI532385B (en) | White balance method and apparatus thereof | |
CN105872499A (en) | Green area judging method based on RGB sensor | |
CN101212693A (en) | White balancing method and image adjusting device | |
US10567723B2 (en) | System and method for detecting light sources in a multi-illuminated environment using a composite RGB-IR sensor | |
CN113452980A (en) | Image processing method, terminal and storage medium | |
CN104243793A (en) | Image-capturing device having image identification mechanism and method | |
CN103973992A (en) | Automatic exposure method and device for LED white-light source | |
US20190230253A1 (en) | Face tone color enhancement | |
WO2016184153A1 (en) | Method, terminal for preventing color shift and computer storage medium | |
Lam et al. | Automatic white balancing using standard deviation of RGB components | |
CN105391831B (en) | Mobile terminal and the method for calibrating color effect of taking pictures | |
CN101222572B (en) | White balance processing equipment | |
CN106885217A (en) | The full-automatic white balance adjusting methods of RGB of LED | |
US20080079749A1 (en) | White balance method for image processing | |
CN116233381A (en) | Color correction method and device, electronic equipment and 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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160817 |
|
WD01 | Invention patent application deemed withdrawn after publication |