CN112714245B - Flash lamp control method, electronic device and computer storage medium - Google Patents

Flash lamp control method, electronic device and computer storage medium Download PDF

Info

Publication number
CN112714245B
CN112714245B CN201911024145.4A CN201911024145A CN112714245B CN 112714245 B CN112714245 B CN 112714245B CN 201911024145 A CN201911024145 A CN 201911024145A CN 112714245 B CN112714245 B CN 112714245B
Authority
CN
China
Prior art keywords
flash lamp
temperature
preset temperature
flash
control method
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
CN201911024145.4A
Other languages
Chinese (zh)
Other versions
CN112714245A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201911024145.4A priority Critical patent/CN112714245B/en
Publication of CN112714245A publication Critical patent/CN112714245A/en
Application granted granted Critical
Publication of CN112714245B publication Critical patent/CN112714245B/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
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The application discloses a control method of a flash lamp, an electronic device and a computer storage medium, wherein the control method comprises the steps of starting the flash lamp; acquiring the temperature of a flash lamp; and when the temperature of the flash lamp exceeds a preset temperature threshold value, sending safety prompt information. Through when the flash light is opened, acquire the temperature of flash light to send safe suggestion information when the temperature of flash light surpasss and predetermine the temperature threshold value, and then, can send the warning when the temperature of flash light is higher, avoid the higher flash light of temperature to scald the user, in order to promote user experience, in addition, can also avoid the higher flash light contact inflammables of temperature and cause the conflagration, take place dangerously, promote electronic equipment's security performance.

Description

Flash lamp control method, electronic device and computer storage medium
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a method for controlling a flash lamp, an electronic device, and a computer storage medium.
Background
Flash lamps of electronic devices are often used as flashlights or for supplementing light during video recording. If the user turns on the flash for a long time, it will cause heat concentration in the area where the flash is located, and the temperature in the area can reach 60 degrees or even higher. If the user inadvertently places the flash lamp, which has just been turned off, in a pocket, the user may scald himself. Or when the mobile phone is in a pocket, a quilt or a bag, the flash lamp is turned on by mistake, and when the flash lamp is turned on for a long time, serious consequences such as burning or fire disasters of a user can occur.
Disclosure of Invention
The application provides a control method of a flash lamp, which comprises the following steps: starting a flash lamp; acquiring the temperature of the flash lamp; and when the temperature of the flash lamp exceeds a preset temperature threshold value, sending safety prompt information.
The application also provides electronic equipment, which comprises a starting module, a temperature acquisition module and an execution module, wherein the starting module is used for starting the flash lamp; the temperature acquisition module is used for acquiring the temperature of the flash lamp; the execution module is used for sending out safety prompt information when the temperature of the flash lamp exceeds a preset temperature threshold value.
The present application also provides a computer storage medium for storing a computer program for implementing the control method as described above when executed by a processor.
The present application further provides an electronic device, which includes a processor and a memory connected to each other, where the memory stores a computer program, and the processor implements the steps of the control method as described above when executing the computer program.
This application embodiment is through when the flash light is opened, acquire the temperature of flash light to send safe suggestion information when the temperature of flash light surpasss and predetermine the temperature threshold value, and then, can send the warning when the temperature of flash light is higher, avoid the higher flash light of temperature to scald the user, with promoting user experience, in addition, can also avoid the higher flash light of temperature to contact inflammables and cause the conflagration, take place danger, promote electronic equipment's security performance.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without inventive efforts, wherein:
fig. 1 is a schematic structural diagram of an electronic device in an embodiment of the present application;
FIG. 2 is a flow chart illustrating a method for controlling a flash in an embodiment of the present application;
FIG. 3 is a schematic structural diagram of a temperature acquisition module in an embodiment of the present application;
FIG. 4 is a schematic flow chart of the temperature acquisition module in FIG. 3 acquiring the temperature of the flash lamp;
fig. 5 is a detailed flowchart of step S103 in fig. 2;
FIG. 6 is a schematic flow chart illustrating a process for determining a preset temperature threshold of a flash lamp according to an embodiment of the present application;
FIG. 7 is a schematic flow chart illustrating a process for determining a preset temperature threshold of a flash lamp according to another embodiment of the present application;
FIG. 8 is a schematic flow chart of a method for controlling a flash in another embodiment of the present application;
FIG. 9 is a schematic diagram of an embodiment of a computer storage medium provided herein;
fig. 10 is a schematic structural diagram of an embodiment of an electronic device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
The electronic equipment provided by the embodiment of the application comprises electronic equipment such as a smart phone, a tablet personal computer, intelligent wearable equipment, a digital audio and video player, an electronic reader, a handheld game machine and vehicle-mounted electronic equipment.
The terms "first" and "second" in this application are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise. All directional indications (such as up, down, left, right, front, and rear … …) in the embodiments of the present application are only used to explain the relative positional relationship between the components, the movement, and the like in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indication is changed accordingly. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. Such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein may be combined with other embodiments.
First, an electronic device 100 is provided in the present application, please refer to fig. 1, where fig. 1 is a schematic structural diagram of the electronic device in an embodiment of the present application. The electronic device 100 includes a start module 10, a temperature acquisition module 20, and an execution module 30. The starting module 10 is used for starting the flash lamp, the temperature acquiring module 20 is used for acquiring the temperature of the flash lamp, and the executing module 30 is used for sending out safety prompt information when the temperature of the flash lamp exceeds a preset temperature threshold.
The application further provides a control method of the flash lamp, which can be used for the electronic device 100, so that the electronic device 100 can control the working temperature of the flash lamp, and further avoid the phenomena of scalding or fire and the like due to overhigh temperature of the flash lamp. Referring to fig. 1 and 2, fig. 2 is a schematic flow chart illustrating a method for controlling a flash lamp according to an embodiment of the present disclosure. The control method of the flash lamp of the embodiment comprises the following steps:
step S101: and turning on the flash lamp.
Specifically, the turn-on module 10 is electrically connected to the flash for controlling the turn-on of the flash. When the electronic device 100 detects the turn-on command, the turn-on module 10 turns on the flash. The opening instruction is obtained by, for example, triggering a key on the electronic device 100, or by touching a display panel of the electronic device, or by voice input, and the embodiment of the present application is not particularly limited.
Step S102: the temperature of the flash lamp is acquired.
The temperature acquisition module 20 in the electronic device 100 is used for detecting and acquiring the temperature of the flash lamp. Since the thermistor is typically temperature sensitive, different resistance values are exhibited at different temperatures. Thus, the temperature of the thermistor can be obtained by calculating the resistance value of the thermistor.
In one embodiment, a thermistor is used to detect the temperature of the flash lamp. Specifically, the thermistor is correspondingly arranged at a position close to the flashlight, and the temperature of the flashlight can be conducted to the thermistor, so that the temperature of the flashlight can be obtained by detecting the temperature of the thermistor.
Specifically, as shown in fig. 3 and 4, fig. 3 is a schematic structural diagram of a temperature obtaining module in an embodiment of the present application, and fig. 4 is a schematic flow chart of obtaining the temperature of the flash lamp by the temperature obtaining module in fig. 3. The temperature acquisition module 20 may generally include a thermistor NTC, a voltage dividing resistor R1, and an analog-to-digital converter ADC. The first end of the divider resistor R1 is externally connected with a power supply Vcc, the second end of the divider resistor R1 is connected with the first end of the thermistor NTC, and the second end of the thermistor NTC is grounded. The first terminal of the analog-to-digital converter ADC is connected to the first terminal of the voltage dividing resistor R1, the second terminal of the analog-to-digital converter ADC is connected to the second terminal of the voltage dividing resistor R1 and the first terminal of the thermistor NTC, and the third terminal of the analog-to-digital converter ADC is connected to the second terminal of the thermistor NTC.
The step of acquiring the temperature of the flash lamp by the temperature acquisition module 20 includes:
step S201: and acquiring the resistance value of the thermistor NTC.
Step S202: and obtaining the temperature of the flash lamp according to the corresponding relation between the resistance value and the temperature.
Specifically, first, the voltage value V across the thermistor NTC may be detected by the analog/digital converter ADC NTC . The voltage value is then substituted into the following equation:
Figure BDA0002248147900000051
wherein R is (t) Represents the resistance value R of the NTC of the thermistor at the temperature t 1 Represents the resistance value, V, of the voltage dividing resistor R1 NTC Indicating the value of the voltage, V, of the NTC of the thermistor detected by the A/D converter ADC CC Denotes the voltage value of the power supply, T denotes the normal temperature of 25 DEG, TRepresents the actual temperature of the thermistor NTC, B is a material constant, and R represents the resistance value of the thermistor NTC at the normal temperature T.
In some embodiments, the temperature acquiring module 20 may acquire the temperature of the flash lamp in real time, so as to make the control more precise. In other embodiments, the temperature acquisition module 20 may also acquire the temperature of the flash lamp every other time period to save energy consumption. The temperature acquisition interval of the temperature acquisition module 20 is not specifically limited in the embodiment of the present application.
Further, referring to fig. 2, after the temperature obtaining module 20 obtains the temperature of the flash, the step S103 is executed to continue: and when the temperature of the flash lamp exceeds a preset temperature threshold value, sending safety prompt information.
Specifically, the execution module 30 sends out the safety prompt message when the temperature of the flash lamp exceeds a preset temperature threshold. The safety prompt information may be, for example, a warning frame popped up on a display panel of the electronic device 100, or a voice prompt information or a text prompt information for prompting that the temperature of the flash lamp is too high, or a vibration prompt information, and the like, and the embodiment of the present application does not specifically limit the type of the safety prompt information.
Specifically, referring to fig. 5, fig. 5 is a schematic flowchart of step S103 in fig. 2. In this embodiment, when the temperature of the flash lamp exceeds the preset temperature threshold, the step of sending the safety prompt message specifically includes:
step S301: a preset temperature threshold of the flash lamp is determined.
The execution module 30 first determines the magnitude of a preset temperature threshold of the flash. Specifically, a plurality of temperature thresholds with different sizes are preset in the execution module 30, and the execution module 30 selects one of the temperature thresholds as a preset temperature threshold corresponding to different control strategies. For example, the number of the preset temperature thresholds may include one, two, or more, and the embodiments of the present application are not particularly limited, and may be flexibly set as needed.
For example, in some embodiments, the number of the preset temperature thresholds may be one, and at this time, the execution module 30 determines the preset one temperature threshold as the preset temperature threshold of the flash.
In other embodiments, the number of the preset temperature thresholds may be at least two, and at this time, the execution module 30 selects one of the preset temperature thresholds according to the control strategy.
In this embodiment, the preset temperature threshold may include a first preset temperature, a second preset temperature and a third preset temperature.
Referring to fig. 6, fig. 6 is a schematic flow chart illustrating a process of determining a preset temperature threshold of a flash lamp according to an embodiment of the present application. In an embodiment, the step of determining the preset temperature threshold of the flash specifically includes:
step S401: whether the flash lamp is shielded or not is detected.
Specifically, as shown in fig. 1, the electronic device 100 further includes a distance sensor 40, and the distance sensor 40 is used for detecting whether the flash is shielded. The distance sensor 40 may be, for example, an infrared distance sensor, a radar, an ultrasonic distance sensor, or the like, and the embodiment of the present application is not particularly limited.
The distance sensor 40 detects whether a barrier exists within a preset distance from the flash to determine whether the flash is blocked. That is, when the distance sensor 40 detects that there is a shield within a preset distance from the flash, it is determined that the flash is shielded. When the distance sensor 40 detects that there is no obstruction within a preset distance from the flash, it is determined that the flash is not obstructed.
In one embodiment, the preset distance may be set to 3 cm. That is, when the distance sensor 40 detects that the distance between the shade and the flash lamp is within 0-3cm (including 3cm), it indicates that the flash lamp is shaded. When the distance sensor 40 detects that the distance between the barrier and the flash is greater than 3cm, it indicates that the flash is not blocked.
It is understood that in other embodiments, the preset distance may be flexibly set according to the requirement. For example, the preset distance may be set to 2cm, 2.2cm, 2.4cm, 2.6cm, 2.8cm, 2.9cm, 3.2cm, 3.4cm, 3.6cm, 3.8cm, or 4cm, etc., and the embodiment of the present application is not particularly limited.
If it is detected that the flash is blocked, step S402 is executed: the preset temperature threshold is set to a first preset temperature.
Specifically, if the distance sensor 40 detects that the flash is blocked, that is, the distance sensor 40 detects that a blocking object exists within a range of 3cm around the distance sensor 40, the execution module 30 uses the first preset temperature as the determined preset temperature threshold.
After the preset temperature threshold of the flash lamp is obtained through the above steps, the step S302 is continuously executed: and if the difference value between the acquired temperature of the flash lamp and the preset temperature threshold is greater than or equal to zero, sending safety prompt information.
Specifically, the temperature obtaining module 20 feeds back the obtained temperature of the flash lamp to the execution module 30, the execution module 30 compares the temperature fed back by the temperature obtaining module 20 with the preset temperature threshold determined in step S402, and obtains a difference between the temperature of the flash lamp and the preset temperature threshold, if the difference between the temperature of the flash lamp and the preset temperature threshold is greater than or equal to zero, it indicates that the temperature of the flash lamp exceeds the preset temperature threshold, and at this time, the execution module 30 sends out a safety prompt message to remind the user.
This embodiment is through being regarded as first preset temperature with less temperature value in the temperature threshold value that sets up in advance, can be so that under the condition that the flash light was sheltered from, when the temperature of flash light reached a less temperature, send safety prompt promptly to the temperature is higher when avoiding the flash light to be sheltered from, takes place condition such as scald or conflagration.
In some embodiments, the first preset temperature may be set to 48 ℃, for example, that is, when the distance sensor 40 detects that the flashlight is blocked by the blocking object and the temperature acquisition module 20 detects that the temperature of the flashlight exceeds 48 ℃, a safety prompt message is issued to remind the user. Of course, in other embodiments, the first preset temperature may also be set to 35 ℃, 38 ℃, 40 ℃, 43 ℃, 45 ℃, 47 ℃, 49 ℃, 51 ℃, 53 ℃, 55 ℃, 58 ℃ or 60 ℃ or the like, and the embodiments of the present application are not particularly limited.
Referring to fig. 6, if it is detected that the flash is not blocked, step S403 is executed: the preset temperature threshold is set to a second preset temperature.
Specifically, if the distance sensor 40 detects that the flash is not shielded, that is, the distance sensor 40 detects that no shielding object exists within a range of 3cm around the distance sensor 40, the execution module 30 uses the second preset temperature as the determined preset temperature threshold.
After the preset temperature threshold of the flash lamp is obtained through the above steps, the step S302 is continuously executed: and if the difference value between the acquired temperature of the flash lamp and the preset temperature threshold is greater than or equal to zero, sending safety prompt information.
Specifically, the temperature obtaining module 20 feeds back the obtained temperature of the flash lamp to the execution module 30, the execution module 30 compares the temperature fed back by the temperature obtaining module 20 with the preset temperature threshold determined in step S403, and obtains a difference between the temperature of the flash lamp and the preset temperature threshold, if the difference between the temperature of the flash lamp and the preset temperature threshold is greater than or equal to zero, it indicates that the temperature of the flash lamp exceeds the preset temperature threshold, and at this time, the execution module 30 sends out a safety prompt message to remind the user.
The temperature that this embodiment is greater than first preset temperature through the numerical value in the temperature threshold that will set up in advance is confirmed as preset temperature threshold, can be so that under the condition that the flash light is not sheltered from, when the temperature of flash light reaches a great temperature value, just send safe suggestion to avoid the flash light not yet accomplished by the use, closed promptly, influence user experience.
In an embodiment, the second preset temperature may be set to 60 ℃, for example, that is, when the distance sensor 40 detects that the flash lamp is not shielded by the shielding object and the temperature acquisition module 20 detects that the temperature of the flash lamp exceeds 60 ℃, a safety prompt message is sent to remind the user. Of course, in other embodiments, the second preset temperature may also be set to 45 ℃, 48 ℃, 50 ℃, 53 ℃, 55 ℃, 57 ℃, 59 ℃, 61 ℃, 63 ℃, 65 ℃, 68 ℃ or 70 ℃ or the like, and the embodiments of the present application are not particularly limited.
As shown in fig. 7, fig. 7 is a schematic flow chart of determining the preset temperature threshold of the flash lamp in another embodiment of the present application. In another embodiment, the step of determining the preset temperature threshold of the flash specifically includes:
step S501: whether the flash lamp is shielded or not is detected.
In this embodiment, step S501 is the same as step S401 in the above embodiment, please refer to the description in the above embodiment, and details are not repeated here.
Step S502: and if the flash lamp is detected not to be shielded, continuously acquiring the temperature of the flash lamp.
Specifically, if the distance sensor 40 detects that the flash is not blocked, the temperature acquisition module 20 continues to acquire the temperature of the flash.
Step S503: and when the temperature of the flash lamp exceeds a third preset temperature, detecting whether the flash lamp is shielded.
Specifically, when the temperature acquisition module 20 detects that the temperature of the flash lamp exceeds the third preset temperature, the distance sensor 40 detects whether the flash lamp is shielded. The third preset temperature may be greater than the first preset temperature and less than or equal to the second preset temperature.
In an embodiment, the third preset temperature may be set to 60 ℃, for example, that is, when the temperature obtaining module 20 detects that the temperature of the flash lamp exceeds 60 ℃, and the distance sensor 40 detects that the barrier moves from the far direction to the near direction of the flash lamp, a safety prompt message is sent to remind the user. Of course, in other embodiments, the third preset temperature may also be set to 45 ℃, 48 ℃, 50 ℃, 53 ℃, 55 ℃, 57 ℃, 59 ℃, 61 ℃, 63 ℃, 65 ℃, 68 ℃ or 70 ℃ or the like, and the embodiment of the present application is not particularly limited.
Step S504: and if the flash lamp is detected to be shielded, setting the preset temperature threshold value as a third preset temperature.
Specifically, if the distance sensor 40 detects that the flash is blocked, the execution module 30 sets the preset temperature threshold to a third preset temperature. The third preset temperature may be greater than the first preset temperature and less than or equal to the second preset temperature.
After the preset temperature threshold of the flash lamp is obtained through the above steps, the step S302 is continuously executed: and if the difference value between the acquired temperature of the flash lamp and the preset temperature threshold is greater than or equal to zero, sending safety prompt information.
Specifically, the temperature obtaining module 20 feeds back the obtained temperature of the flash lamp to the executing module 30, the executing module 30 compares the temperature fed back by the temperature obtaining module 20 with the preset temperature threshold determined in step S504, and obtains a difference value between the temperature of the flash lamp and the preset temperature threshold, if the difference value between the temperature of the flash lamp and the preset temperature threshold is greater than or equal to zero, it indicates that the temperature of the flash lamp exceeds the preset temperature threshold, and at this time, the executing module 30 sends out a safety prompt message to remind the user.
In this embodiment, the control method of the flash lamp specifically includes: when the distance sensor 40 detects that the flash lamp is not shielded and the temperature acquisition module 20 detects that the temperature of the flash lamp reaches the first preset temperature, the execution module 30 does not give a prompt and the flash lamp continues to be used, at this time, the temperature acquisition module 20 continues to acquire the temperature of the flash lamp until the temperature of the flash lamp reaches the third preset temperature, at this time, the distance sensor 40 detects whether the flash lamp is shielded in real time, if the flash lamp is detected to be shielded, the distance from a shielding object to the flash lamp is from far to near, at this time, a user is likely to approach the flash lamp with a hand, or place the electronic device 100 in a bag or a quilt, at this time, the execution module 30 sets the preset temperature threshold value to the third preset temperature, and can give a safety prompt when the user's hand approaches the flash lamp, or place the electronic device 100 in the bag or the quilt, and further, the user is reminded to avoid contacting with a flash lamp with high temperature or avoiding fire caused by fire on a bag or a quilt due to overhigh temperature of the electronic device 100.
Further, as shown in fig. 8, fig. 8 is a schematic flowchart of a control method of a flash lamp in another embodiment of the present application. In this embodiment, the control method of the flash includes the steps of: step S601: and turning on the flash lamp.
Step S602: the temperature of the flash lamp is acquired.
Step S603: and when the temperature of the flash lamp exceeds a preset temperature threshold value, sending safety prompt information.
Step S601 in this embodiment is the same as step S101 in the above embodiment, step S602 in this embodiment is the same as step S102 in the above embodiment, and step S603 in this embodiment is the same as step S103 in the above embodiment.
Step S604: and controlling the flash lamp to be turned off.
Specifically, the electronic device 100 further includes a shutdown module 50, and the shutdown module 50 is configured to control the flash to be turned off. When the execution module 30 detects that the temperature of the flash lamp exceeds the preset temperature threshold, the execution module 30 may send a safety prompt message, and at the same time, the shutdown module 50 may control the flash lamp to be shut down, so as to protect the flash lamp and prevent the temperature of the flash lamp from continuing to rise and causing danger.
Referring to fig. 9, fig. 9 is a schematic structural diagram of an embodiment of a computer storage medium provided in the present application. The computer storage medium 200 is used to store a computer program 210, and the computer program 210 is used to implement the control method of the flash in the above-described embodiments when executed by the processor.
The computer program 210 may be stored in a storage medium in the form of a software product and includes instructions for causing a network device (which may be a router, a personal computer, a server, or other network device) or a processor to perform all or part of the steps of the methods described in the embodiments of the present application.
The computer storage medium 200 may be a server, a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various media capable of storing program codes.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules or units is merely a logical division, and an actual implementation may have another division, 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.
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 embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
Referring to fig. 10, fig. 10 is a schematic structural diagram of an embodiment of an electronic device provided in the present application. The electronic device 300 comprises a processor 310 and a memory 320 connected to each other, the memory 320 stores a computer program, and the steps of the above embodiments are implemented when the processor 310 executes the computer program.
The memory 320 may be a codec. Processor 310 may also be referred to as a CPU (Central Processing Unit). The processor 310 may be an integrated circuit chip having signal processing capabilities. The processor 310 may also 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, discrete hardware components. A general purpose processor may be a microprocessor or the processor 310 may be any conventional processor or the like.
To sum up, this application embodiment is through when the flash light is opened, acquires the temperature of flash light to send safe suggestion information when the temperature of flash light surpasss and predetermine the temperature threshold value, and then, can send the warning when the temperature of flash light is higher, avoid the higher flash light of temperature to scald the user, in order to promote user experience, in addition, can also avoid the higher flash light of temperature to contact inflammables and cause the conflagration, take place dangerously, promote electronic equipment's security performance.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are intended to be included within the scope of the present application.

Claims (9)

1. A control method of a flash, characterized in that the control method comprises:
starting a flash lamp;
acquiring the temperature of the flash lamp;
when the temperature of the flash lamp exceeds a preset temperature threshold value, sending safety prompt information;
when the temperature of the flash lamp exceeds a preset temperature threshold, the step of sending safety prompt information comprises the following steps:
determining a preset temperature threshold of the flash lamp;
if the obtained difference value between the temperature of the flash lamp and the preset temperature threshold is greater than or equal to zero, sending safety prompt information;
the step of determining the preset temperature threshold of the flash lamp comprises:
detecting whether the flash lamp is shielded;
if the flash lamp is detected to be shielded, setting the preset temperature threshold value as a first preset temperature;
the step of determining the preset temperature threshold of the flash further comprises:
and if the flash lamp is not shielded, setting the preset temperature threshold value to be a second preset temperature, wherein the second preset temperature is higher than the first preset temperature.
2. The control method according to claim 1, wherein the step of determining the preset temperature threshold of the flash comprises:
detecting whether the flash lamp is shielded;
if the flash lamp is detected not to be shielded, continuously acquiring the temperature of the flash lamp;
when the temperature of the flash lamp exceeds a third preset temperature, detecting whether the flash lamp is shielded;
and if the flash lamp is detected to be shielded, setting the preset temperature threshold value as the third preset temperature.
3. The control method according to claim 1 or 2, wherein the step of detecting whether the flash is blocked includes:
and detecting whether a shelter exists within a preset distance from the flashlight.
4. The control method according to claim 3, characterized in that the preset distance is 3 cm.
5. The control method according to claim 1, wherein the step of acquiring the temperature of the flash lamp includes:
acquiring the resistance value of the thermistor;
and obtaining the temperature of the flash lamp according to the corresponding relation between the resistance value and the temperature.
6. The control method according to claim 1, characterized by further comprising: and controlling the flash lamp to be turned off.
7. An electronic device, comprising:
the starting module is used for starting the flash lamp;
the temperature acquisition module is used for acquiring the temperature of the flash lamp;
the execution module is used for sending out safety prompt information when the temperature of the flash lamp exceeds a preset temperature threshold value; and
the distance sensor is used for detecting whether the flash lamp is shielded or not, if the flash lamp is shielded, the preset temperature threshold value is set to be a first preset temperature, and if the flash lamp is not shielded, the preset temperature threshold value is set to be a second preset temperature, wherein the second preset temperature is larger than the first preset temperature.
8. A computer storage medium storing a computer program, characterized in that the computer program, when being executed by a processor, is adapted to carry out the control method according to any one of claims 1-6.
9. An electronic device, characterized in that the electronic device comprises a processor and a memory connected to each other, the memory storing a computer program, the processor, when executing the computer program, implementing the steps of the control method according to any one of claims 1-6.
CN201911024145.4A 2019-10-25 2019-10-25 Flash lamp control method, electronic device and computer storage medium Active CN112714245B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911024145.4A CN112714245B (en) 2019-10-25 2019-10-25 Flash lamp control method, electronic device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911024145.4A CN112714245B (en) 2019-10-25 2019-10-25 Flash lamp control method, electronic device and computer storage medium

Publications (2)

Publication Number Publication Date
CN112714245A CN112714245A (en) 2021-04-27
CN112714245B true CN112714245B (en) 2022-08-02

Family

ID=75540779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911024145.4A Active CN112714245B (en) 2019-10-25 2019-10-25 Flash lamp control method, electronic device and computer storage medium

Country Status (1)

Country Link
CN (1) CN112714245B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103167675B (en) * 2011-12-15 2016-08-24 海洋王照明科技股份有限公司 A kind of LED lamp with thermal-shutdown circuit
CN103607822B (en) * 2013-11-25 2015-08-12 广东欧珀移动通信有限公司 A kind of method of overheat protector of photoflash lamp of terminal and device
CN108449474A (en) * 2018-02-28 2018-08-24 维沃移动通信有限公司 A kind of control method and mobile terminal of mobile terminal flash lamp
CN212086323U (en) * 2020-06-04 2020-12-04 北京小米移动软件有限公司 Mobile terminal

Also Published As

Publication number Publication date
CN112714245A (en) 2021-04-27

Similar Documents

Publication Publication Date Title
KR102564469B1 (en) Method and apparatus for protecting a battery
BR112016001646B1 (en) METHOD AND DEVICE FOR PERMISSION MANAGEMENT.
CN106453911B (en) A kind of shutdown control method of mobile terminal, device and mobile terminal
EP3451137A1 (en) Application initialization method and mobile terminal
CN110416641B (en) Battery pack over-temperature protection control method and device, storage medium and controller
KR20180007085A (en) Electronic device supporting usb interface and control method for the usb interface
US9703360B2 (en) Electronic device and method for changing a working state of the electronic device
US9965086B2 (en) Method for enabling function module of terminal, and terminal device
CN110546592A (en) determining user presence based on sensed distance
US10359820B2 (en) Electronic device and control method thereof
CN110320815B (en) Control method and device for household appliance and electronic equipment
CN108759892B (en) Sensor calibration method, electronic device and computer-readable storage medium
US20120249411A1 (en) Screen protection system and method of an electronic device
CN105847763B (en) Monitoring method and device
KR20180090095A (en) Apparatus for detecting temperature and electronic device having the same
KR102027355B1 (en) Terminal, protective case and induction method
EP2765482A1 (en) Handheld electronic apparatus and operation method thereof
CN112714245B (en) Flash lamp control method, electronic device and computer storage medium
US20150015395A1 (en) Wireless security system
CN105745592B (en) Method and apparatus for power management in an electronic device by sensing presence and intent of an object
US9478116B2 (en) Electronic device with a warning function and method thereof
CN105204954B (en) A kind of method and terminal handling crash state
CN108801321B (en) Sensor calibration method, electronic device and computer-readable storage medium
TW201339787A (en) Communication terminal and control method thereof
US20160042636A1 (en) Electronic device and method for turning off alarm for 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
GR01 Patent grant
GR01 Patent grant