CN107396510A - A kind of filming control method and terminal - Google Patents
A kind of filming control method and terminal Download PDFInfo
- Publication number
- CN107396510A CN107396510A CN201710440646.5A CN201710440646A CN107396510A CN 107396510 A CN107396510 A CN 107396510A CN 201710440646 A CN201710440646 A CN 201710440646A CN 107396510 A CN107396510 A CN 107396510A
- Authority
- CN
- China
- Prior art keywords
- voltage
- battery
- flash lamp
- terminal
- current
- 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.)
- Withdrawn
Links
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
Abstract
The embodiment of the invention discloses a kind of filming control method and terminal, wherein method includes:If the terminal needs to use flash lamp to be shot, the drop-off voltage of the battery of terminal when being shot using flash lamp is calculated, the drop-off voltage of the battery is calculated according to the current voltage of the battery;If the drop-off voltage of the battery is less than default safe voltage thresholds, the electric current of the flash lamp of the terminal is adjusted according to the current voltage of the battery;The flash lamp is driven to be flashed in shooting according to the electric current after adjustment.The embodiment of the present invention can prevent that cell voltage is pulled low power down and shut down when low battery, improve shooting efficiency by adjusting the electric current of the flash lamp of the terminal and flashing the time.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of filming control method and terminal.
Background technology
With the development of computing technique, as mobile phone it is this can only terminal function it is more and more, the camera function of mobile phone
Constantly developing.Flash lamp is usually used when mobile phone photograph at present, existing smart mobile phone is all integrated with flash lamp substantially
Driving and flash lamp functional module.When camera needs to flash, flash lamp driving can export a driving current, flash lamp
After receiving electric current, can flash flash lamp, complete flash lamp and take pictures.
Larger due to starting immediate current however, when mobile phone is in low battery, cell voltage falls too low, leads
Cause mobile phone power down shutdown or restart, many mobile phones are all forbidden flashing, and therefore, how to ensure shooting during low battery, carry
High shooting efficiency, turn into the important directions of research.
The content of the invention
The embodiment of the present invention provides a kind of filming control method, and flash lamp control shooting can be opened under low battery voltages,
Improve shooting efficiency.
In a first aspect, the embodiments of the invention provide a kind of filming control method, this method includes:
If the terminal needs to use flash lamp to be shot, the electricity of terminal when being shot using flash lamp is calculated
The drop-off voltage in pond, the drop-off voltage of the battery are calculated according to the current voltage of the battery;
If the drop-off voltage of the battery is less than default safe voltage thresholds, institute is adjusted according to the current voltage of the battery
State the electric current of the flash lamp of terminal;
The flash lamp is driven to be flashed in shooting according to the electric current after adjustment.
Second aspect, the embodiments of the invention provide a kind of terminal, the terminal include including at least battery, system power supply,
Flash lamp and flash lamp driving, the battery are used to power for the system power supply, and the flash lamp drives described for driving
Flash lamp is flashed in shooting;Wherein, the flash lamp driving includes detecting circuit, booster circuit and adjustment circuit;
The detection circuit, for detecting the current voltage of battery, when terminal needs to use flash lamp to be shot, root
The drop-off voltage of the battery of terminal when being shot using flash lamp is calculated according to the current voltage of battery, and in the battery
Drop-off voltage when being less than default safe voltage thresholds, send adjustment order to the adjustment circuit;
The adjustment circuit, for adjusting the flash of light of the terminal according to the current voltage of the battery according to adjustment order
The electric current of lamp, and send operational order to the booster circuit;
The booster circuit, for performing adjustment behaviour to the electric current of the flash lamp of the terminal according to operational order control
Make, and drive the flash lamp to be flashed in shooting according to the electric current after adjustment.
The third aspect, the embodiment of the present invention additionally provide another terminal, including:Memory, processor and it is stored in
In the memory and the computer program that can run on the processor, described in the computing device during computer program
Realize such as above-mentioned first aspect methods described.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer-readable recording medium, the computer-readable storage
Media storage has computer program, and the method as described in above-mentioned first aspect is realized when the computer program is executed by processor.
The drop-off voltage of the battery of terminal when the embodiment of the present invention is shot by calculating using flash lamp, according to the electricity
The current voltage in pond adjusts the drop-off voltage of the battery, until when the drop-off voltage of the battery is less than default safe voltage thresholds,
The electric current of the flash lamp of the terminal is adjusted according to the current voltage of the battery, and drives the flash lamp to exist according to the electric current after adjustment
Flashed during shooting, shot so as to which terminal can open flash lamp under battery low-voltage, improve shooting efficiency.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, it is required in being described below to embodiment to use
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area
For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow diagram for filming control method that first embodiment of the invention provides;
Fig. 2 is a kind of schematic flow diagram for filming control method that second embodiment of the invention provides;
Fig. 3 is a kind of schematic block diagram for terminal that third embodiment of the invention provides;
Fig. 4 is a kind of terminal schematic block diagram that fourth embodiment of the invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" instruction
Described feature, entirety, step, operation, the presence of element and/or component, but it is not precluded from one or more of the other feature, whole
Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment
And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and appended claims is
Refer to any combinations of one or more of the associated item listed and be possible to combine, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or
If " detect【Described condition or event】" can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detect【Described condition or event】" or " in response to detecting【Described condition or event】”.
In the specific implementation, the terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface
The mobile phone, laptop computer or tablet PC of (for example, touch-screen display and/or touch pad) etc it is other just
Portable device.It is to be further understood that in certain embodiments, the equipment is not portable communication device, but with tactile
Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch pad).
In discussion below, the terminal including display and touch sensitive surface is described.It is, however, to be understood that
It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one or more of following:Drawing application program, demonstration application journey
Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application
Program, telephony application, videoconference application, email application, instant messaging applications, exercise
Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application
Program, digital music player application and/or video frequency player application program.
The various application programs that can be performed in terminal can use at least one public of such as touch sensitive surface
Physical user-interface device.It can adjust and/or change among applications and/or in corresponding application programs and touch sensitive table
The corresponding information shown in the one or more functions and terminal in face.So, the public physical structure of terminal is (for example, touch
Sensing surface) the various application programs with user interface directly perceived and transparent for a user can be supported.
Referring to Fig. 1, Fig. 1 be first embodiment of the invention provide a kind of filming control method schematic flow diagram, such as Fig. 1
Shown filming control method may include following steps:
S101:If terminal needs to use flash lamp to be shot, the electricity of terminal when being shot using flash lamp is calculated
The drop-off voltage in pond.
In the embodiment of the present invention, if terminal needs to use flash lamp to be shot, terminal can calculate to enter using flash lamp
The drop-off voltage of the battery of terminal during row shooting, wherein, the drop-off voltage of the battery can be according to the current voltage of the battery
It is calculated.
As a kind of optional embodiment, for terminal when needing to use flash lamp to be shot, terminal can obtain the end
The current voltage and electricity of end-cell, this is calculated according to the default driving current for walking line impedence and the flash lamp of the terminal
The moment estimated voltage of battery, and the voltage difference of the current voltage of the battery and the moment estimated voltage of the battery is defined as
The drop-off voltage of the battery.Specifically, for example, the current voltage that terminal can obtain the end cell is designated as V0, according to the end
The line impedence of walking at end is multiplied with the default driving current of the flash lamp, and the moment estimated voltage that the battery is calculated is designated as V2,
That is V2=walks line impedence * and presets driving current.The moment of the current voltage V0 of the battery and the battery can be estimated electricity by terminal
Pressure V2 voltage difference is defined as the drop-off voltage of the battery, as V0-V2.It can be seen that the embodiment can be obtained by terminal
The current voltage and moment estimated voltage in power taking pond, so as to which terminal can obtain according to the current voltage and moment estimated voltage
To the drop-off voltage of battery.
S102:, should according to the adjustment of the current voltage of the battery if the drop-off voltage of battery is less than default safe voltage thresholds
The electric current of the flash lamp of terminal.
In the embodiment of the present invention, terminal can be after the drop-off voltage of battery be calculated, if terminal detects the electricity
The drop-off voltage in pond is less than default safe voltage thresholds, then terminal can adjust the sudden strain of a muscle of the terminal according to the current voltage of the battery
The electric current of light lamp.Specifically, for example, terminal can be after the drop-off voltage of battery be calculated, the battery falls
Fall the size between voltage V0-V2 and default safe voltage thresholds V1, if terminal detects that the drop-off voltage of the battery is less than in advance
If safe voltage thresholds, i.e. V0-V2<V1, then terminal the flash lamp of the terminal can be adjusted according to the current voltage of the battery
Electric current.
As a kind of optional embodiment, terminal can detect the battery after the drop-off voltage of battery is calculated
Drop-off voltage whether be less than default safe voltage thresholds, if to detect that the drop-off voltage of the battery is more than or equal to default for terminal
Safe voltage thresholds, then terminal can adjust the current voltage of the battery, until the drop-off voltage of the battery is less than default safety
Voltage threshold.Specifically, for example, if terminal detects that the drop-off voltage V0-V2 of the battery is more than or equal to default safe voltage
Threshold value V1, then terminal can adjust the current voltage V0 of the battery, until the drop-off voltage of the battery is less than default safe voltage
Threshold value, i.e. V0-V2<V1.So as to which terminal can adjust the electricity of the flash lamp of the terminal according to the current voltage of the battery after adjustment
Stream.It can be seen that the embodiment can be by adjusting the current voltage of end cell so that the drop-off voltage of the battery is less than default
Safe voltage thresholds, so as to adjust the electric current of the flash lamp of the terminal, flashed when being taking photos by using flashlights and suitable current bar is provided
Part.
S103:The flash lamp is driven to be flashed in shooting according to the electric current after adjustment.
In the embodiment of the present invention, terminal can drive the flash lamp to be flashed in shooting according to the electric current after adjustment.
Wherein, described flash refers to flash using the flash lamp on camera device, and the flash of light that flash lamp is sent is beaten and clapped
In the main body taken the photograph.Specifically, for example, terminal can get adjustment after electric current, and according to after the adjustment electric current driving should
The flash lamp of terminal is flashed in shooting.
In the embodiment of the present invention, the battery of the terminal is current when terminal can be shot by calculating using flash lamp
Voltage and moment estimated voltage, the drop-off voltage of the battery is calculated, and by adjusting the current voltage of the battery, until this falls
Voltage can adjust the electricity of the flash lamp of the terminal to default safe voltage thresholds, terminal is less than according to the current voltage of the battery
Stream, and drive the flash lamp to be flashed in shooting according to the electric current after adjustment.Glistened at lower voltages so as to realize
Lamp is shot, and improves shooting efficiency.
Referring to Fig. 2, Fig. 2 be second embodiment of the invention provide a kind of filming control method schematic flow diagram, such as Fig. 2
Shown filming control method may include following steps:
S201:If terminal needs to use flash lamp to be shot, the current voltage and electricity of battery are obtained.
In the embodiment of the present invention, terminal when needing to use flash lamp to be shot, can obtain the current voltage of battery
And electricity.For example, if desired terminal is shot using flash lamp, terminal can obtain the current voltage V0 and electricity of battery.
S202:The moment of the battery is calculated according to the default driving current for walking line impedence and the flash lamp of the terminal
Estimated voltage.
In the embodiment of the present invention, terminal can be according to the default driving current meter for walking line impedence and the flash lamp of the terminal
Calculation obtains the moment estimated voltage of the battery.Specifically, for example, terminal can walk line impedence and the flash lamp according to the terminal
Default driving current estimation battery moment estimated voltage V2, wherein V2=walk line impedence * preset driving current.
S203:The voltage difference of the current voltage of the battery and the moment estimated voltage of the battery is defined as the battery
Drop-off voltage.
In the embodiment of the present invention, terminal can be by the current voltage of the battery and the voltage of the moment estimated voltage of the battery
Difference is defined as the drop-off voltage of the battery.Specifically, for example, terminal can be by the current voltage V0 of the battery and the battery
Moment estimated voltage V2 voltage difference is defined as the drop-off voltage of the battery, i.e. the drop-off voltage of the battery is V0-V2.
S204:Compare the size between the drop-off voltage of the battery and default safe voltage thresholds.
In the embodiment of the present invention, terminal can compare the drop-off voltage of the battery of the terminal and default safe voltage thresholds it
Between size.For example, terminal it is determined that after the drop-off voltage V0-V2 of the battery, can compare falling for the battery of the terminal
Size between voltage V0-V2 and default safe voltage thresholds V1.
S205:If the drop-off voltage of the battery is less than default safe voltage thresholds, step S207 is performed.
, can if terminal detects that the drop-off voltage of the battery is less than default safe voltage thresholds in the embodiment of the present invention
To adjust the electric current of the flash lamp of the terminal according to the current voltage of the battery.Specifically, for example, if terminal detects the battery
Drop-off voltage V0-V2 to be less than default safe voltage thresholds V1 be V0-V2<V1, then terminal can be according to the current electricity of the battery
Pressure V0 adjusts the electric current of the flash lamp of the terminal.
S206:If the drop-off voltage of the battery is more than or equal to default safe voltage thresholds, the current of the battery is adjusted
Voltage, step S201 is performed, until the drop-off voltage of the battery is less than default safe voltage thresholds.
In the embodiment of the present invention, if the drop-off voltage of the battery of the terminal is more than or equal to default safe voltage thresholds,
The current voltage of the battery is adjusted, until when the drop-off voltage of the battery is less than default safe voltage thresholds, according to the battery
Current voltage adjusts the electric current of the flash lamp of the terminal.If specifically, for example, the drop-off voltage V0-V2 of the battery of the terminal is big
In or equal to default safe voltage thresholds V1, then terminal can adjust the current voltage V0 of the battery, until the battery falls
When voltage V0-V2 is less than default safe voltage thresholds V1, according to V0-V2<Current voltage V0 during V1 after the adjustment of the battery, adjust
The electric current of the flash lamp of the whole terminal.
S207:The flash lamp for determining the terminal is opening.
In the embodiment of the present invention, terminal can determine that the flash lamp of the terminal is opening.For example, terminal can be true
The drop-off voltage V0-V2 of the fixed battery is less than default safe voltage thresholds V1, i.e. V0-V2<After V1, the terminal can be detected
Whether flash lamp is opened, and the flash lamp for determining the terminal is opening.
S208:The actual driving current of the flash lamp is determined according to the current voltage of the battery.
In the embodiment of the present invention, terminal can determine the actual driving electricity of the flash lamp according to the current voltage of the battery
Stream.Specifically, terminal can by it is default successively decrease successively in the way of the electric current of the flash lamp reduced from default driving current
To actual driving current.For example, terminal is if it is determined that the drop-off voltage V0-V2 of the battery is less than default safe voltage thresholds V1, i.e.,
V0-V2<V1, then whether terminal can detect the flash lamp of the terminal and open, if the terminal determine that the flash lamp of the terminal is opens
Open state, then terminal can according to the current voltage V0 of the battery, by it is default successively decrease successively in the way of by the flash lamp
Electric current is decreased to actual driving current from default driving current, so that it is determined that the actual driving current of the flash lamp of the terminal, its
In, when the actual driving current and the drop-off voltage V0-V2 of the battery are less than default safe voltage thresholds V1, i.e. V0-V2<During V1
V0 Corresponding matchings.It can be seen that the embodiment can determine the actual driving of the flash lamp by adjusting the current voltage of battery
Electric current, flashed the electric current of moment so as to reduce the flash lamp.
S209:The flash lamp is driven to be flashed in shooting according to the electric current after adjustment.
In the embodiment of the present invention, terminal can drive the flash lamp to be flashed in shooting according to the electric current after adjustment.
Specifically, for example, terminal can by it is default successively decrease successively in the way of get the actual driving current of the flash lamp after,
The terminal can drive the flash lamp to be flashed in shooting according to the actual driving current of this after adjustment.It can be seen that the implementation
Mode can drive the flash lamp of the terminal to flash according to the actual driving current after adjustment, to ensure that the flash lamp of the terminal can
To be flashed in shooting.
S210:Detect the virtual voltage of the battery when flash lamp flashes.
In the embodiment of the present invention, terminal can detect the virtual voltage of the battery when flash lamp flashes.For example, the terminal
Flash lamp shooting when can be flashed, terminal can detect the actual voltage value of the battery when flash lamp flashes.
S211:If the virtual voltage of the battery is less than or equal to default shutdown voltage threshold value, being shortened according to preset rules should
Flash lamp flashes the time.
In the embodiment of the present invention, if the terminal detects that the virtual voltage of the battery when flash lamp flashes is less than or equal to
Default shutdown voltage threshold value, terminal can shorten flashing the time for the flash lamp according to preset rules, wherein, the flash lamp is beaten
It is the terminal when flash shooting to dodge the time, it is ensured that the terminal at least shoot a pictures needed for flash lamp flash when
Between.If specifically, for example, the terminal detects that the virtual voltage of the battery when flash lamp flashes is less than or equal to default shutdown
Voltage threshold, terminal can be shortened according to preset rules the terminal at least shoot a pictures needed for time for flashing of flash lamp.
It can be seen that the embodiment can dodge the virtual voltage turned off the light when flashing by detecting, when the flashing of flash lamp of the terminal is adjusted
Between, with ensure to flash immediate current start when cell voltage it is relatively low when will not the duration it is long, reduce the terminal
The risk of power down shutdown.
In the embodiment of the present invention, terminal can obtain the current voltage of battery, and be calculated moment of the battery and estimate
Voltage is counted, and the drop-off voltage of the battery, the end are calculated according to the current voltage of the battery and the moment estimated voltage of the battery
End can be less than default safe voltage thresholds by adjusting the drop-off voltage of the battery, when flash lamp is opening, according to
The electric current of the current voltage adjustment flash lamp of the battery is actual driving current, drives the flash lamp to be flashed in shooting,
And virtual voltage when the flash lamp flashes is adjusted by shortening the time of flashing, cell voltage quilt when so as to prevent low battery
Drag down power down and shut down, improve shooting efficiency.
Referring to Fig. 3, Fig. 3 is a kind of schematic block diagram for terminal that third embodiment of the invention provides.Terminal as shown in Figure 3
Including at least battery 31, system power supply 32, flash lamp 33 and flash lamp driving 34, the battery 31 is used to supply for the system power supply 32
Electricity, flash lamp driving 34 are used to drive the flash lamp 33 to be flashed in shooting;Wherein, flash lamp driving 34 includes inspection
Slowdown monitoring circuit 341, booster circuit 342 and adjustment circuit 343.Wherein,
The detection circuit 341, for detecting the current voltage of battery, when terminal needs to use flash lamp to be shot,
The drop-off voltage of the battery of terminal when being shot using flash lamp is calculated according to the current voltage of battery, and in the battery
Drop-off voltage when being less than default safe voltage thresholds, send adjustment order to the adjustment circuit 343.
The adjustment circuit 343, for adjusting the flash lamp of the terminal according to the current voltage of the battery according to adjustment order
Electric current, and to the booster circuit 342 send operational order.
The booster circuit 342, for performing adjustment operation to the electric current of the flash lamp of the terminal according to operational order control,
And the flash lamp is driven to be flashed in shooting according to the electric current after adjustment.
Optionally, the battery 31 is connected with the detection circuit 341 and system power supply 32, the detection circuit 341 and the adjustment
Circuit 343 is connected.
Optionally, the adjustment circuit 343 is connected with the booster circuit 342, the booster circuit 342 and the flash lamp 33 and is
Power supply 32 of uniting is connected.
Optionally, the adjustment circuit 343 includes matrix current adjustment circuit;
The matrix current adjustment circuit, the electric current for obtaining the detection circuit 341 transmission adjusts order, and sends the electric current
The booster circuit 342 is given in adjustment order.
Optionally, the adjustment circuit 343 includes time adjusting circuit;
The time adjusting circuit, the adjustment order of the time of flashing for obtaining the detection circuit 341 transmission, and send
The booster circuit 342 is given in the adjustment order of the time of flashing.
In the embodiment of the present invention, terminal can detect the current voltage of battery by detecting circuit 341, when the terminal needs
When being shot using flash lamp, terminal when being shot using flash lamp can be calculated according to the current voltage of battery
The drop-off voltage of battery, and when the drop-off voltage of the battery is less than default safe voltage thresholds, sent to the adjustment circuit 343
Adjustment order, the adjustment circuit 343 adjust the flash lamp of the terminal according to the current voltage of the battery according to the adjustment order
Electric current, and operational order is sent to the booster circuit 342, the booster circuit 342 is controlled to the terminal according to the operational order
The electric current of flash lamp performs adjustment operation, and drives the flash lamp to be flashed in shooting according to the electric current after adjustment, so as to
Prevent that cell voltage is pulled low power down and shut down when low battery, improve shooting efficiency.
Referring to Fig. 4, Fig. 4 is a kind of terminal schematic block diagram that fourth embodiment of the invention provides.Embodiment as shown in Figure 4
In terminal can include:One or more processors 401;One or more input equipments 402, one or more output equipments
403 and memory 404.Above-mentioned processor 401, input equipment 402, output equipment 403 and memory 404 are connected by bus 405
Connect.Memory 402 is used for store instruction, and processor 401 is used for the instruction for performing the storage of memory 402.Wherein, processor 401
For:
If the terminal needs to use flash lamp to be shot, the battery of terminal when being shot using flash lamp is calculated
Drop-off voltage, the drop-off voltage of the battery are calculated according to the current voltage of the battery;
If the drop-off voltage of the battery is less than default safe voltage thresholds, the terminal is adjusted according to the current voltage of the battery
Flash lamp electric current;
The flash lamp is driven to be flashed in shooting according to the electric current after adjustment.
Optionally, processor 401 needs to use flash lamp to be shot in the terminal, calculates and is shot using flash lamp
When the terminal battery drop-off voltage when, be specifically used for:
If the terminal needs to use flash lamp to be shot, the current voltage and electricity of battery are obtained;
The moment that the battery is calculated according to the default driving current for walking line impedence and the flash lamp of the terminal is estimated
Voltage;
The voltage difference of the current voltage of the battery and the moment estimated voltage of the battery is defined as falling for the battery
Voltage.
Optionally, processor 401 calculate shot using flash lamp when the terminal battery drop-off voltage after,
It is additionally operable to:
Compare the size between the drop-off voltage of the battery and default safe voltage thresholds;
If the drop-off voltage of the battery is less than default safe voltage thresholds, the end is adjusted according to the current voltage of the battery
The electric current of the flash lamp at end;
If the drop-off voltage of the battery is more than or equal to default safe voltage thresholds, the current voltage of the battery is adjusted,
Until the drop-off voltage of the battery is less than default safe voltage thresholds.
Optionally, processor 401 is before the electric current of flash lamp of the terminal is adjusted according to the current voltage of the battery, also
For:
The flash lamp for determining the terminal is opening;
The actual driving current of the flash lamp is determined according to the current voltage of the battery;
By it is default successively decrease successively in the way of the electric current of the flash lamp is decreased to actual driving from default driving current
Electric current.
Optionally, after processor 401 is flashed when the electric current after according to adjustment drives the flash lamp in shooting, also
For:
Detect the virtual voltage of the battery when flash lamp flashes;
If the virtual voltage of the battery is less than or equal to default shutdown voltage threshold value, shorten the flash lamp according to preset rules
Flash the time.
It should be appreciated that in embodiments of the present invention, alleged processor 401 can be CPU (Central
Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
It can also be any conventional processor etc. to manage device.
Input equipment 402 can include Trackpad, fingerprint adopt sensor (finger print information that is used to gathering user and fingerprint
Directional information), microphone etc., output equipment 403 can include display (LCD etc.), loudspeaker etc..
The memory 404 can include read-only storage and random access memory, and to processor 401 provide instruction and
Data.The a part of of memory 404 can also include nonvolatile RAM.For example, memory 404 can also be deposited
Store up the information of device type.
In the specific implementation, processor 401, input equipment 402, the output equipment 403 described in the embodiment of the present invention can
The implementation described in the first embodiment and second embodiment of filming control method provided in an embodiment of the present invention is performed,
Also the implementation of the terminal described by the embodiment of the present invention is can perform, will not be repeated here.
A kind of computer-readable recording medium, the computer-readable storage medium are additionally provided in an embodiment of the present invention
Matter is stored with computer program, and the computer program is realized when being executed by processor in embodiment described in Fig. 1 or Fig. 2 of the present invention
Described implementation, also can perform terminal described by Fig. 3 of the present invention implementation or Fig. 4 described in described by embodiment
Terminal implementation, will not be repeated here.
The computer-readable recording medium can be the internal storage unit of the terminal described in foregoing any embodiment, example
Such as the hard disk or internal memory of terminal.The computer-readable recording medium can also be the External memory equipment of the terminal, such as
The plug-in type hard disk being equipped with the terminal, intelligent memory card (Smart Media Card, SMC), secure digital (Secure
Digital, SD) card, flash card (Flash Card) etc..Further, the computer-readable recording medium can also be wrapped both
Including the internal storage unit of the terminal also includes External memory equipment.The computer-readable recording medium is described for storing
Other programs and data needed for computer program and the terminal.The computer-readable recording medium can be also used for temporarily
When store the data that has exported or will export.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, it can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This
A little functions are performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specially
Industry technical staff can realize described function using distinct methods to each specific application, but this realization is not
It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience of description and succinctly, the end of foregoing description
End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed terminal and method, it can be passed through
Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only
Only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can be tied
Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed phase
Coupling or direct-coupling or communication connection between mutually can be INDIRECT COUPLING or the communication by some interfaces, device or unit
Connection or electricity, the connection of mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize scheme of the embodiment of the present invention according to the actual needs
Purpose.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated
Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to be contributed in other words to prior art, or all or part of the technical scheme can be in the form of software product
Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer
Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the present invention
Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced
Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection domain be defined.
Claims (10)
- A kind of 1. filming control method, applied in terminal, it is characterised in that including:If the terminal needs to use flash lamp to be shot, the battery of terminal when being shot using flash lamp is calculated Drop-off voltage, the drop-off voltage of the battery are calculated according to the current voltage of the battery;If the drop-off voltage of the battery is less than default safe voltage thresholds, the end is adjusted according to the current voltage of the battery The electric current of the flash lamp at end;The flash lamp is driven to be flashed in shooting according to the electric current after adjustment.
- 2. according to the method for claim 1, it is characterised in that if the terminal needs to use flash lamp to be clapped Take the photograph, calculate the drop-off voltage of the battery of terminal when being shot using flash lamp, including:If the terminal needs to use flash lamp to be shot, the current voltage and electricity of battery are obtained;The moment that the battery is calculated according to the default driving current for walking line impedence and the flash lamp of the terminal is estimated Count voltage;The voltage difference of the current voltage of the battery and the moment estimated voltage of the battery is defined as falling for the battery Fall voltage.
- 3. according to the method for claim 2, it is characterised in that if the terminal needs to use flash lamp to be clapped Take the photograph, calculate when being shot using flash lamp after the drop-off voltage of the battery of the terminal, in addition to:Compare the size between the drop-off voltage of the battery and default safe voltage thresholds;If the drop-off voltage of the battery is less than default safe voltage thresholds, according to the adjustment of the current voltage of the battery The electric current of the flash lamp of terminal;If the drop-off voltage of the battery is more than or equal to default safe voltage thresholds, the current voltage of the battery is adjusted, Until the drop-off voltage of the battery is less than default safe voltage thresholds.
- 4. method as claimed in claim 2 or claim 3, it is characterised in that described according to the adjustment of the current voltage of the battery Before the electric current of the flash lamp of terminal, in addition to:The flash lamp for determining the terminal is opening;The electric current of the flash lamp that the terminal is adjusted according to the current voltage of the battery, including:The actual driving current of the flash lamp is determined according to the current voltage of the battery;By it is default successively decrease successively in the way of the electric current of the flash lamp is decreased to actual driving electricity from default driving current Stream.
- 5. according to the method for claim 1, it is characterised in that the electric current according to after adjustment drives the flash lamp to exist After being flashed during shooting, in addition to:Detect the virtual voltage of the battery when flash lamp flashes;If the virtual voltage of the battery is less than or equal to default shutdown voltage threshold value, shorten the flash lamp according to preset rules Flash the time.
- 6. a kind of terminal, it is characterised in that the terminal comprises at least battery, system power supply, flash lamp and flash lamp driving, institute State battery and be used to be system power supply power supply, the flash lamp is driven for driving the flash lamp to be beaten in shooting Dodge;Wherein, the flash lamp driving includes detecting circuit, booster circuit and adjustment circuit;The detection circuit, for detecting the current voltage of battery, when terminal needs to use flash lamp to be shot, according to electricity The current voltage in pond calculates the drop-off voltage of the battery of terminal when being shot using flash lamp, and falling in the battery When falling voltage less than default safe voltage thresholds, adjustment order is sent to the adjustment circuit;The adjustment circuit, for adjusting according to adjustment order the flash lamp of the terminal according to the current voltage of the battery Electric current, and send operational order to the booster circuit;The booster circuit, for performing adjustment operation to the electric current of the flash lamp of the terminal according to operational order control, and The flash lamp is driven to be flashed in shooting according to the electric current after adjustment.
- 7. the terminal as described in any one of claim 6, it is characterised in that the adjustment circuit includes matrix current adjustment circuit;Institute Matrix current adjustment circuit is stated, is additionally operable to obtain the electric current adjustment order that the detection circuit is sent;Send the electric current adjustment order To the booster circuit.
- 8. the terminal as described in any one of claim 6, it is characterised in that the adjustment circuit includes time adjusting circuit;Institute Time adjusting circuit is stated, is additionally operable to obtain the adjustment order for the time of flashing that the detection circuit is sent;When being flashed described in transmission Between adjustment order to the booster circuit.
- 9. a kind of terminal, it is characterised in that including memory, processor and be stored in the memory and can be at the place The computer program run on reason device, is realized such as any one of claim 1 to 5 described in the computing device during computer program Methods described.
- 10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, and its feature exists In realization such as any one of claim 1 to 5 methods described when the computer program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710440646.5A CN107396510A (en) | 2017-06-12 | 2017-06-12 | A kind of filming control method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710440646.5A CN107396510A (en) | 2017-06-12 | 2017-06-12 | A kind of filming control method and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107396510A true CN107396510A (en) | 2017-11-24 |
Family
ID=60331791
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710440646.5A Withdrawn CN107396510A (en) | 2017-06-12 | 2017-06-12 | A kind of filming control method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107396510A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111182231A (en) * | 2019-12-31 | 2020-05-19 | 联想(北京)有限公司 | Flash lamp control method and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103675420A (en) * | 2012-09-20 | 2014-03-26 | 联想(北京)有限公司 | Alarm method and electronic device |
CN105955442A (en) * | 2016-04-21 | 2016-09-21 | 青岛海信移动通信技术股份有限公司 | Method and device for processing low battery of user terminal |
CN106332410A (en) * | 2016-08-16 | 2017-01-11 | 深圳天珑无线科技有限公司 | Flash lamp driving circuit |
-
2017
- 2017-06-12 CN CN201710440646.5A patent/CN107396510A/en not_active Withdrawn
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103675420A (en) * | 2012-09-20 | 2014-03-26 | 联想(北京)有限公司 | Alarm method and electronic device |
CN105955442A (en) * | 2016-04-21 | 2016-09-21 | 青岛海信移动通信技术股份有限公司 | Method and device for processing low battery of user terminal |
CN106332410A (en) * | 2016-08-16 | 2017-01-11 | 深圳天珑无线科技有限公司 | Flash lamp driving circuit |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111182231A (en) * | 2019-12-31 | 2020-05-19 | 联想(北京)有限公司 | Flash lamp control method and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109149682B (en) | Method for controlling a plurality of batteries and electronic device thereof | |
US10211661B2 (en) | Charging mode control method and device | |
EP3311245B1 (en) | Techniques to control computational resources for an electronic device | |
US11086387B2 (en) | Management of near field communications using a low power express mode of an electronic device | |
CN106797127A (en) | Electronic installation, the method that charging is controlled by electronic installation and the method powered by electric supply installation | |
CN107528922A (en) | A kind of information push method, terminal and computer-readable recording medium | |
CN105630129A (en) | Power control method and apparatus for reducing power consumption | |
CN107066326A (en) | The method and terminal of a kind of scheduler task | |
CN104866065A (en) | Low Power Driving Method And Electronic Device Performing Thereof | |
CN107290674A (en) | A kind of calibration method and terminal for showing charge value | |
CN106933315A (en) | A kind of method and terminal of terminal temperature regulation | |
CN105656113A (en) | Method for charging control and electronic device thereof | |
KR20180038856A (en) | Method for charging battery and electronic apparatus | |
KR20150107448A (en) | Task Migration Method and Apparatus | |
WO2019024641A1 (en) | Data synchronization method and apparatus, storage medium and electronic device | |
CN116094083B (en) | Charging method, device and storage medium | |
EP2993757A1 (en) | Method of managing the charging of battery and electronic device adapted thereto | |
CN107071284A (en) | A kind of photographic method and terminal | |
CN107491300A (en) | The reminding method and its terminal of a kind of intelligent function | |
CN110410353A (en) | Control method for fan, device and terminal device | |
CN106249837A (en) | A kind of method preventing terminal power down and terminal | |
CN106650409B (en) | A kind of terminal control method and terminal | |
CN107479806A (en) | The method and terminal of a kind of changing interface | |
CN107396510A (en) | A kind of filming control method and terminal | |
TW201227312A (en) | System and method for charging an electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20171124 |
|
WW01 | Invention patent application withdrawn after publication |