CN103546732B - Image processing method and system - Google Patents

Image processing method and system Download PDF

Info

Publication number
CN103546732B
CN103546732B CN201310492958.2A CN201310492958A CN103546732B CN 103546732 B CN103546732 B CN 103546732B CN 201310492958 A CN201310492958 A CN 201310492958A CN 103546732 B CN103546732 B CN 103546732B
Authority
CN
China
Prior art keywords
gain
exposure
maximum
overall
brightness
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.)
Active
Application number
CN201310492958.2A
Other languages
Chinese (zh)
Other versions
CN103546732A (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.)
Polytron Technologies Inc
Original Assignee
GUANGZHOU HAOYUN SECURITY 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 GUANGZHOU HAOYUN SECURITY TECHNOLOGY Co Ltd filed Critical GUANGZHOU HAOYUN SECURITY TECHNOLOGY Co Ltd
Priority to CN201310492958.2A priority Critical patent/CN103546732B/en
Publication of CN103546732A publication Critical patent/CN103546732A/en
Application granted granted Critical
Publication of CN103546732B publication Critical patent/CN103546732B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention provides a kind of image processing method and system, comprise automatic explosion method, described automatic explosion method following steps: brightness statistics step: image is divided into multiple range statistics mean flow rates; Adjust exposure determining step: judge whether to adjust exposure according to described reference brightness and object brightness; Obtain the overall gain step of setting: ratio and current overall gain draw the overall gain of setting with exposing; Obtaining step: use the overall gain and the exposure Policy Table that arrange to draw time for exposure and gain; Step of exposure: the time for exposure in obtaining step and gain are set in imageing sensor and are exposed. The invention has the beneficial effects as follows that automatic explosion method of the present invention and unit have improved the unsettled problem of exposure well, by the different exposure strategy of customization, the image effect under varying environment is reached to optimum simultaneously.

Description

Image processing method and system
Technical field
The present invention relates to camera technique field, relate in particular to image processing method and system.
Background technology
Exposure is the process of the light line formed image that receives into of imageing sensor, and the time for exposure is that imageing sensor receivesThe time of light. In shooting process, extraneous light can change, and easily causes over-exposedly when light grow, causes imageCross brightly, when light dies down, easily cause under-exposure, cause image excessively dark. Therefore just need in shooting process, carry out exposureControl, wherein automatic exposure is exactly without manual operations, by automatic adjustment brightness, time for exposure, gain, image is obtainedSuitable exposure and brightness.
In current technology, expose unstable, and be subject to the impact of external environment condition.
Summary of the invention
In order to solve the problems of the prior art, the invention provides a kind of image processing method and system.
The invention provides a kind of image processing method, comprise automatic explosion method, described automatic explosion method walks as followsRapid:
Brightness statistics step: image is divided into multiple range statistics mean flow rates, by each region according to weight table middle fingerFixed weight calculation goes out the mean flow rate of whole two field picture, and the mean flow rate of adding up nearest some two field pictures is as with reference to brightness;
Adjust exposure determining step: judge whether to adjust exposure according to described reference brightness and object brightness, if will adjustWhole exposure, carries out the overall gain step of obtaining setting;
Obtain the overall gain step of setting: draw the overall gain of setting by exposure ratio and current overall gain, arrangeThe current overall gain of overall gain=exposure ratio *;
Obtaining step: use the overall gain and the exposure Policy Table that arrange to draw time for exposure and gain;
Step of exposure: the time for exposure in obtaining step and gain are set in imageing sensor and are exposed.
As a further improvement on the present invention, in described adjustment exposure determining step: if reference brightness is bright in targetIn the higher limit of degree and the scope of lower limit, do not need to adjust exposure; If reference brightness exceeds the higher limit of object brightnessWith the scope of lower limit, need to adjust exposure.
As a further improvement on the present invention, in the described overall gain step of obtaining setting:
In described exposure ratio, adjust exposure ratio according to reference brightness and object brightness phase extent, exposureRatio=F (abs(object brightness-reference brightness));
In current overall gain, be first exposure gain by the time for exposure divided by exposure gain Conversion of measurement unit, then willExposure gain * gain obtains current overall gain.
As a further improvement on the present invention, in described obtaining step, the project bag of described exposure Policy Table's list itemDraw together:
Maximum exposure gain, the maximum exposure that can reach for this section of exposure gain;
Maximum gain, the maximum gain that can reach for this section of exposure;
Maximum overall gain, the maximum overall gain that can reach for this section of exposure, maximum overall gain=maximum exposure increasesBenefit * maximum gain;
Exposure mode, for this section of exposure mode that exposure is used, is divided into two kinds of exposure gain mode and gain modes;Exposure gain mode, gain keeps maximum gain constant, and exposure gain changes between the gain of 0~maximum exposure; Gain mode,Time for exposure gain keeps maximum exposure gain constant, and gain changes between 1~maximum gain;
In described obtaining step, comprise execution following steps:
First from exposure Policy Table, search the list item that first maximum overall gain is more than or equal to the overall gain that will arrange;
Judge again the exposure mode of this list item searching: the gain mode that exposes if, gain=maximum gain,Gain=overall gain/gain exposes completely; Gain mode if, exposure gain=maximum gain, gain=overall gain/exposure increaseBenefit;
Then, the gain conversions of exposing is the time for exposure, time for exposure=exposure gain * exposure gain unit.
As a further improvement on the present invention, this image processing method also comprises auto white balance method, described automatically whiteBalance method comprises execution following steps:
A.R, G, B white balance statistics, for counting green red ratio G/R and the turquoise ratio G/R of present image;
B. estimate current colour temperature according to statistical information, for according to statistics green red ratio G/R and turquoise ratio G/R and lookTemperature estimation function, estimates current colour temperature;
C. gain and color correction matrix according to the colour temperature of estimating and the red indigo plant of white balance corresponding to high, medium and low three colour temperatures,Interpolation goes out the red blue gain of current white balance and color correction matrix;
D., the red blue gain of white balance and color correction matrix are set.
The present invention also provides a kind of image processing system, comprises automatic exposure unit, and described automatic exposure unit comprises:
Brightness statistic: for image being divided into multiple range statistics mean flow rates, by each region according to weight tableThe weight calculation of middle appointment goes out the mean flow rate of whole two field picture, and the mean flow rate of adding up nearest some two field pictures is bright as a referenceDegree;
Adjust exposure judge module: for judging whether to adjust exposure according to described reference brightness and object brightness, ifAdjust exposure, carry out the overall gain module of obtaining setting;
Obtain the overall gain module of setting: draw the overall gain of setting by exposure ratio and current overall gain, arrangeThe current overall gain of overall gain=exposure ratio *;
Acquisition module: draw time for exposure and gain for the overall gain and the exposure Policy Table that use setting;
Exposure module: for the time for exposure of acquisition module and gain are set in imageing sensor and are exposed.
As a further improvement on the present invention, in described adjustment exposure judge module: if reference brightness is bright in targetIn the higher limit of degree and the scope of lower limit, do not need to adjust exposure; If reference brightness exceeds the higher limit of object brightnessWith the scope of lower limit, need to adjust exposure.
As a further improvement on the present invention, in the described overall gain module of obtaining setting:
In described exposure ratio, adjust exposure ratio according to reference brightness and object brightness phase extent, exposureRatio=F (abs(object brightness-reference brightness));
In current overall gain, be first exposure gain by the time for exposure divided by exposure gain Conversion of measurement unit, then willExposure gain * gain obtains current overall gain.
As a further improvement on the present invention, in described acquisition module, the project bag of described exposure Policy Table's list itemDraw together:
Maximum exposure gain, the maximum exposure that can reach for this section of exposure gain;
Maximum gain, the maximum gain that can reach for this section of exposure;
Maximum overall gain, the maximum overall gain that can reach for this section of exposure, maximum overall gain=maximum exposure increasesBenefit * maximum gain;
Exposure mode, for this section of exposure mode that exposure is used, is divided into two kinds of exposure gain mode and gain modes;Exposure gain mode, gain keeps maximum gain constant, and exposure gain changes between the gain of 0~maximum exposure; Gain mode,Time for exposure gain keeps maximum exposure gain constant, and gain changes between 1~maximum gain;
In described acquisition module, comprising:
Search module, is more than or equal to total increasing that will arrange for searching first maximum overall gain from exposure Policy TableThe list item of benefit;
Judge module, for judging the exposure mode of this list item searching: the gain mode that exposes if, gain=Maximum gain, maximum exposure gain=overall gain/gain; Gain mode if, exposure gain=maximum gain, gain=totalGain/exposure gain;
Modular converter, is the time for exposure for the gain conversions of exposing, time for exposure=exposure gain * exposure gain unit.
As a further improvement on the present invention, this image processing system also comprises AWB unit, described automatically whiteBalancing unit comprises:
White balance statistics module, for R, G, B white balance statistics, counts the green red ratio G/R of present image and turquoiseRatio G/R;
Estimate current colour temperature module, for estimate current colour temperature according to statistical information, for according to statistics green red ratioG/R and turquoise ratio G/R and color temperature estimation function, estimate current colour temperature;
Interpolating module, for gaining and face according to the colour temperature of estimating and the red indigo plant of white balance corresponding to high, medium and low three colour temperaturesLook correction matrix, interpolation goes out the red blue gain of current white balance and color correction matrix;
Module is set, for the red blue gain of white balance and color correction matrix are set.
The invention has the beneficial effects as follows: it is unsettled that automatic explosion method of the present invention and unit have improved exposure wellProblem reaches optimum by the different exposure strategy of customization the image effect under varying environment simultaneously.
Brief description of the drawings
Fig. 1 is the schematic diagram of automatic explosion method and auto white balance method in the present invention.
Fig. 2 is auto white balance method flow chart of the present invention.
Detailed description of the invention
The invention discloses a kind of image processing method, comprise automatic explosion method and auto white balance method. As Fig. 1 instituteShow, the schematic diagram of automatic explosion method and auto white balance method in the present invention, automatic exposure module obtains from imageing sensorGraph data carries out automatic exposure, and then the time for exposure calculating and gain are established into imageing sensor and exposed, fromMoving white balance module obtains graph data from imageing sensor and carries out AWB.
Described automatic explosion method following steps:
Brightness statistics step: image is divided into multiple range statistics mean flow rates, by each region according to weight table middle fingerFixed weight calculation goes out the mean flow rate of whole two field picture, and the mean flow rate of adding up nearest some two field pictures is as with reference to brightness;
Adjust exposure determining step: judge whether to adjust exposure according to described reference brightness and object brightness, if will adjustWhole exposure, carries out the overall gain step of obtaining setting;
Obtain the overall gain step of setting: draw the overall gain of setting by exposure ratio and current overall gain, arrangeThe current overall gain of overall gain=exposure ratio *;
Obtaining step: use the overall gain and the exposure Policy Table that arrange to draw time for exposure and gain;
Step of exposure: the time for exposure in obtaining step and gain are set in imageing sensor and are exposed.
In described adjustment exposure determining step: if reference brightness is in the higher limit of object brightness and the scope of lower limitIn, do not need to adjust exposure; If reference brightness exceeds the higher limit of object brightness and the scope of lower limit, need to adjustExposure.
In the described overall gain step of obtaining setting:
In described exposure ratio, adjust exposure ratio according to reference brightness and object brightness phase extent, exposureRatio=F (abs(object brightness-reference brightness));
In current overall gain, be first exposure gain by the time for exposure divided by exposure gain Conversion of measurement unit, then willExposure gain * gain obtains current overall gain.
In described obtaining step, the project of described exposure Policy Table's list item comprises:
Maximum exposure gain, the maximum exposure that can reach for this section of exposure gain;
Maximum gain, the maximum gain that can reach for this section of exposure;
Maximum overall gain, the maximum overall gain that can reach for this section of exposure, maximum overall gain=maximum exposure increasesBenefit * maximum gain;
Exposure mode, for this section of exposure mode that exposure is used, is divided into two kinds of exposure gain mode and gain modes;Exposure gain mode, gain keeps maximum gain constant, and exposure gain changes between the gain of 0~maximum exposure; Gain mode,Time for exposure gain keeps maximum exposure gain constant, and gain changes between 1~maximum gain;
In described obtaining step, comprise execution following steps:
First from exposure Policy Table, search the list item that first maximum overall gain is more than or equal to the overall gain that will arrange;
Judge again the exposure mode of this list item searching: the gain mode that exposes if, gain=maximum gain,Gain=overall gain/gain exposes completely; Gain mode if, exposure gain=maximum gain, gain=overall gain/exposure increaseBenefit;
Then, the gain conversions of exposing is the time for exposure, time for exposure=exposure gain * exposure gain unit.
In automatic explosion method of the present invention, be a variable time for exposure, gain unification, be called overall gain; In advanceFirst customize the exposure Policy Table under varying environment; Image is divided into multiple range statistics mean flow rates; By each region according to powerThe weight calculation of heavily specifying in table the mean flow rate of whole two field picture; Add up the mean flow rate of nearest some two field pictures as a referenceBrightness; Judge whether to adjust exposure according to reference brightness and object brightness; What differ according to reference brightness and object brightness is largeThe little exposure ratio of adjusting; Draw the overall gain that will arrange with described exposure ratio and current overall gain; Use will be establishedThe exposure Policy Table of the overall gain of putting and appointment draws time for exposure, the gain that will arrange; The time for exposure obtaining, gain are establishedEntering imageing sensor exposes.
Be an overall gain time for exposure, gain unification, method is:
First be exposure gain: ExposureGain=by the time for exposure divided by exposure gain Conversion of measurement unitExposureTime/ExposureGainUnit;
Then the gain that will gain and expose is unified is overall gain: TotalGain=ExposureGain*Gain.
The exposure gain ExposureGainUnit of unit can arbitrarily specify a time for exposure, such as, 10 milliseconds.
Customize in advance the exposure Policy Table under varying environment, each list item of exposure Policy Table has represented one section of exposure placeReason, is divided into multistage exposure processing with an exposure Policy Table an exposure strategy and stores.
Customize different exposure Policy Tables according to different environment in advance, such as, for indoor environment, due to lighting sourcePeriodically changed by the light intensity that affects of 50Hz/60Hz alternating current, for fear of flicker, need to be by time for exposure furnishing light sourceThe integral multiple of flicker cycle, thereby the exposure strategy of customization indoor mode, for outdoor environment, owing to there not being lighting source,Substantially be all the natural daylight of stabilized intensity, to be that outdoor environment brightness of image is excessive cause over-exposedly more problem, should for this reasonThis allows the time for exposure can be short as much as possible, thereby customizes the exposure strategy of outdoor pattern.
The project of exposure Policy Table's list item, comprising:
Maximum exposure gain (MaxExposureGain): the maximum exposure gain that can reach in this section of exposure;
Maximum gain (MaxGain): the maximum gain that can reach in this section of exposure;
Maximum overall gain (MaxTotalGain): the maximum overall gain that can reach in this section of exposure, it equalsMaxExposureGain*MaxGain; List item in table is arranged from small to large according to the size of maximum overall gain;
Exposure mode (ExposureMode): exposure mode used in this section of exposure, is divided into exposure gain mode and increasingTwo kinds of benefit patterns;
Exposure gain mode, gain keeps MaxGain constant, and exposure gain becomes between 0~MaxExposureGainChange;
Gain mode, time for exposure gain keeps MaxExposureGain constant, and gain becomes between 1~MaxGainChange.
Image is divided into multiple range statistics mean flow rates, and region number can arbitrarily be divided, and is generally no less than 5x5. WillEach region the mean flow rate of whole two field picture according to the weight calculation of specifying in weight table. Add up the flat of nearest some two field picturesAll brightness is as with reference to brightness. In weight table, can want to see the larger weight in more image detail backlight region to some.
Judge whether will adjust exposure, determination methods according to reference brightness and object brightness:
If reference brightness in the higher limit of object brightness and the scope of lower limit, does not need to adjust exposure;
If reference brightness exceeds the higher limit of object brightness and the scope of lower limit, need to adjust exposure.
For example, judge that reference brightness refY is whether in the higher limit of object brightness tarY and the scope of lower limit, as, underLimit value is tarY-5, and higher limit tarY+5 judges that refY is whether within the scope of tarY-5~tarY+5, not within the scope of thisCarry out overall gain calculating and exposure adjustment.
Adjust exposure ratio ExpRate, phase according to reference brightness (refY) and object brightness (tarY) phase extentThe exposure ratio of poor larger adjustment is larger, and the exposure ratio that differs less adjustment is less, draws by exposure ratio function:
ExpRate=F(abs(tarY-refY))。
Draw the overall gain that will arrange: TotalGain=with described exposure ratio and current overall gainTotalGain*ExpRate。
The exposure Policy Table of the overall gain that use will arrange and appointment draws time for exposure, the gain that will arrange, specifically bagDraw together:
First searching first maximum overall gain MaxTotalGain Policy Table from exposure is more than or equal to and will arrangesThe list item of overall gain TotalGain;
Judge again the exposure mode of this list item searching:
The gain mode that exposes if,
Gain=MaxGain;
ExposureGain=TotalGain/Gain;
Gain mode if,
ExposureGain=MaxGain;
Gain=TotalGain/ExposureGain;
Then, the gain conversions of exposing is the time for exposure,
ExposureTime=ExposureGain*ExposureGainUnit。
The time for exposure obtaining, gain are established into imageing sensor and exposed.
This image processing method also comprises auto white balance method, use in advance colour temperature lamp box and standard color card measure high,In, the corresponding red blue gain of white balance and color correction matrix under low three colour temperatures, three colour temperatures of selected this need contain substantiallyColour temperature in surroundings, is determined as follows:
Under high color temperature, colour temperature is HColorTemp, and the red gain of white balance is HRedGain, and the blue gain of white balance isHBlueGain, color correction matrix is HColorMatrix;
Under middle colour temperature, colour temperature is MColorTemp, and the red gain of white balance is MRedGain, white balance
Blue gain is MBlueGain, and color correction matrix is MColorMatrix;
Under low colour temperature, colour temperature is LColorTemp, and the red gain of white balance is LRedGain, and the blue gain of white balance isLBlueGain, color correction matrix is LColorMatrix;
Had the red blue gain of these three groups of white balances of measuring in advance and color correction matrix, just can be according to Fig. 2 automaticWhite balance handling process is carried out white balance.
As shown in Figure 2, described auto white balance method comprises execution following steps:
In step S1, R, G, B white balance statistics, for counting green red ratio G/R and the turquoise ratio of present imageG/R;
In step S2, estimate current colour temperature according to statistical information, for according to statistics green red ratio G/R and turquoise ratioRate G/R and color temperature estimation function, estimate current colour temperature;
In step S3, according to the colour temperature of estimating and the corresponding red blue gain of white balance and the color of high, medium and low three colour temperaturesCorrection matrix, interpolation goes out the red blue gain of current white balance and color correction matrix;
In step S4, the red blue gain of white balance and color correction matrix are set.
In step S3, interpolation method can change flexibly, and the most easy method is linear interpolation, specific as follows:
If current colour temperature CColorTemp is between high color temperature and middle colour temperature,
The red gain of current white balance:
CRedGain = MRedgain + ( CColorTemp - MColorTemp ) ( HColorTemp - MColorTemp ) * ( HRedGain - MRedGain )
The blue gain of current white balance:
CBlueGain = MBlueGain + ( CColorTemp - MColorTemp ) ( HColorTemp - MColorTemp ) * ( HBlueGain - MBlueGain )
Current color correction matrix:
CColorMatrix = MColorMatrix + ( CColorTemp - MColorTemp ) ( HColorTemp - MColorTemp ) * ( HColorMatrix - MColorMatrix )
If current colour temperature is between middle colour temperature and low colour temperature,
The red gain of current white balance:
CRedGain = LRedGain + ( CColorTemp - LColorTemp ) ( MColorTemp - LColoTemp ) * ( MRedGain - LRedGain )
The blue gain of current white balance
CBlueGain = LBlueGain + ( CColorTemp - LColorTemp ) ( MColorTemp - LColorTemp ) * ( MBlueGain - LBlue Gain )
Current color correction matrix:
CColorMatrix = LColorMatrix + ( CColorTemp - MColorTemp ) ( LColorTemp - MColorTemp ) * ( MColorMatrix - LColorMatrix )
Color correction matrix is the coefficient matrix of 3x3, concrete:
RR RG RB BR BG BB
The method of color correction:
New color value=old color value × color correction matrix after correction.
Carry out white balance R, G, B statistics, count green red ratio G/R and the turquoise ratio G/R of present image.
Estimate current colour temperature according to statistical information, be specially according to green red ratio G/R and turquoise ratio G/R and the look of statisticsTemperature estimation function, estimates current colour temperature.
The invention also discloses a kind of image processing system, comprise automatic exposure unit, described automatic exposure unit comprises:
Brightness statistic: for image being divided into multiple range statistics mean flow rates, by each region according to weight tableThe weight calculation of middle appointment goes out the mean flow rate of whole two field picture, and the mean flow rate of adding up nearest some two field pictures is bright as a referenceDegree;
Adjust exposure judge module: for judging whether to adjust exposure according to described reference brightness and object brightness, ifAdjust exposure, carry out the overall gain module of obtaining setting;
Obtain the overall gain module of setting: draw the overall gain of setting by exposure ratio and current overall gain, arrangeThe current overall gain of overall gain=exposure ratio *;
Acquisition module: draw time for exposure and gain for the overall gain and the exposure Policy Table that use setting;
Exposure module: for the time for exposure of acquisition module and gain are set in imageing sensor and are exposed.
In described adjustment exposure judge module: if reference brightness is in the higher limit of object brightness and the scope of lower limitIn, do not need to adjust exposure; If reference brightness exceeds the higher limit of object brightness and the scope of lower limit, need to adjustExposure.
In the described overall gain module of obtaining setting:
In described exposure ratio, adjust exposure ratio according to reference brightness and object brightness phase extent, exposureRatio=F (abs(object brightness-reference brightness));
In current overall gain, be first exposure gain by the time for exposure divided by exposure gain Conversion of measurement unit, then willExposure gain * gain obtains current overall gain.
In described acquisition module, the project of described exposure Policy Table's list item comprises:
Maximum exposure gain, the maximum exposure that can reach for this section of exposure gain;
Maximum gain, the maximum gain that can reach for this section of exposure;
Maximum overall gain, the maximum overall gain that can reach for this section of exposure, maximum overall gain=maximum exposure increasesBenefit * maximum gain;
Exposure mode, for this section of exposure mode that exposure is used, is divided into two kinds of exposure gain mode and gain modes;Exposure gain mode, gain keeps maximum gain constant, and exposure gain changes between the gain of 0~maximum exposure; Gain mode,Time for exposure gain keeps maximum exposure gain constant, and gain changes between 1~maximum gain;
In described acquisition module, comprising:
Search module, is more than or equal to total increasing that will arrange for searching first maximum overall gain from exposure Policy TableThe list item of benefit;
Judge module, for judging the exposure mode of this list item searching: the gain mode that exposes if, gain=Maximum gain, maximum exposure gain=overall gain/gain; Gain mode if, exposure gain=maximum gain, gain=totalGain/exposure gain;
Modular converter, is the time for exposure for the gain conversions of exposing, time for exposure=exposure gain * exposure gain unit.
This image processing system also comprises AWB unit, and described AWB unit comprises:
White balance statistics module, for R, G, B white balance statistics, counts the green red ratio G/R of present image and turquoiseRatio G/R;
Estimate current colour temperature module, for estimate current colour temperature according to statistical information, for according to statistics green red ratioG/R and turquoise ratio G/R and color temperature estimation function, estimate current colour temperature;
Interpolating module, for gaining and face according to the colour temperature of estimating and the red indigo plant of white balance corresponding to high, medium and low three colour temperaturesLook correction matrix, interpolation goes out the red blue gain of current white balance and color correction matrix;
Module is set, for the red blue gain of white balance and color correction matrix are set.
Automatic explosion method of the present invention and unit have improved the unsettled problem of exposure well, pass through to customize simultaneouslyDifferent exposure strategies reaches optimum the image effect under varying environment; Auto white balance method of the present invention and unit according toWhen colour temperature has been carried out the red blue gain of white balance, also introduce color correction matrix, under different-colour, use different color correctionsMatrix, has so greatly improved the white balance colour cast problem producing due to the impact of imageing sensor and optical filter.
Above content is in conjunction with concrete preferred embodiment further description made for the present invention, can not assertSpecific embodiment of the invention is confined to these explanations. For general technical staff of the technical field of the invention,Do not depart under the prerequisite of the present invention's design, can also make some simple deduction or replace, all should be considered as belonging to of the present inventionProtection domain.

Claims (8)

1. an image processing method, is characterized in that, comprises automatic explosion method, described automatic explosion method following steps:
Brightness statistics step: image is divided into multiple range statistics mean flow rates, by each region according to specifying in weight tableWeight calculation goes out the mean flow rate of whole two field picture, and the mean flow rate of adding up nearest some two field pictures is as with reference to brightness;
Adjust exposure determining step: judge whether to adjust exposure according to described reference brightness and object brightness, expose to the sun if will adjustLight, carries out the overall gain step of obtaining setting;
Obtain the overall gain step of setting: draw the overall gain of setting by exposure ratio and current overall gain, what arrange is totalThe current overall gain of gain=exposure ratio *;
Obtaining step: use the overall gain and the exposure Policy Table that arrange to draw time for exposure and gain;
Step of exposure: the time for exposure in obtaining step and gain are set in imageing sensor and are exposed;
This image processing method also comprises auto white balance method, and described auto white balance method comprises execution following steps:
A.R, G, B white balance statistics, for counting green red ratio G/R and the turquoise ratio G/R of present image;
B. estimate current colour temperature according to statistical information, for according to statistics green red ratio G/R and turquoise ratio G/R and colour temperatureEstimation function, estimates current colour temperature;
C. according to the colour temperature of estimating and the corresponding red blue gain of white balance and color correction matrix of high, medium and low three colour temperatures, insertBe worth the red blue gain of current white balance and color correction matrix;
D., the red blue gain of white balance and color correction matrix are set.
2. image processing method according to claim 1, is characterized in that, in described adjustment exposure determining step: asFruit reference brightness, in the higher limit of object brightness and the scope of lower limit, does not need to adjust exposure; If reference brightness is superGo out the higher limit of object brightness and the scope of lower limit, need to adjust exposure.
3. image processing method according to claim 1, is characterized in that, in the described overall gain step of obtaining settingIn:
In described exposure ratio, adjust exposure ratio according to reference brightness and object brightness phase extent, exposure ratio=F (abs(object brightness-reference brightness));
In current overall gain, first the time for exposure is gained for exposing divided by exposure gain Conversion of measurement unit, then will exposeGain * gain obtains current overall gain.
4. image processing method according to claim 3, is characterized in that, in described obtaining step, and described exposure planThe project of the list item of sketch form comprises:
Maximum exposure gain, the maximum exposure that can reach for this section of exposure gain;
Maximum gain, the maximum gain that can reach for this section of exposure;
Maximum overall gain, the maximum overall gain that can reach for this section of exposure, maximum overall gain=maximum exposure gains *Large gain;
Exposure mode, for this section of exposure mode that exposure is used, is divided into two kinds of exposure gain mode and gain modes; ExposureGain mode, gain keeps maximum gain constant, and exposure gain changes between the gain of 0~maximum exposure; Gain mode, exposureGain keeps maximum exposure gain constant, and gain changes between 1~maximum gain;
In described obtaining step, comprise execution following steps:
First from exposure Policy Table, search the list item that first maximum overall gain is more than or equal to the overall gain that will arrange;
Judge again the exposure mode of this list item searching: the gain mode that exposes if, gain=maximum gain, exposure increaseBenefit=overall gain/gain; Gain mode if, exposure gain=maximum gain, gain=overall gain/exposure gain;
Then, the gain conversions of exposing is the time for exposure, time for exposure=exposure gain * exposure gain unit.
5. an image processing system, is characterized in that, comprises automatic exposure unit, and described automatic exposure unit comprises:
Brightness statistic: for image being divided into multiple range statistics mean flow rates, by each region according to weight table middle fingerFixed weight calculation goes out the mean flow rate of whole two field picture, and the mean flow rate of adding up nearest some two field pictures is as with reference to brightness;
Adjust exposure judge module: for judging whether to adjust exposure according to described reference brightness and object brightness, if will adjustWhole exposure, carries out the overall gain module of obtaining setting;
Obtain the overall gain module of setting: draw the overall gain of setting by exposure ratio and current overall gain, what arrange is totalThe current overall gain of gain=exposure ratio *;
Acquisition module: draw time for exposure and gain for the overall gain and the exposure Policy Table that use setting;
Exposure module: for the time for exposure of acquisition module and gain are set in imageing sensor and are exposed;
This image processing system also comprises AWB unit, and described AWB unit comprises:
White balance statistics module, for R, G, B white balance statistics, counts green red ratio G/R and the turquoise ratio of present imageG/R;
Estimate current colour temperature module, for estimate current colour temperature according to statistical information, for according to statistics green red ratio G/R andTurquoise ratio G/R and color temperature estimation function, estimate current colour temperature;
Interpolating module, for gaining and color school according to the colour temperature of estimating and the red indigo plant of white balance corresponding to high, medium and low three colour temperaturesPositive matrices, interpolation goes out the red blue gain of current white balance and color correction matrix;
Module is set, for the red blue gain of white balance and color correction matrix are set.
6. image processing system according to claim 5, is characterized in that, in described adjustment exposure judge module: asFruit reference brightness, in the higher limit of object brightness and the scope of lower limit, does not need to adjust exposure; If reference brightness is superGo out the higher limit of object brightness and the scope of lower limit, need to adjust exposure.
7. image processing system according to claim 5, is characterized in that, in the described overall gain module of obtaining settingIn:
In described exposure ratio, adjust exposure ratio according to reference brightness and object brightness phase extent, exposure ratio=F (abs(object brightness-reference brightness));
In current overall gain, first the time for exposure is gained for exposing divided by exposure gain Conversion of measurement unit, then will exposeGain * gain obtains current overall gain.
8. image processing system according to claim 5, is characterized in that, in described acquisition module, and described exposure planThe project of the list item of sketch form comprises:
Maximum exposure gain, the maximum exposure that can reach for this section of exposure gain;
Maximum gain, the maximum gain that can reach for this section of exposure;
Maximum overall gain, the maximum overall gain that can reach for this section of exposure, maximum overall gain=maximum exposure gains *Large gain;
Exposure mode, for this section of exposure mode that exposure is used, is divided into two kinds of exposure gain mode and gain modes; ExposureGain mode, gain keeps maximum gain constant, and exposure gain changes between the gain of 0~maximum exposure; Gain mode, exposureGain keeps maximum exposure gain constant, and gain changes between 1~maximum gain;
In described acquisition module, comprising:
Search module, is more than or equal to the overall gain that will arrange for search first maximum overall gain from exposure Policy TableList item;
Judge module, for judging the exposure mode of this list item searching: the gain mode that exposes if, gain=maximumGain, exposure gain=overall gain/gain; Gain mode if, exposure gain=maximum gain, gain=overall gain/Exposure gain;
Modular converter, is the time for exposure for the gain conversions of exposing, time for exposure=exposure gain * exposure gain unit.
CN201310492958.2A 2013-10-18 2013-10-18 Image processing method and system Active CN103546732B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310492958.2A CN103546732B (en) 2013-10-18 2013-10-18 Image processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310492958.2A CN103546732B (en) 2013-10-18 2013-10-18 Image processing method and system

Publications (2)

Publication Number Publication Date
CN103546732A CN103546732A (en) 2014-01-29
CN103546732B true CN103546732B (en) 2016-05-18

Family

ID=49969735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310492958.2A Active CN103546732B (en) 2013-10-18 2013-10-18 Image processing method and system

Country Status (1)

Country Link
CN (1) CN103546732B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227852B (en) * 2014-06-11 2017-12-12 南京理工大学 Automatic explosion method based on color weighting
CN104869332B (en) * 2015-05-19 2017-09-29 北京空间机电研究所 A kind of adaptive multiple slope integration adjusting method
CN105744247B (en) * 2015-05-26 2018-05-11 维沃移动通信有限公司 The method, apparatus of blank level adjustment and mobile equipment are carried out in a mobile device
CN105208360B (en) * 2015-09-23 2017-07-25 青岛海信移动通信技术股份有限公司 Image preview method, device and the terminal of a kind of intelligent terminal
WO2018077156A1 (en) 2016-10-26 2018-05-03 Zhejiang Dahua Technology Co., Ltd. Systems and methods for exposure control
CN106603933A (en) * 2016-12-16 2017-04-26 中新智擎有限公司 Exposure method and apparatus
US11194227B2 (en) 2016-12-27 2021-12-07 Zhejiang Dahua Technology Co., Ltd. Systems and methods for exposure control
EP3545671A4 (en) 2016-12-27 2020-03-25 Zhejiang Dahua Technology Co., Ltd Systems and methods for exposure control
CN107071294B (en) * 2017-04-27 2020-02-11 西安诺瓦星云科技股份有限公司 Saturation adjusting method and system
CN106982333B (en) * 2017-05-12 2020-03-27 深圳怡化电脑股份有限公司 Method, device and equipment for quickly correcting image sensor
CN108234895B (en) * 2018-01-16 2020-06-09 昆山晔芯电子科技有限公司 Automatic exposure adjusting method and system for segmented exposure imaging
CN108282647B (en) 2018-01-31 2019-11-05 上海小蚁科技有限公司 Color correcting method and device, computer readable storage medium, terminal
CN110891146B (en) * 2018-09-10 2021-12-28 浙江宇视科技有限公司 Strong light inhibition method and device
CN110121064B (en) * 2019-05-15 2021-07-30 深圳市道通智能航空技术股份有限公司 Image color adjusting method and device and unmanned aerial vehicle
CN111147838B (en) * 2020-01-03 2022-08-09 惠州Tcl移动通信有限公司 Image processing method and device and mobile terminal
CN112995633B (en) * 2021-04-21 2021-08-27 贝壳找房(北京)科技有限公司 Image white balance processing method and device, electronic equipment and storage medium
CN113259600B (en) * 2021-05-11 2022-08-05 北京地平线机器人技术研发有限公司 Exposure parameter configuration method and device, electronic equipment and medium
CN114449243B (en) * 2022-01-28 2023-12-12 青岛海信移动通信技术有限公司 White balance method and terminal equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1504823A (en) * 2002-12-05 2004-06-16 ӡ�����Ƽ��ɷ����޹�˾ Rapid convergence method for correct exposure value
CN1922867A (en) * 2004-03-17 2007-02-28 富士通株式会社 Automatic gain control circuit
CN1932630A (en) * 2006-10-27 2007-03-21 北京中星微电子有限公司 Automatic exposure regulating method and device
CN101064783A (en) * 2006-04-30 2007-10-31 华为技术有限公司 Method for obtaining automatic exposure control parameter and control method and image forming apparatus
CN101262567A (en) * 2008-04-07 2008-09-10 北京中星微电子有限公司 Automatic exposure method and device
CN101399919A (en) * 2007-09-25 2009-04-01 展讯通信(上海)有限公司 Method for automatic exposure and automatic gain regulation and method thereof
CN102291538A (en) * 2011-08-17 2011-12-21 浙江博视电子科技股份有限公司 Automatic exposure method and control device of camera
CN102665047A (en) * 2012-05-08 2012-09-12 北京汉邦高科数字技术股份有限公司 Exposure control method for imaging of complementary metal-oxide-semiconductor (CMOS) image sensor
CN103227928A (en) * 2013-03-29 2013-07-31 华为技术有限公司 White balance adjusting method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1504823A (en) * 2002-12-05 2004-06-16 ӡ�����Ƽ��ɷ����޹�˾ Rapid convergence method for correct exposure value
CN1922867A (en) * 2004-03-17 2007-02-28 富士通株式会社 Automatic gain control circuit
CN101064783A (en) * 2006-04-30 2007-10-31 华为技术有限公司 Method for obtaining automatic exposure control parameter and control method and image forming apparatus
CN1932630A (en) * 2006-10-27 2007-03-21 北京中星微电子有限公司 Automatic exposure regulating method and device
CN101399919A (en) * 2007-09-25 2009-04-01 展讯通信(上海)有限公司 Method for automatic exposure and automatic gain regulation and method thereof
CN101262567A (en) * 2008-04-07 2008-09-10 北京中星微电子有限公司 Automatic exposure method and device
CN102291538A (en) * 2011-08-17 2011-12-21 浙江博视电子科技股份有限公司 Automatic exposure method and control device of camera
CN102665047A (en) * 2012-05-08 2012-09-12 北京汉邦高科数字技术股份有限公司 Exposure control method for imaging of complementary metal-oxide-semiconductor (CMOS) image sensor
CN103227928A (en) * 2013-03-29 2013-07-31 华为技术有限公司 White balance adjusting method and device

Also Published As

Publication number Publication date
CN103546732A (en) 2014-01-29

Similar Documents

Publication Publication Date Title
CN103546732B (en) Image processing method and system
CN104428829B (en) Color control method and communication apparatus
CN108337433A (en) A kind of photographic method, mobile terminal and computer readable storage medium
CN101916539B (en) System and method for correcting brightness and chromaticity of LED display screen point by point
CN103227928B (en) White balance adjusting method and device
CN110336954B (en) Automatic light supplementing adjustment method, system and storage medium
US9875724B2 (en) Method and electronic device for adjusting display
CN108234971B (en) White balance parameter determines method, white balance adjustment method and device, storage medium, terminal
US9460521B2 (en) Digital image analysis
CN101485234A (en) Method of controlling a lighting system based on a target light distribution
CN106782385B (en) A kind of light-dimming method and its device for wearing display equipment
TW200829038A (en) Automatic white balance statistics collection
WO2017008351A1 (en) White balance adjusting method and photographing terminal
CN105611265B (en) A kind of white balance adjustment device and method
CN104954772B (en) Image adjacent-grey pixel selection algorithm applied to automatic white balance algorithm
US9307214B1 (en) Automatic white balance methods and systems for electronic cameras
CN101170650A (en) Highly dynamic image method and system generating specific scenario
CN104660766B (en) The backlight adjusting method and device of a kind of mobile terminal
CN104639923A (en) Method and device for processing image data, and terminal
CN104320641B (en) Apparatus and method for automated self-training of white balance by electronic cameras
EP1786215A2 (en) Image processing method, image processing apparatus, and image pickup apparatus
KR20150056980A (en) A method and device fot controlling a camera for color calibration of muli-display
CN103108469A (en) Method and device for controlling output light of illuminating device and illuminating system
CN107543607A (en) A kind of method, system and equipment for detecting lighting environment health indicator
CN109387281A (en) The luminosity with Real-time Feedback monitors system in luminous environment simulation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP03 Change of name, title or address

Address after: 511400, No. 2201, building 2, Cheonan headquarters, No. 555, Panyu Avenue, east ring street, Guangzhou, Guangdong, Panyu District

Patentee after: Polytron Technologies Inc

Address before: 511400 Guangdong city of Guangzhou province Panyu District City Bridge Street Liang Lu Gold Garden East two Street No. 16 101

Patentee before: Guangzhou Haoyun Security Technology Co., Ltd.