Temperature detection method and device and electronic equipment
By obtaining the stable temperature of multiple detection points and calculating the thermal source temperature, the problem of low detection efficiency in the existing technology has been solved, and a faster and accurate temperature detection is achieved.
Patent Information
- Application Number
- CN202411546916.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-01-21
AI Technical Summary
In the prior art, the temperature sensor needs to contact the heat source on the surface of the fingerprint detection module for too long, resulting in low detection efficiency.
By obtaining the stable temperature of multiple detection points in the electronic device, and based on the difference between the distance between the temperature and the detection point and the target position, the temperature of the heat source applied to the target position is calculated.
It achieves a faster and more accurate determination of the heat source temperature at the target position and improves the efficiency of temperature detection.
Smart Images

Figure CN119334497A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of temperature detection technology, and more specifically, to a temperature detection method, device and electronic equipment. Background Art
[0002] Today's electronic devices have more and more unlocking methods, among which fingerprint unlocking is one of the important unlocking methods. The user places his finger on the fingerprint recognition input area of the electronic device. If the fingerprint recognized by the electronic device matches the pre-stored fingerprint, the electronic device can be unlocked.
[0003] In the prior art, a temperature sensor is usually embedded in the surface of the fingerprint detection module, and the temperature sensor is used to measure for a long time to finally read the temperature of the heat source on the surface of the touch fingerprint detection module. However, this solution requires the heat source to be in contact with the surface of the touch fingerprint detection module for too long. Summary of the invention
[0004] An object of the embodiments of the present invention is to provide a temperature detection method, device and electronic equipment.
[0005] According to a first aspect of the present disclosure, there is provided a temperature detection method, comprising:
[0006] Acquire a first stable temperature of a first detection point in the electronic device and a second stable temperature of a second detection point in the electronic device;
[0007] The temperature of a heat source applied to the target position is determined based on a first distance between the first detection point and the target position of the electronic device, a second distance between the second detection point and the target position, the first stable temperature, and the second stable temperature.
[0008] Optionally, obtain the stable temperature of the target detection point, including:
[0009] Acquire multiple sample temperatures of the target detection point within a first time period;
[0010] Determining a stable temperature of the target detection point according to the multiple sampled temperatures;
[0011] The target detection point is the first detection point and / or the second detection point.
[0012] Optionally, determining the stable temperature of the target detection point according to the multiple sampling temperatures includes:
[0013] Acquire first mapping data reflecting a mapping relationship between a sampling temperature and a stable temperature;
[0014] A stable temperature of the target detection point is obtained according to the multiple sampled temperatures and the first mapping data.
[0015] Optionally, determining the temperature of the heat source applied to the target position according to a first distance between the first detection point and the target position of the electronic device, a second distance between the second detection point and the target position, the first stable temperature, and the second stable temperature includes:
[0016] determining a stable temperature of the target location according to the first distance, the second distance, the first stable temperature, and the second stable temperature;
[0017] The temperature of the heat source applied to the target location is determined based on the stabilized temperature of the target location.
[0018] Optionally, determining the stable temperature of the target position according to the first distance, the second distance, the first stable temperature, and the second stable temperature includes:
[0019] determining a distance difference between the first distance and the second distance;
[0020] determining a temperature difference between the first stabilized temperature and the second stabilized temperature;
[0021] A stable temperature of the target location is determined based on the distance difference and the temperature difference.
[0022] Optionally, determining the temperature of the heat source applied to the target location according to the stable temperature of the target location includes:
[0023] Acquire second mapping data reflecting a mapping relationship between the stable temperature and the heat source temperature;
[0024] The temperature of the heat source applied to the target location is obtained according to the stable temperature of the target location and the second mapping data.
[0025] Optionally, the heat source is a finger of a user; and the method further comprises:
[0026] Receiving a fingerprint unlocking operation triggered by a finger in a fingerprint input area, and acquiring the fingerprint of the finger; the target position is the center of the fingerprint input area;
[0027] When the temperature of the finger is within a preset temperature range and the fingerprint of the finger matches the pre-stored fingerprint, the electronic device is controlled to be unlocked.
[0028] Optionally, the heat source is a finger of a user; and the method further comprises:
[0029] The health of the user is monitored according to the temperature of the finger.
[0030] According to a second aspect of the present disclosure, there is provided a temperature detection device, comprising:
[0031] A detection point temperature acquisition module, used to acquire a first stable temperature of a first detection point in the electronic device and a second stable temperature of a second detection point in the electronic device;
[0032] A heat source temperature determination module is used to determine the temperature of the heat source applied to the target position based on a first distance between the first detection point and the target position of the electronic device, a second distance between the second detection point and the target position, the first stable temperature and the second stable temperature.
[0033] According to a third aspect of the present disclosure, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store a computer program, and the computer program is used to control the processor to execute the method described in the first aspect of the present disclosure.
[0034] Through the embodiments of the present disclosure, the temperature of the heat source applied to the target position can be determined more quickly and accurately based on the first distance between the first detection point and the target position, the second distance between the second detection point and the target position, the first stable temperature of the first detection point, and the second stable temperature of the second detection point.
[0035] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
[0037] Figure 1 is a block diagram of an example of a hardware configuration of an electronic device that can be used to implement an embodiment of the present invention;
[0038] Figure 2 is a flow chart of a temperature detection method provided according to an embodiment of the present disclosure;
[0039] Figure 3 is a schematic diagram of the heat conduction direction provided according to an embodiment of the present disclosure;
[0040] Figure 4 is a flow chart of an example of a temperature detection method provided according to an embodiment of the present disclosure;
[0041] Figure 5 is a flow chart of another example of a temperature detection method provided according to an embodiment of the present disclosure;
[0042] Figure 6is a block diagram of a temperature detection device provided according to an embodiment of the present disclosure;
[0043] Figure 7 is a block diagram of an electronic device provided according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0044] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.
[0045] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0046] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.
[0047] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0048] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0049] Figure 1 1 is a block diagram showing a hardware configuration of an electronic device 1000 that can implement an embodiment of the present disclosure.
[0050] The electronic device 1000 may be, for example, a mobile phone, a tablet computer, a vehicle, or other electronic product equipped with a fingerprint sensor. Figure 1As shown, the electronic device 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600, a speaker 1700, a microphone 1800, and the like. Among them, the processor 1100 may be a processor CPU, a microprocessor MCU, and the like. The memory 1200 includes, for example, a ROM (read-only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, and the like. The interface device 1300 includes, for example, a USB interface, a headphone interface, and the like. The communication device 1400 is, for example, capable of wired or wireless communication, and may specifically include Wifi communication, Bluetooth communication, 2G / 3G / 4G / 5G communication, and the like. The display device 1500 is, for example, a liquid crystal display screen, a touch display screen, and the like. The input device 1600 may include, for example, a touch screen, a keyboard, a somatosensory input, and the like. The user may input / output voice information through the speaker 1700 and the microphone 1800.
[0051] Figure 1 The electronic device shown is merely illustrative and does not in any way imply any limitation on the present disclosure, its application or use. In the embodiments of the present disclosure, the memory 1200 of the electronic device 1000 is used to store instructions, and the instructions are used to control the processor 1100 to operate to perform any one of the methods provided in the embodiments of the present disclosure. It should be understood by those skilled in the art that although Figure 1 In the electronic device 1000, multiple devices are shown, but the present disclosure may only involve some of the devices, for example, the electronic device 1000 only involves the processor 1100 and the storage device 1200. A technician can design instructions according to the scheme disclosed in the present disclosure. How instructions control the processor to operate is well known in the art, so it will not be described in detail here.
[0052] This embodiment provides a temperature detection method. The temperature detection method can be implemented by an electronic device, which can be Figure 1 The electronic device 1000 is shown. Figure 2 As shown, it includes steps S2100 to S2200 as shown below:
[0053] Step S2100, obtaining a first stable temperature of a first detection point in the electronic device and a second stable temperature of a second detection point in the electronic device.
[0054] In this embodiment, at least one temperature sensor may be provided in the electronic device, and the at least one temperature sensor may detect the temperature of the first detection point and the temperature of the second detection point.
[0055] In this embodiment, the stable temperature of any detection point may be the temperature of the detection point after the heat source is continuously applied to the target position of the electronic device for more than a set time. The set time may be set in advance according to the application scenario. After the heat source is continuously applied to the target position for more than a first set time, the temperature of any detection point is basically stable and will not increase as the heat source is continuously applied to the target position. For example, the first set time may be 20 minutes.
[0056] In one embodiment of the present disclosure, the first stable temperature and the second stable temperature may be temperatures collected by at least one temperature sensor after the heat source is continuously applied to the target position of the electronic device for more than a first set time.
[0057] In another embodiment of the present disclosure, the first detection point and / or the second detection point is used as the target detection point, and obtaining the stable temperature of the target detection point includes: obtaining multiple sampling temperatures of the target detection point within the first time period; and determining the stable temperature of the target detection point based on the multiple sampling temperatures.
[0058] The first time period may be a time period starting from the time when the heat source is applied to the target position and lasting for a second set time. The second set time is less than the first set time. The second set time may be set in advance according to the application scenario or specific needs. For example, the second set time may be 3 seconds.
[0059] In this embodiment, the temperature sensor may detect the temperature of the target detection point according to a set sampling frequency in the first time period to obtain a plurality of sampled temperatures of the target detection point in the first time period.
[0060] In one embodiment of the present disclosure, determining a stable temperature of a target detection point according to a plurality of sampling temperatures includes: acquiring first mapping data reflecting a mapping relationship between the sampling temperature and the stable temperature; and obtaining the stable temperature of the target detection point according to the plurality of sampling temperatures and the first mapping data.
[0061] The first mapping data may be a first mapping function, or a first comparison table, etc., which is not limited here.
[0062] For the first mapping function, the dependent variable of the first mapping function is the stable temperature, and the independent variable is the sampling temperature. In this way, by substituting multiple sampling temperatures into the first mapping function, the stable temperatures corresponding to the multiple sampling temperatures can be obtained as the stable temperatures of the target detection points.
[0063] For the first comparison table, the stable temperature corresponding to the multiple sampling temperatures can be found in the first comparison table as the stable temperature of the target detection point. If the sampling temperature cannot be directly found in the first comparison table, the values adjacent to the sampling temperature can be found, and the stable temperature corresponding to the multiple sampling temperatures can be obtained by interpolation according to the adjacent values and the stable temperatures corresponding to the adjacent values, as the stable temperature of the target detection point.
[0064] Step S2200, determining the temperature of the heat source applied to the target position according to the first distance between the first detection point and the target position of the electronic device, the second distance between the second detection point and the target position, the first stable temperature and the second stable temperature.
[0065] In this embodiment, the target position is the position where the heat source is applied in the electronic device, and the first distance is not equal to the second distance.
[0066] In one example, the target position may be the center of a fingerprint input area of an electronic device, so that when a user inputs a fingerprint of a finger to unlock the electronic device, the temperature of the finger can be obtained to control the electronic device according to the temperature of the finger.
[0067] When the heat source presses the target location, the heat conduction direction can be as follows Figure 3 As shown. Different materials have different thermal conductivity coefficients; the thermal conductivity coefficient of the same material is related to its structure, density, humidity, temperature, pressure and other factors. Different heat sources applied to the target position will cause the steady-state temperature of the first detection point and the second detection point to be different. Therefore, the temperature of the heat source applied to the target position is determined based on the first distance, the second distance, the first stable temperature and the second stable temperature.
[0068] Through the embodiments of the present disclosure, the temperature of the heat source applied to the target position can be determined more quickly and accurately based on the first distance between the first detection point and the target position, the second distance between the second detection point and the target position, the first stable temperature of the first detection point, and the second stable temperature of the second detection point.
[0069] In one embodiment of the present disclosure, determining the temperature of a heat source applied to a target position according to a first distance between a first detection point and a target position of an electronic device, a second distance between a second detection point and the target position, a first stable temperature, and a second stable temperature includes steps S2210 to S2220 as shown below:
[0070] Step S2210, determining a stable temperature of the target position according to the first distance, the second distance, the first stable temperature, and the second stable temperature.
[0071] In one embodiment of the present disclosure, determining the stable temperature of the target position according to the first distance, the second distance, the first stable temperature, and the second stable temperature includes steps S2211 to S2213 as shown below:
[0072] Step S2211, determining the distance difference between the first distance and the second distance.
[0073] Step S2212, determining the temperature difference between the first stable temperature and the second stable temperature.
[0074] Step S2213, determining the stable temperature of the target location according to the distance difference and the temperature difference.
[0075] In this embodiment, the stable temperature of the target position can be determined according to the following formula:
[0076]
[0077] Among them, T c represents the first stable temperature, T b Indicates the second stable temperature, T a represents the stable temperature at the target position, N represents the first distance, M represents the second distance, λ represents the thermal conductivity of the material, and K represents the set measurement constant.
[0078] Step S2220, determining the temperature of the heat source applied to the target location according to the stable temperature of the target location.
[0079] In one embodiment of the present disclosure, determining the temperature of the heat source applied to the target location according to the stable temperature of the target location includes steps S2221 to S2222 as shown below:
[0080] Step S2221, obtaining second mapping data reflecting the mapping relationship between the stable temperature and the heat source temperature.
[0081] In this embodiment, the second mapping data may be obtained in advance based on experimental data.
[0082] Step S2222, obtaining the temperature of the heat source applied to the target position according to the stable temperature of the target position and the second mapping data.
[0083] The second mapping data may be a second mapping function, or a second comparison table, etc., which is not limited here.
[0084] For the second mapping function, the dependent variable of the second mapping function is the heat source temperature, and the independent variable is the stable temperature. In this way, by substituting the stable temperature into the second mapping function, the heat source temperature corresponding to the stable temperature can be obtained as the temperature of the heat source applied to the target position.
[0085] For the second comparison table, the heat source temperature corresponding to the stable temperature can be found in the second comparison table as the temperature of the heat source applied to the target position. If the stable temperature cannot be directly found in the second comparison table, two values adjacent to the stable temperature can be found, and the heat source temperature corresponding to the stable temperature can be obtained by interpolation according to the two values and the heat source temperatures corresponding to the two values, as the temperature of the heat source applied to the target position.
[0086] In one embodiment of the present disclosure, the heat source is a user's finger; the method further includes: receiving a fingerprint unlocking operation triggered by the finger in a fingerprint input area, and obtaining the fingerprint of the finger; the target position is the center of the fingerprint input area; when the temperature of the finger is within a preset temperature range and the fingerprint of the finger matches the pre-stored fingerprint, controlling the electronic device to unlock.
[0087] The fingerprint unlocking operation triggered by the finger in the fingerprint input area may be an operation in which the finger starts pressing the fingerprint input area.
[0088] In this embodiment, when a fingerprint unlocking operation is received, steps S2100 to S2200 are performed to obtain the temperature of the finger. In the first period, the finger inputs the fingerprint in the fingerprint input area.
[0089] The temperature of the human skin surface is about 33°C, and the temperature of the human skin surface will fluctuate with the temperature of the external environment. Therefore, in the embodiment of the present invention, a preset temperature range of 30°C-36°C can be input into the electronic device. If the temperature of the finger is within the preset temperature range, the acquired fingerprint of the finger is matched with the pre-stored fingerprint. If the temperature of the finger is not within the preset temperature range, the finger that triggers fingerprint unlocking may be abnormal. For example, a malicious user copies the acquired fingerprint of the user on a prop similar to a finger, and the prop does not have the temperature of the human skin surface. At this time, the electronic device can prompt that the unlocking fails.
[0090] In this embodiment, the fingerprint unlocking method requires measuring the temperature of the finger, which prevents malicious users from copying the user's fingerprint on a finger-like prop after obtaining the user's fingerprint to unlock the electronic device, thereby preventing malicious users from illegally stealing important information of the user on the electronic device.
[0091] In one embodiment of the present disclosure, the heat source is a finger of a user; the method further includes: performing health monitoring on the user according to the temperature of the finger.
[0092] In this embodiment, when the temperature of the finger is not within a preset temperature range, the electronic device may be controlled to issue an alarm to prompt the user that the user is currently in an unhealthy state.
[0093] Furthermore, when the temperature of the finger is within a preset temperature range, the electronic device can be controlled to play voice information indicating that the user is currently in a healthy state, and / or display graphic information indicating that the user is currently in a healthy state, or the electronic device can be controlled not to respond to the result that the temperature of the finger is within a preset temperature range.
[0094] Figure 4 is a flowchart of an example of a temperature detection method provided according to an embodiment of the present disclosure.
[0095] like Figure 4 As shown, the temperature detection method may include the following steps:
[0096] Step S4001, receiving a fingerprint unlocking operation triggered by a finger in a fingerprint input area, obtaining the fingerprint of the finger, multiple sampling temperatures of a first detection point in a first period of time, and multiple sampling temperatures of a second detection point in the first period of time.
[0097] Step S4002, determining a first stable temperature of the first detection point according to a plurality of sampled temperatures of the first detection point in a first time period; and determining a second stable temperature of the second detection point according to a plurality of sampled temperatures of the second detection point in the first time period.
[0098] Step S4003, determining a stable temperature of the target position according to a first distance between the first detection point and the target position in the fingerprint input area, a second distance between the second detection point and the target position, the first stable temperature, and the second stable temperature.
[0099] Step S4004, determining the temperature of the finger applied to the target position according to the stable temperature of the target position.
[0100] Step S4005, determine whether the temperature of the finger is within a preset temperature range, if yes, execute step S4006; if no, end.
[0101] Step S4006: Match the acquired fingerprint of the finger with the pre-stored fingerprint.
[0102] Figure 5 is a flowchart of an example of a temperature detection method provided according to an embodiment of the present disclosure.
[0103] like Figure 5 As shown, the temperature detection method may include the following steps:
[0104] Step S5001, receiving a fingerprint unlocking operation triggered by a finger in a fingerprint input area, obtaining the fingerprint of the finger, multiple sampling temperatures of a first detection point in a first period of time, and multiple sampling temperatures of a second detection point in the first period of time.
[0105] Step S5002, determining a first stable temperature of the first detection point according to a plurality of sampled temperatures of the first detection point in a first time period; and determining a second stable temperature of the second detection point according to a plurality of sampled temperatures of the second detection point in the first time period.
[0106] Step S5003, determining the stable temperature of the target position according to the first distance between the first detection point and the target position in the fingerprint input area, the second distance between the second detection point and the target position, the first stable temperature and the second stable temperature.
[0107] Step S5004, determining the temperature of the finger applied to the target position according to the stable temperature of the target position.
[0108] Step S5005: Match the acquired fingerprint of the finger with the pre-stored fingerprint.
[0109] Step S5006: When the fingerprint of the finger matches the pre-stored fingerprint, the electronic device is controlled to unlock.
[0110] Step S5007, monitoring the user's health based on the temperature of the finger.
[0111] This embodiment also provides a temperature detection device, such as Figure 6 As shown, the temperature detection device 6000 may include a detection point temperature acquisition module 6100 and a heat source temperature determination module 6200 .
[0112] The detection point temperature acquisition module 6100 is used to acquire a first stable temperature of a first detection point in the electronic device and a second stable temperature of a second detection point in the electronic device.
[0113] The heat source temperature determination module 6200 is used to determine the temperature of the heat source applied to the target position based on a first distance between the first detection point and the target position of the electronic device, a second distance between the second detection point and the target position, the first stable temperature and the second stable temperature.
[0114] In one embodiment of the present disclosure, obtaining a stable temperature of a target detection point includes:
[0115] Acquire multiple sample temperatures of the target detection point within a first time period;
[0116] A stable temperature of the target detection point is determined according to the multiple sample temperatures.
[0117] The target detection point is the first detection point and / or the second detection point.
[0118] In one embodiment of the present disclosure, determining the stable temperature of the target detection point according to the multiple sampling temperatures includes:
[0119] Acquire first mapping data reflecting a mapping relationship between a sampling temperature and a stable temperature;
[0120] A stable temperature of the target detection point is obtained according to the multiple sampled temperatures and the first mapping data.
[0121] In one embodiment of the present disclosure, the heat source temperature determination module 6200 is specifically used to:
[0122] determining a stable temperature of the target location according to the first distance, the second distance, the first stable temperature, and the second stable temperature;
[0123] The temperature of the heat source applied to the target location is determined based on the stabilized temperature of the target location.
[0124] In one embodiment of the present disclosure, determining the stable temperature of the target location according to the first distance, the second distance, the first stable temperature, and the second stable temperature includes:
[0125] determining a distance difference between the first distance and the second distance;
[0126] determining a temperature difference between the first stabilized temperature and the second stabilized temperature;
[0127] A stable temperature of the target location is determined based on the distance difference and the temperature difference.
[0128] In one embodiment of the present disclosure, determining the temperature of the heat source applied to the target location according to the stable temperature of the target location includes:
[0129] Acquire second mapping data reflecting a mapping relationship between the stable temperature and the heat source temperature;
[0130] The temperature of the heat source applied to the target location is obtained according to the stable temperature of the target location and the second mapping data.
[0131] In one embodiment of the present disclosure, the heat source is the user's finger; the heat source temperature determination module 6200 further includes:
[0132] A module for receiving a fingerprint unlocking operation triggered by a finger in a fingerprint input area and acquiring the fingerprint of the finger; the target position is the center of the fingerprint input area;
[0133] A module for controlling the unlocking of the electronic device when the temperature of the finger is within a preset temperature range and the fingerprint of the finger matches a pre-stored fingerprint.
[0134] In one embodiment of the present disclosure, the heat source is the user's finger; the heat source temperature determination module 6200 further includes:
[0135] A module for monitoring the health of a user based on the temperature of the finger.
[0136] This embodiment provides an electronic device 7000, such as Figure 7 As shown, it includes a processor 7100 and a memory 7200, the memory 7200 is used to store a computer program, and the processor 7100 is used to run the computer program to enable the method described in any embodiment of the present disclosure to be executed.
[0137] The above embodiments mainly focus on describing the differences from other embodiments, but it should be clear to those skilled in the art that the above embodiments can be used alone or in combination with each other as needed.
[0138] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments, but it should be clear to those skilled in the art that the above embodiments can be used alone or in combination with each other as needed. In addition, for the device embodiment, since it corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the corresponding part of the method embodiment. The system embodiment described above is merely illustrative, and the modules described as separate components may or may not be physically separated.
[0139] The present invention may be an apparatus, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.
[0140] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical compression device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0141] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0142] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present invention.
[0143] Various aspects of the present invention are described herein with reference to the flow charts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flow chart and / or block diagram and the combination of each box in the flow chart and / or block diagram can be implemented by computer-readable program instructions.
[0144] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0145] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0146] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a part of a module, a program segment or an instruction, and a part of the module, a program segment or an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0147] Embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present invention is defined by the appended claims.
Claims
1. A temperature detection method, characterized in that: include: Acquire a first stable temperature of a first detection point in the electronic device and a second stable temperature of a second detection point in the electronic device; The temperature of a heat source applied to the target position is determined based on a first distance between the first detection point and the target position of the electronic device, a second distance between the second detection point and the target position, the first stable temperature, and the second stable temperature.
2. The method according to claim 1, characterized in that: Obtain a stable temperature at the target detection point, including: Acquire multiple sample temperatures of the target detection point within a first time period; Determining a stable temperature of the target detection point according to the multiple sampled temperatures; The target detection point is the first detection point and / or the second detection point.
3. The method according to claim 2, characterized in that The step of determining the stable temperature of the target detection point according to the multiple sampled temperatures comprises: Acquire first mapping data reflecting a mapping relationship between a sampling temperature and a stable temperature; A stable temperature of the target detection point is obtained according to the multiple sampled temperatures and the first mapping data.
4. The method according to claim 1, characterized in that: The step of determining the temperature of the heat source applied to the target position according to a first distance between the first detection point and the target position of the electronic device, a second distance between the second detection point and the target position, the first stable temperature, and the second stable temperature comprises: determining a stable temperature of the target location according to the first distance, the second distance, the first stable temperature, and the second stable temperature; The temperature of the heat source applied to the target location is determined based on the stabilized temperature of the target location.
5. The method according to claim 4, characterized in that The step of determining the stable temperature of the target location according to the first distance, the second distance, the first stable temperature, and the second stable temperature includes: determining a distance difference between the first distance and the second distance; determining a temperature difference between the first stabilized temperature and the second stabilized temperature; A stable temperature of the target location is determined based on the distance difference and the temperature difference.
6. The method according to claim 4, characterized in that The step of determining the temperature of the heat source applied to the target location according to the stable temperature of the target location comprises: Acquire second mapping data reflecting a mapping relationship between the stable temperature and the heat source temperature; The temperature of the heat source applied to the target location is obtained according to the stable temperature of the target location and the second mapping data.
7. The method according to claim 1, characterized in that The heat source is a finger of a user; and the method further comprises: Receiving a fingerprint unlocking operation triggered by the finger in the fingerprint input area, and acquiring the fingerprint of the finger; the target position is the center of the fingerprint input area; When the temperature of the finger is within a preset temperature range and the fingerprint of the finger matches the pre-stored fingerprint, the electronic device is controlled to be unlocked.
8. The method according to claim 1, characterized in that The heat source is a finger of a user; the method further comprises: The health of the user is monitored according to the temperature of the finger.
9. A temperature detection device, characterized in that: include: A detection point temperature acquisition module, used to acquire a first stable temperature of a first detection point in the electronic device and a second stable temperature of a second detection point in the electronic device; A heat source temperature determination module is used to determine the temperature of the heat source applied to the target position based on a first distance between the first detection point and the target position of the electronic device, a second distance between the second detection point and the target position, the first stable temperature and the second stable temperature.
10. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory is used to store a computer program, and the computer program is used to control the processor to execute the method according to any one of claims 1 to 8.