CN109819155A - Automatic exposure control method and the electronic device for using it - Google Patents
Automatic exposure control method and the electronic device for using it Download PDFInfo
- Publication number
- CN109819155A CN109819155A CN201711155876.3A CN201711155876A CN109819155A CN 109819155 A CN109819155 A CN 109819155A CN 201711155876 A CN201711155876 A CN 201711155876A CN 109819155 A CN109819155 A CN 109819155A
- Authority
- CN
- China
- Prior art keywords
- automatic exposure
- brightness
- array
- picture
- overexposure
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Abstract
The present invention relates to automatic exposure control method and use its electronic device.Automatic exposure control method includes: step a: obtaining cutting previewing picture is plurality of blocks;Step b: sorting those blocks according to brightness, and calculates the weighted average brightness of previewing picture with default weight array according to the sequence of these blocks, obtains automatic exposure picture to carry out automatic exposure;Step c: judging whether the overexposure ratio in the brightness histogram of automatic exposure picture or excessively dark ratio fall into desired section, to decide whether to generate correction weights array;Step d: according to the sequence of default weight array or correction weights array and those blocks, calculating the weighted average brightness of the previewing picture, obtains a target automatic exposure picture to carry out automatic exposure;And step e: judging whether the overall brightness of target automatic exposure picture falls into desired brightness section, to determine that control electronic device is photographed, or continues to finely tune default weight array or correction weights array.
Description
Technical field
The present invention is about a kind of automatic exposure control method and using its electronic device, and particularly relating to one kind can
Dynamically adjust the automatic exposure control method of luminance weights value and the electronic device using it.
Background technique
For automatic exposure control method common at present, when calculating the brightness of picture block, luminance weights are set
Common practice have: make the weight of each picture block is all equal, is dispensed picture middle position block weight it is maximum, according to
The different weight of dispensing again after brightness sorts to block.However, weighted value is fixed value in these ways.
It is excessive lightness or darkness when having in the case where all blocks give a weight and the weighted value is fixed preset value
Object come across picture and account for aspect ratio it is little when, can be seen compared with that can not restrain brightness in time or increase exposure with improving object
Degree.The case where different blocks difference weight and those weighted values are fixed preset value is being given according to different brightness doors section
Under, those corresponding weighted values of different brightness doors section are in being conditional in setting.This is limited in, different brightness doors
Difference can not be too big between those corresponding weighted values of section, is not so easy to dodge picture because of the adjustment back and forth of brightness
It is bright.
Summary of the invention
In order to restrain brightness in time or increase exposure to improve object visibility, and come in order to avoid picture because of brightness
It adjusts back whole and the situation flashed occurs, the automatic exposure control of the brightness of previewing picture is adjusted the present invention provides a kind of dynamic
Method processed.
Automatic exposure control method provided by the present invention is suitable for an electronic device.This electronic device includes camera module
With controller, wherein controller executes this automatic exposure control method to control camera module according to one of dynamic change weight
Array is photographed.This automatic exposure control method includes: step a: obtaining the previewing picture of camera module, and by previewing picture
It is cut into plurality of blocks;Those blocks: being ranked up by step b according to brightness, and according to the sequence of those blocks and presets
Weight array calculates the weighted average brightness of previewing picture, obtains automatic exposure picture to carry out automatic exposure;Step c: sentence
Overexposure ratio in the brightness histogram of disconnected automatic exposure picture whether falls into desired overexposure section or whether excessively dark ratio falls into
It is expected that between dark space, obtain correction weights array to decide whether to correct the default weight array of camera module;Step d: root
According to the sequence of default weight array or correction weights array and those blocks, the weighted average brightness of previewing picture is calculated, with
Automatic exposure is carried out to obtain target automatic exposure picture;And step e: judge the target automatic exposure picture of camera module
Whether overall brightness falls into desired brightness section, to determine control camera module according to default weight array or correction weights array
It photographs, or further finely tunes default weight array or correction weights array.
In addition, this electronic device includes camera module, memory and controller present invention provides a kind of electronic device.
Memory setting is to store an automatic exposure control procedure.Controller is connected to camera module and memory, and is arranged to execute this certainly
Dynamic spectrum assignment program is photographed to control camera module according to one of dynamic change weight array.In this electronic device,
Controller runs automatic exposure control procedure to execute automatic exposure control method above-mentioned.
Detailed description of the invention
Figure 1A is the flow chart for the automatic exposure control method being painted according to an exemplary embodiments of the invention.
Figure 1B is the flow chart of step c in the automatic exposure control method being painted according to an exemplary embodiments of the invention.
Fig. 1 C is the flow chart of step c3 in the automatic exposure control method being painted according to an exemplary embodiments of the invention.
Fig. 1 D is the flow chart of step e in the automatic exposure control method being painted according to an exemplary embodiments of the invention.
Fig. 2 is to execute step a and step b in the automatic exposure control method being painted according to an exemplary embodiments of the invention
Schematic diagram.
Fig. 3 is the signal that step c is executed in the automatic exposure control method being painted according to an exemplary embodiments of the invention
Figure.
Fig. 4 A and Fig. 4 B is brightness histogram in the automatic exposure control method being painted according to an exemplary embodiments of the invention
The schematic diagram of figure.
Fig. 5 A, Fig. 5 B and Fig. 5 C are respectively in the automatic exposure control method that an exemplary embodiments are painted according to the present invention
The schematic diagram of low smooth priority weight array, average weight array and bloom priority weight array.
Fig. 6 is the flow chart for the electronic device being painted according to an exemplary embodiments of the invention.
Specific embodiment
Various exemplary embodiments are more fully described with reference to the accompanying drawings below, some illustrative realities are shown in the accompanying drawings
Apply example.However, concept of the present invention may embody in many different forms, and it should not be construed as limited by example set forth herein
The property shown embodiment.Specifically, providing these exemplary embodiments makes the present invention that will be detailed and complete, and will be to this field
Technical staff sufficiently conveys the scope of concept of the present invention.In Zhu Tuzhong, similar number indicates similar assembly always.
[embodiment of automatic exposure control method]
Automatic exposure control method provided by the present embodiment is suitable for the electronic device with camera function, such as: mobile phone,
Tablet computer, monitoring arrangement ... etc..By and large, automatic exposure control method provided by the present embodiment, Neng Goudong are utilized
The weight array of shooting picture brightness to adjust electronic device is provided to state.
Figure 1A is please referred to, Figure 1A is the process for the automatic exposure control method being painted according to an exemplary embodiments of the invention
Figure.
As shown in Figure 1A, automatic exposure control method provided by the present embodiment generally comprises following steps: step a: taking
The previewing picture of camera module is obtained, and previewing picture is cut into plurality of blocks;Step b: according to brightness by those blocks into
Row sequence, and the weighted average brightness for calculating previewing picture according to a default weight array is obtained automatic with carrying out automatic exposure
Expose picture;Step c: judge the overexposure ratio in the brightness histogram of automatic exposure picture whether fall into desired overexposure section or
It crosses between whether dark ratio fall into and it is expected dark space, obtains correction power to decide whether to correct the default weight array of camera module
Principal matrix column;Step d: it according to the sequence of the step c default weight array determined or correction weights array and those blocks, calculates
The weighted average brightness of previewing picture obtains target automatic exposure picture to carry out automatic exposure;And step e: judge target
Whether the overall brightness of automatic exposure picture falls into desired brightness section, to determine what control camera module was determined according to step c
Default weight array or correction weights array are photographed, or further finely tune default weight array or correction weights array.
Next, the details of each step in automatic exposure control method provided by the present embodiment will be further illustrated.
First referring to figure 2., Fig. 2 is to hold in the automatic exposure control method being painted according to an exemplary embodiments of the invention
The schematic diagram of row step a and step b.
As shown in Fig. 2, first obtaining the previewing picture IM of electronic device, and previewing picture IM is cut into again in step a
Several blocks.For purposes of illustration only, in the present embodiment, previewing picture IM, which is set, is cut into 25 block T0~T24.Then exist
In step b, 25 block T0~T24 of previewing picture IM can be ranked up according to brightness.For purposes of illustration only, in the present embodiment
In, the brightness of block T0 is minimum and the brightness highest of block T24.Then, previewing picture will be calculated according to a default weight array
Weighted average brightness, and automatic exposure is carried out accordingly, to obtain automatic exposure picture.It should be noted that this default weight battle array
Column are corresponding with a default exposure adjustment index N.
The details of weight array is understood referring to Fig. 5 A to Fig. 5 C, Fig. 5 A, Fig. 5 B and Fig. 5 C are respectively according to this
Invent low smooth priority weight array, average weight array and bloom in the automatic exposure control method that an exemplary embodiments are painted
The schematic diagram of priority weight array.Low smooth priority weight array, average weight array and bloom are excellent in Fig. 5 C by Fig. 5 A, Fig. 5 B
First weight array is the different weight array of three kinds of weighted average brightness but weight distribution to calculate previewing picture.In low light
In priority weight array, the weight that low-light level block is assigned to is larger, and calculated weighted average brightness is lower, is underestimated with this
Weighted average brightness after automatic exposure, biggish exposure effect can be obtained, therefore in the present embodiment, by this low smooth priority
Principal matrix arranges corresponding exposure adjustment index N and is set to 100;Conversely, high brightness block is assigned in bloom priority weight array
Weight it is larger, after automatic exposure, lesser exposure effect can be obtained, corresponding exposure adjustment index N is set to 0.In addition,
In average weight array, the weight that brightness block placed in the middle is assigned to is larger, and the higher or relatively low block of brightness is assigned
The weight arrived is smaller, and corresponding exposure adjustment index N is set to 50.In the present embodiment, the low smooth priority principal matrix of interpolation can be passed through
Column, average weight array and bloom priority weight array wherein two array, expose power corresponding to adjustment index N to obtain other
Principal matrix column.
Next, by explanation be step c in automatic exposure control method provided by the present embodiment details.
Figure 1B is please referred to first, and Figure 1B is in the automatic exposure control method being painted according to an exemplary embodiments of the invention
The flow chart of step c.
As shown in Figure 1B, the step c in automatic exposure control method provided by the present embodiment is come in fact with following steps
It is existing: to judge whether the overexposure ratio in the brightness histogram of automatic exposure picture fall into desired overexposure section or excessively dark ratio
Fall into the expectation between dark space (step c1);If the overexposure ratio in the brightness histogram of automatic exposure picture falls into desired overexposure
Section or excessively dark ratio fall into the expectation between dark space, then do not correct default weight array (step c2);And if automatic exposure
Overexposure ratio in the brightness histogram of picture does not fall within desired overexposure section or excessively dark ratio was not fallen between it is expected dark space, then
Default weight array is corrected to obtain correction weights array (step c3).
Then referring to figure 3., Fig. 4 A and Fig. 4 B, Fig. 3 is the automatic exposure being painted according to an exemplary embodiments of the invention
The schematic diagram of step c is executed in control method.In addition, Fig. 4 A and Fig. 4 B is oneself being painted according to an exemplary embodiments of the invention
The schematic diagram of brightness histogram in dynamic exposal control method.
In the present embodiment, according to the difference of the current operating mode of electronic device, the execution details of step c can be slightly poor
It is different.In general, module selectively operating in electronic device with camera function is in mould on daytime when ambient light is stronger
Formula, and when ambient light is weaker, the module selectively operating in electronic device with camera function is in night mode.
In daytime mode, since ambient light is more sufficient, if being carried out based on the not weighted average brightness of previewing picture
Automatic exposure, easy misleading keep exposure compensating insufficient, the situation for causing part scenery excessively dark, therefore execute the present embodiment and provided
Automatic exposure control method, will with weight array appropriate calculate previewing picture weighted average brightness, to be exposed automatically
The excessively dark ratio of picture under day mode is mainly adjusted to appropriate value by light, purpose.Under night mode, due to environment light
The easy situation for misleading compensation and causing part scenery overexposure that line is more insufficient, therefore execute automatic exposure provided by the present embodiment
The overexposure ratio of picture under night mode is mainly adjusted to appropriate value by the purpose of control method.
It should be noted that the technical staff in the technical field that the present invention belongs to is straight for the brightness histogram of picture, brightness
Overexposure ratio in square figure, which will be understood that with excessively dark ratio therefore not be directed to those nouns in this, to be explained.
The execution details of the step c under night mode will be illustrated below.
Under night mode, in step c1, the overexposure ratio judged in the brightness histogram of automatic exposure picture is
It is no to fall into desired overexposure section.It should be noted that optimal mode is that the brightness of automatic exposure picture is straight in step c
Overexposure ratio in square figure is adjusted to target overexposure ratio BT as shown in Figure 3.However, it is contemplated that the brightness of automatic exposure picture
Histogram may generate variation a little because of noise, as long as the overexposure in the brightness histogram of automatic exposure picture IM
Ratio can fall into an expectation overexposure section, that is, can be considered and reach target overexposure ratio BT.That is, this expectation overexposure section can
The tolerance section being considered as centered on target overexposure ratio BT.
Assuming that target overexposure ratio BT is 30% under night mode, and assume that expectation overexposure section is target overexposure ratio
BT ± 3%, that is, expectation overexposure section is 27%~33%.At this point, if overexposure ratio in the brightness histogram of automatic exposure picture
Example is 31%, then enters step c2, do not correct default weight array.So at this point, if in the brightness histogram of automatic exposure picture
Overexposure ratio be 60%, then enter step c3, correct default weight array to obtain correction weights array.
In the following description, it will illustrate to correct default weight array referring concurrently to Fig. 1 C and Fig. 3 and obtain correction weights
The details (that is, details of step c3) of array;However, must first illustrate, since this is to illustrate to walk under night mode
The details of rapid c3, and set for target overexposure ratio in the present embodiment, under night mode, therefore in step c3
Under each step in must only be calculated for overexposure ratio, and be not necessary to be directed to dark ratio and be calculated.
Fig. 1 C is the flow chart of step c3 in the automatic exposure control method being painted according to an exemplary embodiments of the invention.
As shown in Figure 1 C, step c3 includes: the difference (step c3-1) for calculating overexposure ratio and target overexposure ratio;According to overexposure ratio
With the difference of the difference of target overexposure ratio or excessively dark ratio and the excessively dark ratio of target, correction exposure adjustment index (step is estimated
c3-2);According to correction exposure adjustment index, calculate correction weights array (step c3-3);According to correction weights array and with
The sequence of a little blocks calculates the weighted average brightness of previewing picture and carries out automatic exposure accordingly, obtains correction automatic exposure and draws
Face (step c3-4);Judge to correct whether the overexposure ratio in the brightness histogram of automatic exposure picture falls into desired overexposure section
(step c3-5);And if correction automatic exposure picture brightness histogram in overexposure ratio fall into desired overexposure section,
Correction weights array (step c3-6) is not adjusted.It should be noted that in step c3-5, if this of correction automatic exposure picture is bright
Overexposure ratio in degree histogram does not fall within desired overexposure section, then executes by step c3-1 again, to continue to adjust school
Positive weights array.
As shown in Figure 3, it is assumed that the module in electronic device with camera function has default weight array, and this default power
It is 70 that principal matrix, which arranges corresponding default exposure adjustment index N1,.Furthermore, it is assumed that automatic exposure picture caused by default weight array
Brightness histogram it is as shown in Figure 4 A, and its overexposure ratio B1 (corresponding to the overexposure ratio B1 in Fig. 3) be 60%;In addition, false
If target overexposure ratio BT is 30%.
In step c3-1, can first calculate overexposure ratio B1 and target overexposure ratio BT difference, i.e., -30%.Then, exist
In step c3-2, further according to the difference of overexposure ratio B1 and target overexposure ratio BT, correction exposure adjustment index N2 is estimated.Into one
Step explanation, since there are differences -30% between overexposure ratio B1 and target overexposure ratio BT, difference will estimate relatively default according to this
Expose the small correction exposure adjustment index N2 of adjustment index N1 (as shown in Figure 3, it is assumed that 60) correction exposure adjustment index N2 is.Most
Afterwards, in step c3-3, correction weights array will be calculated according to correction exposure adjustment index N2.It should be noted that in step
In c3-2, according to the difference of overexposure ratio B1 and target overexposure ratio BT, an exposure adjustment index offset will be first estimated, is connect
This exposure adjustment index offset is added into the default exposure adjustment index N1 of default weight array to obtain correction exposure tune
Whole index N2.That is, correction exposure adjustment index N2 is expose adjustment index offset and default weight array default
Expose the sum of adjustment index N1.It is notably that there are many kinds of the methods of estimation exposure adjustment index offset, in this implementation
Example in, be with k times of " difference of overexposure ratio B1 and target overexposure ratio BT " as expose adjustment index offset (wherein k >
0), but the present invention is not limited thereto.
In step c3-3, correction weights array is to utilize aforementioned low smooth priority weight array, average weight array and height
The two of them interpolation of light priority weight array is obtained.Example is held, since the correction estimated in step c3-2 exposes
Light adjustment index N2 is 60, so when be by low smooth priority weight array (corresponding N=100) and average weight in step c3-3
Array (corresponding N=50) interpolation calculates the correction weights array that exposure adjustment index is 60.
Next, in step c3-4, the correction power that can be 60 according to the calculated exposure adjustment index of institute in step c-3
Principal matrix arranges to calculate the weighted average brightness of previewing picture and carry out automatic exposure accordingly, obtains correction automatic exposure picture.Value
It must be noted that, at this time since weight array is reset, the brightness histogram for correcting automatic exposure picture also can be with
Variation.In this, it is assumed that default weight array corrects the brightness histogram of automatic exposure picture as schemed after first time corrects
It shown in 4B, and is 53% (in corresponding diagram 3 according to the overexposure ratio B2 of the obtained correction automatic exposure picture of this brightness histogram
Overexposure ratio B2).
In order to confirm, can generated correction weights array to correct automatic exposure picture after first time corrects
Overexposure ratio B2 reach target overexposure ratio BT (that is, 30%), can be according to correction automatic exposure picture in step c3-5
Brightness histogram judges whether the overexposure ratio B2 for correcting automatic exposure picture falls into an expectation overexposure section.Assuming that expectation overexposure
Section is target overexposure ratio BT ± 3%, then in this example, it is expected that overexposure section is 27%~33%, therefore corrects automatic exposure
The overexposure ratio B2 of picture does not obviously fall within 27%~33%.Then, it is just executed by step c3-1 again, to continue to adjust
Correction weights array.
Another correction exposure adjustment index N3 will be obtained after executing abovementioned steps c3-1 and step c3-2 again.This correction
Exposure adjustment index N3 is the correction exposure adjustment of one of estimation exposure adjustment index offset and current correction weights array
The sum of index N2.It is assumed that the correction exposure tune of the exposure adjustment index offset and current correction weights array that are estimated
Whole index N2's and be 40 (that is, correction exposure adjustment index N3=40).It then, can be by bloom priority weight in step c3-3
Array (corresponding N=0) calculates the correction weights battle array that exposure adjustment index is 40 with average weight array (corresponding N=50) interpolation
Column.Then in step c3-4, can according in step c3-3 institute it is calculated exposure adjustment index for 40 correction weights array
The weighted average brightness of previewing picture is calculated again and carry out automatic exposure accordingly, obtain new correction automatic exposure picture.
At this point, the brightness histogram for correcting automatic exposure picture also can and then change since weight array is reset again.
In this, it is assumed that default weight array is after second-order correction, according to obtained by the brightness histogram of correction automatic exposure picture
Overexposure ratio B3 be 32%.
In order to reaffirm, can generated correction weights array to correct automatic exposure after second-order correction
The overexposure ratio B3 of picture reaches target overexposure ratio BT (that is, 30%), in step c3-5, can be drawn according to correction automatic exposure
The brightness histogram in face judges whether its overexposure ratio B3 falls into desired overexposure section (that is, 27%~33%) again.At this point, by
It is 32% in the overexposure ratio B3 of correction automatic exposure picture, therefore can be considered that it has reached target overexposure ratio BT, then in step
Just stop adjustment correction weights array in rapid c3-6.
It is worth noting that, in the present embodiment, the step c3-1 of automatic exposure control method is extremely walked in daytime mode
The execution details of rapid c3-6 is similar to the execution of the step c3-1 to step c3-6 of automatic exposure control method under night mode
Details, only difference of them is, in daytime mode, will be according to automatic exposure picture in step c3-1 into step c3-3
Excessively dark ratio in brightness histogram, calculates correction weights array.It for example, can " excessively dark ratio secretly compares excessively with target
K times of the difference of example " is as exposure adjustment index offset (wherein k < 0), but the present invention is not limited thereto.In addition, in step
Whether rapid c3-5 falls into expectation into step c3-6, by the excessively dark ratio in the brightness histogram for judging to correct automatic exposure picture
It crosses between dark space, to decide whether to adjust correction weights array.Accordingly, with respect to the step of automatic exposure control method in daytime mode
The execution details of rapid c3-1 to step c3-6 can refer to preceding description, and the brightness about automatic exposure picture described herein is straight
Excessively dark ratio in square figure can refer to excessively dark ratio D1 and D2 marked in the brightness histogram of Fig. 4 A and Fig. 4 B.
In addition it should also be noted that the brightness histogram in Fig. 4 A and Fig. 4 B, the weight array in Fig. 5 A to Fig. 5 C, with
And exposure adjustment index, overexposure ratio and the numerical value of excessively dark ratio are only thin to the execution of step e to describe step c in Fig. 3
Section, without to limit the present invention.
After the adjustment for completing correction weights array, d is entered step, according to correction weights array and those blocks
Sequence calculates the weighted average brightness of previewing picture and carries out automatic exposure accordingly, obtains target automatic exposure picture.It must explanation
It is not necessary to correct if presetting weight array in step c, in step d just according to default weight array and those blocks
Sequence, calculate previewing picture weighted average brightness simultaneously carry out automatic exposure accordingly, obtain target automatic exposure picture.
Finally, the overexposure ratio of target automatic exposure picture or excessively dark ratio are after step a to the processing of step d
It meets the requirements, but whether appropriate, therefore will execute step e if still needing to inspect its overall brightness.In step e, it will judge target certainly
Whether the overall brightness of dynamic exposure picture falls into an expectation brightness section, to determine what control camera module was determined according to step c
Default weight array or correction weights array are photographed, or the further default weight array of trim step c decision or school
Positive weights array.
Fig. 1 D is please referred to, Fig. 1 D is step in the automatic exposure control method being painted according to an exemplary embodiments of the invention
The flow chart of e.
As shown in figure iD, in the present embodiment, step e include: judge target automatic exposure picture overall brightness whether
Fall into desired brightness section (step e1);If the overall brightness of target automatic exposure picture falls into desired brightness section, control
Camera module is photographed (step e2) according to the step c default weight array determined or correction weights array;And if target
The overall brightness of automatic exposure picture does not fall within desired brightness section, then adjusts an at least brightness control parameter for camera module,
And it is executed by step b again, the default weight array or correction weights array (step e3) determined with trim step c.
It should be noted that can first adjust an at least brightness control parameter for camera module, such as: photosensitive group in step e3
Part photosensitive value, time for exposure ... etc..Pre- however, once the photosensory assembly photosensitive value of camera module or time for exposure are adjusted
Brightness depending on block each in picture also can and then change, and then, just need to execute by step b again, to reach fine tuning step
The purpose of default weight array or correction weights array that rapid c is determined.
It should be noted that started to execute the default weight array determined with further trim step c by step b again herein
Or the details of correction weights array is same as the aforementioned details for adjusting default weight array or correction weights array, therefore do not go to live in the household of one's in-laws on getting married separately in this
It states.
[embodiment of electronic device]
Fig. 6 is please referred to, Fig. 6 is the flow chart for the electronic device being painted according to an exemplary embodiments of the invention.
As shown in fig. 6, electronic device 1 provided by the present embodiment includes camera module 10, memory 20 and controller 30.It is interior
20 settings are deposited to store an automatic exposure control procedure 20a.Controller 30 is connected to camera module 10 and memory 20, and be arranged with
Automatic exposure control procedure 20a is executed to control camera module 10 according to it and execute institute after automatic exposure control procedure 20a
The changeable weight array generated is photographed.
For example, electronic device 1 provided by the present embodiment can any electronic device with camera function, such as:
Mobile phone, tablet computer, monitoring arrangement ... wait to realize, and camera module 10 can be any electronic device with camera function
In camera, such as: mobile phone, tablet computer, monitoring arrangement ... camera.It is notably, in this implementation
In example, it is automatic provided by previous embodiment that controller 30, which executes the operation that automatic exposure control procedure 20a is carried out,
Each step in spectrum assignment program technic.
[possibility effect of embodiment]
In conclusion using automatic exposure control method of the invention, once the camera module of electronic device is activated,
Weight array for calculating the weighted average brightness of previewing picture can be dynamically adjusted.
With traditionally set a fixed luminance weights value to the practice and traditionally basis of blocks all in picture
Different brightness doors section give the practice of different blocks difference luminance weights value in picture the difference is that, no matter in electronics
The camera module of device is run under day mode and night mode, and automatic exposure control method of the invention can be dynamically
The luminance weights value of block each in previewing picture is repeatedly adjusted, until it reaches numerical value appropriate (that is, drawing automatic exposure
Face reaches the excessively dark ratio of target or target overexposure ratio).
In addition, in automatic exposure control method of the invention, as long as judging that the excessively dark ratio of automatic exposure picture is fallen
Enter it is expected between dark space or overexposure ratio falls into desired overexposure section, just no longer corrects changeable weight array.This practice can be kept away
Exempt from the phenomenon that luminance weights value of each block in previewing picture is excessively continually adjusted back and forth and causes film flicker.
The above description is only an embodiment of the present invention, is not the scope of the patents to limit to the present invention.
[symbol description]
1: electronic device
10: camera module
20: memory
20a: automatic exposure program
30: controller
A~e: step
C1, c2, c3: step
C3-1, c3-2, c3-3, c3-4, c3-5, c3-6: step
E1, e2, e3: step
IM: previewing picture
T0, T1~T24: block
D1, D2: excessively dark ratio
N1: default exposure adjustment index
N2, N3: correction exposure adjustment index
B1, B2, B3: overexposure ratio
BT: target overexposure ratio.
Claims (10)
1. a kind of automatic exposure control method, is suitable for an electronic device, which includes a camera module and a control
Device, the controller execute the automatic exposure control method to control the camera module according to one of dynamic change weight array and carry out
Photography, the automatic exposure control method include:
Step a: a previewing picture is obtained, and the previewing picture is cut into plurality of blocks;
Those blocks: being ranked up by step b according to brightness, and is calculated according to the sequence of those blocks and a default weight array
One weighted average brightness of the previewing picture, obtains an automatic exposure picture to carry out automatic exposure;
Step c: judge whether the overexposure ratio in one of automatic exposure picture brightness histogram falls into an expectation overexposure area
Between or an excessively dark ratio whether fall into one it is expected dark space between, with decide whether to correct one of the camera module preset weight array
To obtain a correction weights array;
Step d: presetting the sequence of weight array or the correction weights array and those blocks according to this, calculates the previewing picture
The weighted average brightness, obtain a target automatic exposure picture to carry out automatic exposure;And
Step e: judging whether one of target automatic exposure picture overall brightness falls into an expectation brightness section, to determine to control
The camera module presets weight array according to this or the correction weights array is photographed, or finely tune the default weight array or
The correction weights array.
2. automatic exposure control method according to claim 1, wherein in stepb, these blocks are by maximum brightness
The block sort to the block of minimum brightness, or sorted by the block of minimum brightness to the block of maximum brightness.
3. automatic exposure control method according to claim 1, wherein step c includes:
Step c1: judge whether the overexposure ratio in the brightness histogram of the automatic exposure picture falls into the expectation overexposure area
Between or the excessively dark ratio whether fall into the expectation between dark space;
Step c2: if the overexposure ratio in the brightness histogram of the automatic exposure picture falls into the expectation overexposure section or should
Cross dark ratio fall into the expectation between dark space, then do not correct the default weight array;And
Step c3: if the overexposure ratio in the brightness histogram of the automatic exposure picture do not fall within the expectation overexposure section or
The excessively dark ratio do not fall within the expectation between dark space, then correct the default weight array to obtain a correction weights array.
4. automatic exposure control method according to claim 1, wherein the camera module of the electronic device runs on one
Day mode and a night mode under the day mode, judge the brightness histogram of the automatic exposure picture in step c
The excessively dark ratio in figure whether fall into the expectation between dark space, to decide whether to correct the default weight battle array of the camera module
Column judge in the brightness histogram of the automatic exposure picture to obtain the correction weights array, and under the night mode
Whether the overexposure ratio falls into the expectation overexposure section, is obtained with deciding whether to correct the default weight array of the camera module
Obtain the correction weights array.
5. automatic exposure control method according to claim 3, wherein step c3 includes:
Step c3-1: the difference or the excessively dark ratio and the excessively dark ratio of a target of the overexposure ratio and a target overexposure ratio are calculated
Difference;
Step c3-2: according to the difference or the excessively dark ratio and the excessively dark ratio of the target of the overexposure ratio and the target overexposure ratio
Difference, one exposure adjustment index offset of estimation, and by the exposure adjustment index offset plus the default weight array it
One default exposure adjustment index, to obtain a correction exposure adjustment index;And
Step c3-3: according to the correction exposure adjustment index, the correction weights array is calculated.
6. automatic exposure control method according to claim 5, wherein in step c3-3, which is
It is obtained by a bloom priority weight array with average weight Array interpolation calculating or the correction weights array is low by one
Light priority weight array is obtained with average weight Array interpolation calculating.
7. automatic exposure control method according to claim 5, wherein the target overexposure ratio falls within the expectation overexposure area
In and the excessively dark ratio of the target fall within the expectation in dark space.
8. automatic exposure control method according to claim 5, wherein step c3 further includes;
Step c3-4: according to the correction weights array and with the sequence of these blocks, the weighting for calculating the previewing picture is flat
Equal brightness simultaneously carries out automatic exposure accordingly, to obtain a correction automatic exposure picture;
Step c3-5: judge whether the overexposure ratio in the brightness histogram of the correction automatic exposure picture falls into the expectation
Overexposure section or the excessively dark ratio whether fall into the expectation between dark space;And
Step c3-6: if the overexposure ratio in the brightness histogram of the correction automatic exposure picture falls into the expectation overexposure area
Between or the excessively dark ratio fall into the expectation between dark space, then do not adjust the correction weights array;
Wherein, in step c3-5, if the overexposure ratio in the brightness histogram of the correction automatic exposure picture is not fallen within
The expectation overexposure section or the excessively dark ratio do not fall within the expectation between dark space, then executed by step c3-1 again, to adjust
The whole correction weights array;
Wherein, in step c3-2, which is an exposure adjustment index offset and the default weight battle array
Sum of the default exposure adjustment index of one of column, or being somebody's turn to do for the exposure adjustment index offset and the current correction weights array
The sum of correction exposure adjustment index.
9. automatic exposure control method according to claim 1, wherein step e includes:
Step e1: judge whether the overall brightness of the target automatic exposure picture falls into the expectation brightness section;
Step e2: if the overall brightness of the target automatic exposure picture falls into the expectation brightness section, the photography mould is controlled
Root tuber presets weight array according to this or the correction weights array is photographed;And
Step e3: if the overall brightness of the target automatic exposure picture does not fall within the expectation brightness section, the photography is adjusted
An at least brightness control parameter for module, and executed by step b again, to finely tune the default weight array or correction power
Principal matrix column, wherein the brightness control parameter includes exposure and sensitive time.
10. a kind of electronic device, comprising:
One camera module;And
One memory is arranged to store an automatic exposure control procedure;
One controller is connected to the camera module and the memory, and is arranged and controls this to execute the automatic exposure control procedure
Camera module is photographed according to a changeable weight array, and wherein the controller runs the automatic exposure control procedure to execute root
According to the described in any item automatic exposure control methods of claim 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711155876.3A CN109819155B (en) | 2017-11-20 | 2017-11-20 | Automatic exposure control method and electronic device using same |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711155876.3A CN109819155B (en) | 2017-11-20 | 2017-11-20 | Automatic exposure control method and electronic device using same |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109819155A true CN109819155A (en) | 2019-05-28 |
CN109819155B CN109819155B (en) | 2021-01-05 |
Family
ID=66598064
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711155876.3A Active CN109819155B (en) | 2017-11-20 | 2017-11-20 | Automatic exposure control method and electronic device using same |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109819155B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112492224A (en) * | 2020-11-16 | 2021-03-12 | 广州博冠智能科技有限公司 | Adaptive scene light supplement method and device for video camera |
CN112567730A (en) * | 2020-05-28 | 2021-03-26 | 深圳市大疆创新科技有限公司 | Exposure control method, device, equipment, movable platform and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102369723A (en) * | 2011-08-29 | 2012-03-07 | 华为终端有限公司 | Auto exposure method and device, and imaging device |
US20130002941A1 (en) * | 2011-06-29 | 2013-01-03 | Lg Innotek Co., Ltd. | Method of controlling adaptive auto exposure based on adaptive region weight |
CN103167244A (en) * | 2011-12-09 | 2013-06-19 | 宏达国际电子股份有限公司 | Portable electronic device with a camera function, and image capturing method with auto exposure control |
TW201512701A (en) * | 2013-09-24 | 2015-04-01 | Senao Networks Inc | Image capturing apparatus and the control method thereof |
CN106454145A (en) * | 2016-09-28 | 2017-02-22 | 湖南优象科技有限公司 | Automatic exposure method with scene self-adaptivity |
CN107277466A (en) * | 2017-08-03 | 2017-10-20 | 深圳市亿联智能有限公司 | A kind of night vision barcode scanning processing method based on video monitoring equipment |
CN107343156A (en) * | 2017-07-10 | 2017-11-10 | 广东欧珀移动通信有限公司 | The method of adjustment and device of human face region auto-exposure control |
-
2017
- 2017-11-20 CN CN201711155876.3A patent/CN109819155B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130002941A1 (en) * | 2011-06-29 | 2013-01-03 | Lg Innotek Co., Ltd. | Method of controlling adaptive auto exposure based on adaptive region weight |
CN102369723A (en) * | 2011-08-29 | 2012-03-07 | 华为终端有限公司 | Auto exposure method and device, and imaging device |
CN103167244A (en) * | 2011-12-09 | 2013-06-19 | 宏达国际电子股份有限公司 | Portable electronic device with a camera function, and image capturing method with auto exposure control |
TW201512701A (en) * | 2013-09-24 | 2015-04-01 | Senao Networks Inc | Image capturing apparatus and the control method thereof |
CN106454145A (en) * | 2016-09-28 | 2017-02-22 | 湖南优象科技有限公司 | Automatic exposure method with scene self-adaptivity |
CN107343156A (en) * | 2017-07-10 | 2017-11-10 | 广东欧珀移动通信有限公司 | The method of adjustment and device of human face region auto-exposure control |
CN107277466A (en) * | 2017-08-03 | 2017-10-20 | 深圳市亿联智能有限公司 | A kind of night vision barcode scanning processing method based on video monitoring equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112567730A (en) * | 2020-05-28 | 2021-03-26 | 深圳市大疆创新科技有限公司 | Exposure control method, device, equipment, movable platform and storage medium |
CN112492224A (en) * | 2020-11-16 | 2021-03-12 | 广州博冠智能科技有限公司 | Adaptive scene light supplement method and device for video camera |
Also Published As
Publication number | Publication date |
---|---|
CN109819155B (en) | 2021-01-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100553301C (en) | The modification method of brightness | |
CN110536051B (en) | Image pickup apparatus, control method thereof, and storage medium | |
CN102694981B (en) | Automatic exposure method based on adaptive threshold segmentation and histogram equalization | |
US8705886B2 (en) | System, medium, and method compensating brightness of an image | |
CN102724404B (en) | All weather exposure gaining automatic regulation method and system | |
TW201918996A (en) | Auto exposure control method and electronic device using the same | |
CN105190424A (en) | Imaging apparatus with scene adaptive auto exposure compensation | |
CN101282425A (en) | Method and device for compensating backlight | |
CN106686319A (en) | Control method and device of image exposure | |
CN103312973A (en) | Electronic apparatus and adjustment method thereof | |
CN108881736B (en) | Aperture correction method and device | |
CN110913147B (en) | Exposure adjusting method and device and electronic equipment | |
CN105874779A (en) | An image forming apparatus, a light filling control method thereof, a system, and a movable object | |
CN102523386B (en) | Automatic exposure method based on histogram equalization | |
US20090169194A1 (en) | Automatic exposure control method | |
CN109819155A (en) | Automatic exposure control method and the electronic device for using it | |
US20220053121A1 (en) | A method, software product, camera device and system for determining artificial lighting and camera settings | |
WO2010149828A1 (en) | Apparatus, methods and computer readable storage mediums for controlling image exposure | |
CN113920022A (en) | Image optimization method and device, terminal equipment and readable storage medium | |
JP4841582B2 (en) | Image correction program and image correction apparatus | |
CN114449175A (en) | Automatic exposure adjusting method, automatic exposure adjusting device, image acquisition method, medium and equipment | |
CN104038669A (en) | Imaging Device, Imaging System And Imaging Method | |
CN101355665A (en) | System and method for automatically regulating lighteness and contrast of television set | |
WO2019152499A1 (en) | Systems and methods for image signal processor tuning using a reference image | |
CN105847690A (en) | Method for switching photographing modes and camera |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |