CN106961516B - Flash lamp control method and device - Google Patents

Flash lamp control method and device Download PDF

Info

Publication number
CN106961516B
CN106961516B CN201710109018.9A CN201710109018A CN106961516B CN 106961516 B CN106961516 B CN 106961516B CN 201710109018 A CN201710109018 A CN 201710109018A CN 106961516 B CN106961516 B CN 106961516B
Authority
CN
China
Prior art keywords
flash
temperature
voltage
shooting
main
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.)
Active
Application number
CN201710109018.9A
Other languages
Chinese (zh)
Other versions
CN106961516A (en
Inventor
尹建华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710109018.9A priority Critical patent/CN106961516B/en
Publication of CN106961516A publication Critical patent/CN106961516A/en
Application granted granted Critical
Publication of CN106961516B publication Critical patent/CN106961516B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions

Abstract

The invention provides a flash lamp control method and device. The method comprises the following steps: judging whether a first pre-flashing temperature and/or a first pre-flashing voltage of a flash lamp at a pre-flashing stage of the shooting meet preset conditions or not; when the preset conditions are met, the flash lamp is closed, or in the main flashing stage of the shooting, the flash lamp is driven by adopting first driving current, and the first driving current is smaller than second driving current of the flash lamp in the main flashing stage of the shooting at the last time. According to the embodiment of the invention, when the temperature of the flash lamp exceeds the standard during long-term use, the driving current of the flash lamp is reduced or the flash lamp is turned off, so that the purpose of reducing the temperature of the flash lamp is achieved, and the damage of the flash lamp caused by overhigh temperature is avoided.

Description

Flash lamp control method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for controlling a flash lamp.
Background
Front and rear cameras of a mobile terminal are already standard, and the rear camera is equipped with at least one Light-Emitting Diode (LED) flash lamp, and more front cameras are also equipped with the LED flash lamp for self-photographing and Light supplement. The flashlight current of the mobile terminal is fixed, or the flashlight temperature exceeds the standard along with the increase of the ambient light dimming flashlight current when the mobile terminal is used for a long time, so that the flashlight body is damaged.
Disclosure of Invention
The embodiment of the invention provides a flash lamp control method, which aims to solve the problem that the temperature of a flash lamp exceeds standard or is damaged after the flash lamp is used for a long time.
In one aspect, a flash control method is provided, which is applied to a mobile terminal, and includes:
judging whether a first pre-flashing temperature and/or a first pre-flashing voltage of a flash lamp at a pre-flashing stage of the shooting meet preset conditions or not;
when the preset conditions are met, the flash lamp is closed, or in the main flashing stage of the shooting, the flash lamp is driven by adopting first driving current, and the first driving current is smaller than second driving current of the flash lamp in the main flashing stage of the shooting at the last time.
In another aspect, there is provided a flash control apparatus disposed in a mobile terminal, the apparatus including:
the device comprises a preset condition judgment module, a first pre-flash temperature control module and a first pre-flash voltage control module, wherein the preset condition judgment module is used for judging whether a first pre-flash temperature and/or a first pre-flash voltage of a flash lamp at a pre-flash stage of shooting at the time meet a preset condition or not;
and the flash lamp control module is used for closing the flash lamp when a preset condition is met, or adopting a first driving current to drive the flash lamp in a main flash stage of the shooting, wherein the first driving current is smaller than a second driving current of the flash lamp in the main flash stage of the shooting at the last time.
According to the embodiment of the invention, the mobile terminal judges whether a first pre-flashing temperature and/or a first pre-flashing voltage of a flash lamp at a pre-flashing stage of the shooting meet a preset condition; and when the preset condition is met, the flash lamp is closed, or in the main flash stage of the shooting, the flash lamp is driven by adopting a first driving current, and the first driving current is smaller than a second driving current of the flash lamp in the main flash stage of the shooting last time. According to the embodiment of the invention, when the temperature of the flash lamp exceeds the standard during long-term use, the driving current of the flash lamp is reduced or the flash lamp is turned off, so that the purpose of reducing the temperature of the flash lamp is achieved, and the damage of the flash lamp caused by overhigh temperature is avoided.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart of a flash lamp control method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a flash lamp control method according to a second embodiment of the present invention;
fig. 3 is one of block diagrams of a flash control apparatus according to a third embodiment of the present invention;
FIG. 4 is a second block diagram of a flash control apparatus according to a third embodiment of the present invention;
fig. 5 is a block diagram of a mobile terminal according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a mobile terminal according to a fifth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
The flash lamp control method provided by the embodiment of the invention is described in detail.
Referring to fig. 1, a flowchart of a flash control method in an embodiment of the present invention is shown, where the method is applied to a mobile terminal, and the method includes:
step 101, judging whether a first pre-flashing temperature and/or a first pre-flashing voltage of a flash lamp at a pre-flashing stage of the shooting meet a preset condition.
In this embodiment, the flash of the flash lamp is divided into two stages, including a pre-flash stage and a main flash stage. Last shooting and this shooting are carried out continuously, and the flash lamp temperature rises gradually after using for a long time, therefore when this shooting, detects the first preflash temperature and/or the first preflash voltage of flash lamp at the preflash stage, judges whether need to adjust the drive current of flash lamp at the main stage of dodging or close the flash lamp according to this first preflash temperature and/or the first preflash voltage of shooting. Specifically, whether a first pre-flashing temperature of the flash lamp at a pre-flashing stage of the shooting meets a preset condition or not, or whether a first pre-flashing voltage meets the preset condition or not, or whether one of the first pre-flashing temperature and the first pre-flashing voltage meets the preset condition or not is judged. For determining whether the first pre-flashing temperature meets a preset condition, the preset condition may be that the first pre-flashing temperature is greater than a set temperature threshold, or that the first pre-flashing temperature is within a set temperature range. For example, the first pre-flash temperature is 33 ℃, the preset temperature threshold is 30 ℃, and the first pre-flash temperature is greater than the preset temperature threshold, so that the preset condition is met. The preset condition may be that the first pre-flash voltage is greater than a set voltage threshold, or that the first pre-flash voltage is within a set temperature range. For example, the first pre-flash voltage is 3.2V, the preset voltage threshold is 3V, and the first pre-flash voltage is greater than the preset voltage threshold, so as to satisfy the preset condition. The preset conditions are not limited in detail in the embodiment of the invention, and can be set according to actual conditions.
Step 102, when a preset condition is met, the flash lamp is turned off, or in a main flash stage of the shooting, a first driving current is adopted to drive the flash lamp, and the first driving current is smaller than a second driving current of the flash lamp in the main flash stage of the shooting at the last time.
In the embodiment, when the preset condition is met, the flash lamp is turned off when the shooting enters the main flash stage; or the driving current is adjusted, the driving current is reduced on the basis of the second driving current in the main flash stage during the last shooting, and the first driving current with the reduced current is adopted to drive the flash lamp. For example, it is detected that the first pre-flash temperature of the current shooting is 31 ℃, the early warning main flash temperature of the last shooting is 30 ℃, the first pre-flash temperature of the current shooting is greater than the early warning main flash temperature of the last shooting, a preset condition is met, the second driving current of the main flash stage during the last shooting is 1A, and when the current shooting enters the main flash stage, the flash lamp is driven by the driving current of 0.7A. The reduction value of the driving current is not limited in detail in the embodiment of the present invention, and can be set according to actual conditions.
In summary, in the embodiment of the present invention, the mobile terminal determines whether a first pre-flash temperature and/or a first pre-flash voltage of the flash lamp at the pre-flash stage of the current shooting meet a preset condition; and when the preset condition is met, the flash lamp is closed, or in the main flash stage of the shooting, the flash lamp is driven by adopting a first driving current, and the first driving current is smaller than a second driving current of the flash lamp in the main flash stage of the shooting last time. According to the embodiment of the invention, when the temperature of the flash lamp exceeds the standard during long-term use, the driving current of the flash lamp is reduced, so that the purpose of reducing the temperature of the flash lamp is achieved, and the damage of the flash lamp caused by overhigh temperature is avoided.
Example two
Referring to fig. 2, a flow chart of a flash control method in another embodiment of the present invention is shown.
In step 201, a second pre-flash temperature and a second pre-flash voltage of the flash lamp in a pre-flash stage of the last shooting are detected.
In this embodiment, the second pre-flash voltage at the pre-flash stage during the last shooting is detected, and the second pre-flash temperature is detected. Specifically, detecting the pre-flash temperature may be detected by a thermal sensor; or after detecting the pre-flash voltage of the flash lamp, searching the pre-flash temperature corresponding to the pre-flash voltage. Preferably, the mobile terminal is provided with a thermosensitive device for detecting the ambient temperature, and the second pre-flash temperature of the last shooting flash in the pre-flash stage can be detected through the following steps:
step one, detecting the voltage of the thermosensitive device.
And step two, searching the corresponding environment temperature shot last time according to the voltage of the thermosensitive device.
And step three, determining the second pre-flashing temperature according to the ambient temperature.
In this embodiment, preferably, the mobile terminal is preset with a first data table, where the first data table includes a plurality of corresponding relationships between voltages and temperatures; and searching the first data table according to the voltage of the thermosensitive device to obtain the environmental temperature of the last shooting. For example, in a data table in which the voltage is set corresponding to the temperature in the mobile terminal, 2.8V at 23 ℃, 3V at 24 ℃, and 3.2V at 25 ℃, when the voltage of the thermosensitive device is detected to be 2.8V, the ambient temperature can be found to be 23 ℃ from the data table.
There is a correspondence between the pre-flash temperature and the ambient temperature, which can be obtained in the early testing and simulation process. And presetting the corresponding relation between the pre-flashing temperature and the ambient temperature in the mobile terminal, and determining a second pre-flashing temperature according to the corresponding relation when the mobile terminal detects the ambient temperature. For example, the pre-flash temperature is determined by simulation to be 5 ℃ higher than the ambient temperature, and when the ambient temperature is detected to be 23 ℃, the second pre-flash temperature can be determined to be 28 ℃.
And step 202, determining a second main flash temperature of the flash lamp in the main flash stage of the last shooting according to the second pre-flash voltage.
In this embodiment, since the voltages of the flash lamps in the pre-flash stage and the main flash stage are different, after the pre-flash temperature is determined, the main flash temperature is determined according to the change of the voltages. The method specifically comprises the following steps:
step one, detecting a main flash voltage of a flash lamp during last shooting.
When shooting last time, detecting a second pre-flash voltage of the flash lamp in a pre-flash stage and a main flash voltage in a main flash stage. For example, in the previous shooting, the second pre-flash voltage is 1V, and the main flash voltage is 1.4V.
And step two, determining a voltage difference value between the main flash voltage and the second pre-flash voltage.
And after the second pre-flash voltage and the main flash voltage are detected, determining the voltage difference value of the second pre-flash voltage and the main flash voltage. For example, the second pre-flash voltage is 1V, the main flash voltage is 1.2V, and the voltage difference is 0.2V.
And step three, searching the corresponding temperature according to the voltage difference value to be used as the second main flash temperature.
Preferably, the mobile terminal is preset with a second data table, and the second data table comprises a corresponding relation between a plurality of voltage difference values and temperature; and searching the second data table according to the voltage difference value, and taking the temperature obtained by searching as the second main flash temperature. For example, if the voltage difference is 0.2V, corresponding to a temperature of 30 ℃, the second main flash temperature is 30 ℃.
And 203, when the second main flash temperature exceeds a set threshold, recording the second main flash temperature as the early warning main flash temperature of the flash lamp in the main flash stage of the last shooting, and recording the driving current as the second driving current of the flash lamp in the main flash stage of the last shooting.
In this embodiment, when shooting the last time, after determining the second main flash temperature, it is determined whether the second main flash temperature exceeds the set threshold, and if not, the main flash temperature and the driving current are not recorded. When the second main flash temperature exceeds the set threshold, the second main flash temperature is recorded as the early warning main flash temperature of the main flash stage during the last shooting, and the early warning main flash temperature is used for judging whether the pre-flash temperature of the current shooting exceeds the standard or not, so that whether the driving current of the flash lamp at the main flash stage needs to be adjusted or not is judged. When the early warning main flash temperature is recorded, the driving current is recorded as the second driving current of the main flash stage in the last shooting. For example, the second main flash temperature is 30 ℃, the set threshold is 29 ℃, and the second main flash temperature exceeds the set threshold, then the second main flash temperature is recorded as the early warning main flash temperature, and the second driving current 1A is recorded at the same time. The setting threshold value is not limited in detail in the embodiment of the invention, and can be set according to actual conditions.
And 204, when a shooting program in the mobile terminal is closed, emptying records of the early warning main flash temperature and the second driving current.
In this embodiment, when the shooting procedure is closed after the shooting is finished, the records of the early warning main flash temperature and the second driving current are cleared. When the shooting program is restarted, since the records of the early warning main flash temperature and the second driving current are emptied, the mobile terminal does not inquire the record of the early warning main flash temperature before judging whether the flash lamp meets the preset condition, and then step 207 is executed.
Step 205, before determining whether the first pre-flash temperature or the first pre-flash voltage of the flash lamp in the pre-flash stage of the current shooting meets the preset condition, querying the early warning main-flash temperature of the flash lamp in the main-flash stage of the last shooting.
In this embodiment, when shooting last time, the mobile terminal records the early warning main flash temperature of the flash lamp in the main flash stage. Inquiring the record of the early warning main flash temperature during the last shooting before judging whether the flash lamp meets the preset condition or not in the current shooting, and if the record of the early warning main flash temperature is inquired, executing the step of judging whether the first early flash temperature of the flash lamp in the early flash stage of the current shooting is greater than or equal to the early warning main flash temperature of the flash lamp in the main flash stage of the last shooting; if the record of the early warning main flashing temperature in the main flashing stage during the last shooting is not inquired, the step of judging whether the first pre-flashing temperature of the flash lamp in the pre-flashing stage of the current shooting is larger than or equal to the early warning main flashing temperature of the flash lamp in the main flashing stage of the last shooting is executed. For example, if the record of the early warning main flash temperature in the mobile terminal is empty, execute step 207; if the early warning main flash temperature in the mobile terminal is 30 ℃ in inquiry, step 206 is executed.
Step 206, if the record of the early warning main flash temperature is inquired, judging whether the first early warning temperature of the flash lamp in the pre-flash stage of the current shooting is greater than or equal to the early warning main flash temperature of the flash lamp in the main flash stage of the last shooting, and if so, determining that the preset condition is met; otherwise, determining that the preset condition is not met.
In this embodiment, the early warning main flash temperature of the main flash stage during the last shooting is queried, the first early warning main flash temperature of the pre-flash stage during the current shooting is compared with the early warning main flash temperature of the main flash stage during the last shooting, whether the first early warning temperature is greater than or equal to the early warning main flash temperature or not is judged, if yes, it is determined that the preset condition is met, and step 208 is executed; if the first pre-flash temperature is smaller than the early warning main flash temperature, the preset condition is determined not to be met, and the driving current of the flash lamp at the main flash stage does not need to be adjusted during shooting. For example, when the first pre-flash temperature of the current shooting is detected to be 29 ℃, the early warning main flash temperature of the last shooting is detected to be 30 ℃, and the first pre-flash temperature of the current shooting is determined to be less than the early warning main flash temperature of the last shooting, the driving current of the flash lamp in the main flash stage is not adjusted in the current shooting. Since the last shooting and the current shooting are continuously performed, and the temperature of the flash lamp gradually rises after the flash lamp is used for a long time, when the first pre-flash temperature of the current shooting is greater than or equal to the early warning main flash temperature of the last shooting, that is, the preset condition is met, step 208 is executed. For example, it is detected that the first pre-flash temperature of the current shooting is 31 ℃, the early warning main flash temperature of the last shooting is 30 ℃, it is determined that the first pre-flash temperature of the current shooting is greater than the early warning main flash temperature of the last shooting, and step 208 is executed.
Step 207, if the record of the early warning main flash temperature is not inquired, judging whether the first pre-flash voltage of the flash lamp in the pre-flash stage of the current shooting is greater than or equal to the second pre-flash voltage of the flash lamp in the pre-flash stage of the last shooting, and if so, determining that the preset condition is met; otherwise, determining that the preset condition is not met.
In this embodiment, the early warning main flash temperature in the main flash stage during the last shooting is not queried, the first pre-flash voltage in the pre-flash stage during the current shooting is compared with the second pre-flash voltage in the pre-flash stage during the last shooting, whether the first pre-flash voltage is greater than or equal to the second pre-flash voltage is determined, and if the first pre-flash voltage is less than the second pre-flash voltage, the driving current of the flash lamp in the main flash stage does not need to be adjusted during the current shooting. For example, when it is detected that the first pre-flash voltage of the current shooting is 2.8V and the second pre-flash voltage of the last shooting is 2.9V, it is determined that the first pre-flash voltage of the current shooting is smaller than the second pre-flash voltage of the last shooting, and then the driving current of the flash lamp in the main flash stage is not adjusted in the current shooting. Since the last shooting and the current shooting are performed continuously, and the temperature of the flash lamp gradually increases after the flash lamp is used for a long time, step 208 is executed when the first pre-flash voltage of the current shooting is greater than or equal to the second pre-flash voltage of the last shooting. For example, it is detected that the first pre-flash voltage of the current shooting is 3.0V and the second pre-flash voltage of the last shooting is 2.9V, and it is determined that the first pre-flash voltage of the current shooting is greater than the second pre-flash voltage of the last shooting, step 208 is executed.
And 208, turning off the flash lamp, or driving the flash lamp by adopting a first driving current in a main flash stage of the shooting, wherein the first driving current is smaller than a second driving current of the flash lamp in the main flash stage of the shooting at the last time.
In this embodiment, the shooting is continuously performed, the temperature of the flash lamp gradually rises after the flash lamp is used for a long time, the mobile terminal continuously reduces the driving current, and the flash lamp is turned off when the second driving current after the current reduction is not greater than zero. For example, the first driving current is initially 1A, and after the set current value is decreased by 0.3A for three times, the first driving current is 0.1A, and if the second driving current is decreased by 0.3A and the second driving current is-0.2A, the flash lamp is turned off.
In summary, in the embodiment of the present invention, the mobile terminal determines the second pre-flash temperature and the second main-flash temperature during the last shooting according to the ambient temperature; and if the second main flash temperature exceeds the set threshold, recording the main flash temperature and the driving current. During the shooting, judging whether a first pre-flashing temperature and/or a first pre-flashing voltage of a flash lamp at a pre-flashing stage of the shooting meet preset conditions or not; and when the preset condition is met, the flash lamp is closed, or in the main flash stage of the shooting, the flash lamp is driven by adopting a first driving current, and the first driving current is smaller than a second driving current of the flash lamp in the main flash stage of the shooting last time. According to the embodiment of the invention, when the temperature of the flash lamp exceeds the standard during long-term use, the driving current of the flash lamp is reduced or the flash lamp is turned off, so that the purpose of reducing the temperature of the flash lamp is achieved, and the damage of the flash lamp caused by overhigh temperature is avoided.
It should be noted that the foregoing method embodiments are described as a series of acts or combinations for simplicity in explanation, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts or acts described, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
EXAMPLE III
The flash lamp control device provided by the embodiment of the invention can realize the details of the flash lamp control methods in the first embodiment to the second embodiment and achieve the same effects.
Referring to fig. 3, a block diagram of a flash control apparatus in an embodiment of the present invention is shown, applied to a mobile terminal, and the apparatus is characterized in that the apparatus includes a preset condition determining module 301, a flash control module 302:
the preset condition judgment module 301 is configured to judge whether a first pre-flash temperature and/or a first pre-flash voltage of the flash lamp at a pre-flash stage of the current shooting meet a preset condition;
the flash control module 302 is configured to close the flash when a preset condition is met, or drive the flash at the main flash stage of the current shooting by using a first driving current, where the first driving current is smaller than a second driving current of the flash at the main flash stage of the last shooting.
On the basis of fig. 3, preferably, the preset condition determining module 301 includes a pre-flash temperature determining sub-module 3011 and a pre-flash voltage determining sub-module 3012, as shown in fig. 4:
the pre-flash temperature judgment sub-module 3011 is configured to judge whether a first pre-flash temperature of the flash lamp in a pre-flash stage of the current shooting is greater than or equal to an early warning main-flash temperature of the flash lamp in a main-flash stage of the last shooting, and if so, determine that a preset condition is met; otherwise, determining that the preset condition is not met;
the pre-flash voltage judgment sub-module 3012 is configured to judge whether a first pre-flash voltage of the flash lamp in a pre-flash stage of the current shooting is greater than or equal to a second pre-flash voltage of the flash lamp in a pre-flash stage of the last shooting, and if so, determine that a preset condition is met; otherwise, determining that the preset condition is not met.
On the basis of fig. 4, preferably, before the pre-flash temperature determination sub-module 3011, the apparatus further includes a main flash temperature query module 303:
a main flash temperature query module 303, configured to query an early warning main flash temperature of the flash lamp in a main flash stage of the last shooting; if the early warning main flash temperature is inquired, a pre-flash temperature judgment sub-module is executed; and if the early warning main flash temperature is not inquired, executing a pre-flash voltage judgment submodule.
On the basis of fig. 3, preferably, before the preset condition determining module 301, the apparatus further includes a pre-flash temperature and voltage detecting module 304, a main flash temperature determining module 305, and a main flash temperature recording module 306, see fig. 4:
a pre-flash temperature and voltage detection module 304, configured to detect a second pre-flash temperature and a second pre-flash voltage of the flash lamp in a pre-flash stage of the last shooting;
a main flash temperature determining module 305, configured to determine a second main flash temperature of the flash in the main flash stage of the last shooting according to the second pre-flash temperature;
and the main flash temperature recording module 306 is used for recording the second main flash temperature as the early warning main flash temperature of the main flash stage of the last shooting of the flash lamp when the second main flash temperature exceeds the set threshold value, and recording the driving current as the second driving current of the main flash stage of the last shooting of the flash lamp.
On the basis of fig. 4, preferably, after the master flash temperature recording module 306, a recording clearing module 307 is further included:
a record clearing module 307, configured to clear the record of the early warning main flash temperature and the second driving current when the shooting program in the mobile terminal is closed.
On the basis of fig. 4, preferably, the mobile terminal is provided with a thermosensitive device for detecting an ambient temperature, and the pre-flash temperature and voltage detecting module 304 includes a thermosensitive voltage detecting sub-module 3041, an ambient temperature searching sub-module 3042, and a pre-flash temperature determining sub-module 3043:
a thermosensitive voltage detecting submodule 3041 for detecting a voltage of the thermosensitive device;
an ambient temperature searching submodule 3042 for searching the corresponding ambient temperature of the last shooting according to the voltage of the thermosensitive device;
a pre-flash temperature determination submodule 3043 configured to determine the second pre-flash temperature according to the ambient temperature.
On the basis of fig. 4, preferably, the mobile terminal is preset with a first data table, where the first data table includes a plurality of corresponding relationships between voltage and temperature;
the ambient temperature searching submodule 3042 is specifically configured to search the first data table according to the voltage of the thermosensitive device, so as to obtain the ambient temperature of the previous shooting.
On the basis of fig. 4, preferably, the main flash temperature determination module 305 includes a main flash voltage detection sub-module 3051, a voltage difference value determination sub-module 3052, and a main flash temperature determination sub-module 3053:
a main flash voltage detection submodule 3051, configured to detect a main flash voltage of a flash lamp during last shooting;
a voltage difference determination sub-module 3052, configured to determine a voltage difference between the main lightning voltage and the second pre-lightning voltage;
and the main flash temperature determination sub-module 3053 is configured to search for a corresponding temperature according to the voltage difference value, where the temperature is used as the second main flash temperature.
On the basis of fig. 4, preferably, the mobile terminal is preset with a second data table, where the second data table includes a plurality of corresponding relationships between voltage difference values and temperatures;
and the main flash temperature determining sub-module 3053 is specifically configured to search the second data table according to the voltage difference, and use the searched temperature as the second main flash temperature.
In summary, in the embodiment of the present invention, the mobile terminal determines the second pre-flash temperature and the second main-flash temperature during the last shooting according to the ambient temperature; and if the second main flash temperature exceeds the set threshold, recording the main flash temperature and the driving current. During the shooting, judging whether a first pre-flashing temperature and/or a first pre-flashing voltage of a flash lamp at a pre-flashing stage of the shooting meet preset conditions or not; and when the preset condition is met, the flash lamp is closed, or in the main flash stage of the shooting, the flash lamp is driven by adopting a first driving current, and the first driving current is smaller than a second driving current of the flash lamp in the main flash stage of the shooting last time. According to the embodiment of the invention, when the temperature of the flash lamp exceeds the standard during long-term use, the driving current of the flash lamp is reduced or the flash lamp is turned off, so that the purpose of reducing the temperature of the flash lamp is achieved, and the damage of the flash lamp caused by overhigh temperature is avoided.
Example four
Fig. 5 is a block diagram of a mobile terminal according to another embodiment of the present invention. The mobile terminal 500 shown in fig. 5 includes: at least one processor 501, memory 502, at least one network interface 504, and a user interface 503. The various components in the mobile terminal 500 are coupled together by a bus system 505. It is understood that the bus system 505 is used to enable connection communications between these components. The bus system 505 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 505 in FIG. 5.
The user interface 503 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or flexible screen, among others.
It is to be understood that the memory 502 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a Read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data rate Synchronous Dynamic random access memory (ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 502 of the subject systems and methods described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 502 stores elements, executable modules or data structures, or a subset thereof, or an expanded set thereof as follows: an operating system 5021 and application programs 5022.
The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application 5022 includes various applications, such as a media player (MediaPlayer), a Browser (Browser), and the like, for implementing various application services. The program for implementing the method according to the embodiment of the present invention may be included in the application program 5022.
In the embodiment of the present invention, by calling a program or an instruction stored in the memory 502, specifically, a program or an instruction stored in the application 5022, the processor 501 is configured to determine whether a first pre-flash temperature and/or a first pre-flash voltage of a flash lamp at a pre-flash stage of the current shooting meet a preset condition; when the preset conditions are met, the flash lamp is closed, or in the main flashing stage of the shooting, the flash lamp is driven by adopting first driving current, and the first driving current is smaller than second driving current of the flash lamp in the main flashing stage of the shooting at the last time.
The method disclosed by the above-mentioned embodiments of the present invention may be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 501. The Processor 501 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the method in combination with the hardware.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described in this disclosure may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described in this disclosure. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, the processor 501 is further configured to: judging whether the first pre-flash temperature of the flash lamp in the pre-flash stage of the current shooting is greater than or equal to the early warning main flash temperature of the flash lamp in the main flash stage of the last shooting, and if so, determining that the preset condition is met; otherwise, determining that the preset condition is not met; judging whether a first pre-flashing voltage of a flash lamp in a pre-flashing stage of the current shooting is greater than or equal to a second pre-flashing voltage of the flash lamp in the pre-flashing stage of the last shooting, and if so, determining that a preset condition is met; otherwise, determining that the preset condition is not met.
Optionally, the processor 501 is further configured to: inquiring the early warning main flash temperature of the flash lamp in the main flash stage of the last shooting; if the early warning main flash temperature is inquired, the step of judging whether the first early warning temperature of the flash lamp in the pre-flash stage of the current shooting is greater than or equal to the early warning main flash temperature of the flash lamp in the main flash stage of the last shooting is executed; and if the early warning main flash temperature is not inquired, executing the step of judging whether the first pre-flash voltage of the flash lamp in the pre-flash stage of the current shooting is greater than or equal to the second pre-flash voltage of the flash lamp in the pre-flash stage of the last shooting.
Optionally, the processor 501 is further configured to: detecting a second pre-flash temperature and a second pre-flash voltage of the flash lamp in a pre-flash stage of the last shooting; determining a second main flash temperature of the flash lamp in a main flash stage of the last shooting according to the second pre-flash temperature; when the second main flash temperature exceeds a set threshold value, the second main flash temperature is recorded as the early warning main flash temperature of the main flash stage of the last shooting of the flash lamp, and the driving current is recorded as the second driving current of the main flash stage of the last shooting of the flash lamp.
Optionally, the processor 501 is further configured to: and when a shooting program in the mobile terminal is closed, emptying the records of the early warning main flash temperature and the second driving current.
Optionally, the mobile terminal is provided with a heat-sensitive device for detecting an ambient temperature, and the processor 501 is further configured to: detecting a voltage of the thermosensitive device; searching the corresponding environment temperature shot last time according to the voltage of the thermosensitive device; and determining the second pre-flash temperature according to the ambient temperature.
Optionally, the mobile terminal is preset with a first data table, where the first data table includes a plurality of corresponding relationships between voltages and temperatures; the processor 501 is further configured to: and searching the first data table according to the voltage of the thermosensitive device to obtain the environmental temperature of the last shooting.
Optionally, the processor 501 is further configured to: detecting a main flash voltage of a flash lamp during last shooting; determining a voltage difference between the main flash voltage and the second pre-flash voltage; and searching the corresponding temperature according to the voltage difference value to be used as the second main flash temperature.
Optionally, the mobile terminal is preset with a second data table, where the second data table includes a corresponding relationship between a plurality of voltage difference values and temperatures; the processor 501 is further configured to: and searching the second data table according to the voltage difference value, and taking the temperature obtained by searching as the second main flash temperature.
The mobile terminal 500 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and in order to avoid repetition, the detailed description is omitted here. In the embodiment of the invention, the mobile terminal determines a second pre-flash temperature and a second main flash temperature during the last shooting according to the ambient temperature; and if the second main flash temperature exceeds the set threshold, recording the main flash temperature and the driving current. During the shooting, judging whether a first pre-flashing temperature and/or a first pre-flashing voltage of a flash lamp at a pre-flashing stage of the shooting meet preset conditions or not; and when the preset condition is met, the flash lamp is closed, or in the main flash stage of the shooting, the flash lamp is driven by adopting a first driving current, and the first driving current is smaller than a second driving current of the flash lamp in the main flash stage of the shooting last time. According to the embodiment of the invention, when the temperature of the flash lamp exceeds the standard during long-term use, the driving current of the flash lamp is reduced or the flash lamp is turned off, so that the purpose of reducing the temperature of the flash lamp is achieved, and the damage of the flash lamp caused by overhigh temperature is avoided.
EXAMPLE five
Fig. 6 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention. Specifically, the mobile terminal 600 in fig. 6 may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
The mobile terminal 600 in fig. 6 includes a Radio Frequency (RF) circuit 610, a memory 620, an input unit 630, a display unit 640, a processor 660, an audio circuit 670, a wifi (wireless fidelity) module 680, and a power supply 690.
The input unit 630 may be used, among other things, to receive numeric or character information input by a user and to generate signal inputs related to user settings and function control of the mobile terminal 600. Specifically, in the embodiment of the present invention, the input unit 630 may include a touch panel 631. The touch panel 631 may collect touch operations performed by a user (e.g., operations performed by the user on the touch panel 631 by using any suitable object or accessory such as a finger or a stylus) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 631 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 660, and can receive and execute commands sent by the processor 660. In addition, the touch panel 631 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 631, the input unit 630 may also include other input devices 632, and the other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Among other things, the display unit 640 may be used to display information input by a user or information provided to the user and various menu interfaces of the mobile terminal 600. The display unit 640 may include a display panel 641, and optionally, the display panel 641 may be configured in the form of an LCD or an Organic Light-Emitting Diode (OLED).
It should be noted that the touch panel 631 may cover the display panel 641 to form a touch display screen, and when the touch display screen detects a touch operation thereon or nearby, the touch display screen is transmitted to the processor 660 to determine the type of the touch event, and then the processor 660 provides a corresponding visual output on the touch display screen according to the type of the touch event.
The touch display screen comprises an application program interface display area and a common control display area. The arrangement modes of the application program interface display area and the common control display area are not limited, and can be an arrangement mode which can distinguish two display areas, such as vertical arrangement, left-right arrangement and the like. The application interface display area may be used to display an interface of an application. Each interface may contain at least one interface element such as an icon and/or widget desktop control for an application. The application interface display area may also be an empty interface that does not contain any content. The common control display area is used for displaying controls with high utilization rate, such as application icons like setting buttons, interface numbers, scroll bars, phone book icons and the like.
The processor 660 is a control center of the mobile terminal 600, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile terminal 600 and processes data by operating or executing software programs and/or modules stored in the first memory 621 and calling data stored in the second memory 622, thereby integrally monitoring the mobile terminal 600. Optionally, processor 660 may include one or more processing units.
In the embodiment of the present invention, the processor 660 is configured to determine whether a first pre-flash temperature and/or a first pre-flash voltage of the flash lamp at a pre-flash stage of the current shooting satisfies a preset condition by calling a software program or module stored in the first memory 621 and/or data stored in the second memory 622; when the preset conditions are met, the flash lamp is closed, or in the main flashing stage of the shooting, the flash lamp is driven by adopting first driving current, and the first driving current is smaller than second driving current of the flash lamp in the main flashing stage of the shooting at the last time.
Optionally, the processor 660 is further configured to: judging whether the first pre-flash temperature of the flash lamp in the pre-flash stage of the current shooting is greater than or equal to the early warning main flash temperature of the flash lamp in the main flash stage of the last shooting, and if so, determining that the preset condition is met; otherwise, determining that the preset condition is not met; judging whether a first pre-flashing voltage of a flash lamp in a pre-flashing stage of the current shooting is greater than or equal to a second pre-flashing voltage of the flash lamp in the pre-flashing stage of the last shooting, and if so, determining that a preset condition is met; otherwise, determining that the preset condition is not met.
Optionally, the processor 660 is further configured to: inquiring the early warning main flash temperature of the flash lamp in the main flash stage of the last shooting; if the early warning main flash temperature is inquired, the step of judging whether the first early warning temperature of the flash lamp in the pre-flash stage of the current shooting is greater than or equal to the early warning main flash temperature of the flash lamp in the main flash stage of the last shooting is executed; and if the early warning main flash temperature is not inquired, executing the step of judging whether the first pre-flash voltage of the flash lamp in the pre-flash stage of the current shooting is greater than or equal to the second pre-flash voltage of the flash lamp in the pre-flash stage of the last shooting.
Optionally, the processor 660 is further configured to: detecting a second pre-flash temperature and a second pre-flash voltage of the flash lamp in a pre-flash stage of the last shooting; determining a second main flash temperature of the flash lamp in a main flash stage of the last shooting according to the second pre-flash temperature; when the second main flash temperature exceeds a set threshold value, the second main flash temperature is recorded as the early warning main flash temperature of the main flash stage of the last shooting of the flash lamp, and the driving current is recorded as the second driving current of the main flash stage of the last shooting of the flash lamp.
Optionally, the processor 660 is further configured to: and when a shooting program in the mobile terminal is closed, emptying the records of the early warning main flash temperature and the second driving current.
Optionally, the mobile terminal is provided with a heat-sensitive device for detecting an ambient temperature, and the processor 501 is further configured to: detecting a voltage of the thermosensitive device; searching the corresponding environment temperature shot last time according to the voltage of the thermosensitive device; and determining the second pre-flash temperature according to the ambient temperature.
Optionally, the mobile terminal is preset with a first data table, where the first data table includes a plurality of corresponding relationships between voltages and temperatures; the processor 660 is further configured to: and searching the first data table according to the voltage of the thermosensitive device to obtain the environmental temperature of the last shooting.
Optionally, the processor 660 is further configured to: detecting a main flash voltage of a flash lamp during last shooting; determining a voltage difference between the main flash voltage and the second pre-flash voltage; and searching the corresponding temperature according to the voltage difference value to be used as the second main flash temperature.
Optionally, the mobile terminal is preset with a second data table, where the second data table includes a corresponding relationship between a plurality of voltage difference values and temperatures; the processor 660 is further configured to: and searching the second data table according to the voltage difference value, and taking the temperature obtained by searching as the second main flash temperature.
As can be seen, in the embodiment of the present invention, the mobile terminal 600 determines the second pre-flash temperature and the second main flash temperature during the last shooting according to the ambient temperature; and if the second main flash temperature exceeds the set threshold, recording the main flash temperature and the driving current. During the shooting, judging whether a first pre-flashing temperature and/or a first pre-flashing voltage of a flash lamp at a pre-flashing stage of the shooting meet preset conditions or not; and when the preset condition is met, the flash lamp is closed, or in the main flash stage of the shooting, the flash lamp is driven by adopting a first driving current, and the first driving current is smaller than a second driving current of the flash lamp in the main flash stage of the shooting last time. According to the embodiment of the invention, when the temperature of the flash lamp exceeds the standard during long-term use, the driving current of the flash lamp is reduced or the flash lamp is turned off, so that the purpose of reducing the temperature of the flash lamp is achieved, and the damage of the flash lamp caused by overhigh temperature is avoided.
For the control device embodiment of the flash lamp, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant points, reference may be made to part of the description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As is readily imaginable to the person skilled in the art: any combination of the above embodiments is possible, and thus any combination between the above embodiments is an embodiment of the present invention, but the present disclosure is not necessarily detailed herein for reasons of space.
The control scheme for the flash provided herein is not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The structure required to construct a system incorporating aspects of the present invention will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the control solution of the flashlight of the present invention essentially or partly contributes to the prior art, or parts of the solution, can be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (16)

1. A flash lamp control method is applied to a mobile terminal, and is characterized by comprising the following steps:
judging whether a first pre-flashing temperature and/or a first pre-flashing voltage of a flash lamp at a pre-flashing stage of the shooting meet preset conditions or not;
when a preset condition is met, turning off the flash lamp, or driving the flash lamp by adopting a first driving current in a main flash stage of the shooting, wherein the first driving current is smaller than a second driving current of the flash lamp in the main flash stage of the shooting at the last time;
wherein, whether the first preflash temperature of judging the flash lamp at this shooting preflash stage satisfies the preset condition includes:
judging whether the first pre-flash temperature of the flash lamp in the pre-flash stage of the current shooting is greater than or equal to the early warning main flash temperature of the flash lamp in the main flash stage of the last shooting, and if so, determining that the preset condition is met; otherwise, determining that the preset condition is not met;
whether the first pre-flashing voltage of the flash lamp at the pre-flashing stage of the shooting meets the preset condition or not is judged, and the method comprises the following steps:
judging whether a first pre-flashing voltage of a flash lamp in a pre-flashing stage of the current shooting is greater than or equal to a second pre-flashing voltage of the flash lamp in the pre-flashing stage of the last shooting, and if so, determining that a preset condition is met; otherwise, determining that the preset condition is not met.
2. The method of claim 1, wherein before the determining whether the first pre-flash temperature of the flash lamp in the pre-flash stage of the current shooting is greater than or equal to the early warning main flash temperature of the flash lamp in the main flash stage of the last shooting, the method further comprises:
inquiring the early warning main flash temperature of the flash lamp in the main flash stage of the last shooting;
if the early warning main flash temperature is inquired, the step of judging whether the first early warning temperature of the flash lamp in the pre-flash stage of the current shooting is greater than or equal to the early warning main flash temperature of the flash lamp in the main flash stage of the last shooting is executed;
and if the early warning main flash temperature is not inquired, executing the step of judging whether the first pre-flash voltage of the flash lamp in the pre-flash stage of the current shooting is greater than or equal to the second pre-flash voltage of the flash lamp in the pre-flash stage of the last shooting.
3. The method according to claim 1, wherein before the determining whether the first pre-flash temperature and/or the first pre-flash voltage of the flash lamp in the pre-flash stage of the current shooting satisfy the preset condition, the method further comprises:
detecting a second pre-flash temperature and a second pre-flash voltage of the flash lamp in a pre-flash stage of the last shooting;
determining a second main flash temperature of the flash lamp in a main flash stage of the last shooting according to the second pre-flash voltage;
when the second main flash temperature exceeds a set threshold value, the second main flash temperature is recorded as the early warning main flash temperature of the main flash stage of the last shooting of the flash lamp, and the driving current is recorded as the second driving current of the main flash stage of the last shooting of the flash lamp.
4. The method of claim 3, wherein the recording the second main flash temperature as an early warning main flash temperature of a main flash phase of a last shot of the flash, and the recording the driving current as a second driving current of the flash after the main flash phase of the last shot of the flash, further comprises:
and when a shooting program in the mobile terminal is closed, emptying the records of the early warning main flash temperature and the second driving current.
5. The method according to claim 3, wherein the mobile terminal is provided with a thermosensitive device for detecting the ambient temperature, and the detecting the second pre-flash temperature of the flash lamp in the pre-flash stage of the last shooting comprises:
detecting a voltage of the thermosensitive device;
searching the corresponding environment temperature shot last time according to the voltage of the thermosensitive device;
and determining the second pre-flash temperature according to the ambient temperature.
6. The method according to claim 5, wherein the mobile terminal is preset with a first data table containing a plurality of voltage-temperature correspondences;
the searching for the corresponding environment temperature of the last shooting according to the voltage of the thermosensitive device comprises:
and searching the first data table according to the voltage of the thermosensitive device to obtain the environmental temperature of the last shooting.
7. The method according to claim 3, wherein the determining the second main flash temperature of the flash lamp in the main flash stage of the last shooting according to the second pre-flash voltage comprises:
detecting a main flash voltage of a flash lamp during last shooting;
determining a voltage difference between the main flash voltage and the second pre-flash voltage;
searching a corresponding temperature in a preset second data table according to the voltage difference value to be used as the second main flash temperature; the preset second data table comprises a plurality of corresponding relations between the voltage difference values and the temperature.
8. The method according to claim 7, wherein the mobile terminal is preset with a second data table, and the second data table comprises a plurality of corresponding relations between voltage difference values and temperatures;
the searching for the corresponding temperature according to the voltage difference value as the second main flash temperature includes:
and searching the second data table according to the voltage difference value, and taking the temperature obtained by searching as the second main flash temperature.
9. A flash control apparatus disposed in a mobile terminal, the apparatus comprising:
the device comprises a preset condition judgment module, a first pre-flash temperature control module and a first pre-flash voltage control module, wherein the preset condition judgment module is used for judging whether a first pre-flash temperature and/or a first pre-flash voltage of a flash lamp at a pre-flash stage of shooting at the time meet a preset condition or not;
the flash lamp control module is used for turning off the flash lamp when a preset condition is met, or driving the flash lamp by adopting a first driving current in a main flash stage of the shooting, wherein the first driving current is smaller than a second driving current of the flash lamp in the main flash stage of the shooting at the last time;
wherein, the preset condition judgment module comprises:
the pre-flash temperature judgment sub-module is used for judging whether the first pre-flash temperature of the flash lamp in the pre-flash stage of the shooting is greater than or equal to the early warning main-flash temperature of the flash lamp in the main-flash stage of the shooting at the last time, and if so, the pre-flash temperature judgment sub-module determines that the preset condition is met; otherwise, determining that the preset condition is not met;
the pre-flash voltage judgment sub-module is used for judging whether the first pre-flash voltage of the flash lamp in the pre-flash stage of the shooting is larger than or equal to the second pre-flash voltage of the flash lamp in the pre-flash stage of the shooting at the last time, and if so, the pre-flash voltage judgment sub-module determines that the preset condition is met; otherwise, determining that the preset condition is not met.
10. The apparatus of claim 9, wherein prior to the preflash temperature determination sub-module, the apparatus further comprises:
the main flash temperature query module is used for querying the early warning main flash temperature of the flash lamp in the main flash stage of the last shooting; if the early warning main flash temperature is inquired, a pre-flash temperature judgment sub-module is executed; and if the early warning main flash temperature is not inquired, executing a pre-flash voltage judgment submodule.
11. The apparatus according to claim 9, wherein before the preset condition determining module, the apparatus further comprises:
the pre-flash temperature and voltage detection module is used for detecting a second pre-flash temperature and a second pre-flash voltage of the flash lamp in a pre-flash stage of the last shooting;
the main flash temperature determining module is used for determining a second main flash temperature of the flash lamp in a main flash stage of the last shooting according to the second pre-flash voltage;
and the main flash temperature recording module is used for working as when the second main flash temperature exceeds a set threshold value, recording the second main flash temperature as the early warning main flash temperature of the main flash stage of the last shooting of the flash lamp, and recording the driving current as the second driving current of the main flash stage of the last shooting of the flash lamp.
12. The apparatus of claim 11, wherein the master flash temperature recording module is followed by further comprising:
and the record clearing module is used for clearing the records of the early warning main flash temperature and the second driving current when the shooting program in the mobile terminal is closed.
13. The apparatus of claim 11, wherein the mobile terminal is provided with a heat sensitive device for detecting an ambient temperature, and the pre-flash temperature and voltage detection module comprises:
the temperature-sensitive voltage detection submodule is used for detecting the voltage of the temperature-sensitive device;
the environment temperature searching submodule is used for searching the corresponding environment temperature shot last time according to the voltage of the thermosensitive device;
and the pre-flash temperature determination submodule is used for determining the second pre-flash temperature according to the environment temperature.
14. The apparatus according to claim 13, wherein the mobile terminal is preset with a first data table, and the first data table comprises a plurality of voltage-temperature correspondences;
and the environment temperature searching submodule is specifically used for searching the first data table according to the voltage of the thermosensitive device to obtain the environment temperature of the last shooting.
15. The apparatus of claim 11, wherein the master flash temperature determination module comprises:
the main flash voltage detection submodule is used for detecting the main flash voltage of the flash lamp during the last shooting;
a voltage difference value determination submodule for determining a voltage difference value between the main flash voltage and the second pre-flash voltage;
the main flash temperature determining submodule is used for searching the corresponding temperature in a preset second data table according to the voltage difference value to be used as the second main flash temperature; the preset second data table comprises a plurality of corresponding relations between the voltage difference values and the temperature.
16. The apparatus according to claim 15, wherein the mobile terminal is preset with a second data table, and the second data table contains a plurality of voltage difference value and temperature corresponding relations;
and the main flash temperature determining submodule is specifically used for searching the second data table according to the voltage difference value, and taking the searched temperature as the second main flash temperature.
CN201710109018.9A 2017-02-27 2017-02-27 Flash lamp control method and device Active CN106961516B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710109018.9A CN106961516B (en) 2017-02-27 2017-02-27 Flash lamp control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710109018.9A CN106961516B (en) 2017-02-27 2017-02-27 Flash lamp control method and device

Publications (2)

Publication Number Publication Date
CN106961516A CN106961516A (en) 2017-07-18
CN106961516B true CN106961516B (en) 2020-07-03

Family

ID=59469998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710109018.9A Active CN106961516B (en) 2017-02-27 2017-02-27 Flash lamp control method and device

Country Status (1)

Country Link
CN (1) CN106961516B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108650411B (en) * 2018-04-23 2020-11-06 Oppo广东移动通信有限公司 Flash lamp control method, terminal and computer storage medium
CN109413235A (en) * 2018-11-08 2019-03-01 维沃移动通信有限公司 A kind of terminal device and control method
CN112714212B (en) * 2019-10-25 2024-03-15 环鸿电子(昆山)有限公司 Flashlight mode control method for flashlight of mobile phone
CN112929577A (en) * 2021-02-04 2021-06-08 广东小天才科技有限公司 Flash lamp control method and terminal equipment
CN115379615B (en) * 2022-10-20 2023-04-07 荣耀终端有限公司 Electronic equipment and method for controlling brightness of light-emitting device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103501384A (en) * 2013-09-17 2014-01-08 广东明创软件科技有限公司 Method for adjusting electric current of flash lamp of mobile phone for taking picture and mobile phone
CN103581559A (en) * 2013-10-15 2014-02-12 广东欧珀移动通信有限公司 Intelligent AE algorithm for flash photography of mobile phone
CN103607822A (en) * 2013-11-25 2014-02-26 广东欧珀移动通信有限公司 Over-temperature protection method and device of flashlight of terminal
CN105554991A (en) * 2016-03-05 2016-05-04 上海斐讯数据通信技术有限公司 Method for enhancing brightness of flashlight and intelligent terminal
CN105824344A (en) * 2015-08-31 2016-08-03 维沃移动通信有限公司 Current adjusting method and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103501384A (en) * 2013-09-17 2014-01-08 广东明创软件科技有限公司 Method for adjusting electric current of flash lamp of mobile phone for taking picture and mobile phone
CN103581559A (en) * 2013-10-15 2014-02-12 广东欧珀移动通信有限公司 Intelligent AE algorithm for flash photography of mobile phone
CN103607822A (en) * 2013-11-25 2014-02-26 广东欧珀移动通信有限公司 Over-temperature protection method and device of flashlight of terminal
CN105824344A (en) * 2015-08-31 2016-08-03 维沃移动通信有限公司 Current adjusting method and terminal
CN105554991A (en) * 2016-03-05 2016-05-04 上海斐讯数据通信技术有限公司 Method for enhancing brightness of flashlight and intelligent terminal

Also Published As

Publication number Publication date
CN106961516A (en) 2017-07-18

Similar Documents

Publication Publication Date Title
CN106961516B (en) Flash lamp control method and device
US9183770B2 (en) Foldable display device and method of controlling therefor
US10621894B2 (en) Method and apparatus for controlling flexible screen, and electronic device
EP3598285B1 (en) Icon processing method and mobile terminal
US20140168118A1 (en) Touch display device and control method thereof
CN106095250B (en) Application icon layout method and mobile terminal
CN106101569A (en) A kind of method of light filling of taking pictures and mobile terminal
US9671949B2 (en) Method and apparatus for controlling user interface by using objects at a distance from a device without touching
EP3005523B1 (en) Electronic device and method for applying power depending on whether accessory is charged
CN107221347B (en) Audio playing method and terminal
US20140195794A1 (en) Electronic device with baseboard management controller updating system
KR20140119617A (en) Method of storing application's state information e, Computer readable storage medium of recording the method and an user's apparatus
CN103870293A (en) Information obtaining method, information display method and device and electronic device
CN107632761B (en) Display content viewing method, mobile terminal and computer readable storage medium
CN108270252A (en) The method and mobile terminal of a kind of charging, charging equipment
CN106934052B (en) Media text processing method and mobile terminal
CN107257411B (en) Message reminding method and mobile terminal
US20120068958A1 (en) Portable electronic device and control method thereof
US20140280263A1 (en) Electronic device with a funiction of applying applications of different operating systems and method thereof
WO2018196693A1 (en) Method for displaying image list and mobile terminal
CN106502325B (en) A kind of light compensation method and mobile terminal of mobile terminal
CN111124236B (en) Data processing method, device and machine-readable medium
US9904402B2 (en) Mobile terminal and method for input control
CN107591128B (en) Screen brightness adjusting method and mobile terminal
CN105426071B (en) Electronic device and method for controlling display of screen thereof

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
GR01 Patent grant
GR01 Patent grant