A method, device and terminal device for measuring body temperature
By obtaining the theoretical value at the ambient temperature and the collected value of the temperature sensor, and using the pre-stored conversion relationship to calculate the body temperature of the human body, the problem of the thermopile being affected by the ambient temperature when measuring the body temperature is solved, and the measurement accuracy is improved.
Patent Information
- Application Number
- CN202210884431.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-25
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2042-07-25
AI Technical Summary
When measuring the body temperature of the thermopile, it is susceptible to the ambient temperature, resulting in a decrease in measurement accuracy.
By obtaining the theoretical value of the target temperature at the current ambient temperature and combining the collected value of the temperature sensor in the current environment, the pre-stored conversion relationship is used to calculate the body temperature.
This method can adapt to anthropometric measurements at different ambient temperatures and improves the measurement accuracy of human body temperature.
Smart Images

Figure CN115265838B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of body temperature measurement, and in particular relates to a body temperature measurement method, a measurement device and a terminal device. Background Art
[0002] Body temperature measurement is a common examination method for diagnosing diseases. There are three types of temperature measurement: oral temperature measurement, underarm temperature measurement and anal temperature measurement. Among them, the thermopile is a pyroelectric infrared sensor, which is a device composed of thermocouples. At present, it has been widely used as a temperature detection sensor in the fields of ear thermometers or radiation thermometers.
[0003] However, the measurement value of the thermopile is easily affected by the ambient temperature, which in turn affects the accuracy of measuring human body temperature. This is a technical problem that needs to be solved urgently. Summary of the invention
[0004] In view of this, the embodiments of the present invention provide a body temperature measurement method, a measurement device, a terminal device and a computer-readable storage medium to solve the technical problem that the measurement value of the thermopile is easily affected by the ambient temperature, thereby affecting the accuracy of measuring human body temperature.
[0005] A first aspect of an embodiment of the present invention provides a method for measuring body temperature, comprising:
[0006] Obtain a theoretical value corresponding to the target temperature under the current ambient temperature; the theoretical value refers to an expected value corresponding to the target temperature collected by the temperature sensor under theoretical conditions;
[0007] Acquire the temperature sensor and collect the current value corresponding to the human body temperature under the current ambient temperature;
[0008] The human body temperature is calculated according to the current value, the theoretical value and a pre-stored conversion relationship; the pre-stored conversion relationship refers to the relationship between each temperature change of 1 degree and the value change collected by the temperature sensor.
[0009] Further, the theoretical value includes a first theoretical value and a second theoretical value;
[0010] The step of obtaining a theoretical value corresponding to the target temperature under the current ambient temperature includes:
[0011] Calculating the current ambient temperature according to the resistance value of the thermistor;
[0012] Obtain a first theoretical value corresponding to the first target temperature and a second theoretical value corresponding to the second target temperature at the current ambient temperature; the first theoretical value and the second theoretical value refer to the expected values corresponding to the first target temperature or the second target temperature collected by the temperature sensor under theoretical conditions.
[0013] Furthermore, the step of calculating the human body temperature according to the current value, the theoretical value and the pre-stored conversion relationship includes:
[0014] Calculating a first difference between the current value and the theoretical value;
[0015] Calculating an initial temperature according to the first difference corresponding to the theoretical value and the pre-stored conversion relationship;
[0016] The human body temperature is calculated according to the initial temperature and the current ambient temperature.
[0017] Furthermore, the step of calculating the human body temperature according to the initial temperature and the current ambient temperature comprises:
[0018] Acquire a mapping relationship between the human body temperature and different initial temperatures and different current ambient temperatures;
[0019] The human body temperature is calculated according to the mapping relationship, the initial temperature and the current ambient temperature.
[0020] Further, when the theoretical value includes a first theoretical value and a second theoretical value, the step of calculating the human body temperature according to the current value, the theoretical value and a pre-stored conversion relationship includes:
[0021] calculating a second difference between the current value and the first theoretical value;
[0022] calculating a third difference between the current value and the second theoretical value;
[0023] Calculating a first initial temperature according to the second difference corresponding to the theoretical value and the pre-stored conversion relationship;
[0024] Calculating a second initial temperature according to the third difference corresponding to the second theoretical value and the pre-stored conversion relationship;
[0025] The human body temperature is calculated according to the first initial temperature, the second initial temperature and the current ambient temperature.
[0026] Furthermore, before the step of obtaining the theoretical value corresponding to the target temperature under the current ambient temperature, the method further includes:
[0027] Acquire a first actual value collected by the temperature sensor at the first target temperature and a second actual value collected at the second target temperature;
[0028] Acquire a first theoretical value corresponding to the first target temperature, and acquire a second theoretical value corresponding to the second target temperature;
[0029] Calculate a conversion coefficient between a sampled value and a theoretical value according to the first theoretical value, the second theoretical value, the first actual value and the second actual value; the sampled value refers to an actual value collected by the temperature sensor during a measurement phase; the theoretical value refers to an expected value collected by the temperature sensor under theoretical conditions;
[0030] The first difference and / or the second difference is used as a compensation value; the first difference refers to the difference between the first theoretical value and the first actual value, and the second difference refers to the difference between the second theoretical value and the second actual value; wherein the conversion coefficient and the compensation value are used to calibrate the sampling values collected by the temperature sensor to obtain the current value.
[0031] Further, the step of calculating a conversion coefficient between a sampled value and a theoretical value according to the first theoretical value, the second theoretical value, the first actual value and the second actual value comprises:
[0032] Substituting the first theoretical value, the second theoretical value, the first actual value and the second actual value into formula 1 to obtain the conversion coefficient;
[0033] The formula 1 is as follows:
[0034]
[0035] Among them, K represents the conversion coefficient, A1 represents the first actual value, A2 represents the second actual value, B1 represents the first theoretical value, and B2 represents the second theoretical value.
[0036] A second aspect of an embodiment of the present invention provides a device for measuring body temperature, including:
[0037] A first acquisition unit is used to acquire a theoretical value corresponding to the target temperature at the current ambient temperature; the theoretical value refers to an expected value corresponding to the target temperature acquired by the temperature sensor under theoretical conditions;
[0038] A second acquisition unit is used to acquire the current value corresponding to the human body temperature collected by the temperature sensor under the current ambient temperature;
[0039] A calculation unit is used to calculate the human body temperature according to the current value, the theoretical value and a pre-stored conversion relationship; the pre-stored conversion relationship refers to the relationship between each temperature change of 1 degree and the value change collected by the temperature sensor.
[0040] A third aspect of an embodiment of the present invention provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the first aspect when executing the computer program.
[0041] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
[0042] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: the present invention obtains the theoretical value corresponding to the target temperature under the current ambient temperature; the theoretical value refers to the expected value corresponding to the target temperature collected by the temperature sensor under theoretical conditions; obtains the current value corresponding to the human body temperature collected by the temperature sensor under the current ambient temperature; calculates the human body temperature according to the current value, the theoretical value and the pre-stored conversion relationship; the pre-stored conversion relationship refers to the relationship between the change of 1 degree in temperature and the change in the value collected by the temperature sensor. Due to the above scheme, the theoretical value corresponding to the target temperature under the current ambient temperature is used as a reference, and the current value is converted and processed through the pre-stored conversion relationship, so it can adapt to the measurement of the human body under different ambient temperatures, thereby improving the measurement accuracy of the human body temperature. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0044] Figure 1 A schematic flow chart of a method for measuring body temperature provided by the present invention is shown;
[0045] Figure 2 A specific schematic flow chart of step 103 in a method for measuring body temperature provided by the present invention is shown;
[0046] Figure 3 A specific schematic flow chart of step 103 in a method for measuring body temperature provided by the present invention is shown;
[0047] Figure 4 A schematic flow chart of another method for measuring body temperature provided by the present application is shown;
[0048] Figure 5 A schematic diagram of a body temperature measuring device provided by the present invention is shown;
[0049] Figure 6 It is a schematic diagram of a terminal device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0050] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.
[0051] First, the present invention provides a method for measuring body temperature. Figure 1 , Figure 1 FIG. 1 is a schematic flow chart of a method for measuring body temperature provided by the present invention. Figure 1 As shown, the measurement method may include the following steps:
[0052] Step 101: Obtain a theoretical value corresponding to a target temperature under a current ambient temperature; the theoretical value refers to an expected value corresponding to the target temperature acquired by a temperature sensor under theoretical conditions.
[0053] Get the pre-stored VT table, which is used to store the theoretical values corresponding to different target temperatures under different ambient temperatures. Match the theoretical values corresponding to the target temperature under the current ambient temperature in the VT table. The theoretical values corresponding to different target temperatures in the VT table are pre-measured by precise temperature sensors.
[0054] The temperature sensor includes but is not limited to a thermal resistor sensor, a thermopile sensor, or a combination of multiple sensors. Preferably, since the thermopile is more suitable for measuring human body temperature, the present invention preferably uses the thermopile sensor as the temperature sensor.
[0055] Specifically, the number of target temperatures may be one or two. When the number of target temperatures is two, step 101 specifically includes the following steps:
[0056] Step 1011: Calculate the current ambient temperature according to the resistance value of the thermistor.
[0057] Since thermistors are more suitable for measuring ambient temperature, the present invention uses thermistors to measure ambient temperature. The current ambient temperature can be calculated based on the functional relationship between the resistance value of thermistors and temperature.
[0058] Step 1012: Obtain a first theoretical value corresponding to the first target temperature and a second theoretical value corresponding to the second target temperature under the current ambient temperature; the first theoretical value and the second theoretical value refer to the expected values corresponding to the first target temperature or the second target temperature collected by the temperature sensor under theoretical conditions.
[0059] It is understandable that the present invention may use a single target temperature or two target temperatures. Among them, the measurement accuracy of human body temperature calculated based on a single target temperature is relatively low, so the present invention preferably uses two target temperatures.
[0060] The present invention uses the first target temperature and the second target temperature as standard values, so that the human body temperature can be calculated based on the first target temperature and the second target temperature (the calculation process is detailed in the subsequent embodiments). The first target temperature and the second target temperature correspond to the first theoretical value and the second theoretical value, respectively. The first theoretical value corresponding to the first target temperature and the second theoretical value corresponding to the second target temperature at the current ambient temperature can be matched in the VT table.
[0061] Preferably, compared with human body temperature, 32 degrees and 37 degrees are more representative, so the present invention preferentially sets the first target temperature to 32 degrees and the second target temperature to 37 degrees.
[0062] Step 102: Acquire the temperature sensor and collect the current value corresponding to the human body temperature under the current ambient temperature.
[0063] Since the temperature sensor has different deviations at different temperatures, it is necessary to calibrate the sampled values (sampled values are voltage values) collected by the temperature sensor. The specific process is as follows: first, obtain the sampled values collected by the temperature sensor, and then convert the sampled values into theoretical values based on the pre-calculated conversion coefficients (wherein the conversion coefficients are used for the conversion between sampled values and theoretical values, the sampled values refer to the actual values collected by the temperature sensor during the measurement phase, and the theoretical values refer to the expected values collected by the temperature sensor under theoretical conditions), and finally, add the theoretical values to the compensation values to obtain the current value. For the acquisition principles of the conversion coefficients and compensation values, please refer to the subsequent embodiments.
[0064] Step 103: Calculate the human body temperature according to the current value, the theoretical value and a pre-stored conversion relationship; the pre-stored conversion relationship refers to the relationship between each temperature change of 1 degree and the value change collected by the temperature sensor.
[0065] In the present invention, step 103 provides two calculation methods, which are as follows:
[0066] Specifically, when the theoretical value is single, step 103 specifically includes steps 1031 to 1033. Figure 2 As shown, Figure 2 A specific schematic flow chart of step 103 in a method for measuring body temperature provided by the present invention is shown.
[0067] Step 1031: Calculate a first difference between the current value and the theoretical value.
[0068] Current value - theoretical value = first difference.
[0069] Step 1032: Calculate the initial temperature according to the first difference corresponding to the theoretical value and the pre-stored conversion relationship.
[0070] The pre-stored conversion relationship refers to the relationship between the temperature change of 1 degree and the value change collected by the temperature sensor. Taking the target temperature corresponding to the theoretical value as the base, calculate the change temperature corresponding to the first difference, add the target temperature and the change temperature to get the initial temperature.
[0071] Step 1033: Calculate the human body temperature according to the initial temperature and the current ambient temperature.
[0072] Specifically, step 1033 includes step A1 and step A2:
[0073] Step A1: Obtain the mapping relationship between the human body temperature and different initial temperatures and different current ambient temperatures.
[0074] Since the calculated initial temperature often has a certain deviation, in order to further improve the calculation accuracy, the present invention performs a matching calculation again to further improve the detection accuracy.
[0075] The mapping relationship is a mapping rule accumulated through multiple test results in actual application scenarios. When executing step A1, the mapping relationship can be directly obtained without performing other calculations.
[0076] Step A2: Calculate the human body temperature according to the mapping relationship, the initial temperature and the current ambient temperature.
[0077] According to the mapping relationship, the human body temperature corresponding to the initial temperature and the current ambient temperature is matched.
[0078] Specifically, when the theoretical value is two, step 103 specifically includes steps B1 to B5. Figure 3 As shown, Figure 3 A specific schematic flow chart of step 103 in a method for measuring body temperature provided by the present invention is shown.
[0079] Step B1: Calculate a second difference between the current value and the first theoretical value.
[0080] Current value - first theoretical value = second difference value.
[0081] Step B2: Calculate a third difference between the current value and the second theoretical value.
[0082] Current value - second theoretical value = third difference value.
[0083] Step B3: Calculate the first initial temperature according to the second difference corresponding to the first theoretical value and the pre-stored conversion relationship.
[0084] The pre-stored conversion relationship refers to the relationship between each temperature change of 1 degree and the value change collected by the temperature sensor. Taking the target temperature corresponding to the first theoretical value as the base, the change temperature corresponding to the second difference is calculated, and the target temperature and the change temperature are added to obtain the first initial temperature.
[0085] Step B4: Calculate the second initial temperature according to the third difference corresponding to the second theoretical value and the pre-stored conversion relationship.
[0086] The pre-stored conversion relationship refers to the relationship between each temperature change of 1 degree and the value change collected by the temperature sensor. Taking the target temperature corresponding to the second theoretical value as the base, the change temperature corresponding to the third difference is calculated, and the target temperature and the change temperature are added to obtain the second initial temperature.
[0087] Step B5: Calculate the human body temperature according to the first initial temperature, the second initial temperature and the current ambient temperature.
[0088] The average temperature between the first initial temperature and the second initial temperature is calculated. According to the mapping relationship, the average temperature is matched with the human body temperature corresponding to the current ambient temperature.
[0089] In this embodiment, the theoretical value corresponding to the target temperature under the current ambient temperature is obtained; the theoretical value refers to the expected value corresponding to the target temperature collected by the temperature sensor under theoretical conditions; the current value corresponding to the human body temperature collected by the temperature sensor under the current ambient temperature is obtained; the human body temperature is calculated according to the current value, the theoretical value and the pre-stored conversion relationship; the pre-stored conversion relationship refers to the relationship between the change in temperature by 1 degree and the change in the value collected by the temperature sensor. Due to the above scheme, the theoretical value corresponding to the target temperature under the current ambient temperature is used as a reference, and the current value is converted through the pre-stored conversion relationship, so it can adapt to the measurement of the human body under different ambient temperatures, thereby improving the measurement accuracy of the human body temperature.
[0090] Optionally, before step 101, the following steps 104 to 107 are also included. Figure 4 , Figure 4 A schematic flow chart of another method for measuring body temperature provided in the present application is shown.
[0091] Step 104: Acquire a first actual value collected by the temperature sensor at the first target temperature and a second actual value collected at the second target temperature.
[0092] The first actual value and the second actual value are voltage values measured by the temperature sensor.
[0093] Step 105: Obtain a first theoretical value corresponding to the first target temperature, and obtain a second theoretical value corresponding to the second target temperature.
[0094] Obtain a pre-stored VT table, which is used to store theoretical values corresponding to different target temperatures at different ambient temperatures, and match a first theoretical value corresponding to the first target temperature and a second theoretical value corresponding to the second target temperature at the current ambient temperature in the VT table.
[0095] Step 106: Calculate a conversion coefficient between a sampled value and a theoretical value based on the first theoretical value, the second theoretical value, the first actual value, and the second actual value; the sampled value refers to an actual value collected by the temperature sensor during a measurement phase; the theoretical value refers to an expected value collected by the temperature sensor under theoretical conditions.
[0096] The sampled value refers to the actual value (ie, voltage value) measured by the temperature sensor in step 102. The conversion coefficient calculation process is as follows:
[0097] Specifically, step 106 includes the following steps:
[0098] Substituting the first theoretical value, the second theoretical value, the first actual value and the second actual value into formula 1 to obtain the conversion coefficient;
[0099] The formula 1 is as follows:
[0100]
[0101] Among them, K represents the conversion coefficient, A1 represents the first actual value, A2 represents the second actual value, B1 represents the first theoretical value, and B2 represents the second theoretical value.
[0102] Step 107: Use the first difference and / or the second difference as compensation values; the first difference refers to the difference between the first theoretical value and the first actual value, and the second difference refers to the difference between the second theoretical value and the second actual value; wherein the conversion coefficient and the compensation value are used to calibrate the sample values collected by the temperature sensor to obtain the current value.
[0103] The compensation value may be the first difference or the second difference, or may be an average value between the first difference and the second difference.
[0104] The conversion coefficient and the compensation value are used to calibrate the original value in step 102 to obtain the current value.
[0105] Step 101: obtaining a theoretical value corresponding to a target temperature under a current ambient temperature; the theoretical value refers to an expected value corresponding to the target temperature acquired by a temperature sensor under theoretical conditions;
[0106] Step 102: Acquire the temperature sensor and collect the current value corresponding to the human body temperature under the current ambient temperature;
[0107] Step 103: Calculate the human body temperature according to the current value, the theoretical value and a pre-stored conversion relationship; the pre-stored conversion relationship refers to the relationship between each temperature change of 1 degree and the value change collected by the temperature sensor.
[0108] Among them, step 101 to step 103 in this embodiment are consistent with the previous embodiment, so they are not repeated here. Please refer to the previous embodiment for details.
[0109] In this embodiment, the conversion coefficient and the compensation value are calculated in advance and used to calibrate the original value in step 102, thereby further improving the measurement accuracy of the human body temperature.
[0110] like Figure 5 The present invention provides a device for measuring body temperature 5, see Figure 5 , Figure 5 A schematic diagram of a body temperature measuring device provided by the present invention is shown, Figure 5 A body temperature measuring device is shown, comprising:
[0111] The first acquisition unit 51 is used to acquire a theoretical value corresponding to the target temperature under the current ambient temperature; the theoretical value refers to an expected value corresponding to the target temperature acquired by the temperature sensor under theoretical conditions;
[0112] The second acquisition unit 52 is used to acquire the current value corresponding to the human body temperature collected by the temperature sensor under the current ambient temperature;
[0113] The calculation unit 53 is used to calculate the human body temperature according to the current value, the theoretical value and the pre-stored conversion relationship; the pre-stored conversion relationship refers to the relationship between each temperature change of 1 degree and the value change collected by the temperature sensor.
[0114] The present invention provides a body temperature measurement device, which obtains the theoretical value corresponding to the target temperature under the current ambient temperature; the theoretical value refers to the expected value corresponding to the target temperature collected by the temperature sensor under theoretical conditions; obtains the current value corresponding to the human body temperature collected by the temperature sensor under the current ambient temperature; calculates the human body temperature according to the current value, the theoretical value and the pre-stored conversion relationship; the pre-stored conversion relationship refers to the relationship between the temperature change of 1 degree and the value change collected by the temperature sensor. Due to the above scheme, the theoretical value corresponding to the target temperature under the current ambient temperature is used as a reference, and the current value is converted and processed through the pre-stored conversion relationship, so it can adapt to the measurement of the human body under different ambient temperatures, thereby improving the measurement accuracy of the human body temperature.
[0115] Figure 6 Schematic diagram of a terminal device provided by an embodiment of the present invention. Figure 6 As shown, a terminal device 6 of this embodiment includes: a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and executable on the processor 60, such as a body temperature measurement method program. When the processor 60 executes the computer program 62, the steps in each of the above-mentioned body temperature measurement method embodiments are implemented, such as Figure 1 Alternatively, when the processor 60 executes the computer program 62, the functions of each unit in the above-mentioned device embodiments are realized, for example, Figure 5 The functions of the units 51 to 53 are shown.
[0116] Exemplarily, the computer program 62 may be divided into one or more units, which are stored in the memory 61 and executed by the processor 60 to complete the present invention. The one or more units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 62 in the terminal device 6. For example, the computer program 62 may be divided into the following specific functions of each unit:
[0117] A first acquisition unit is used to acquire a theoretical value corresponding to the target temperature at the current ambient temperature; the theoretical value refers to an expected value corresponding to the target temperature acquired by the temperature sensor under theoretical conditions;
[0118] A second acquisition unit is used to acquire the current value corresponding to the human body temperature collected by the temperature sensor under the current ambient temperature;
[0119] A calculation unit is used to calculate the human body temperature according to the current value, the theoretical value and a pre-stored conversion relationship; the pre-stored conversion relationship refers to the relationship between each temperature change of 1 degree and the value change collected by the temperature sensor.
[0120] The terminal device includes but is not limited to a processor 60 and a memory 61. Those skilled in the art will appreciate that Figure 6 It is only an example of a terminal device 6 and does not constitute a limitation on the terminal device 6. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.
[0121] The processor 60 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0122] The memory 61 may be an internal storage unit of the terminal device 6, such as a hard disk or memory of the terminal device 6. The memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the terminal device 6. The memory 61 is used to store the computer program and other programs and data required by the roaming control device. The memory 61 may also be used to temporarily store data that has been output or is to be output.
[0123] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0124] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present invention. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0125] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0126] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0127] An embodiment of the present invention provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0128] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0129] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0130] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0131] In the embodiments provided by the present invention, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0132] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed over multiple network units.
[0133] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0134] It should also be understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0135] As used in the present specification and the appended claims, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to monitoring, depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is monitored" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is monitored" or "in response to monitoring [described condition or event]", depending on the context.
[0136] In addition, in the description of the present specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0137] References to "one embodiment" or "some embodiments" etc. described in the present specification mean that one or more embodiments of the present invention include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0138] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A method for measuring body temperature, characterized in that: The measuring method comprises: Acquire a first actual value collected by the temperature sensor at a first target temperature and a second actual value collected at a second target temperature; Acquire a first theoretical value corresponding to the first target temperature, and acquire a second theoretical value corresponding to the second target temperature; Calculate a conversion coefficient between a sampled value and a theoretical value according to the first theoretical value, the second theoretical value, the first actual value and the second actual value; the sampled value refers to an actual value collected by the temperature sensor during a measurement phase; the theoretical value refers to an expected value collected by the temperature sensor under theoretical conditions; The first difference and / or the second difference are used as compensation values; the first difference refers to the difference between the first theoretical value and the first actual value, and the second difference refers to the difference between the second theoretical value and the second actual value; wherein the conversion coefficient and the compensation value are used to calibrate the sampled values collected by the temperature sensor to obtain the current value; Obtain a theoretical value corresponding to the target temperature under the current ambient temperature; the theoretical value refers to an expected value corresponding to the target temperature collected by the temperature sensor under theoretical conditions; Acquire the temperature sensor and collect the current value corresponding to the human body temperature under the current ambient temperature; The human body temperature is calculated according to the current value, the theoretical value and a pre-stored conversion relationship; the pre-stored conversion relationship refers to the relationship between each temperature change of 1 degree and the value change collected by the temperature sensor.
2. The measuring method according to claim 1, characterized in that: The target temperature includes a first target temperature and a second target temperature; The step of obtaining a theoretical value corresponding to the target temperature at the current ambient temperature includes: Calculating the current ambient temperature according to the resistance value of the thermistor; Obtain a first theoretical value corresponding to the first target temperature and a second theoretical value corresponding to the second target temperature at the current ambient temperature; the first theoretical value and the second theoretical value refer to the expected values corresponding to the first target temperature or the second target temperature collected by the temperature sensor under theoretical conditions.
3. The measuring method according to claim 1, characterized in that: The step of calculating the human body temperature according to the current value, the theoretical value and the pre-stored conversion relationship comprises: Calculating a first difference between the current value and the theoretical value; Calculating an initial temperature according to the first difference corresponding to the theoretical value and the pre-stored conversion relationship; The human body temperature is calculated according to the initial temperature and the current ambient temperature.
4. The measuring method according to claim 3, wherein the step of calculating the human body temperature according to the initial temperature and the current ambient temperature comprises: Acquire a mapping relationship between the human body temperature and different initial temperatures and different current ambient temperatures; The human body temperature is calculated according to the mapping relationship, the initial temperature and the current ambient temperature.
5. The measuring method according to claim 2, when the theoretical value includes a first theoretical value and a second theoretical value, the step of calculating the human body temperature according to the current value, the theoretical value and a pre-stored conversion relationship comprises: calculating a second difference between the current value and the first theoretical value; calculating a third difference between the current value and the second theoretical value; Calculating a first initial temperature according to the second difference corresponding to the theoretical value and the pre-stored conversion relationship; Calculating a second initial temperature according to the third difference corresponding to the second theoretical value and the pre-stored conversion relationship; The human body temperature is calculated according to the first initial temperature, the second initial temperature and the current ambient temperature.
6. The measurement method according to claim 1, wherein the step of calculating a conversion coefficient between a sampled value and a theoretical value according to the first theoretical value, the second theoretical value, the first actual value and the second actual value comprises: Substituting the first theoretical value, the second theoretical value, the first actual value and the second actual value into formula 1 to obtain the conversion coefficient; The formula 1 is as follows: Among them, K represents the conversion coefficient, A1 represents the first actual value, A2 represents the second actual value, B1 represents the first theoretical value, and B2 represents the second theoretical value.
7. A device for measuring body temperature, characterized in that: The measuring device comprises: Acquire a first actual value collected by the temperature sensor at a first target temperature and a second actual value collected at a second target temperature; Acquire a first theoretical value corresponding to the first target temperature, and acquire a second theoretical value corresponding to the second target temperature; Calculate a conversion coefficient between a sampled value and a theoretical value according to the first theoretical value, the second theoretical value, the first actual value and the second actual value; the sampled value refers to an actual value collected by the temperature sensor during a measurement phase; the theoretical value refers to an expected value collected by the temperature sensor under theoretical conditions; The first difference and / or the second difference are used as compensation values; the first difference refers to the difference between the first theoretical value and the first actual value, and the second difference refers to the difference between the second theoretical value and the second actual value; wherein the conversion coefficient and the compensation value are used to calibrate the sampled values collected by the temperature sensor to obtain the current value; A first acquisition unit is used to acquire a theoretical value corresponding to the target temperature at the current ambient temperature; the theoretical value refers to an expected value corresponding to the target temperature acquired by the temperature sensor under theoretical conditions; A second acquisition unit is used to acquire the current value corresponding to the human body temperature collected by the temperature sensor under the current ambient temperature; A calculation unit is used to calculate the human body temperature according to the current value, the theoretical value and a pre-stored conversion relationship; the pre-stored conversion relationship refers to the relationship between each temperature change of 1 degree and the value change collected by the temperature sensor.
8. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Infrared temperature measurement processing method and system, intelligent equipment and storage medium
CN111765978A