CN105898152A - Method and system for restoring ambient light luminance on image - Google Patents
Method and system for restoring ambient light luminance on image Download PDFInfo
- Publication number
- CN105898152A CN105898152A CN201610224261.0A CN201610224261A CN105898152A CN 105898152 A CN105898152 A CN 105898152A CN 201610224261 A CN201610224261 A CN 201610224261A CN 105898152 A CN105898152 A CN 105898152A
- Authority
- CN
- China
- Prior art keywords
- value
- brightness
- target
- image
- exposure
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/73—Circuitry for compensating brightness variation in the scene by influencing the exposure time
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/71—Circuitry for evaluating the brightness variation
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Photometry And Measurement Of Optical Pulse Characteristics (AREA)
- Studio Devices (AREA)
Abstract
The embodiment of the invention discloses a method and a system for restoring an ambient light luminance on an image, which relate to the technical field of mobile communication devices. The method comprises the following steps: S1, a different target luminance calibration value (Luma Target calibration value) is set for a different luminance of the ambient light; S2, a system calculates a target luminance value (Luma Target value) matched with the current ambient light luminance, an exposure meter is called, and the exposure time is added or reduced; and S3, the system calculates the average value of an image Y channel, and the average value serves as luminance information of the image. The system comprises a lens module, a camera module, a data storage and calculation module and an image processing module. Through setting the target luminance calibration value (Luma Target calibration value) and calculating the target luminance value (Luma Target value) matched with the current ambient light luminance, the luminance of the image is thus matched with the ambient light luminance. The structure of the invention is simple in structure and quick in response.
Description
Technical field
The present embodiments relate to mobile communication equipment technical field, particularly relate to a kind of ring that reduces on image
The method and system of border brightness.
Background technology
Domestic consumer, when using taking photograph of intelligent mobile phone, is difficult to accomplish accurate assurance ambient light as photographer
Brightness and the relation of lightness, the photo that the environment being seen with it that they pursue matches.Typically
Smart mobile phone, under different environmental light brightness shoot photo time, the most all do the best keep expose balance,
So that the brightness of photo keeps consistent.But such processing method, can make photo can not react true field
The environmental light brightness of scape so that the effect of photo is undesirable, the expectation with user is runed counter to.
Summary of the invention
When the embodiment of the present invention shoots for mobile phone, photo can not the problem of accurate reproduction environmental light brightness, adopt
By following technical scheme.
A kind of method of reducing environment brightness on image, comprises the following steps:
S1: for the object brightness calibration value that the different brightness settings of ambient light are different;
The target brightness value that S2: system-computed and current environmental light brightness match, calls actinometer, increases
Or minimizing time of exposure;
S3: system-computed is published picture as the meansigma methods of Y passage, as the monochrome information of image.
Further, the setting of object brightness calibration value in step S1 be may is that
Environmental light brightness be the object brightness calibration value of 10000lux be 65;
Environmental light brightness be the object brightness calibration value of 100lux be 45;
Environmental light brightness be the object brightness calibration value of 5lux be 20;
Environmental light brightness be the object brightness calibration value of 0lux be 0.
Further, during the execution of step S2, system is according to the target brightness value amendment calculated certainly
The target brightness value of dynamic exposure.
Further, the actinometer index (index value) corresponding with environmental light brightness is represented with n, with environment
The computing formula of the target brightness value that brightness matches is as follows:
If 1 < n < N_normal, then target brightness value=(65-45)/(N_normal-
1)×(N_normal-n)+45;
If N_normal < n < N_lowlight, then target brightness value=(45-20)/(N_lowlight
-N_normal)×(N_lowlight-n)+20;
If N_lowlight < n < N_max, then target brightness value=(20-0)/(N_max-N_
lowlight)×(N_max-n)+0。
A kind of system of image accurate reproduction environmental light brightness, this system include camera lens module, camera model,
Data storage and computing module and image processing module, be electrically connected with between each module;
Wherein, camera model includes photo-sensitive cell exposure control unit;
With computing module, data storage includes that photo-sensitive cell time of exposure computing unit, object brightness Value Data are deposited
Storage unit, actinometer Index (index value) memory element and target brightness value computing unit, between each unit
It is electrically connected with;
Image processing module include image Y channel value extraction unit, image Y passage average calculation unit and
Image output unit, is electrically connected with between each unit.
Further, data storage is bright from the target that computing module is used for as the different brightness settings of ambient light are different
Calibrations, the target brightness value that system-computed and current environmental light brightness match, calls actinometer, increases
Add deduct few time of exposure;
It is bright that object brightness calibration value and the target brightness value matched with current environmental light brightness are stored in target
In angle value data storage cell;
Actinometer Index (index value) is stored in actinometer Index (index value) memory element;
Target brightness value computing unit is according to the computing formula meter of the target brightness value matched with environmental light brightness
Calculate target brightness value;
Photo-sensitive cell time of exposure computing unit invocation target brightness scale definite value and actinometer Index (index value)
Time of exposure needed for indirectly calculating, the most first determines actinometer Index (index value), when drawing exposure accordingly
Between.
Further, camera lens module and camera model are the execution modules of photograph taking;
Data storage and computing module calculate the target brightness value matched with current environmental light brightness and
After determining time of exposure, the photo-sensitive cell exposure control unit of camera model performs exposure.
Further, the Y of the image that the image Y channel value extraction unit extraction of image processing module photographs leads to
Road value, and calculate the meansigma methods of Y passage, as the monochrome information of photo;
The photo output that image output unit will match with environmental light brightness.
Compared with prior art, the embodiment of the present invention has the advantage that the method described in the embodiment of the present invention is led to
Cross target setting brightness value calibration value, and calculate the target brightness value matched with environmental light brightness, thus
The brightness allowing image can match with environmental light brightness.System described in the embodiment of the present invention, simple structure,
Response is rapidly.
Accompanying drawing explanation
Fig. 1 is the block diagram of embodiment of the present invention method.
Fig. 2 is the flow chart that the embodiment of the present invention calculates actinometer index (index value).
Fig. 3 is the schematic diagram of embodiment of the present invention system.
Description of reference numerals: S1, S2, S3 are each step of method described in the embodiment of the present invention;
A1, A2, A21, A211, A212, A2111 are for calculating each step of brightness (Luma) value flow process;
100 camera lens modules, 200 camera models, 201 photo-sensitive cell exposure control unit, 300 numbers
According to storage and computing module, 301 photo-sensitive cell time of exposure computing units, 302 Luma Target (mesh
Mark brightness) data storage cell, 303 actinometer Index (index value) memory element, 304 targets are bright
Angle value computing unit, 400 image processing modules, 401 image Y channel value extraction units, 402 images
Y passage average calculation unit, 403 image output unit.
Detailed description of the invention
For the ease of understanding the present invention, below with reference to relevant drawings, the embodiment of the present invention is comprehensively retouched
State.But, the embodiment of the present invention can also use other multiple different forms to realize, however it is not limited to this
Embodiment described by literary composition.
Unless otherwise defined, the implication phase that terminology used herein and those skilled in the art are generally understood that
With.
With reference to Fig. 1, the method described in the embodiment of the present invention, three below step can be used to implement:
S1: for the object brightness calibration value (Luma Target calibration value) that the different brightness settings of ambient light are different.
The target brightness value (Luma Target value) that S2: system-computed and current environmental light brightness match,
Call actinometer, time of exposure is increased or decreased.
S3: system-computed is published picture as the meansigma methods of Y passage, as the monochrome information of image.
For the setting of object brightness calibration value in step S1 (Luma Target calibration value), it is embodied as
Time, refer to form 1 and arrange.Such as, when environmental light brightness is 10000lux, object brightness calibration value
(Luma Target calibration value) is 65.
Form 1
T_min in form 1 refers to that minimum exposure time, T_normal refer to that constant exposure time, T_max refer to
The maximum exposure time, N_normal refers to that the normal index value in actinometer, N_lowl ight refer at actinometer
In less index value, N_max refer to the maximum index value in actinometer.
User is when shooting, and system performs step S2.Environmental light brightness in system sensing shooting environmental, adjusts
Determine time of exposure with actinometer, and calculate the target brightness value (Luma matched with environmental light brightness now
Target value).
With reference to Fig. 2, in order to determine this increase or reduce time of exposure, it is thus necessary to determine that actinometer index (rope
Draw value), the flow process calculating actinometer index (index value) is as follows:
A1: calculate brightness (luma) value of present frame.
A2: judge that brightness (luma) value of present frame is the most equal with target brightness value (Luma Target),
If being return step A1, no if perform step A21.
A21: judge whether the brightness (luma) of present frame is more than target brightness value (Luma Target), no
If perform step A211, if being perform step A212.
A212: the actinometer index (index value) called subtracts 1, and return execution A1.
A211: judge whether brightness (luma) value of present frame is more than target brightness value (Luma Target),
Return if no and perform A1, if being, perform step A2111.
A2111: the actinometer index (index value) called adds 1, and return execution A1.
The actinometer index (index value) corresponding with environmental light brightness is represented, with environmental light brightness phase with n
The computing formula of the target brightness value (Luma Target value) of coupling is as follows:
If 1 < n < N_normal,
Then target brightness value (Luma Target value)=(65-45)/(N_normal-1) × (N_normal
-n)+45;
If N_normal < n < N_lowlight,
Then target brightness value (Luma Target value)=(45-20)/(N_lowlight-
N_normal)×(N_lowlight-n)+20;
If N_lowlight < n < N_max,
Then target brightness value (Luma Target value)=(20-0)/(N_max-N_lowlight) × (N_max
-n)+0。
Automatic exposure is revised with the target brightness value (luma_target value) calculated according to above-mentioned formula
Target brightness value (luma_target value).
System extracts the Y channel value of image, calculates the meansigma methods of image Y passage, as the brightness of image
Information.
With reference to Fig. 3, a kind of system of reducing environment brightness on image, including camera lens module 100, camera
The storage of module 200, data and computing module 300 and image processing module 400, be electrically connected with between each module.
Wherein, camera model 200 includes photo-sensitive cell exposure control unit 201.Data storage and computing module 300
Including photo-sensitive cell time of exposure computing unit 301, Luma Target (object brightness) data storage cell
302, actinometer Index (index value) memory element 303 and target brightness value computing unit 304, each list
It is electrically connected with between unit.Image processing module 400 includes that image Y channel value extraction unit 401, image Y are logical
Road average calculation unit 402 and image output unit 403, be electrically connected with between each unit.
Data store from computing module 300 for the object brightness mark different for the different brightness settings of ambient light
Definite value (Luma Target calibration value), the target brightness value that system-computed and current environmental light brightness match
(Luma Target value), calls actinometer, time of exposure is increased or decreased.Object brightness calibration value (Luma
Target calibration value) and the target brightness value (Luma Target value) that matches with current environmental light brightness
It is stored in Luma Target (object brightness) data storage cell 302.Actinometer Index (index
Value) it is stored in actinometer Index (index value) memory element 303.Target brightness value computing unit 304
Computing formula according to the target brightness value (Luma Target value) matched with environmental light brightness calculates target
Brightness value (Luma Target value).Photo-sensitive cell time of exposure computing unit 301 invocation target brightness is demarcated
Time of exposure needed for value (Luma Target calibration value) and actinometer Index (index value) calculating indirectly,
The most first determine actinometer Index (index value), draw time of exposure accordingly.
Camera lens module 100 and camera model 200 are the execution modules of photograph taking.In data storage and calculating
Module 300 calculate the target brightness value (Luma Target value) matched with current environmental light brightness and
After determining time of exposure, the photo-sensitive cell exposure control unit 201 of camera model 200 performs exposure.
The image Y channel value extraction unit 401 of image processing module 400 extracts the Y of the image photographed and leads to
Road value, and calculate the meansigma methods of Y passage, as the monochrome information of photo.Image output unit 403
The photo output that will match with environmental light brightness.
The embodiment of the present invention mainly has a following beneficial effect:
1, by target setting brightness scale definite value, (Luma Target demarcates the method described in the embodiment of the present invention
Value), and calculate the target brightness value (Luma Target value) matched with environmental light brightness, thus allow figure
The brightness of picture can match with environmental light brightness.
2, the system described in the embodiment of the present invention, simple structure, response is rapidly.
Above-described embodiment is the present invention preferably embodiment, but embodiments of the present invention are not by above-mentioned reality
Execute the restriction of example, the change made under other any spirit without departing from the present invention and principle, modification,
Substitute, combine, simplify, all should be the substitute mode of equivalence, within being included in protection scope of the present invention.
Claims (8)
1. the method for reducing environment brightness on image, it is characterised in that: this method includes following
Step:
S1: for the object brightness calibration value that the different brightness settings of ambient light are different;
The target brightness value that S2: system-computed and current environmental light brightness match, calls actinometer, increases
Or minimizing time of exposure;
S3: system-computed is published picture as the meansigma methods of Y passage, as the monochrome information of image.
Method the most according to claim 1, it is characterised in that: for object brightness mark in step S1
The setting of definite value may is that
Environmental light brightness be the object brightness calibration value of 10000lux be 65;
Environmental light brightness be the object brightness calibration value of 100lux be 45;
Environmental light brightness be the object brightness calibration value of 5lux be 20;
Environmental light brightness be the object brightness calibration value of 0lux be 0.
Method the most according to claim 1, it is characterised in that: during the execution of step S2,
System is according to the target brightness value of the target brightness value amendment automatic exposure calculated.
4. according to the method described in claim 2-3, it is characterised in that: represent and environmental light brightness pair with n
The actinometer index answered, the computing formula of the target brightness value matched with environmental light brightness is as follows:
If 1 < n < N_normal, then target brightness value=(65-45)/(N_normal-
1)×(N_normal-n)+45;
If N_normal < n < N_lowlight, then target brightness value=(45-20)/(N_lowlight
-N_normal)×(N_lowlight-n)+20;
If N_lowlight < n < N_max, then target brightness value=(20-0)/(N_max-N_
lowlight)×(N_max-n)+0。
5. the system of reducing environment brightness on image, it is characterised in that: this system includes camera lens mould
The storage of block (100), camera model (200), data and computing module (300) and image processing module (400),
It is electrically connected with between each module;
Wherein, camera model (200) includes photo-sensitive cell exposure control unit (201);
Data storage includes photo-sensitive cell time of exposure computing unit (301), target with computing module (300)
Luminance data memory element (302), actinometer Index memory element (303) and target brightness value calculate
Unit (304), is electrically connected with between each unit;
Image processing module (400) includes that image Y channel value extraction unit (401), image Y passage are average
Value computing unit (402) and image output unit (403), be electrically connected with between each unit.
System the most according to claim 5, it is characterised in that: data storage and computing module (300)
For the object brightness calibration value that the different brightness settings for ambient light are different, system-computed and current environment light
The target brightness value that brightness matches, calls actinometer, and time of exposure is increased or decreased;
It is bright that object brightness calibration value and the target brightness value matched with current environmental light brightness are stored in target
In angle value data storage cell (302);
Actinometer Index is stored in actinometer Index memory element (303);
The calculating of the target brightness value that target brightness value computing unit (304) basis matches with environmental light brightness
Formula calculates target brightness value;
Between photo-sensitive cell time of exposure computing unit (301) invocation target brightness scale definite value and actinometer Index
Connect the time of exposure needed for calculating, the most first determine actinometer Index, draw time of exposure accordingly.
System the most according to claim 5, it is characterised in that: camera lens module (100) and camera mould
Block (200) is the execution module of photograph taking;
Calculate, with computing module (300), the target light exposure matched with current environmental light brightness in data storage
Value and after determining time of exposure, the photo-sensitive cell exposure control unit (201) of camera model (200) is held
Row exposure.
8. according to the system described in claim 5-7, it is characterised in that: image processing module (400)
Image Y channel value extraction unit (401) extracts the Y channel value of the image photographed, and calculates Y passage
Meansigma methods, as the monochrome information of photo;
The photo output that image output unit (403) will match with environmental light brightness.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610224261.0A CN105898152A (en) | 2016-04-12 | 2016-04-12 | Method and system for restoring ambient light luminance on image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610224261.0A CN105898152A (en) | 2016-04-12 | 2016-04-12 | Method and system for restoring ambient light luminance on image |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105898152A true CN105898152A (en) | 2016-08-24 |
Family
ID=57013072
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610224261.0A Pending CN105898152A (en) | 2016-04-12 | 2016-04-12 | Method and system for restoring ambient light luminance on image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105898152A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109936698A (en) * | 2017-12-18 | 2019-06-25 | 杭州海康威视数字技术股份有限公司 | A kind of automatic exposure control method, device, electronic equipment and storage medium |
CN111343388A (en) * | 2019-04-11 | 2020-06-26 | 杭州海康慧影科技有限公司 | Method and device for determining exposure time |
CN112153299A (en) * | 2020-09-18 | 2020-12-29 | 深圳创维-Rgb电子有限公司 | Camera exposure processing method and device and intelligent terminal |
CN112335228A (en) * | 2019-11-22 | 2021-02-05 | 深圳市大疆创新科技有限公司 | Image processing method, image acquisition device, movable platform and storage medium |
CN112839182A (en) * | 2020-12-30 | 2021-05-25 | 上海磐启微电子有限公司 | Automatic exposure control system and method |
CN113473035A (en) * | 2021-07-23 | 2021-10-01 | 北京字节跳动网络技术有限公司 | Ambient brightness determination method and device and electronic equipment |
-
2016
- 2016-04-12 CN CN201610224261.0A patent/CN105898152A/en active Pending
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109936698A (en) * | 2017-12-18 | 2019-06-25 | 杭州海康威视数字技术股份有限公司 | A kind of automatic exposure control method, device, electronic equipment and storage medium |
CN109936698B (en) * | 2017-12-18 | 2021-07-02 | 杭州海康威视数字技术股份有限公司 | Automatic exposure control method and device, electronic equipment and storage medium |
CN111343388A (en) * | 2019-04-11 | 2020-06-26 | 杭州海康慧影科技有限公司 | Method and device for determining exposure time |
CN112335228A (en) * | 2019-11-22 | 2021-02-05 | 深圳市大疆创新科技有限公司 | Image processing method, image acquisition device, movable platform and storage medium |
CN112153299A (en) * | 2020-09-18 | 2020-12-29 | 深圳创维-Rgb电子有限公司 | Camera exposure processing method and device and intelligent terminal |
CN112839182A (en) * | 2020-12-30 | 2021-05-25 | 上海磐启微电子有限公司 | Automatic exposure control system and method |
CN113473035A (en) * | 2021-07-23 | 2021-10-01 | 北京字节跳动网络技术有限公司 | Ambient brightness determination method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105898152A (en) | Method and system for restoring ambient light luminance on image | |
CN107071272B (en) | Method and device for controlling brightness of camera fill-in light and terminal | |
CN103227928B (en) | White balance adjusting method and device | |
CN111028190A (en) | Image processing method, image processing device, storage medium and electronic equipment | |
CN105227857B (en) | A kind of method and apparatus of automatic exposure | |
WO2018054054A1 (en) | Face recognition method, apparatus, mobile terminal and computer storage medium | |
WO2018209650A1 (en) | Automatic exposure method and device for camera | |
US9965833B2 (en) | Optical system characteristic data storing device, method, and program for image restoration filtering | |
CN111316635B (en) | Camera control method and device | |
CN105578062A (en) | Light metering mode selection method and image acquisition device utilizing same | |
CN110708463B (en) | Focusing method, focusing device, storage medium and electronic equipment | |
CN106791451B (en) | Photographing method of intelligent terminal | |
CN108600630A (en) | Photographic method, device and terminal device | |
CN116416122B (en) | Image processing method and related device | |
CN111327827A (en) | Shooting scene recognition control method and device and shooting equipment | |
US20190349535A1 (en) | Intelligent photographing method and apparatus, and intelligent terminal | |
CN104965376B (en) | The adjusting method and system of a kind of terminal camera flash lamp | |
US20170163852A1 (en) | Method and electronic device for dynamically adjusting gamma parameter | |
CN104601901A (en) | Terminal picture taking control method and terminal | |
CN104754238A (en) | Imaging control method and device and imaging control system | |
CN116506737A (en) | Method, device, equipment and storage medium for determining exposure parameters | |
CN117135470A (en) | Shooting method, electronic equipment and storage medium | |
WO2021179819A1 (en) | Photo processing method and apparatus, and storage medium and electronic device | |
CN114286000A (en) | Image color processing method and device and electronic equipment | |
CN109981990B (en) | Image processing method, device and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160824 |