CN104965376B - The adjusting method and system of a kind of terminal camera flash lamp - Google Patents
The adjusting method and system of a kind of terminal camera flash lamp Download PDFInfo
- Publication number
- CN104965376B CN104965376B CN201510465835.9A CN201510465835A CN104965376B CN 104965376 B CN104965376 B CN 104965376B CN 201510465835 A CN201510465835 A CN 201510465835A CN 104965376 B CN104965376 B CN 104965376B
- Authority
- CN
- China
- Prior art keywords
- camera
- flash lamp
- maximum current
- hard
- sensitivity
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 16
- 230000035945 sensitivity Effects 0.000 claims abstract description 116
- 241000023320 Luma <angiosperm> Species 0.000 claims description 76
- OSWPMRLSEDHDFF-UHFFFAOYSA-N methyl salicylate Chemical compound COC(=O)C1=CC=CC=C1O OSWPMRLSEDHDFF-UHFFFAOYSA-N 0.000 claims description 76
- 230000001105 regulatory effect Effects 0.000 claims description 5
- 230000006870 function Effects 0.000 claims description 4
- 230000005611 electricity Effects 0.000 abstract description 8
- 230000007812 deficiency Effects 0.000 description 2
- ARFHIAQFJWUCFH-IZZDOVSWSA-N Nifurtimox Chemical compound CC1CS(=O)(=O)CCN1\N=C\C1=CC=C([N+]([O-])=O)O1 ARFHIAQFJWUCFH-IZZDOVSWSA-N 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000002059 diagnostic imaging Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000011010 flushing procedure Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 210000003205 muscle Anatomy 0.000 description 1
- 229960002644 nifurtimox Drugs 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012634 optical imaging Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G03—PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
- G03B—APPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
- G03B15/00—Special procedures for taking photographs; Apparatus therefor
- G03B15/02—Illuminating scene
- G03B15/03—Combinations of cameras with lighting apparatus; Flash units
- G03B15/05—Combinations of cameras with electronic flash apparatus; Electronic flash units
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Studio Devices (AREA)
- Exposure Control For Cameras (AREA)
Abstract
The adjusting method and system of a kind of terminal camera flash lamp, methods described comprise the following steps:Step 1. obtains camera sensitivity S when normal flash lamp is taken pictureshigh;Step 2. is according to camera sensitivity ShighCalculate the maximum current I needed for camera when taking picturesmax;Step 3. judges maximum current ImaxWhether maximum current I that terminal camera support is more thanhard, maximum current IhardFor predetermined fixed value;If step 4. ImaxThe maximum current I supported more than terminal camerahard, then electric current is set to I=I when will take pictureshard, reacquire camera sensitivity Shigh;If ImaxThe maximum current I supported less than or equal to terminal camerahard, then next step is performed;Step 5. is by maximum current ImaxAnd camera sensitivity ShighAs electric current and camera sensitivity parameter read-in terminal camera, complete a flash lamp and take pictures.The present invention is according to the brightness case of image before and after preflashing, and the size of current of flash lamp when adjustment is taken pictures reaches the purpose of control brightness of flash lamp, so as in the case where opening flash lamp, cause the brightness of image to reach unanimously to a certain extent, and save electricity.
Description
Technical field
The present invention relates to terminal device shooting technology, the adjusting method of more particularly to a kind of terminal camera flash lamp and it is
System.
Background technology
Camera, is a kind of utilization optical imaging concept formation image and the equipment for using negative writing image.Much can be with
Recording image equipment all possesses the feature of camera.Medical imaging devices, astronomical observation equipment etc..Camera is to be used to photograph
Optical instrument.The light that subject is reflected is by photographic film (taking the photograph scenery mirror) and controls the shutter of light exposure to focus on
Afterwards, sub-image is formed on photosensitive material of the subject in camera bellows, the permanent shadow of composition is handled and (develop, be fixed) through flushing
Picture, this technology is referred to as photography.It is divided into general photograph and the shooting of specialty.
And existing terminal device, generally possess camera function such as mobile phone, palm PC, such as at present, if mobile phone
Flash lamp is opened when taking pictures, the brightness under any circumstance of flash lamp is all consistent, and which results in the deficiency of following aspect:
(1) under varying environment brightness, identical light source is supplemented, causes brightness of image inconsistent, same mobile phone, which is taken, to be come
Effect it is different.
(2) when mobile phone is close from prospect, flash lamp beats very bright in prospect, therefore the time for exposure is very short;But it is due to
Flash lamp can not provide the light source of abundance to background, and background is very dark, and the time for exposure is short, so as to be easily caused, prospect is bright, and background is dark,
Cause vision light and shade contrast big, such as Fig. 1.
(3) flash lamp all reaches maximum every time, electricity waste is caused, so as to reduce the stand-by time of mobile phone.
The content of the invention
It is an object of the invention to overcome the deficiencies of the prior art and provide a kind of adjusting method of terminal camera flash lamp and
System, can be such that the brightness of image reaches unanimously, effectively save electricity.
In order to achieve the above object, the technical solution adopted by the present invention is:
A kind of adjusting method of terminal camera flash lamp, comprises the following steps:
Step 1. obtains camera sensitivity S when normal flash lamp is taken pictureshigh;
Step 2. is according to camera sensitivity ShighCalculate the maximum current I needed for camera when taking picturesmax;
Step 3. judges maximum current ImaxWhether maximum current I that terminal camera support is more thanhard, maximum current IhardFor
Predetermined fixed value;
If step 4. ImaxThe maximum current I supported more than terminal camerahard, then electric current is set to I=I when will take pictureshard,
Reacquire camera sensitivity Shigh;If ImaxThe maximum current I supported less than or equal to terminal camerahard, then next step is performed;
Step 5. is by maximum current ImaxAnd camera sensitivity ShighIt is used as electric current and camera sensitivity parameter read-in terminal phase
Machine, completes a flash lamp and takes pictures.
Further, step 1 is specifically included:
The picture brightness Luma values that preflashing stage picture brightness Luma values and the stage of taking pictures need to reach are set, and the picture is bright
Spend the average value that Luma values are brightness of image Y;It is camera sensitivity to set image sensitive degree ISO and the product of time for exposure
Sensitive, it is assumed that the camera sensitivity Sensitive before flash lamp is opened is S0, preflashing when camera sensitivity be Spre, clap
According to when camera sensitivity be Shigh;
S101. picture brightness Luma values L before flash lamp is opened is obtained0And camera sensitivity S0, now flash lamp, which is in, closes
The electric current of state is 0;
S102. preflashing stage picture brightness Luma values L is obtainedpre, the preflashing stage current value IpreAnd camera sensitivity is
Spre;
S103. judge preflashing stage camera sensitivity for SpreCamera sensitivity S before being opened with flash lamp0It is whether consistent,
Consistent then current picture brightness Luma values areThe pre flashing of flash lamp stage causes picture brightness Luma value changes amounts
For Δ L=L'pre-L0;
S104. the current value for setting the stage of taking pictures is Isnap, picture brightness Luma values be Lsnap, it is assumed that brightness of flash lamp with
Electric current is directly proportional, and dodges caused picture brightness Luma value changes amounts by force by flash lamp and isDrawn when taking pictures
Brightness Luma values in face are:Lhigh=Δ Lhigh+L0;
S105. it is L as Luma to set brightness needed for taking picturestarget, and LtargetFor definite value, camera sensitivity when acquisition is taken pictures
Further, step 2 is specifically included:
S201. basisΔ L=L'pre-L0、Lhigh=Δ Lhigh+L0AndFive formula scales are obtained
S202.Ipre、Lpre、S0、Spre、L0And LtargetFor fixed value, then I is obtainedsnapFor on ShighFunction of first order;
S203. S is obtainedhighMinimum value, be set to Smin, calculate maximum current I needed for taking picturesmax。
Further, step 4 is specifically included:
If S401. ImaxThe maximum current I supported more than terminal camerahardStep S402 is then performed, if IxamIt is less than or waits
The maximum current I supported in terminal camerahardThen perform step 5;
S402.ImaxThe maximum current I supported more than terminal camerahard, it is determined as flash lamp from far object distance, and ring
Border brightness value is low;
S403. the electric current that will take pictures is set to I=Ihard;
S404. increase camera exposure time or image sensitive degree, make ShighIncrease, recalculates camera sensitivity Shigh。
The invention also discloses a kind of regulating system of terminal camera flash lamp, including:
Normal photographing camera sensitivity acquiring unit, for obtaining camera sensitivity S when normal flash lamp is taken pictureshigh;
Take pictures maximum current acquiring unit, for according to camera sensitivity ShighCalculate the maximum electricity needed for camera when taking pictures
Flow Imax;
Judging unit, for judging maximum current ImaxWhether maximum current I that terminal camera support is more thanhard, maximum electricity
Flow IhardFor predetermined fixed value;
Take pictures current setting unit, if for ImaxThe maximum current I supported more than terminal camerahard, then it is electric when will take pictures
Stream is set to I=Ihard, reacquire camera sensitivity Shigh;If ImaxThe maximum current supported less than or equal to terminal camera
Ihard, then next step is performed;
Memory cell, for by maximum current ImaxAnd camera sensitivity ShighWrite as electric current with camera sensitivity parameter
Enter terminal camera, complete a flash lamp and take pictures.
Further, normal photographing camera sensitivity acquiring unit is specifically included:
The picture brightness Luma values that preflashing stage picture brightness Luma values and the stage of taking pictures need to reach are set, and the picture is bright
Spend the average value that Luma values are brightness of image Y;It is camera sensitivity to set image sensitive degree ISO and the product of time for exposure
Sensitive, it is assumed that the camera sensitivity Sensitive before flash lamp is opened is S0, preflashing when camera sensitivity be Spre, clap
According to when camera sensitivity be Shigh;
First acquisition unit, for obtaining picture brightness Luma values L before flash lamp is opened0And camera sensitivity S0, now dodge
The electric current that light lamp is closed is 0;
Second acquisition unit, for obtaining preflashing stage picture brightness Luma values Lpre, the preflashing stage current value IpreAnd
Camera sensitivity is Spre;
Camera sensitivity judging unit, for judging preflashing stage camera sensitivity for SprePhase before being opened with flash lamp
Machine sensitivity S0Whether consistent, unanimously then current picture brightness Luma values areThe pre flashing of flash lamp stage causes
Picture brightness Luma value changes amount is Δ L=L'pre-L0;
Setting unit, the current value for setting the stage of taking pictures is Isnap, picture brightness Luma values be Lsnap, it is assumed that flash of light
Lamp brightness is directly proportional to electric current, dodges caused picture brightness Luma value changes amounts by force by flash lamp and is
Picture brightness Luma values are when taking pictures:Lhigh=Δ Lhigh+L0;
Camera sensitivity computing unit, is L as Luma for setting required brightness of taking picturestarget, and LtargetFor definite value, obtain
Camera sensitivity when taking pictures
Further, maximum current acquiring unit of taking pictures is specifically included:
First computing unit, for basisΔ L=L'pre-L0、Lhigh
=Δ Lhigh+L0AndFive formula scales are obtained
Second computing unit, for Ipre、Lpre、S0、Spre、L0And LtargetFor fixed value, then I is obtainedsnapFor on Shigh
Function of first order;
3rd computing unit, for obtaining ShighMinimum value, be set to Smin, calculate required maximum current of taking pictures
Imax。
Further, current setting unit of taking pictures is specifically included:
Analytic unit, if for ImaxThe maximum current I supported more than terminal camerahardNext step is then performed, if ImaxIt is small
In or equal to terminal camera support maximum current IhardThen preserve data;
Identifying unit, for ImaxThe maximum current I supported more than terminal camerahard, it is determined as flash lamp from object distance
Far, and ambient brightness value is low;
Setting unit, for that will take pictures, electric current is set to I=Ihard;
Unit is reacquired, for increasing camera exposure time or image sensitive degree, makes ShighIncrease, recalculates camera
Sensitivity Shigh。
Compared with prior art, the beneficial effects of the invention are as follows:According to the brightness case of image before and after preflashing, adjustment is taken pictures
When flash lamp size of current, reach control brightness of flash lamp purpose so that open flash lamp in the case of, in certain journey
On degree the brightness of image is reached unanimously, and save electricity.
Brief description of the drawings
Fig. 1 is adjusting method flow chart of the invention.
Embodiment
It is described in detail referring to the drawings with reference to embodiment, so that technical characteristic and advantage to the present invention are carried out more
Deep annotation.
Flow chart of the method for the present invention is as shown in figure 1, a kind of adjusting method of terminal camera flash lamp, including following step
Suddenly:
The present invention step 1 be:Obtain camera sensitivity S when normal flash lamp is taken pictureshigh。
As presently preferred embodiments of the present invention, step 1 of the present invention is specifically included:
The picture brightness Luma values that preflashing stage picture brightness Luma values and the stage of taking pictures need to reach are set, and the picture is bright
Spend the average value that Luma values are brightness of image Y;It is camera sensitivity to set image sensitive degree ISO and the product of time for exposure
Sensitive, it is assumed that the camera sensitivity Sensitive before flash lamp is opened is S0, preflashing when camera sensitivity be Spre, clap
According to when camera sensitivity be Shigh;
S101. picture brightness Luma values L before flash lamp is opened is obtained0And camera sensitivity S0, now flash lamp, which is in, closes
The electric current of state is 0;L0And S0Value be not it is fixed, can in real time from system obtain) open flash lamp before picture brightness
Luma values are obtained by obtaining picture brightness Y average values, and the sensitivity time for exposure current by obtaining and sensitivity ISO multiply
Product is obtained;
S102. preflashing stage picture brightness Luma values L is obtainedpre, the preflashing stage current value IpreAnd camera sensitivity is
Spre;LpreAnd SpreValue be not it is fixed, can in real time from system obtain, during preflashing picture brightness Luma values by acquisition
Picture brightness Y average values are obtained, camera sensitivity SpreBy obtaining, current time for exposure and sensitivity ISO products are obtained,
And the current value in preflashing stage is fixed, preset by system;
S103. judge preflashing stage camera sensitivity for SpreCamera sensitivity S before being opened with flash lamp0It is whether consistent,
Consistent then current picture brightness Luma values areThe pre flashing of flash lamp stage causes picture brightness Luma value changes amounts
For Δ L=L'pre-L0;
S104. the current value for setting the stage of taking pictures is Isnap, picture brightness Luma values be Lsnap, (IsnapAnd LsnapValue,
Picture brightness Luma values L in the two valuessnapThink to set, and IsnapIt is the value to be calculated, step S104, which is one, to be pushed away
Survey process, the calculating setting of each value of reasoning) assume that brightness of flash lamp is directly proportional to electric current, dodge caused picture by force by flash lamp
Brightness Luma value changes amounts arePicture brightness Luma values are when taking pictures:Lhigh=Δ Lhigh+L0;
S105. it is L as Luma to set brightness needed for taking picturestarget, and LtargetFor definite value, camera sensitivity when acquisition is taken pictures
The present invention step 2 be:According to camera sensitivity ShighCalculate the maximum current I needed for camera when taking picturesmax。
As presently preferred embodiments of the present invention, step 2 of the present invention is specifically included:
S201. basisΔ L=L'pre-L0、Lhigh=Δ Lhigh+L0AndFive formula scales are obtained
S202.Ipre、Lpre、S0、Spre、L0And LtargetFor fixed value, then I is obtainedsnapFor on ShighFunction of first order;
S203. S is obtainedhighMinimum value, be set to Smin, calculate maximum current I needed for taking picturesmax。
The present invention step 3 be:Judge maximum current ImaxWhether maximum current I that terminal camera support is more thanhard, most
High current IhardFor predetermined fixed value.
The present invention step 4 be:If ImaxThe maximum current I supported more than terminal camerahard, then electric current is set when will take pictures
It is set to I=Ihard, reacquire camera sensitivity Shigh;If ImaxThe maximum current I supported less than or equal to terminal camerahard,
Then perform step 5.
As presently preferred embodiments of the present invention, step 4 of the present invention is specifically included:
If S401. ImaxThe maximum current I supported more than terminal camerahardStep S402 is then performed, if IxamIt is less than or waits
The maximum current I supported in terminal camerahardThen perform step 5;
S402.ImaxThe maximum current I supported more than terminal camerahard, it is determined as flash lamp from far object distance, and ring
Border brightness value is low;
S403. the electric current that will take pictures is set to I=Ihard;
S404. increase camera exposure time or image sensitive degree, make ShighIncrease, recalculates camera sensitivity Shigh。
The present invention step 4 be:By maximum current ImaxAnd camera sensitivity ShighIt is used as electric current and camera sensitivity parameter
Terminal camera is write, a flash lamp is completed and takes pictures.
The flow of the specific embodiment of the present invention is as follows:
Typically, the brightness of flash lamp in preflashing stage is weaker and brightness size is fixed, i.e. the preflashing stage is supplied to flash lamp
Electric current is fixed, therefore can be according to the Luma values (average value that is to say brightness of image Y) of preflashing stage picture, and is taken pictures
The stage Luma values to be reached, to infer stage brightness of flash lamp value of taking pictures, namely the stage of taking pictures current value, so as to reach control
The purpose of brightness of flash lamp processed.Comprise the following steps that:
Image sensitive value ISO and time for exposure T product is referred to as camera sensitivity Sensitive, it is assumed that before taking pictures
Sensitive is S0, it is S during preflashingpre, it is S when taking pictureshigh.It is that normal flash lamp calculates S when taking pictures firsthighProcess.
(1) picture brightness Luma=L before taking pictures is obtained0, it is 0 that now sudden strain of a muscle, which is turned off the light as the electric current of closed mode,;
(2) then obtain the preflashing stage, picture Luma values Lpre, current value Ipre;
(3) if the preflashing stage is consistent with the camera sensitivity before flash lamp unlatching, current picture brightness isPicture brightness Luma variation deltas L=L' is caused by pre flashing of flash lamppre-L0;
(4) if current value when taking pictures is Isnap, picture brightness Luma values be Lsnap, it is assumed that brightness of flash lamp and electric current into
Direct ratio, camera sensitivity is bright identical with taking pictures when taking pictures, then picture brightness becomes and turned to caused by being dodged by force by flash lampIt is so as to obtain picture brightness when taking pictures:Lhigh=Δ Lhigh+L0;
(5) set brightness needed for taking pictures and, as Luma Target, be set to Ltarget,
(6) the calculating S above is flash lamp is taken pictureshighProcess, according to above-mentioned formula, converseExcept S on the right of formulahigh, other is all preset parameter, or is taken pictures
During the definite value measured, so as to draw IsnapIt is on ShighFunction of first order;
(7) S firsthighTake minimum value Smin, calculate maximum current I needed for taking picturesmax;
(8) if ImaxMore than the maximum current I of hardware supportedhard, represent under the sensitivity of Current camera, flash lamp
Maximum current is not enough to take photo (far object distance, ambient brightness is low) bright enough, and electric current of now taking pictures takes I=
Ihard, then recalculate Shigh, make ShighIncrease, that is, increase time for exposure or the ISO of camera;
(9) if ImaxLess than the maximum current I of hardware supportedhard, represent camera sensitivity SminUnder, to take brightness is
LtargetPhoto, flash lamp only needs ImaxThe electric current of size, (distance is nearer, and ambient brightness is more spent, ImaxIt is smaller);
(10) according to the above-mentioned I calculatedmaxAnd Shigh, by electric current and camera sensitivity parameter read-in flash lamp hardware
With camera model, complete a flash lamp and take pictures.
The present invention changes according to brightness of image before and after preflashing in the case where opening flash lamp, automatically selects and dodged when taking pictures
The electric current of light lamp, it is not necessary to every time open electric current of flash lamp to maximum, so as to be issued to the purpose of power saving in the situation of flashing.Together
When, in the case of the enough luminance pictures of hardware current, current sensitivity can be used directly and is exposed, without adjustment exposure
Value, so as to save photo opporunity.
The invention also discloses a kind of regulating system of terminal camera flash lamp, including:
Normal photographing camera sensitivity acquiring unit, for obtaining camera sensitivity S when normal flash lamp is taken pictureshigh;
Take pictures maximum current acquiring unit, for according to camera sensitivity ShighCalculate the maximum electricity needed for camera when taking pictures
Flow Imax;
Judging unit, for judging maximum current ImaxWhether maximum current I that terminal camera support is more thanhard, maximum electricity
Flow IhardFor predetermined fixed value;
Take pictures current setting unit, if for ImaxThe maximum current I supported more than terminal camerahard, then it is electric when will take pictures
Stream is set to I=Ihard, reacquire camera sensitivity Shigh;If ImaxThe maximum current supported less than or equal to terminal camera
Ihard, then next step is performed;
Memory cell, for by maximum current ImaxAnd camera sensitivity ShighWrite as electric current with camera sensitivity parameter
Enter terminal camera, complete a flash lamp and take pictures.
Further, normal photographing camera sensitivity acquiring unit is specifically included:
The picture brightness Luma values that preflashing stage picture brightness Luma values and the stage of taking pictures need to reach are set, and the picture is bright
Spend the average value that Luma values are brightness of image Y;It is camera sensitivity to set image sensitive degree ISO and the product of time for exposure
Sensitive, it is assumed that the camera sensitivity Sensitive before flash lamp is opened is S0, preflashing when camera sensitivity be Spre, clap
According to when camera sensitivity be Shigh;
First acquisition unit, for obtaining picture brightness Luma values L before flash lamp is opened0And camera sensitivity S0, now dodge
The electric current that light lamp is closed is 0;
Second acquisition unit, for obtaining preflashing stage picture brightness Luma values Lpre, the preflashing stage current value IpreAnd
Camera sensitivity is Spre;
Camera sensitivity judging unit, for judging preflashing stage camera sensitivity for SprePhase before being opened with flash lamp
Machine sensitivity S0Whether consistent, unanimously then current picture brightness Luma values areThe pre flashing of flash lamp stage causes
Picture brightness Luma value changes amount is Δ L=L'pre-L0;
Setting unit, the current value for setting the stage of taking pictures is Isnap, picture brightness Luma values be Lsnap, it is assumed that flash of light
Lamp brightness is directly proportional to electric current, dodges caused picture brightness Luma value changes amounts by force by flash lamp and is
Picture brightness Luma values are when taking pictures:Lhigh=Δ Lhigh+L0;
Camera sensitivity computing unit, is L as Luma for setting required brightness of taking picturestarget, and LtargetFor definite value, obtain
Camera sensitivity when taking pictures
Further, maximum current acquiring unit of taking pictures is specifically included:
First computing unit, for basisΔ L=L'pre-L0、Lhigh
=Δ Lhigh+L0AndFive formula scales are obtained
Second computing unit, for Ipre、Lpre、S0、Spre、L0And LtargetFor fixed value, then I is obtainedsnapFor on Shigh
Function of first order;
3rd computing unit, for obtaining ShighMinimum value, be set to Smin, calculate required maximum current of taking pictures
Imax。
Further, current setting unit of taking pictures is specifically included:
Analytic unit, if for ImaxThe maximum current I supported more than terminal camerahardNext step is then performed, if ImaxIt is small
In or equal to terminal camera support maximum current IhardThen preserve data;
Identifying unit, for ImaxThe maximum current I supported more than terminal camerahard, it is determined as flash lamp from object distance
Far, and ambient brightness value is low;
Setting unit, for that will take pictures, electric current is set to I=Ihard;
Unit is reacquired, for increasing camera exposure time or image sensitive degree, makes ShighIncrease, recalculates camera
Sensitivity Shigh。
Clear, complete description is carried out to the present invention by the technical scheme in above example, it is clear that described reality
Apply embodiment of the example for a present invention part, rather than whole embodiments.Based on the embodiment in the present invention, this area is common
The every other embodiment that technical staff is obtained under the premise of creative work is not made, belongs to the model that the present invention is protected
Enclose.
Claims (6)
1. a kind of adjusting method of terminal camera flash lamp, comprises the following steps:
Step 1. obtains camera sensitivity S when normal flash lamp is taken pictureshigh;
Step 2. is according to camera sensitivity ShighCalculate the maximum current I needed for camera when taking picturesmax;
Step 3. judges maximum current ImaxWhether maximum current I that terminal camera support is more thanhard, maximum current IhardIt is default
Fixed value;
If step 4. ImaxThe maximum current I supported more than terminal camerahard, then electric current is set to I=I when will take pictureshard, again
Obtain camera sensitivity Shigh;If ImaxThe maximum current I supported less than or equal to terminal camerahard, then next step is performed;
Step 5. is by maximum current ImaxAnd camera sensitivity ShighIt is complete as electric current and camera sensitivity parameter read-in terminal camera
Taken pictures into a flash lamp;
Step 1 is specifically included:
The picture brightness Luma values that preflashing stage picture brightness Luma values and the stage of taking pictures need to reach, the picture brightness are set
Luma values are brightness of image Y average value;It is camera sensitivity to set image sensitive degree ISO and the product of time for exposure
Sensitive, it is assumed that the camera sensitivity Sensitive before flash lamp is opened is S0, preflashing when camera sensitivity be Spre, clap
According to when camera sensitivity be Shigh;
S101. picture brightness Luma values L before flash lamp is opened is obtained0And camera sensitivity S0, now flash lamp be closed
Electric current be 0;
S102. preflashing stage picture brightness Luma values L is obtainedpre, the preflashing stage current value IpreAnd camera sensitivity is Spre;
S103. judge preflashing stage camera sensitivity for SpreCamera sensitivity S before being opened with flash lamp0It is whether consistent, unanimously
Then current picture brightness Luma values areThe pre flashing of flash lamp stage causes picture brightness Luma value changes amount to be Δ
L=L'pre-L0;
S104. the current value for setting the stage of taking pictures is Isnap, picture brightness Luma values be Lsnap, it is assumed that brightness of flash lamp and electric current
It is directly proportional, dodging caused picture brightness Luma value changes amounts by force by flash lamp isPicture is bright when taking pictures
Spending Luma values is:Lhigh=Δ Lhigh+L0;
S105. it is L as Luma to set brightness needed for taking picturestarget, and LtargetFor definite value, camera sensitivity when acquisition is taken pictures
2. the adjusting method of terminal camera flash lamp according to claim 1, it is characterised in that step 2 is specifically included:
S201. basisΔ L=L'pre-L0、Lhigh=Δ Lhigh+L0AndFive formula scales are obtained
S202.Ipre、Lpre、S0、Spre、L0And LtargetFor fixed value, then I is obtainedsnapFor on ShighFunction of first order;
S203. S is obtainedhighMinimum value, be set to Smin, calculate maximum current I needed for taking picturesmax。
3. the adjusting method of terminal camera flash lamp according to claim 2, it is characterised in that step 4 is specifically included:
If S401. ImaxThe maximum current I supported more than terminal camerahardStep S402 is then performed, if IxamLess than or equal to terminal
The maximum current I that camera is supportedhardThen perform step 5;
S402.ImaxThe maximum current I supported more than terminal camerahard, it is determined as flash lamp from far object distance, and ambient brightness
Value is low;
S403. the electric current that will take pictures is set to I=Ihard;
S404. increase camera exposure time or image sensitive degree, make ShighIncrease, recalculates camera sensitivity Shigh。
4. a kind of regulating system of terminal camera flash lamp, it is characterised in that including:
Normal photographing camera sensitivity acquiring unit, for obtaining camera sensitivity S when normal flash lamp is taken pictureshigh;
Take pictures maximum current acquiring unit, for according to camera sensitivity ShighCalculate the maximum current needed for camera when taking pictures
Imax;
Judging unit, for judging maximum current ImaxWhether maximum current I that terminal camera support is more thanhard, maximum current
IhardFor predetermined fixed value;
Take pictures current setting unit, if for ImaxThe maximum current I supported more than terminal camerahard, then electric current is set when will take pictures
It is set to I=Ihard, reacquire camera sensitivity Shigh;If ImaxThe maximum current I supported less than or equal to terminal camerahard,
Then perform next step;
Memory cell, for by maximum current ImaxAnd camera sensitivity ShighIt is used as electric current and camera sensitivity parameter read-in terminal
Camera, completes a flash lamp and takes pictures;
Normal photographing camera sensitivity acquiring unit is specifically included:
The picture brightness Luma values that preflashing stage picture brightness Luma values and the stage of taking pictures need to reach, the picture brightness are set
Luma values are brightness of image Y average value;It is camera sensitivity to set image sensitive degree ISO and the product of time for exposure
Sensitive, it is assumed that the camera sensitivity Sensitive before flash lamp is opened is S0, preflashing when camera sensitivity be Spre, clap
According to when camera sensitivity be Shigh;
First acquisition unit, for obtaining picture brightness Luma values L before flash lamp is opened0And camera sensitivity S0, now flash lamp
The electric current being closed is 0;
Second acquisition unit, for obtaining preflashing stage picture brightness Luma values Lpre, the preflashing stage current value IpreAnd camera
Sensitivity is Spre;
Camera sensitivity judging unit, for judging preflashing stage camera sensitivity for SpreCamera sense before being opened with flash lamp
Luminosity S0Whether consistent, unanimously then current picture brightness Luma values areThe pre flashing of flash lamp stage causes picture
Brightness Luma value changes amount is Δ L=L'pre-L0;
Setting unit, the current value for setting the stage of taking pictures is Isnap, picture brightness Luma values be Lsnap, it is assumed that flash lamp is bright
Degree is directly proportional to electric current, dodges caused picture brightness Luma value changes amounts by force by flash lamp and isTake pictures
When picture brightness Luma values be:Lhigh=Δ Lhigh+L0;
Camera sensitivity computing unit, is L as Luma for setting required brightness of taking picturestarget, and LtargetFor definite value, acquisition is taken pictures
Shi Xiangji sensitivity
5. the regulating system of terminal camera flash lamp according to claim 4, it is characterised in that maximum current of taking pictures is obtained
Unit is specifically included:
First computing unit, for basisΔ L=L'pre-L0、Lhigh=Δ
Lhigh+L0AndFive formula scales are obtained
Second computing unit, for Ipre、Lpre、S0、Spre、L0And LtargetFor fixed value, then I is obtainedsnapFor on ShighOne
Rank function;
3rd computing unit, for obtaining ShighMinimum value, be set to Smin, calculate maximum current I needed for taking picturesmax。
6. the regulating system of terminal camera flash lamp according to claim 5, it is characterised in that current setting unit of taking pictures
Specifically include:
Analytic unit, if for ImaxThe maximum current I supported more than terminal camerahardNext step is then performed, if ImaxIt is less than or waits
The maximum current I supported in terminal camerahardThen preserve data;
Identifying unit, for ImaxThe maximum current I supported more than terminal camerahard, it is determined as flash lamp from far object distance, and
Ambient brightness value is low;
Setting unit, for that will take pictures, electric current is set to I=Ihard;
Unit is reacquired, for increasing camera exposure time or image sensitive degree, makes ShighIncrease, recalculates camera photosensitive
Spend Shigh。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510465835.9A CN104965376B (en) | 2015-07-30 | 2015-07-30 | The adjusting method and system of a kind of terminal camera flash lamp |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510465835.9A CN104965376B (en) | 2015-07-30 | 2015-07-30 | The adjusting method and system of a kind of terminal camera flash lamp |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104965376A CN104965376A (en) | 2015-10-07 |
CN104965376B true CN104965376B (en) | 2017-08-08 |
Family
ID=54219415
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510465835.9A Expired - Fee Related CN104965376B (en) | 2015-07-30 | 2015-07-30 | The adjusting method and system of a kind of terminal camera flash lamp |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104965376B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105955442A (en) * | 2016-04-21 | 2016-09-21 | 青岛海信移动通信技术股份有限公司 | Method and device for processing low battery of user terminal |
CN107181920B (en) * | 2017-05-25 | 2024-03-08 | 上海传英信息技术有限公司 | Mobile terminal and method for switching flash lamp to take pictures |
JP7258589B2 (en) * | 2019-02-18 | 2023-04-17 | キヤノン株式会社 | Lighting device and its control method, imaging device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101820177A (en) * | 2008-12-25 | 2010-09-01 | 株式会社尼康 | Charger for electronic device, electronic device, and charging method |
CN102081278A (en) * | 2010-11-19 | 2011-06-01 | 华为终端有限公司 | Flash control method and device |
CN103491250A (en) * | 2013-09-22 | 2014-01-01 | 惠州Tcl移动通信有限公司 | Mobile terminal and flashlight module drive current setting method thereof |
CN103561210A (en) * | 2013-10-24 | 2014-02-05 | 惠州Tcl移动通信有限公司 | Method and mobile terminal for photographing according to background light |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4603836B2 (en) * | 2004-08-31 | 2010-12-22 | キヤノン株式会社 | Imaging apparatus, control method therefor, program, and recording medium |
TWI454138B (en) * | 2011-05-18 | 2014-09-21 | Altek Corp | Method for adjusting brightness of image |
-
2015
- 2015-07-30 CN CN201510465835.9A patent/CN104965376B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101820177A (en) * | 2008-12-25 | 2010-09-01 | 株式会社尼康 | Charger for electronic device, electronic device, and charging method |
CN102081278A (en) * | 2010-11-19 | 2011-06-01 | 华为终端有限公司 | Flash control method and device |
CN103491250A (en) * | 2013-09-22 | 2014-01-01 | 惠州Tcl移动通信有限公司 | Mobile terminal and flashlight module drive current setting method thereof |
CN103561210A (en) * | 2013-10-24 | 2014-02-05 | 惠州Tcl移动通信有限公司 | Method and mobile terminal for photographing according to background light |
Also Published As
Publication number | Publication date |
---|---|
CN104965376A (en) | 2015-10-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109218628B (en) | Image processing method, image processing device, electronic equipment and storage medium | |
US11532076B2 (en) | Image processing method, electronic device and storage medium | |
WO2017096857A1 (en) | Method and device for adjusting photographing parameter of camera | |
JP4236433B2 (en) | System and method for simulating fill flash in photography | |
WO2020038074A1 (en) | Exposure control method and apparatus, and electronic device | |
CN109218627B (en) | Image processing method, image processing device, electronic equipment and storage medium | |
JP2021530911A (en) | Night view photography methods, devices, electronic devices and storage media | |
CN108737738B (en) | Panoramic camera and exposure method and device thereof | |
WO2019011090A1 (en) | White balance synchronization method and apparatus, and terminal device | |
WO2019149099A1 (en) | Electronic device, human face recognition method, and relevant product | |
WO2014036911A1 (en) | Flash control method and device | |
US8558935B2 (en) | Scene information displaying method and apparatus and digital photographing apparatus using the scene information displaying method and apparatus | |
CN103957354A (en) | Mobile terminal, and photographing guide method and device | |
WO2023098743A1 (en) | Automatic exposure method, apparatus and device, and storage medium | |
CN104780320B (en) | Ambient light detection method and electronic device | |
US20240273909A1 (en) | Camera shooting parameter adjustment method and apparatus, and electronic device | |
CN104965376B (en) | The adjusting method and system of a kind of terminal camera flash lamp | |
CN106791451B (en) | Photographing method of intelligent terminal | |
CN105578062A (en) | Light metering mode selection method and image acquisition device utilizing same | |
CN105898152A (en) | Method and system for restoring ambient light luminance on image | |
CN106657798A (en) | Photographing method for intelligent terminal | |
CN109089045A (en) | A kind of image capture method and equipment and its terminal based on multiple photographic devices | |
CN106303243A (en) | A kind of photographic method, device and terminal | |
CN105472268A (en) | Method and device for filling light during photographing | |
CN111492653A (en) | Method and device for quickly adjusting white balance of camera and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170808 |
|
CF01 | Termination of patent right due to non-payment of annual fee |