CN105933965A - Method and device for controlling to open flashlight and terminal - Google Patents
Method and device for controlling to open flashlight and terminal Download PDFInfo
- Publication number
- CN105933965A CN105933965A CN201610521915.6A CN201610521915A CN105933965A CN 105933965 A CN105933965 A CN 105933965A CN 201610521915 A CN201610521915 A CN 201610521915A CN 105933965 A CN105933965 A CN 105933965A
- Authority
- CN
- China
- Prior art keywords
- parameter
- flash lamp
- threshold value
- preset threshold
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
-
- 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/74—Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0267—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
- Secondary Cells (AREA)
- Power Sources (AREA)
Abstract
The embodiment of the invention discloses a method and a device for controlling to open a flashlight and a terminal, and relates to the technical field of photographing of terminal equipment. The method comprises the following steps: when it is detected that a camera application in the terminal is opened, obtaining parameter information of a battery in the current terminal; and if a target parameter value in the parameter information of the battery is smaller than a preset parameter threshold of controlling to open the flashlight, modifying the preset parameter threshold to open the flashlight. By adopting the embodiment of the invention, the flashlight can be guaranteed to be opened in the case of low dump energy of the battery to shoot a clear image.
Description
Technical field
The present invention relates to terminal unit shooting technology field, particularly relate to the control method that a kind of flash lamp is opened
Device and terminal.
Background technology
Along with the fast development of electronic equipment, the function of the terminal such as panel computer, smart mobile phone is more and more abundanter
Various, wherein, utilize above-mentioned terminal to take pictures to become numerous user and share Life intravenous drip with relatives and friends
Main path.At present, major part has the terminal of camera function and is equipped with flash lamp, can by flash lamp
To improve the photographic quality of shooting under low light environment.
Using during terminal takes pictures, terminal can enable by automatically detecting environmental aspect or
Close flash lamp.If the current environment light that terminal detects is more weak, controls flash lamp and open with shooting clear
Image.
But, during realizing the present invention, it is existing that inventor finds that prior art has following defects that
In technology, only in the case of electricity abundance, when taking pictures, terminal could control flash lamp under low light environment
Open.When the battery dump energy of terminal is relatively low, in order to extend the stand-by time of terminal, if current environment
Dark, can not control flash lamp and open, thus affect the image definition of shooting when taking pictures.
Summary of the invention
In view of this, the embodiment of the present invention provides control method, device and the terminal that a kind of flash lamp is opened,
Ensure that in the case of battery dump energy is relatively low, opens the flash lamp image with shooting clear.
First aspect, embodiments provides the control method that a kind of flash lamp is opened, including:
When the camera applications detected in terminal is opened, obtain the parameter information of battery in present terminal;
If the targeted parameter value in the parameter information of described battery is less than controlling the parameter preset that flash lamp is opened
Threshold value, revises described parameter preset threshold value to open described flash lamp.
Second aspect, the embodiment of the present invention additionally provides the control device that a kind of flash lamp is opened, including:
Battery parameter data obtaining module, for when the camera applications detected in terminal is opened, obtaining and work as
The parameter information of battery in front terminal;
Parameter preset threshold modification module, if the targeted parameter value in the parameter information of described battery is little
In controlling the parameter preset threshold value that flash lamp is opened, revise described parameter preset threshold value to open described flash of light
Lamp.
The third aspect, the embodiment of the present invention additionally provides a kind of terminal, and this terminal is integrated with the embodiment of the present invention
The control device that the flash lamp provided is opened.
Control method, device and the terminal that a kind of flash lamp that the embodiment of the present invention provides is opened, the present invention is real
The method executing example is summarised as: when the targeted parameter value in the battery information obtained is less than controlling what flash lamp was opened
During parameter preset threshold value, by flash lamp is opened in the amendment of parameter preset threshold value.Utilize the method can
Ensure in the case of battery dump energy is relatively low, open the flash lamp image with shooting clear.
Accompanying drawing explanation
The detailed description that non-limiting example is made made with reference to the following drawings by reading, the present invention
Other features, objects and advantages will become more apparent upon:
Fig. 1 is the control method flow chart that a kind of flash lamp that the embodiment of the present invention one provides is opened;
Fig. 2 a is the control method flow chart that a kind of flash lamp that the embodiment of the present invention two provides is opened;
Schematic diagram when Fig. 2 b is to show shortcut menu on the terminal screen that the embodiment of the present invention two provides.
Fig. 3 is the control method flow chart that a kind of flash lamp that the embodiment of the present invention three provides is opened;
Fig. 4 is the control apparatus structure block diagram that a kind of flash lamp that the embodiment of the present invention four provides is opened.
Detailed description of the invention
The present invention is described in further detail with embodiment below in conjunction with the accompanying drawings.It is understood that this
Specific embodiment described by place is used only for explaining the present invention, rather than limitation of the invention.The most also need
Be noted that for the ease of describing, accompanying drawing illustrate only part related to the present invention and not all in
Hold.
Embodiment one
Fig. 1 is the control method flow chart that a kind of flash lamp that the embodiment of the present invention one provides is opened, described side
The control device that method is opened by flash lamp performs, and described device is performed by software and/or hardware, described
Device is generally disposed at as in the terminal such as smart mobile phone, panel computer.As it is shown in figure 1, the present embodiment provides
Technical scheme specific as follows:
S110: when the camera applications detected in terminal is opened, obtains the parameter letter of battery in present terminal
Breath.
In the present embodiment, terminal is the electronic equipment such as smart mobile phone, panel computer, and terminal can also be it
He has the electronic equipment of camera function.Camera applications can be the camera applications carried in terminal, or also
It can be the user installation camera applications in the terminal with U.S. face effect.
In the present embodiment, parameter information includes the information of voltage of battery and the dump energy information of battery.Its
In, parameter information can also include other information of battery, the information category that parameter information specifically includes according to
Needs are configured.The setting of the information category by parameter information is included, it is possible to according to the needs of user
Get parms information.
S120: judge that whether the targeted parameter value in the parameter information of described battery is less than controlling flash lamp unlatching
Parameter preset threshold value.
If it is, perform S130, if it does not, perform S140.
S130: revise described parameter preset threshold value to open described flash lamp.
S140: do not revise described parameter preset threshold value.
In the present embodiment, parameter preset threshold value is for controlling the unlatching of flash lamp, only when the battery obtained
Targeted parameter value in parameter information is more than or equal to parameter preset threshold value, in the case of ambient light is more weak
Just can open the flash lamp image with shooting clear.In the prior art, parameter preset threshold value be one fix
Value, if the targeted parameter value in the battery parameter information obtained is less than parameter preset threshold value, at ambient light relatively
Flash lamp can not be opened, say, that in the case of dump energy is relatively low, it is impossible to control to dodge in the case of weak
Opening of light modulation.Therefore to open the flash lamp figure with shooting clear in the case of ambient light is more weak
Picture, can modify parameter preset threshold value, makes the targeted parameter value in the battery parameter information of acquisition big
In or equal to amended parameter preset threshold value so that in the case of dump energy is relatively low, it is also possible to control
Opening of flash lamp.
In the present embodiment, amendment parameter preset threshold value can be modified according to the instruction of user, or also
Automatically can revise according to the targeted parameter value in the battery parameter information obtained.To parameter preset threshold
When value is modified, can modify based on modes such as default formula, algorithm or models.Its
In, the mode of parameter preset threshold modifying is not limited to above-mentioned mode, it is also possible to be other modes.
In the present embodiment, the number of battery dump energy can be reflected by residual electric quantity, or also may be used
To be reflected by the magnitude of voltage of battery.Therefore, optionally, targeted parameter value can be magnitude of voltage, presets ginseng
Number threshold value is default voltage threshold;Or, targeted parameter value can also be residual electric quantity, parameter preset
Threshold value is default dump energy threshold value.So, when the magnitude of voltage in the battery parameter information obtained is less than pre-
If voltage threshold time, modify to open flash lamp to default voltage threshold;Or when the electricity obtained
When residual electric quantity in the parameter information of pond is less than the residual electric quantity preset, default residual electric quantity is entered
Row amendment is to open flash lamp.
Wherein, residual electric quantity can be dump energy based on present battery and after battery is completely filled with electricity
The relative value that calculates of coulant meter.Such as, after battery being completely filled with electricity and battery electric quantity quilt completely
Residual electric quantity after consumption is respectively set to 100 and 0, then after terminal uses a period of time, according to currently
The dump energy of battery and battery are completely filled with the electricity after electricity and calculate residual electric quantity.Concrete, residue electricity
Value can be that dump energy and the battery of present battery is completely filled with the ratio of electricity after electricity.Residual electric quantity
May be 80,60 etc..Residual electric quantity can also be the numerical value calculated by additive method, residue electricity
The circular of value selects as required, for the purpose of reducing system operations amount.
Present embodiments provide the control method that a kind of flash lamp is opened, by when in the battery information obtained
During the parameter preset threshold value that targeted parameter value is opened less than control flash lamp, the amendment to parameter preset threshold value comes
Open flash lamp, it is possible to ensure in the case of battery dump energy is relatively low, to open flash lamp with shooting clear
Image.
Embodiment two
Fig. 2 a is the control method flow chart that a kind of flash lamp that the embodiment of the present invention two provides is opened, above-mentioned
On the basis of embodiment one, optionally, if the targeted parameter value in the parameter information of described battery is little
In controlling the parameter preset threshold value that flash lamp is opened, revise described parameter preset threshold value to open described flash of light
Lamp, including:
If described targeted parameter value is less than described parameter preset threshold value, show control flash of light on a terminal screen
The shortcut menu that lamp is opened;
The instruction opening flash lamp inputted on described shortcut menu according to user, revises described parameter preset
Threshold value is to open described flash lamp.
Thus, parameter preset threshold value is entered by the instruction opening flash lamp inputted on shortcut menu by user
Row amendment is to open flash lamp, it is possible to be controlled flash lamp according to the demand of user.
Based on above-mentioned optimization, as shown in Figure 2 a, the technical scheme that the present embodiment provides is specific as follows:
S210: when the camera applications detected in terminal is opened, obtains the parameter letter of battery in present terminal
Breath.
S220: judge that whether the targeted parameter value in the parameter information of described battery is less than controlling flash lamp unlatching
Preset parameter value.
If it is, perform S230, if it does not, perform S250.
S230: show on a terminal screen and control the shortcut menu that flash lamp is opened.
In the present embodiment, if the targeted parameter value in the parameter information of battery is opened less than controlling flash lamp
Preset parameter value, on a terminal screen show control flash lamp open shortcut menu, user can basis
It is actually needed the unlatching controlling flash lamp.The parameter letter of battery in present terminal can also be shown on shortcut menu
Breath, it is simple to user's dump energy information of electrolytic cell, facilitates user to be controlled flash lamp.Wherein,
The form of shortcut menu can show on shortcut menu 200 and whether control flash lamp unlatching as shown in Figure 2 b
Button, when "Yes" button during user clicks on shortcut menu 200, flash lamp can be controlled and open,
When "No" button during user clicks on shortcut menu 200, it is not possible to open flash lamp.
It should be noted that the shortcut menu shown in Fig. 2 b does not show the parameter information of battery, but
It is only a kind of example at the shortcut menu shown in Fig. 2 b, in other embodiments of the present invention, in shortcut menu
The parameter information of battery can also be shown.
On the basis of above-described embodiment, when the targeted parameter value in the parameter information of battery is less than controlling flash of light
During the preset parameter value that lamp is opened, it is also possible to based on user to the trigger action on terminal screen, at end panel
Show on curtain and control the shortcut menu that flash lamp is opened.Wherein, trigger action can be to the left, to the right, to
Go up or downward sliding gesture, or can also is that other gesture, such as, shape of drawing on a terminal screen
Deng.When camera applications is opened in terminal, obtain the parameter information of battery, if in the parameter information of battery
Targeted parameter value less than control flash lamp open preset parameter value, when detecting that user is on a terminal screen
Carry out slip gesture to the left, to the right, up or down, the screen of terminal shows control flash lamp is opened
The shortcut menu opened.According to the display needing control shortcut menu of user, and then can be controlled by the method
The unlatching of flash lamp processed.
S240: the instruction opening flash lamp inputted on described shortcut menu according to user, revises described pre-
Setting parameter threshold value is to open described flash lamp.
In the present embodiment, optionally, described amendment described parameter preset threshold value to open described flash lamp,
Including: user based on parameter preset coefficient and acquisition inputs unlatching flash lamp on described shortcut menu and refers to
The number of times of order revises described parameter preset threshold value.
Further, optionally, user based on parameter preset coefficient and acquisition is defeated on described shortcut menu
The number of times entering to open flash lamp instruction revises described parameter preset threshold value, including: revised by formula below
Described parameter preset threshold value: PX=P0-aX;Wherein, PXFor amended parameter preset threshold value, P0For initial
Parameter preset threshold value, X is that the user obtained inputs the secondary of unlatching flash lamp instruction on described shortcut menu
Number, a is parameter preset coefficient.Wherein, parameter preset coefficient can be configured as required, when target is joined
Numerical value is magnitude of voltage, and when parameter preset threshold value is default voltage threshold, a is chosen as 0.2.As user
After once on shortcut menu, flash lamp instruction is opened in input, if the targeted parameter value of battery is still less than the
The most amended parameter preset threshold value, can show shortcut menu the most on a terminal screen again, for
Family on shortcut menu second time input open flash lamp instruction, until the targeted parameter value of battery more than or
Equal to amended parameter preset threshold value.
Such as, when targeted parameter value is magnitude of voltage, and when parameter preset threshold value is default voltage threshold, if
Preset voltage threshold be 3.6V, the magnitude of voltage of present battery be 3.5V, a be 0.2;Now open camera
When taking pictures, the screen of terminal shows shortcut menu, shortcut menu is pointed out the voltage of user's present battery
Value is 3.5V, and dump energy is relatively low, and flash lamp is unavailable, if need to open flash lamp.If user selects
Selecting unlatching flash lamp, then revise default voltage threshold, amended predetermined voltage threshold is:
PX=P0-aX=3.6-0.2 × 1=3.4V.Wherein, the magnitude of voltage (3.5V) of present battery is more than amended pre-
If voltage threshold 3.4V, just can open taking photos by using flashlights clearly when taking pictures in rather dark environment
Image.If the magnitude of voltage of present battery is 3.2V, then user's second time is needed to select to open flash lamp, right
The voltage threshold preset is secondly revised, so that the magnitude of voltage of present battery is more than or equal to amended
The voltage threshold preset.
By the above-mentioned amendment to default parameter threshold, it is possible to make in the case of battery dump energy is relatively low
Demand according to user opens the flash lamp image with shooting clear.
On the basis of above-described embodiment, it is also possible to by formula below amendment parameter preset threshold value:
Pn=Pm-a, wherein, PnFor current amended parameter preset threshold value, PmFor last amended default ginseng
Number threshold value, a is parameter preset coefficient.Therefore, revise parameter preset threshold value time, can as required or
Person selects the form of formula for the purpose of reducing system operations amount.
S250: do not show on the screen of terminal and control the shortcut menu that flash lamp is opened, and do not revise described
Parameter preset threshold value.
On the basis of above-described embodiment, when using the camera applications in terminal to take pictures, if the battery obtained
Targeted parameter value in parameter information is less than parameter preset threshold value, it is also possible to based on targeted parameter value automatically in advance
Setting parameter threshold value is modified, it is not necessary to by the operation that user is manual.Concrete method is: according to acquisition
Targeted parameter value, parameter preset threshold value is modified, so that amended parameter preset threshold value is less than obtaining
The targeted parameter value taken.By the automatic method to parameter preset threshold modifying, user-friendly.
Present embodiments provide the control method that a kind of flash lamp is opened, inputted on shortcut menu by user
Open flash lamp instruction modify to open flash lamp to parameter preset threshold value, it is possible to according to user's
Flash lamp is controlled by demand.
Embodiment three
Fig. 3 is the control method flow chart that a kind of flash lamp that the embodiment of the present invention three provides is opened, above-mentioned
On the basis of embodiment, optionally, described method also includes:
If described targeted parameter value is less than described parameter preset threshold value, reduce the arteries and veins inputing to described flash lamp
Rush the maximum duty value of signal to reduce electric current during described flash lamp operation.
Thus, the maximum duty value of the pulse signal of flash lamp is inputed to by reduction, it is possible to reduce flash lamp
Electric current during work reduces the consumption of battery.
Further, optionally, described method also includes: if described targeted parameter value is less than predetermined limit
Value, disables described flash lamp.
Thus, by the disabling to flash lamp, it is possible to reduce battery consumption, extend terminal standby time
Between.
Further, optionally, if the targeted parameter value in the parameter information of described battery is less than controlling
The parameter preset threshold value that flash lamp is opened, after revising described parameter preset threshold value, also includes:
After described terminal supplements electricity, if described targeted parameter value is more than initial parameter preset threshold value,
Amended parameter preset threshold value is reverted to initial value.
Thus, the targeted parameter value obtained by judgement and the relation of initial parameter preset threshold value, make amendment
After parameter preset threshold value revert to initial value, it is simple to flash lamp is carried out initial setting up, facilitates user.
As it is shown on figure 3, the technical scheme that the present embodiment provides is specific as follows:
S310: when the camera applications detected in terminal is opened, obtains the parameter letter of battery in present terminal
Breath.
S320: judge that whether the targeted parameter value in the parameter information of battery is less than preset limit value.
If it is, perform S330, if it does not, perform S340.
S330: disabling flash lamp.
S340: do not disable flash lamp.
In the present embodiment, preset limit value is less than parameter preset threshold value.If in the parameter information of battery
Targeted parameter value is less than preset limit value, in order to save the consumption of battery, extends the stand-by time of terminal, then
Disable flash lamp when taking pictures in the environment of dark, and can not open by the way of amendment preset limit value
Open flash lamp.If the targeted parameter value in the parameter information of battery is more than preset limit value, do not disable flash of light
Lamp, i.e. can control the unlatching of flash lamp by the way of amendment parameter preset threshold value, or not revise default
Parameter threshold just can open flash lamp.
S350: judge that whether the targeted parameter value in the parameter information of described battery is less than controlling flash lamp unlatching
Parameter preset threshold value.
If it is, perform S360, S370, if it does not, perform S380.
S360: revise described parameter preset threshold value to open described flash lamp.
S370: reduce the maximum duty value of the pulse signal inputing to described flash lamp to reduce described flash lamp
Electric current during work.
In the present embodiment, the duty value of the pulse signal inputing to flash lamp inputs to flash lamp for control
Size of current.When the electric current inputing to flash lamp is bigger, input to the duty value of stroboscopic optical light pulses signal
Relatively big, when the electric current inputing to flash lamp is less, the duty value inputing to stroboscopic optical light pulses signal is bigger.
The duty value of pulse signal can be arranged between 1-64 by the size according to the electric current inputing to flash lamp,
The most corresponding current value inputing to flash lamp of the duty value of each pulse signal.If the parameter of battery
Targeted parameter value in information, less than controlling the parameter preset threshold value that flash lamp is opened, reduces and inputs to flash lamp
The maximum duty value of pulse signal.Wherein, the duty value of the pulse signal inputing to flash lamp can be little
In or equal to maximum duty value.
In the present embodiment, the method for duty value maximum for reduction can be based on following formula:
Dn=D0-b, wherein, DnFor the maximum duty value of the pulse signal after reducing, D0For initial pulse signal
Maximum duty value, b for preset reduce coefficient.Optionally, b is 1 or 2.Pass through Dn=D0-b can see
Go out reducing of pulse signal maximum duty value unrelated with the number of times of amendment parameter preset threshold value.
Can also is that based on following formula: D for reducing the method for maximum duty valuen=D0-bY, wherein,
DnFor the maximum duty value of the pulse signal after reducing, D0For the maximum duty value of initial pulse signal,
B reduces coefficient for presetting, Y be in the number of times of amendment parameter preset threshold value, and Y and embodiment two user soon
On prompt menu, the number of times of input unlatching flash lamp instruction is identical.The method reducing maximum duty value is also based on
Other formula or algorithm, by the operand reducing system or for the purpose of meeting user's request.
Such as, being currently entered to the maximum duty value of the pulse signal of flash lamp is 16, wherein, is currently entered
The duty value corresponding to the current value of the pulse signal of flash lamp can be less than or equal to 16.If the electricity obtained
Targeted parameter value in the parameter information of pond, can be by current less than controlling the parameter preset threshold value that flash lamp is opened
The maximum duty value (16) inputing to stroboscopic optical light pulses signal deducts 1, the pulse signal after being reduced
Maximum duty value 15, the duty value that the current value of the pulse signal inputing to flash lamp after reduction is corresponding
Less than or equal to 15, thus reduce the electric current inputing to flash lamp.
S380: described parameter preset threshold value is not modified.
S390: after described terminal supplements electricity, if described targeted parameter value is more than initial parameter preset
Threshold value, reverts to initial value by amended parameter preset threshold value.
In the present embodiment, after terminal charge supplements electricity, target component in the battery parameter information of acquisition
Value is relatively big, and the targeted parameter value obtained by judgement and the relation of initial parameter preset threshold value, after making amendment
Parameter preset threshold value revert to initial value, it is simple to flash lamp is carried out initial setting up, facilitates user.
Although it should be noted that operations (or step) is described as order by flow chart in the present embodiment
Process, but many of which operation can be implemented concurrently, concomitantly or simultaneously.Additionally, it is each
The order of item operation can be rearranged.The most described process can be terminated, but also
Can have the additional step being not included in accompanying drawing, in some replace implementation, the function being previously mentioned
/ action can occur according to being different from accompanying drawing the order indicated.For example, the S360 in the present embodiment
Can occur with S370, and for example, S350-S380 can realize the control that flash lamp is opened before S320 simultaneously
System.
It should be noted that exemplary S310-S390 one embodiment of composition is realized of the embodiment of the present invention
The control method that flash lamp is opened, but the embodiment of the present invention is only an example, in other realities of the present invention
Execute in example, S310-S360 can be formed a single embodiment and realize the method that flash lamp is opened, also
S310, S350-S380 can be formed a single embodiment and realize the control method that flash lamp is opened,
S310, S350, S360, S380, S390 one single embodiment of composition can also be realized flash lamp to open
The control method opened.
Present embodiments provide the control method that a kind of flash lamp is opened, inputed to the arteries and veins of flash lamp by reduction
Rush the maximum duty value of signal, it is possible to electric current when reducing flash lamp operation reduces the consumption of battery;By right
The disabling of flash lamp, it is possible to reduce the consumption of battery, extends the stand-by time of terminal;Obtained by judgement
Targeted parameter value and the relation of initial parameter preset threshold value, make amended parameter preset threshold value revert to former
Value, it is simple to flash lamp is carried out initial setting up, facilitates user.
Embodiment four
Fig. 4 is the control apparatus structure block diagram that a kind of flash lamp that the embodiment of the present invention four provides is opened, described
Device is for performing the control method that flash lamp is opened, and as shown in Figure 4, described device includes: battery parameter
Data obtaining module 410 and parameter preset threshold modification module 420.
Wherein, battery parameter data obtaining module 410, for opening when the camera applications detected in terminal
Time, obtain the parameter information of battery in present terminal;
Parameter preset threshold modification module 420, if the target component in the parameter information of described battery
Value, less than controlling the parameter preset threshold value that flash lamp is opened, revises described parameter preset threshold value to open described sudden strain of a muscle
Light modulation.
Further, described parameter preset threshold modification module 420, specifically for:
If described targeted parameter value is less than described parameter preset threshold value, show control flash of light on a terminal screen
The shortcut menu that lamp is opened;
The instruction opening flash lamp inputted on described shortcut menu according to user, revises described parameter preset
Threshold value is to open described flash lamp.
Further, described shortcut menu shows the parameter information of battery in present terminal.
Further, described amendment described parameter preset threshold value to open described flash lamp, including:
User based on parameter preset coefficient and acquisition inputs unlatching flash lamp instruction on described shortcut menu
Number of times revise described parameter preset threshold value.
Further, described user based on parameter preset coefficient and acquisition inputs on described shortcut menu
The number of times opening flash lamp instruction revises described parameter preset threshold value, including:
Described parameter preset threshold value is revised by formula below:
PX=P0-aX
Wherein, PXFor amended parameter preset threshold value, P0For initial parameter preset threshold value, X is obtain
User inputs the number of times opening flash lamp instruction on described shortcut menu, and a is parameter preset coefficient.
Further, described device also includes: maximum duty value reduces module 430, if for described mesh
Mark parameter value, less than described parameter preset threshold value, reduces the maximum of the pulse signal inputing to described flash lamp
Duty value is to reduce electric current during described flash lamp operation.
Further, described device also includes: flash lamp disabled module 440, if joined for described target
Numerical value is less than preset limit value, disables described flash lamp.
Further, described device also includes: parameter preset threshold value recovers module 450, if in institute
State the parameter preset threshold value that the targeted parameter value in the parameter information of battery is opened, amendment less than control flash lamp
After described parameter preset threshold value,
After described terminal supplements electricity, if described targeted parameter value is more than initial parameter preset threshold value,
Amended parameter preset threshold value is reverted to initial value.
Further, described parameter information includes the information of voltage of battery and the dump energy information of battery;
Described targeted parameter value is magnitude of voltage, and described parameter preset threshold value is default voltage threshold;Or, institute
Stating targeted parameter value is residual electric quantity, and described parameter preset threshold value is default dump energy threshold value.
Said apparatus can perform the method that any embodiment of the present invention is provided, and possesses the corresponding merit of execution method
Can module and beneficial effect.
The control device that a kind of flash lamp that the embodiment of the present invention provides is opened, by when the battery information obtained
In targeted parameter value less than control flash lamp open parameter preset threshold value time, parameter preset threshold value is repaiied
Change to open flash lamp, it is possible to ensure in the case of battery dump energy is relatively low, open flash lamp clear with shooting
Clear image.
Embodiment five
The embodiment of the present invention five provides a kind of terminal, and this terminal is integrated with a kind of sudden strain of a muscle that above-described embodiment provides
The control device that light modulation is opened, flash lamp unlatching is carried out by the control method can opened by performing flash lamp
Control.
Exemplary, the terminal in the present embodiment can be the electronic equipment such as smart mobile phone, panel computer.When
When user uses the terminal in the present embodiment, the control device that terminal is opened based on flash lamp therein is detecting
To user open camera applications time, obtain the parameter information of battery in terminal;If then judging the ginseng of battery
Targeted parameter value in number information, less than controlling the parameter preset threshold value that flash lamp is opened, revises described default ginseng
Number threshold value is to open flash lamp.
The control device that the flash lamp that terminal in the present embodiment utilizes the present invention to provide is opened, by when obtaining
Battery information in targeted parameter value less than control flash lamp open parameter preset threshold value time, to default ginseng
Flash lamp is opened in the amendment of number threshold value, it is possible to ensure that battery dump energy opens flash lamp in the case of relatively low
Image with shooting clear.
Above-mentioned terminal can perform the method that any embodiment of the present invention is provided, and possesses the corresponding merit of execution method
Can module and beneficial effect.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.Those skilled in the art
It will be appreciated that the invention is not restricted to specific embodiment described here, can enter for a person skilled in the art
Row various obvious changes, readjust and substitute without departing from protection scope of the present invention.Therefore, though
So by above example, the present invention is described in further detail, but the present invention be not limited only to
Upper embodiment, without departing from the inventive concept, it is also possible to include other Equivalent embodiments more,
And the scope of the present invention is determined by scope of the appended claims.
Claims (19)
1. the control method that a flash lamp is opened, it is characterised in that including:
When the camera applications detected in terminal is opened, obtain the parameter information of battery in present terminal;
If the targeted parameter value in the parameter information of described battery is less than controlling the parameter preset that flash lamp is opened
Threshold value, revises described parameter preset threshold value to open described flash lamp.
Method the most according to claim 1, it is characterised in that if the parameter of described battery
Targeted parameter value in information, less than controlling the parameter preset threshold value that flash lamp is opened, revises described parameter preset
Threshold value to open described flash lamp, including:
If described targeted parameter value is less than described parameter preset threshold value, show control flash of light on a terminal screen
The shortcut menu that lamp is opened;
The instruction opening flash lamp inputted on described shortcut menu according to user, revises described parameter preset
Threshold value is to open described flash lamp.
Method the most according to claim 2, it is characterised in that on described shortcut menu, display is current
The parameter information of battery in terminal.
Method the most according to claim 2, it is characterised in that described amendment described parameter preset threshold
Value to open described flash lamp, including:
User based on parameter preset coefficient and acquisition inputs unlatching flash lamp instruction on described shortcut menu
Number of times revise described parameter preset threshold value.
Method the most according to claim 4, it is characterised in that described based on parameter preset coefficient with
And the user obtained inputs the number of times described parameter preset of amendment opening flash lamp instruction on described shortcut menu
Threshold value, including:
Described parameter preset threshold value is revised by formula below:
PX=P0-aX
Wherein, PXFor amended parameter preset threshold value, P0For initial parameter preset threshold value, X is for obtaining
User input on described shortcut menu open flash lamp instruction number of times, a is parameter preset coefficient.
Method the most according to claim 1, it is characterised in that also include:
If described targeted parameter value is less than described parameter preset threshold value, reduce the arteries and veins inputing to described flash lamp
Rush the maximum duty value of signal to reduce electric current during described flash lamp operation, wherein, input to flash lamp
The duty value of pulse signal for controlling to input to the size of current of flash lamp.
Method the most according to claim 1, it is characterised in that also include:
If described targeted parameter value is less than preset limit value, disable described flash lamp.
Method the most according to claim 1, it is characterised in that if the parameter at described battery is believed
Targeted parameter value in breath, less than controlling the parameter preset threshold value that flash lamp is opened, revises described parameter preset threshold
After value, also include:
After described terminal supplements electricity, if described targeted parameter value is more than initial parameter preset threshold value,
Amended parameter preset threshold value is reverted to initial value.
9. according to the method described in any one of claim 1-8, it is characterised in that described parameter information bag
Include the information of voltage of battery and the dump energy information of battery;
Described targeted parameter value is magnitude of voltage, and described parameter preset threshold value is default voltage threshold;Or, institute
Stating targeted parameter value is residual electric quantity, and described parameter preset threshold value is default dump energy threshold value.
10. the control device that a flash lamp is opened, it is characterised in that including:
Battery parameter data obtaining module, for when the camera applications detected in terminal is opened, obtaining and work as
The parameter information of battery in front terminal;
Parameter preset threshold modification module, if the targeted parameter value in the parameter information of described battery is little
In controlling the parameter preset threshold value that flash lamp is opened, revise described parameter preset threshold value to open described flash of light
Lamp.
11. devices according to claim 10, it is characterised in that described parameter preset threshold modifying
Module, specifically for:
If described targeted parameter value is less than described parameter preset threshold value, show control flash of light on a terminal screen
The shortcut menu that lamp is opened;
The instruction opening flash lamp inputted on described shortcut menu according to user, revises described parameter preset
Threshold value is to open described flash lamp.
12. devices according to claim 11, it is characterised in that on described shortcut menu, display is worked as
The parameter information of battery in front terminal.
13. devices according to claim 11, it is characterised in that the described parameter preset of described amendment
Threshold value to open described flash lamp, including:
User based on parameter preset coefficient and acquisition inputs unlatching flash lamp instruction on described shortcut menu
Number of times revise described parameter preset threshold value.
14. devices according to claim 13, it is characterised in that described based on parameter preset coefficient
And the user obtained inputs the number of times described default ginseng of amendment opening flash lamp instruction on described shortcut menu
Number threshold value, including:
Described parameter preset threshold value is revised by formula below:
PX=P0-aX
Wherein, PXFor amended parameter preset threshold value, P0For initial parameter preset threshold value, X is for obtaining
User input on described shortcut menu open flash lamp instruction number of times, a is parameter preset coefficient.
15. devices according to claim 10, it is characterised in that also include: maximum duty value fall
Low module, if for described targeted parameter value less than described parameter preset threshold value, reduces and inputs to described sudden strain of a muscle
The maximum duty value of the pulse signal of light modulation is to reduce electric current during described flash lamp operation, wherein, and input
To the duty value of the pulse signal of flash lamp for controlling to input to the size of current of flash lamp.
16. devices according to claim 10, it is characterised in that also include: flash lamp disabling mould
Block, if for described targeted parameter value less than preset limit value, disabling described flash lamp.
17. devices according to claim 10, it is characterised in that also include: parameter preset threshold value
Recover module, if opened less than controlling flash lamp for the targeted parameter value in the parameter information of described battery
The parameter preset threshold value opened, after revising described parameter preset threshold value,
After described terminal supplements electricity, if described targeted parameter value is more than initial parameter preset threshold value,
Amended parameter preset threshold value is reverted to initial value.
18. according to the device described in any one of claim 10-17, it is characterised in that described parameter information
Information of voltage and the dump energy information of battery including battery;
Described targeted parameter value is magnitude of voltage, and described parameter preset threshold value is default voltage threshold;Or, institute
Stating targeted parameter value is residual electric quantity, and described parameter preset threshold value is default dump energy threshold value.
19. 1 kinds of terminals, it is characterised in that described terminal is integrated with as described in claim 10-18 is arbitrary
Flash lamp open control device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610521915.6A CN105933965B (en) | 2016-07-05 | 2016-07-05 | A kind of control method, device and terminal that flash lamp is opened |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610521915.6A CN105933965B (en) | 2016-07-05 | 2016-07-05 | A kind of control method, device and terminal that flash lamp is opened |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105933965A true CN105933965A (en) | 2016-09-07 |
CN105933965B CN105933965B (en) | 2019-04-26 |
Family
ID=56828542
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610521915.6A Active CN105933965B (en) | 2016-07-05 | 2016-07-05 | A kind of control method, device and terminal that flash lamp is opened |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105933965B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110312082A (en) * | 2019-07-11 | 2019-10-08 | 深圳传音控股股份有限公司 | Camera arrangement and its flash lamp control method, mobile terminal and storage medium |
CN112689098A (en) * | 2019-10-01 | 2021-04-20 | 佳能株式会社 | Flash control device and method, image pickup device, flash, and storage medium |
CN114816959A (en) * | 2022-05-07 | 2022-07-29 | 深圳宇凡微电子有限公司 | Method and device for displaying battery power of LCD screen |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050063119A1 (en) * | 2002-12-30 | 2005-03-24 | Eastman Kodak Company | Camera and method for operating a camera based upon available power in a supply |
CN101383906A (en) * | 2007-09-06 | 2009-03-11 | 三洋电机株式会社 | Digital camera |
CN104684053A (en) * | 2015-01-28 | 2015-06-03 | 重庆蓝岸通讯技术有限公司 | Method and system for prolonging use duration of batteries of electronic equipment in low-power state |
CN104822018A (en) * | 2015-03-26 | 2015-08-05 | 深圳市金立通信设备有限公司 | Flash lamp control method of photographing device |
-
2016
- 2016-07-05 CN CN201610521915.6A patent/CN105933965B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050063119A1 (en) * | 2002-12-30 | 2005-03-24 | Eastman Kodak Company | Camera and method for operating a camera based upon available power in a supply |
CN101383906A (en) * | 2007-09-06 | 2009-03-11 | 三洋电机株式会社 | Digital camera |
CN104684053A (en) * | 2015-01-28 | 2015-06-03 | 重庆蓝岸通讯技术有限公司 | Method and system for prolonging use duration of batteries of electronic equipment in low-power state |
CN104822018A (en) * | 2015-03-26 | 2015-08-05 | 深圳市金立通信设备有限公司 | Flash lamp control method of photographing device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110312082A (en) * | 2019-07-11 | 2019-10-08 | 深圳传音控股股份有限公司 | Camera arrangement and its flash lamp control method, mobile terminal and storage medium |
CN112689098A (en) * | 2019-10-01 | 2021-04-20 | 佳能株式会社 | Flash control device and method, image pickup device, flash, and storage medium |
US11611709B2 (en) | 2019-10-01 | 2023-03-21 | Canon Kabushiki Kaisha | Flash control apparatus, method, image capture apparatus, flash, and storage medium |
CN112689098B (en) * | 2019-10-01 | 2023-04-07 | 佳能株式会社 | Flash control device and method, image pickup device, flash, and storage medium |
CN114816959A (en) * | 2022-05-07 | 2022-07-29 | 深圳宇凡微电子有限公司 | Method and device for displaying battery power of LCD screen |
CN114816959B (en) * | 2022-05-07 | 2023-01-13 | 深圳宇凡微电子有限公司 | Method and device for displaying battery power of LCD screen |
Also Published As
Publication number | Publication date |
---|---|
CN105933965B (en) | 2019-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3121926A1 (en) | Charging method and apparatus | |
CN103037103B (en) | Method of starting camera by mobile device | |
CN105933519B (en) | A kind of screen luminance adjustment method, device and mobile terminal | |
CN105788536B (en) | Back light brightness regulating method, device and terminal device | |
CN105208360A (en) | Image preview method and device of intelligent terminal and terminal | |
CN102946459A (en) | Rapid regulation method for screen backlight brightness and mobile terminal | |
CN104754219B (en) | A kind of terminal | |
CN104656899A (en) | Terminal operation and control method | |
CN111857484B (en) | Screen brightness adjusting method and device, electronic equipment and readable storage medium | |
CN105933965A (en) | Method and device for controlling to open flashlight and terminal | |
CN114063675B (en) | Temperature control method and device | |
US20240196082A1 (en) | Image Processing Method and Apparatus, and Electronic Device | |
CN113138560B (en) | Terminal control method, device, equipment and readable storage medium | |
CN112887706B (en) | Power consumption determination method and device, storage medium and electronic equipment | |
CN105511585A (en) | Method and device for adjusting terminal standby duration and terminal | |
CN105204603A (en) | Mobile terminal picture taking method and device and mobile picture taking terminal | |
CN108279766A (en) | Electric power management method and electronic device | |
CN106921784A (en) | A kind of system theme Night switching method and apparatus of mobile terminal | |
CN104102326A (en) | Power-saving control method and system of mobile terminal | |
CN103501384A (en) | Method for adjusting electric current of flash lamp of mobile phone for taking picture and mobile phone | |
US20240284035A1 (en) | Photographing Method, Electronic Device, and Non-Transitory Readable Storage Medium | |
US10120636B2 (en) | Display control device and display control method for displaying content on multiple display screens | |
CN112312021B (en) | Shooting parameter adjusting method and device | |
CN114025092A (en) | Shooting control display method and device, electronic equipment and medium | |
CN104679245A (en) | 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 | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |