CN102111560A - Automatic exposure device and method thereof - Google Patents

Automatic exposure device and method thereof Download PDF

Info

Publication number
CN102111560A
CN102111560A CN 200910189452 CN200910189452A CN102111560A CN 102111560 A CN102111560 A CN 102111560A CN 200910189452 CN200910189452 CN 200910189452 CN 200910189452 A CN200910189452 A CN 200910189452A CN 102111560 A CN102111560 A CN 102111560A
Authority
CN
China
Prior art keywords
data
target
average brightness
short
weight coefficient
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200910189452
Other languages
Chinese (zh)
Other versions
CN102111560B (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.)
BYD Semiconductor Co Ltd
Original Assignee
BYD 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 BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN 200910189452 priority Critical patent/CN102111560B/en
Publication of CN102111560A publication Critical patent/CN102111560A/en
Application granted granted Critical
Publication of CN102111560B publication Critical patent/CN102111560B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Studio Devices (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses an automatic exposure device, which comprises a sensor control module, a first luminance average value calculation module, an integral time calculation module and an image synthesis module, wherein the sensor control module controls a photosensitive pixel array to perform long exposure according to a first integral time and perform short exposure according to a second integral time to acquire target long-exposed image data and target short-exposed image data; the first luminance average value calculation module calculates a first luminance average value of current long-exposed image data, and calculates a second luminance average value of current short-exposed image data; the integral time calculation module calculates the first integral time according to the first luminance average value, and calculates the second integral time according to the second luminance average value; and the image synthesis module synthesizes the target long-exposed image data and the target short-exposed image data. The invention also provides a device-based automatic exposed method. By the device and the method, the technical problems of relatively lower definition of bright and dark positions of an exposed image are solved.

Description

A kind of automatic exposure device and method thereof
Technical field
The invention belongs to the technical field of image processing of camera head, relate in particular to a kind of automatic exposure device and method thereof.
Background technology
The automatic exposure control module of existing cmos image sensor realizes automatic exposure control by the following method: the average brightness that calculates present image, and relatively with the brightness target value of present image average brightness and setting, if the average brightness of present image is higher than the brightness target value of setting, the automatic exposure control module shortens the time of integration or reduces digital gain value, otherwise then prolong the time of integration or increase digital gain value, reached the limiting value of transducer like this up to the difference of the brightness target value of current average brightness and setting less than preset threshold or the time of integration and digital gain value.This automatic exposure control module is come the exposure of automatic controlling filed scape by changing the time of integration and digital gain value, and image brightness is remained on the relatively reasonable brightness value.
Cmos image sensor is in the pictures taken process, and imageing sensor judges whether to adjust the time of integration and digital gain value by the average brightness of present image, and the time of integration and digital gain value are that all pixel values are adjusted.For the image that brightness value is evenly distributed, set suitable brightness target value, can obtain desirable exposure image; For the big image of picture brightness difference, such adjustment will make part bright in the image brighter, and dark part is darker.How to regulate and all be difficult to obtain desirable image.
Existing automatic exposure control module can only make the image exposure of illuminance distribution normal, and the bigger image of luminance difference by existing automatic exposure control method, can cause part bright in the image brighter, and dark part is darker.
Summary of the invention
The present invention is for solving bright place and the relatively poor technical problem of dark place definition after the image automatic exposure, and a kind of bright place and dark place details automatic exposure device clearly that can make after the image automatic exposure is provided;
In addition, another purpose of the present invention also is to provide a kind of automatic explosion method.
A kind of automatic exposure device comprises:
The transducer control module is carried out time exposure and is carried out short time exposure according to the second integral time according to the first integral time in order to sense of control light pixel array, obtains target time exposure view data and target short time exposure image data;
The first average brightness computing module in order to calculate first average brightness of current time exposure view data, reaches second average brightness that calculates current short time exposure image data;
Computing module in order to calculate the first integral time according to described first average brightness and first preset value, reached according to described second average brightness and second preset value and calculated the second integral time time of integration;
Image synthesis unit is in order to synthesize described target time exposure view data and target short time exposure image data.
A kind of automatic explosion method comprises the steps:
Sense of control light pixel array carries out time exposure according to the first integral time and carries out the short time according to the second integral time and expose, and obtains target time exposure view data and target short time exposure image data;
Calculate first average brightness of current time exposure view data, and calculate second average brightness of current short time exposure image data;
Calculate the first integral time according to described first average brightness and first preset value, and calculate the second integral time according to described second average brightness and second preset value;
Described target time exposure view data and target short time exposure image data are synthesized.
The present invention carries out twice automatic exposure to image, obtain target time exposure view data and target short time exposure image data, and target time exposure view data and target short time exposure image data synthesized, obtain details composograph clearly, target time exposure view data keeps the dark place image detail, target short time exposure image data keep bright place image detail, have overcome bright place of image and the relatively poor technical problem of dark place definition after traditional automatic exposure algorithm process.
Description of drawings
Fig. 1 is a kind of automatic exposure device schematic diagram that the embodiment of the invention 1 provides;
Fig. 2 is a kind of automatic exposure device schematic diagram that the embodiment of the invention 2 provides;
Fig. 3 is a kind of automatic exposure device schematic diagram that the embodiment of the invention 3 provides;
Fig. 4 is the scene Recognition state transition graph;
Fig. 5 is a kind of automatic explosion method flow chart that the embodiment of the invention 4 provides;
Fig. 6 is a kind of automatic explosion method flow chart that the embodiment of the invention 5 provides;
Fig. 7 is a kind of automatic explosion method flow chart that the embodiment of the invention 6 provides.
Embodiment
In order to make technical problem solved by the invention, technical scheme and beneficial effect clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
As shown in Figure 1, be automatic exposure device embodiment 1 schematic diagram of the present invention, this device comprises: transducer control module 11, the first average brightness computing module 12, the time of integration computing module 13, image synthesis unit 14.
Transducer control module 11 sense of control light pixel arrays carry out time exposure according to the first integral time and carry out the short time according to the second integral time and expose, obtain target time exposure view data and target short time exposure image data, and target time exposure view data and target short time exposure image data are exported to image synthesis unit 14.
A kind of special circumstances of called optical imaging, when present image is first frame, transducer control module 11 sense of control light pixel arrays carry out time exposure according to the default first integral time and carry out the short time according to the default second integral time and expose, and obtain the target time exposure view data and the target short time exposure image data of first two field picture.
The first average brightness computing module 12 is in order to the first average brightness Y_AVER_LONG that calculates current time exposure view data and the second average brightness Y_AVER_SHORT of current short time exposure image data, and the first average brightness Y_AVER_LONG and the second average brightness Y_AVER_SHORT are exported to computing module 13 time of integration.
The time of integration, computing module 13 calculated first integral time INT_TIME_LONG according to the described first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET, reach according to the described second average brightness Y_AVER_SHORT and the second preset value Y_SHORT_TARGET and calculate second integral time INT_TIME_SHORT, and first integral time INT_TIME_LONG, second integral time INT_TIME_SHORT are fed back to transducer control module 11.
Image synthesis unit 14 in order to average after target time exposure view data and the exposure image data addition of target short time, obtains synthetic back view data.
Image synthesis unit 14 is synthesized target time exposure view data and target short time exposure image number, because target time exposure view data has kept the dark place image detail, target short time exposure image data have kept bright place image detail, image after synthetic has kept the details of entire image, obtain more penetrating image, overcome bright place of image and the relatively poor technical problem of dark place definition after traditional automatic exposure device is handled.
The first average brightness Y_AVER_LONG calculates in the following way, all current time exposure image pixel point brightness value Y additions are obtained brightness summation Y_SUM1, and all current time exposure image slices vegetarian refreshments number additions are obtained pixel summation PIXELE_SUM1, brightness summation Y_SUM1 divided by pixel summation PIXELE_SUM1, is obtained the first average brightness Y_AVER_LONG.
The second average brightness Y_AVER_SHORT calculates in the following way, all current short time exposure image pixel brightness value Y additions are obtained brightness summation Y_SUM2, and all current short time exposure image pixel number additions are obtained pixel summation PIXELE_SUM2, brightness summation Y_SUM2 divided by pixel summation PIXELE_SUM2, is obtained the second average brightness Y_AVER_SHORT.
First integral time INT_TIME_LONG adopts normal mode to calculate, computational process is as follows: the first surplus MARGIN1 at first is set, the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET are compared, if the difference of the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET is greater than the first surplus MARGIN1, then the time of integration, computing module 13 reduced first integral time INT_TIME_LONG, if the difference of the first preset value Y_LONG_TARGET and the first average brightness Y_AVER_LONG is greater than the first surplus MARGIN1, then increase first integral time INT_TIME_LONG, up to the difference of the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET less than the first surplus MARGIN1 that sets or the first integral time INT_TIME_LONG value of reaching capacity.
The computational process of second integral time INT_TIME_SHORT is identical with the computational process of first integral time INT_TIME_LONG, the second surplus MARGIN2 at first is set, then the difference of the second average brightness Y_AVER_SHORT and the second preset value Y_SHORT_TARGET and the difference and the second surplus MARGIN2 of the second preset value Y_SHORT_TARGET and the second average brightness Y_AVER_SHORT are compared, determine second integral time INT_TIME_SHORT increase or reduce its concrete computational process of summary.
Because the integral image brightness after the automatic exposure is darker, according to multiply by identical value, just can improve integral image brightness to all pixel numbers, obtain the suitable image of brightness.
As optimum embodiment, the present invention includes automatic exposure device embodiment 2, as shown in Figure 2, comprise transducer control module 21, the first average brightness computing module 22, time of integration computing module 23, image synthesis unit 24, gain value computation module 25, multiplication computing module 26.
Embodiment 1 compares with device, and present embodiment has increased gain value computation module 25, multiplication computing module 26.
Gain value computation module 25 is calculated the first digital gain value GLB_GAIN_LONG according to the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET, and calculates the second digital gain value GLB_GAIN_SHORT according to the described second average brightness Y_AVER_SHORT and the second preset value Y_SHORT_TARGET.
The first digital gain value GLB_GAIN_LONG adopts normal mode to calculate, computational process is as follows: the first surplus MARGIN1 at first is set, the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET are compared, if the difference of the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET is greater than the first surplus MARGIN1, then gain value computation module 25 reduces first integral time INT_TIME_LONG, if the difference of the first preset value Y_LONG_TARGET and the first average brightness Y_AVER_LONG is greater than the first surplus MARGIN1, then increase first integral time INT_TIME_LONG, up to the difference of the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET less than the first surplus MARGIN1 that sets or the first digital gain value GLB_GAIN_LONG value of reaching capacity.
The computational process of the second digital gain value GLB_GAIN_SHORT is identical with the computational process of the first digital gain value GLB_GAIN_LONG, the second surplus MARGIN2 at first is set, then the difference of the second average brightness Y_AVER_SHORT and the second preset value Y_SHORT_TARGET and the difference and the second surplus MARGIN2 of the second preset value Y_SHORT_TARGET and the second average brightness Y_AVER_SHORT are compared, determine the increase of the second digital gain value GLB_GAIN_SHORT or reduce its concrete adjustment process of summary.
Multiplication computing module 26 multiplies each other target time exposure view data and the first digital gain value GLB_GAIN_LONG and obtains target high-brghtness picture images data, and target short time exposure image data and the second digital gain value GLB_GAIN_SHORT are multiplied each other obtains target low-luminosity picture data.
A kind of special circumstances of called optical imaging, when present image is first frame, the target high-brghtness picture images data that multiplication computing module 26 multiplies each other target time exposure view data and the default first digital gain value GLB_GAIN_LONG to obtain first two field picture, the target low-luminosity picture data that target short time exposure image data and the default second digital gain value GLB_GAIN_SHORT are multiplied each other and obtain first two field picture.
The described first average brightness computing module 22 adopts current high-brghtness picture images data when calculating the first average brightness Y_AVER_LONG, adopts current low-luminosity picture data when calculating the second average brightness Y_AVER_SHORT.
Described image synthesis unit 24 is synthesized described target high-brghtness picture images data and target low-luminosity picture data.
The automatic exposure device of device embodiment 2 calculates the first digital gain value GLB_GAIN_LONG and the second digital gain value GLB_GAIN_SHORT, and target time exposure view data and the first digital gain value GLB_GAIN_LONG multiplied each other obtain target high-brghtness picture images data, target short time exposure image data and the second digital gain value GLB_GAIN_SHORT multiplied each other obtains target low-luminosity picture data, has improved the overall brightness of image.
The view data that the automatic exposure device of device embodiment 2 obtains is the view data after target high-brghtness picture images data and target low-luminosity picture data are synthesized, when synthetic, adopt identical ratio, promptly directly target high-brghtness picture images data and the addition of target low-luminosity picture data are obtained divided by two.The view data energy bright place of display image that this synthesis mode obtains and the details of dark place, but accuracy is not high.
As optimum embodiment, the present invention includes automatic exposure device embodiment 3, as shown in Figure 3, comprising: transducer control module 31, the first average brightness value computing module 32, the time of integration computing module 33, image synthesis unit 34, gain value computation module 35, multiplication computing module 36, weight coefficient computing module 37.
Embodiment 2 compares with device, and present embodiment has increased weight coefficient computing module 37.
Weight coefficient computing module 37 receives the first average brightness Y_AVER_LONG and the second average brightness Y_AVER_SHORT of 32 outputs of the first average brightness computing module, and calculates the value of the first weight coefficient COEF1, the second weight coefficient COEF2 according to the size of the first average brightness Y_AVER_LONG and the second average brightness Y_AVER_SHORT.
Image synthesis unit 34 multiplies each other the described first weight coefficient COEF1 and target high-brghtness picture images data and obtains first view data, the described second weight coefficient COEF2 and target low-luminosity picture data are multiplied each other obtain second view data, and first view data and second view data synthesized, image after synthetic can embody the image detail of each GTG, obtains more penetrating image.
The first weight coefficient COEF1 and the second weight coefficient COEF2 satisfy formula (1), (2) in the weight coefficient computing module 37:
COEF1+COEF2=1;(1)
COEF1/COEF2=Y_AVER_LONG/Y_AVER_SHORT;(2)
Utilize formula (1), (2) to try to achieve the value of the first weight coefficient COEF1, the second weight coefficient COEF2.The first average brightness Y_AVER_LONG is big more, and the first weight coefficient COEF1 is big more, and the second average brightness Y_AVER_SHORT is big more, and the second weight coefficient COEF2 is also big more accordingly.
Composograph adopts following formula to try to achieve:
DATA_OUT=DATA_IN_LONG*COEF1+DATA_IN_SHORT*COEF2;
(3)
DATA_OUT represents synthetic back view data in the formula (3), and DATA_IN_LONG represents target high-brghtness picture images data, and COEF1 represents first weight coefficient, and DATA_IN_SHORT represents target low-luminosity picture data, and COEF2 represents second weight coefficient.
Adopt the first weight coefficient COEF1, the second weight coefficient COEF2 to determine that target high-brghtness picture images data and target low-luminosity picture data account for the ratio of composograph among the device embodiment 3, make the clear picture after synthesizing manifest the image detail of bright place and dark place.
The image that luminance difference is bigger need obtain the ideal exposure image with the synthetic method of image, but this composition algorithm is not all to be fit in all scenes, it is a lot of that the image of common scenarios adopts the synthetic algorithm of image can make synthetic back image depart from desirable brightness, and the existing automatic exposure algorithm of the imagery exploitation of common scenarios just can obtain desirable exposure image, in view of the situation, then need image scene is judged, under different scenes, can both rationally expose, obtain desirable exposure image.
As optimum embodiment, automatic exposure device also comprises the scene Recognition module among the device embodiment 3.
The scene Recognition module judges it is high dynamic scene or common scenarios according to the size of the second average brightness Y_AVER_SHORT, produce the selection signal HDR_SEL of an individual on-the-spot scape type, image synthesis unit 34 is according to selecting signal HDR_SEL to select synthesis model.
Select signal HDR_SEL to utilize following mode to try to achieve: be high dynamic scene under the default situations, the value of promptly selecting signal HDR_SEL is 0, and default the 3rd threshold value A VER_LOKE is a comparison value, and the 3rd surplus MARGIN3.The 3rd surplus MARGIN3 shakes between high dynamic scene and common scenarios in order to prevent image.
Make LOCK_H=AVER_LOCK+MARGIN3; (4)
LOCK_L=AVER_LOCK-MARGIN3。(5)
As shown in Figure 4, be transformed into common scenarios from high dynamic scene and must satisfy following condition: current state is high dynamic scene, and the value of promptly selecting signal HDR_SEL is 0, simultaneously second average brightness Y_AVER_SHORT<LOCK_L.Then image is transformed into common scenarios from high dynamic scene, selects the value of signal HDR_SEL to become 1 by 0.
Be transformed into high dynamic scene from common scenarios and must satisfy following condition: current state is a common scenarios, and the value of promptly selecting signal HDR_SEL is 1, simultaneously second average brightness Y_AVER_SHORT>LOCK_H.Then image is transformed into high dynamic scene from common scenarios, selects the value of signal HDR_SEL to become 0 by 1.
When selecting signal HDR_SEL to be 1, image synthesis unit 34 is not synthesized image, and making the first weight coefficient COEF1 is that 1, the second weight coefficient COEF2 is 0.Direct export target high-brghtness picture images data DATA_IN_LONG.When selecting signal HDR_SEL to be 0, image is high dynamic scene, image synthesis unit 34 multiplies each other the first weight coefficient COEF1 and target high-brghtness picture images data DATA_IN_LONG and obtains first view data, the second weight coefficient COEF2 and target low-luminosity picture data DATA_IN_SHORT multiply each other and obtain second view data, and first view data and second view data synthesized, image after synthetic can embody the image detail of each GTG, obtains more penetrating image.
This automatic exposure device realizes that the mode of automatic exposure is to make imageing sensor respectively with the bigger time of integration and the less time of integration Same Scene being exposed respectively, obtain light and shade two width of cloth images, the image of taking down the long time of integration has been preserved the details of dark place scene, the image of taking down the short time of integration has been preserved the details of bright place scene, like this two width of cloth images are synthesized to together according to certain ratio and just can obtain desirable image, show the details at light and shade two places fully.Automatic exposure device provides the rational long time of integration, the short time of integration, first digital gain value and second digital gain value, and identification automatically need be done high dynamic scene and common scenarios.
As shown in Figure 5, be the automatic explosion method flow chart of the embodiment of the invention 4, this method comprises the steps:
Step S51: sense of control light pixel array carries out time exposure and carries out the short time exposure according to second integral time INT_TIME_SHORT according to first integral time INT_TIME_LONG, obtains target time exposure view data and target short time exposure image data;
Step S52: the first average brightness Y_AVER_LONG that calculates current time exposure view data; And the second average brightness Y_AVER_SHORT of the current short time exposure image data of calculating;
Step S53: calculate first integral time INT_TIME_LONG according to the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET, and calculate second integral time INT_TIME_SHORT according to the second average brightness Y_AVER_SHORT and the second preset value Y_SHORT_TARGET;
Step S54: described target time exposure view data and target short time exposure image data are synthesized.
Target time exposure view data keeps the dark place image detail, target short time exposure image data keep bright place image detail, image after synthetic has kept the details of entire image, obtain more penetrating image, overcome bright place of image and the relatively poor technical problem of dark place definition after traditional automatic exposure device is handled.
A kind of special circumstances of called optical imaging, when present image is first frame, step S51 sense of control light pixel array carries out time exposure according to the default first integral time and carries out the short time according to the default second integral time and expose, and obtains the target time exposure view data and the target short time exposure image data of first two field picture.
The first average brightness Y_AVER_LONG adopts following method to calculate among the step S52, all current time exposure image pixel point brightness value Y additions are obtained brightness summation Y_SUM1, and all current time exposure image slices vegetarian refreshments number additions are obtained pixel summation PIXELE_SUM1, brightness summation Y_SUM1 divided by pixel summation PIXELE_SUM1, is obtained the first average brightness Y_AVER_LONG.
The second average brightness Y_AVER-SHORT adopts following method to calculate among the step S52, all current short time exposure image pixel brightness value Y additions are obtained brightness summation Y_SUM2, and all current short time exposure image pixel number additions are obtained pixel summation PIXELE_SUM2, brightness summation Y_SUM2 divided by pixel summation PIXELE_SUM2, is obtained the second average brightness Y_AVER_SHORT.
First integral time INT_TIME_LONG adopts conventional method to calculate among the step S53, computational methods are as follows: the first surplus MARGIN1 at first is set, the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET are compared, if the difference of the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET is greater than the first surplus MARGIN1, then reduce first integral time INT_TIME_LONG, if the difference of the first preset value Y_LONG_TARGET and the first average brightness Y_AVER_LONG is greater than the first surplus MARGIN1, then increase first integral time INT_TIME_LONG, up to the difference of the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET less than the first surplus MARGIN1 that sets or the first integral time INT_TIME_LONG value of reaching capacity.
Second integral time INT_TIME_SHORT is identical with the computational methods of first integral time INT_TIME_LONG among the step S53, the second surplus MARGIN2 at first is set, then the difference of the second average brightness Y_AVER_SHORT and the second preset value Y_SHORT_TARGET and the difference and the second surplus MARGIN2 of the second preset value Y_SHORT_TARGET and the second average brightness Y_AVER_SHORT are compared, determine the increase of second integral time INT_TIME_SHORT or reduce its concrete computational process of summary.
Because the integral image brightness after the automatic exposure is darker, according to multiply by identical value, just can improve integral image brightness to all pixel numbers, obtain the suitable image of brightness.
As optimum embodiment, the present invention includes automatic explosion method embodiment 5, as shown in Figure 6, comprising:
Step S61: sense of control light pixel array carries out time exposure and carries out the short time exposure according to second integral time INT_TIME_SHORT according to first integral time INT_TIME_LONG, obtains target time exposure view data and target short time exposure image data;
Step S62: the first average brightness Y_AVER_LONG that calculates current high-brghtness picture images data; And the second average brightness Y_AVER_SHORT of the current low-luminosity picture data of calculating;
Step S63: calculate first integral time INT_TIME_LONG according to the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET, and calculate second integral time INT_TIME_SHORT according to the second average brightness Y_AVER_SHORT and the second preset value Y_SHORT_TARGET;
Step S65: calculate the first digital gain value GLB_GAIN_LONG according to the described first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET, and calculate the second digital gain value GLB_GAIN_SHORT according to the described second average brightness Y_AVER_SHORT and the second preset value Y_SHORT_TARGET;
Step S66: described target time exposure view data and the first digital gain value GLB_GAIN_LONG multiplied each other obtains target high-brghtness picture images data, and described target short time exposure image data and the second digital gain value GLB_GAIN_LONG are multiplied each other obtains target low-luminosity picture data;
Step S64: target high-brghtness picture images data and target low-luminosity picture data are synthesized.
A kind of special circumstances of called optical imaging, when present image is first frame, the target high-brghtness picture images data that step S66 multiplies each other target time exposure view data and the default first digital gain value GLB_GAIN_LONG to obtain first two field picture, the target low-luminosity picture data that target short time exposure image data and the default second digital gain value GLB_GAIN_SHORT are multiplied each other and obtain first two field picture.
Compare with method embodiment 4, present embodiment has increased step S65, step S66, and step S62 step and rapid S64 also change slightly to some extent, are described in detail below.
The first digital gain value GLB_GAIN_LONG adopts conventional method to calculate among the step S65, computational methods are as follows: the first surplus MARGIN1 at first is set, the first average brightness Y_AVER_LONG and the first preset value Y-LONG_TARGET are compared, if the difference of the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET is greater than the first surplus MARGIN1, then reduce first integral time INT_TIME_LONG, if the difference of the first preset value Y_LONG_TARGET and the first average brightness Y_AVER_LONG is greater than the first surplus MARGIN1, then increase first integral time INT_TIME_LONG, up to the difference of the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET less than the first surplus MARGIN1 that sets or the first digital gain value GLB_GAIN_LONG value of reaching capacity.
The computational methods of the second digital gain value GLB_GAIN_SHORT are identical with the computational methods of the first digital gain value GLB_GAIN_LONG among the step S65, the second surplus MARGIN2 at first is set, then the difference of the second average brightness Y_AVER_SHORT and the second preset value Y_SHORT_TARGET and the difference and the second surplus MARGIN2 of the second preset value Y_SHORT_TARGET and the second average brightness Y_AVER_SHORT are compared, determine the increase of the second digital gain value GLB_GAIN_SHORT or reduce its concrete adjustment process of summary.
Described step S66 multiplies each other target time exposure view data and the first digital gain value GLB_GAIN_LONG and obtains target high-brghtness picture images data, and target short time exposure image data and the second digital gain value GLB_GAIN_SHORT multiplied each other obtains target low-luminosity picture data.
Described step S62 adopts current high-brghtness picture images data when calculating the first average brightness Y_AVER_LONG_SUITABLE, adopt current low-luminosity picture data when calculating the second average brightness Y_AVER_SHORT_SUITABLE.
Described step S64 synthesizes described target high-brghtness picture images data and target low-luminosity picture data.
The automatic explosion method of method embodiment 5 calculates the first digital gain value GLB_GAIN_LONG and the second digital gain value GLB_GAIN_SHORT, and target time exposure view data and the first digital gain value GLB_GAIN_LONG multiplied each other obtain target high-brghtness picture images data, target short time exposure image data and the second digital gain value GLB_GAIN_SHORT multiplied each other obtains target low-luminosity picture data, has improved the overall brightness of image.
The view data that the automatic explosion method of method embodiment 5 obtains is the view data after target high-brghtness picture images data and target low-luminosity picture data are synthesized, when synthetic, adopt identical ratio, promptly directly target high-brghtness picture images data and the addition of target low-luminosity picture data are obtained divided by two.The view data energy bright place of display image that this synthesis mode obtains and the details of dark place, but accuracy is not high.
As optimum embodiment, the present invention includes automatic explosion method embodiment 6, as shown in Figure 7, comprising:
Step S71: sense of control light pixel array carries out time exposure and carries out the short time exposure according to second integral time INT_TIME_SHORT according to first integral time INT_TIME_LONG, obtains target time exposure view data and target short time exposure image data;
Step S72: calculate the first average brightness Y_AVER_LONG of current high-brghtness picture images data, and calculate the second average brightness Y_AVER_SHORT of current low-luminosity picture data;
Step S73: calculate first integral time INT_TIME_LONG according to the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET; And according to the second average brightness Y_AVER_SHORT and second preset value Y_SHORT_TARGET calculating second integral time INT_TIME_SHORT;
Step S75: calculate the first digital gain value GLB_GAIN_LONG according to the described first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET, and calculate the second digital gain value GLB_GAIN_SHORT according to the described second average brightness Y_AVER_SHORT and the second preset value Y_SHORT_TARGET;
Step S76: described target time exposure view data and the first digital gain value GLB_GAIN_LONG multiplied each other obtains target high-brghtness picture images data, and described target short time exposure image data and the second digital gain value GLB_GAIN_LONG are multiplied each other obtains target low-luminosity picture data;
Step S77: calculate the first weight coefficient COEF1, the second weight coefficient COEF2 according to the first average brightness Y_AVER_LONG, the second average brightness Y_AVER_SHORT;
Step S74: target high-brghtness picture images data and the first weight coefficient COEF1 multiplied each other obtains first view data, the target low-luminosity picture data and the second weight coefficient COEF2 multiply each other and obtain second view data, and first view data and second view data are synthesized.
Compare with method embodiment 5, present embodiment has increased step S77, and corresponding image synthesis step S74 has increased a process that weight coefficient is adjusted, and describes in detail below.
Step S77 calculates the first weight coefficient COEF1, the second weight coefficient COEF2 according to the size of the first average brightness Y_AVER_LONG, the second average brightness Y_AVER_SHORT.
Image synthesis step S74 multiplies each other the first weight coefficient COEF1 and target high-brghtness picture images data and obtains first view data, the second weight coefficient COEF2 and target low-luminosity picture data multiply each other and obtain second view data, and first view data and second view data synthesized, image after synthetic can embody the image detail of each GTG, obtains more penetrating image.
The first weight coefficient COEF1 and the second weight coefficient COEF2 satisfy formula (1), (2) among the weight coefficient calculation procedure S77:
COEF1+COEF2=1;(1)
COEF1/COEF2=Y_AVER_LONG/Y_AVER_SHORT;(2)
Utilize formula (1), (2) to try to achieve the value of the first weight coefficient COEF1, the second weight coefficient COEF2.The first average brightness Y_AVER_LONG is big more, and the first weight coefficient COEF1 is big more, and the second average brightness Y_AVER_SHORT is big more, and the second weight coefficient COEF2 is also big more accordingly.
Composograph step S74 adopts following formula to try to achieve composograph:
DATA_OUT=DATA_IN_LONG*COEF1+DATA_IN_SHORT*COEF2;
(3)
DATA_OUT represents synthetic back view data in the formula (3), and DATA_IN_LONG represents target high-brghtness picture images data, and COEF1 represents first weight coefficient, and DATA_IN_SHORT represents target low-luminosity picture data, and COEF2 represents second weight coefficient.
Adopt the first weight coefficient COEF1, the second weight coefficient COEF2 to determine that target high-brghtness picture images data and target low-luminosity picture data account for the ratio of composograph among the method embodiment 6, make the clear picture after synthesizing manifest the image detail of bright place and dark place.
The image that luminance difference is bigger need obtain the ideal exposure image with the synthetic method of image, but this composition algorithm is not all to be fit in all scenes, it is a lot of that the image of common scenarios adopts the synthetic algorithm of image can make synthetic back image depart from desirable brightness, and the existing automatic exposure algorithm of the imagery exploitation of common scenarios just can obtain desirable exposure image, in view of the situation, then need image scene is judged, under different scenes, can both rationally expose, obtain desirable exposure image.
As optimum embodiment, method executes that automatic explosion method also comprises the scene Recognition step in the example 6.
The scene Recognition step judges it is high dynamic scene or common scenarios according to the size of the second average brightness Y_AVER_SHORT, produce the selection signal HDR_SEL of an individual on-the-spot scape type, image synthesis step S74 is according to selecting signal HDR_SEL to select synthesis model.
Select signal HDR_SEL to utilize following method to try to achieve: be high dynamic scene under the default situations, the value of promptly selecting signal HDR_SEL is 0, and default the 3rd threshold value A VER_LOKE is a comparison value, and the 3rd surplus MARGIN3.The 3rd surplus MARGIN3 shakes between high dynamic scene and common scenarios in order to prevent image.
Make LOCK_H=AVER_LOCK+MARGIN3; (4)
LOCK_L=AVER_LOCK-MARGIN3。(5)
As shown in Figure 4, be transformed into common scenarios from high dynamic scene and must satisfy following condition: current state is high dynamic scene, and the value of promptly selecting signal HDR_SEL is 0, simultaneously second average brightness Y-AVER_SHORT<LOCK_L.Then image is transformed into common scenarios from high dynamic scene, selects the value of signal HDR_SEL to become 1 by 0.
Be transformed into high dynamic scene from common scenarios and must satisfy following condition: current state is a common scenarios, and the value of promptly selecting signal HDR_SEL is 1, simultaneously second average brightness Y_AVER_SHORT>LOCK_H.Then image is transformed into high dynamic scene from common scenarios, selects the value of signal HDR_SEL to become 0 by 1.
When selecting signal HDR_SEL to be 1, image synthesis step S74 does not synthesize image, and making the first weight coefficient COEF1 is that 1, the second weight coefficient COEF2 is 0.Direct export target high-brghtness picture images data DATA_IN_LONG.When selecting signal HDR_SEL to be 0, image is high dynamic scene, image synthesis step S74 multiplies each other the first weight coefficient COEF1 and target high-brghtness picture images data DATA_IN_LONG and obtains first view data, the second weight coefficient COEF2 and target low-luminosity picture data DATA_IN_SHORT multiply each other and obtain second view data, and first view data and second view data synthesized, image after synthetic can embody the image detail of each GTG, obtains more penetrating image.
This automatic explosion method realizes that the mode of automatic exposure is to make imageing sensor respectively with the bigger time of integration and the less time of integration Same Scene being exposed respectively, obtain light and shade two width of cloth images, the image of taking down the long time of integration has been preserved the details of dark place scene, the image of taking down the short time of integration has been preserved the details of bright place scene, like this two width of cloth images are synthesized to together according to certain ratio and just can obtain desirable image, show the details at light and shade two places fully.This automatic explosion method provides the rational long time of integration, the short time of integration, first digital gain value and second digital gain value, and identification automatically need be done high dynamic scene and common scenarios.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. automatic exposure device is characterized in that: comprising:
The transducer control module is carried out time exposure and is carried out short time exposure according to the second integral time according to the first integral time in order to sense of control light pixel array, obtains target time exposure view data and target short time exposure image data;
The first average brightness computing module in order to calculate first average brightness of current time exposure view data, reaches second average brightness that calculates current short time exposure image data;
Computing module in order to calculate the first integral time according to described first average brightness and first preset value, reached according to described second average brightness and second preset value and calculated the second integral time time of integration;
Image synthesis unit is in order to synthesize described target time exposure view data and target short time exposure image data.
2. automatic exposure device as claimed in claim 1 is characterized in that: this automatic exposure device also comprises:
Gain value computation module in order to calculate first digital gain value according to described first average brightness and first preset value, reaches and calculates second digital gain value according to described second average brightness and second preset value;
The multiplication computing module, target time exposure view data and first digital gain value multiplied each other obtains target high-brghtness picture images data, and target short time exposure image data and second digital gain value multiplied each other obtains target low-luminosity picture data;
The described first average brightness computing module, image synthesis unit are connected with the multiplication computing module.
3. automatic exposure device as claimed in claim 2 is characterized in that: this automatic exposure device also comprises:
The weight coefficient computing module calculates first weight coefficient, second weight coefficient according to the size of first average brightness, second average brightness;
Described image synthesis unit multiplies each other described first weight coefficient and target high-brghtness picture images data and obtains first view data, described second weight coefficient and target low-luminosity picture data are multiplied each other obtains second view data, and first view data and second view data are synthesized.
4. automatic exposure device as claimed in claim 3 is characterized in that: first weight coefficient, second weight coefficient satisfy following formula:
COEF1+COEF2=1; (1)
COEF1/COEF2=Y_AVER_LONG/Y_AVER_SHORT; (2)
COEF1 represents first weight coefficient in formula (1), (2), and COEF2 represents second weight coefficient, and Y_AVER_LONG represents first average brightness, and Y_AVER_SHORT represents second average brightness.
5. automatic exposure device as claimed in claim 3 is characterized in that: described image synthesis unit utilizes following formula that image is synthesized:
DATA_OUT=DATA_IN_LONG*COEF1+DATA_IN_SHORT*COEF2;
(3)
DATA_OUT represents synthetic back view data in the formula (3), and DATA_IN_LONG represents target high-brghtness picture images data, and COEF1 represents first weight coefficient, and DATA_IN_SHORT represents target low-luminosity picture data, and COEF2 represents second weight coefficient.
6. an automatic explosion method is characterized in that: comprise the steps:
Sense of control light pixel array carries out time exposure according to the first integral time and carries out the short time according to the second integral time and expose, and obtains target time exposure view data and target short time exposure image data;
Calculate first average brightness of current time exposure view data, and calculate second average brightness of current short time exposure image data;
Calculate the first integral time according to described first average brightness and first preset value, and calculate the second integral time according to described second average brightness and second preset value;
Described target time exposure view data and target short time exposure image data are synthesized.
7. automatic explosion method as claimed in claim 6 is characterized in that: described automatic explosion method also comprises:
In order to calculate first digital gain value, reach and calculate second digital gain value according to described second average brightness and second preset value according to described first average brightness and first preset value;
Target time exposure view data and first digital gain value multiplied each other obtains target high-brghtness picture images data, and target short time exposure image data and second digital gain value multiplied each other obtains target low-luminosity picture data;
Current high-brghtness picture images data and current low-luminosity picture data are adopted in the calculating of described first average brightness, second average brightness;
Synthetic target high-brghtness picture images data and the target low-luminosity picture data of adopting of described image.
8. automatic explosion method as claimed in claim 7 is characterized in that: this automatic explosion method also comprises:
Calculate first weight coefficient, second weight coefficient according to the size of first average brightness, second average brightness;
Described first weight coefficient and target high-brghtness picture images data are multiplied each other obtains first view data, and described second weight coefficient and target low-luminosity picture data are multiplied each other obtains second view data, and first view data and second view data are synthesized.
9. automatic explosion method as claimed in claim 8 is characterized in that: first weight coefficient, second weight coefficient satisfy following formula:
COEF1+COEF2=1; (1)
COEF1/COEF2=Y_AVER_LONG/Y_AVER_SHORT; (2)
COEF1 represents first weight coefficient in formula (1), (2), and COEF2 represents second weight coefficient, and Y_AVER_LONG represents first average brightness, and Y_AVER_SHORT represents second average brightness.
10. automatic exposure device as claimed in claim 8 is characterized in that: described image synthesis step utilizes following formula that image is synthesized:
DATA_OUT=DATA_IN_LONG*COEF1+DATA_IN_SHORT*COEF2;
(3)
DATA_OUT represents synthetic back view data in the formula (3), and DATA_IN_LONG represents target high-brghtness picture images data, and COEF1 represents first weight coefficient, and DATA_IN_SHORT represents target low-luminosity picture data, and COEF2 represents second weight coefficient.
CN 200910189452 2009-12-26 2009-12-26 Automatic exposure device and method thereof Active CN102111560B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910189452 CN102111560B (en) 2009-12-26 2009-12-26 Automatic exposure device and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910189452 CN102111560B (en) 2009-12-26 2009-12-26 Automatic exposure device and method thereof

Publications (2)

Publication Number Publication Date
CN102111560A true CN102111560A (en) 2011-06-29
CN102111560B CN102111560B (en) 2013-05-29

Family

ID=44175567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910189452 Active CN102111560B (en) 2009-12-26 2009-12-26 Automatic exposure device and method thereof

Country Status (1)

Country Link
CN (1) CN102111560B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014114223A1 (en) * 2013-01-24 2014-07-31 华为终端有限公司 Scene recognition method and apparatus
CN107197167A (en) * 2016-03-14 2017-09-22 杭州海康威视数字技术股份有限公司 A kind of method and device for obtaining image
CN109784113A (en) * 2018-12-17 2019-05-21 深圳盈达信息科技有限公司 Scanning means and its barcode scanning method
WO2020034737A1 (en) * 2018-08-13 2020-02-20 Oppo广东移动通信有限公司 Imaging control method, apparatus, electronic device, and computer-readable storage medium
CN114374798A (en) * 2022-01-10 2022-04-19 Tcl通讯科技(成都)有限公司 Scene recognition method and device, electronic equipment and computer-readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100284305B1 (en) * 1998-10-28 2001-03-02 김영환 Apparatus and method for adjusting screen brightness using average value of green pixel in image sensor
US20090086074A1 (en) * 2007-09-27 2009-04-02 Omnivision Technologies, Inc. Dual mode camera solution apparatus, system, and method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014114223A1 (en) * 2013-01-24 2014-07-31 华为终端有限公司 Scene recognition method and apparatus
CN103973988A (en) * 2013-01-24 2014-08-06 华为终端有限公司 Scene recognition method and device
US9530054B2 (en) 2013-01-24 2016-12-27 Huawei Device Co., Ltd. Scene recognition method and apparatus
US9934438B2 (en) 2013-01-24 2018-04-03 Huawei Device (Dongguan) Co., Ltd. Scene recognition method and apparatus
CN107197167A (en) * 2016-03-14 2017-09-22 杭州海康威视数字技术股份有限公司 A kind of method and device for obtaining image
CN107197167B (en) * 2016-03-14 2019-12-20 杭州海康威视数字技术股份有限公司 Method and device for obtaining image
WO2020034737A1 (en) * 2018-08-13 2020-02-20 Oppo广东移动通信有限公司 Imaging control method, apparatus, electronic device, and computer-readable storage medium
US11228720B2 (en) 2018-08-13 2022-01-18 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for imaging controlling, electronic device, and non-transitory computer-readable storage medium
CN109784113A (en) * 2018-12-17 2019-05-21 深圳盈达信息科技有限公司 Scanning means and its barcode scanning method
CN114374798A (en) * 2022-01-10 2022-04-19 Tcl通讯科技(成都)有限公司 Scene recognition method and device, electronic equipment and computer-readable storage medium

Also Published As

Publication number Publication date
CN102111560B (en) 2013-05-29

Similar Documents

Publication Publication Date Title
CN102143325B (en) Automatic exposure device and method thereof
TWI524709B (en) Image capture apparatus, method of controlling image capture apparatus, and electronic device
CN102118563A (en) Automatic exposure device and method thereof
JP5171434B2 (en) Imaging apparatus, imaging method, program, and integrated circuit
CN110381263B (en) Image processing method, image processing device, storage medium and electronic equipment
CN110445988A (en) Image processing method, device, storage medium and electronic equipment
CN110033418B (en) Image processing method, image processing device, storage medium and electronic equipment
TWI661727B (en) Control device, control method and electronic device
US9420166B2 (en) Method and apparatus for enhanced automatic adjustment of focus, exposure and white balance in digital photography
CN111028190A (en) Image processing method, image processing device, storage medium and electronic equipment
CN106358030B (en) Image processing apparatus and image processing method
US20100103268A1 (en) Digital camera
JP2007067907A (en) Image pickup apparatus, image pickup method, and image pickup program; and image processor, image processing method, and image processing program
JP6685188B2 (en) Imaging device, image processing device, control method thereof, and program
CN102111560B (en) Automatic exposure device and method thereof
CN110022469A (en) Image processing method, device, storage medium and electronic equipment
CN110047060B (en) Image processing method, image processing device, storage medium and electronic equipment
CN110430370B (en) Image processing method, image processing device, storage medium and electronic equipment
CN107509044A (en) Image combining method, device, computer-readable recording medium and computer equipment
WO2019019904A1 (en) White balance processing method and apparatus, and terminal
CN102143326B (en) Automatic exposure unit and method thereof
CN116320771B (en) Shooting method and electronic equipment
CN115802183B (en) Image processing method and related device
CN110278386B (en) Image processing method, image processing device, storage medium and electronic equipment
JP5048599B2 (en) Imaging device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200103

Address after: 518119 1 Yanan Road, Kwai Chung street, Dapeng New District, Shenzhen, Guangdong

Patentee after: SHENZHEN BYD MICROELECTRONICS Co.,Ltd.

Address before: 518118 Pingshan Road, Pingshan Town, Shenzhen, Guangdong, No. 3001, No.

Patentee before: BYD Co.,Ltd.

TR01 Transfer of patent right
CP01 Change in the name or title of a patent holder

Address after: 518119 No.1 Yan'an Road, Kuiyong street, Dapeng New District, Shenzhen City, Guangdong Province

Patentee after: BYD Semiconductor Co.,Ltd.

Address before: 518119 No.1 Yan'an Road, Kuiyong street, Dapeng New District, Shenzhen City, Guangdong Province

Patentee before: BYD Semiconductor Co.,Ltd.

Address after: 518119 No.1 Yan'an Road, Kuiyong street, Dapeng New District, Shenzhen City, Guangdong Province

Patentee after: BYD Semiconductor Co.,Ltd.

Address before: 518119 No.1 Yan'an Road, Kuiyong street, Dapeng New District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN BYD MICROELECTRONICS Co.,Ltd.

CP01 Change in the name or title of a patent holder