Temperature processing method and device

文档序号:187915 发布日期:2021-11-02 浏览:19次 中文

阅读说明:本技术 一种温度处理方法及装置 (Temperature processing method and device ) 是由 不公告发明人 于 2021-07-27 设计创作,主要内容包括:本发明提供一种温度处理方法及装置,所述方法包括:获取各个通道的当前帧温度值;计算各个通道的当前帧温度值与上一帧温度值的差值的绝对值,获得每个通道的当前帧温度变化量;基于各个通道的当前帧温度变化量和第一阈值,确定各个第一有效通道;基于各个第一有效通道的多帧温度值,确定各个第二有效通道;根据各个第二有效通道的当前帧温度值,获得当前帧输出温度值。所述装置用于执行上述方法。本发明实施例提供的温度处理方法及装置,提高了温度采集的准确性。(The invention provides a temperature processing method and a temperature processing device, wherein the method comprises the following steps: acquiring a current frame temperature value of each channel; calculating the absolute value of the difference value between the current frame temperature value and the previous frame temperature value of each channel to obtain the current frame temperature variation of each channel; determining each first effective channel based on the current frame temperature variation of each channel and a first threshold; determining each second effective channel based on the multi-frame temperature values of each first effective channel; and obtaining the current frame output temperature value according to the current frame temperature value of each second effective channel. The device is used for executing the method. The temperature processing method and the temperature processing device provided by the embodiment of the invention improve the accuracy of temperature acquisition.)

1. A temperature processing method, comprising:

acquiring a current frame temperature value of each channel;

calculating the absolute value of the difference value between the current frame temperature value and the previous frame temperature value of each channel to obtain the current frame temperature variation of each channel;

determining each first effective channel based on the current frame temperature variation of each channel and a first threshold;

determining each second effective channel based on the multi-frame temperature values of each first effective channel;

and obtaining the current frame output temperature value according to the current frame temperature value of each second effective channel.

2. The method of claim 1, wherein determining each first active channel based on the current frame temperature variation and the first threshold for each channel comprises:

and if the temperature variation of the current frame of the channel is judged to be smaller than the first threshold, taking the channel as the first effective channel.

3. The method of claim 1, further comprising:

and if the temperature variation of the current frame of the channel is judged and obtained to be larger than or equal to the first threshold value, resetting the channel.

4. The method of claim 1, wherein obtaining the current frame output temperature value according to the current frame temperature value of each second active channel comprises:

and calculating the average value of the current frame temperature values of the second effective channels as the current frame output temperature value.

5. The method of claim 1, wherein obtaining the current frame output temperature value according to the current frame temperature value of each second active channel comprises:

determining each third effective channel based on the current frame temperature value of each second effective channel;

and obtaining the current frame output temperature value according to the current frame temperature value of each third effective channel.

6. The method of claim 5, wherein obtaining the current frame output temperature value according to the current frame temperature value of each third active channel comprises:

and calculating the average value of the current frame temperature values of the third effective channels as the current frame output temperature value.

7. The method of claim 5, wherein determining each third active channel based on the current frame temperature value for each second active channel comprises:

calculating the absolute value of the difference between the current frame temperature value of the second effective channel and the current frame temperature value of each of the other second effective channels to obtain a comparison value corresponding to the second effective channel;

and if the number of comparison values smaller than a third threshold in the comparison values corresponding to the second effective channel is judged to be larger than a preset value, taking the second effective channel as the third effective channel.

8. The method of claim 7, further comprising:

and if the number of comparison values smaller than the third threshold in the comparison values corresponding to the second effective channel is judged to be less than or equal to the preset value, resetting the second effective channel.

9. The method of claim 1, wherein determining each second active channel based on a plurality of frames of temperature values for each first active channel comprises:

obtaining the temperature variance of each first effective channel based on the variance of the temperature values of the latest preset number of frames of each first effective channel;

and determining each second effective channel based on the temperature variance of each first effective channel and a second threshold value.

10. The method of claim 9, wherein determining the respective second active channels based on the temperature variance of each first active channel and a second threshold comprises:

and if the temperature variance of the first effective channel is judged to be smaller than the second threshold, taking the first effective channel as the second effective channel.

11. The method of claim 9, further comprising:

and if the temperature variance of the first effective channel is judged to be larger than or equal to the second threshold value, resetting the first effective channel.

12. The method of claim 1, wherein determining each second active channel based on a plurality of frames of temperature values for each first active channel comprises:

obtaining an effective temperature value of each first effective channel based on the multi-frame temperature values of each first effective channel;

and if the effective temperature value of the first effective channel is judged to be larger than a fourth threshold value and smaller than a fifth threshold value, taking the first effective channel as a second effective channel.

13. The method of claim 12, wherein obtaining the valid temperature value for each first valid channel based on the plurality of frames of temperature values for each first valid channel comprises:

calculating the absolute value of the difference value between the current frame temperature value and the previous frame temperature value of the first effective channel to obtain an adjacent difference value;

if the proximity difference value is judged and obtained to be smaller than or equal to a sixth threshold value, taking the current frame temperature value of the first effective channel as the effective temperature value of the first effective channel;

and if the proximity difference value is judged to be larger than the sixth threshold value, taking the last frame temperature value of the first effective channel as the effective temperature value of the first effective channel.

14. The method of claim 12, wherein obtaining the valid temperature value for each first valid channel based on the plurality of frames of temperature values for each first valid channel comprises:

obtaining q frame temperature values of the first effective channel, wherein the q frame temperature values comprise current frame temperature values of the first effective channel; wherein q is an odd number of 3 or more;

and arranging the q-frame temperature values in a descending order, and acquiring the temperature value in the middle of the ordering as the effective temperature value of the first effective channel.

15. The method according to any one of claims 1 to 14, wherein the current frame temperature values for the respective channels are derived from different filtering algorithms.

16. The method of claim 15, further comprising:

and if the total number of the third effective channels is judged to be less than the set value, restarting the temperature sensors corresponding to the channels to collect the temperature again.

17. The method of claim 15, further comprising:

and if the temperature sensor still needs to be restarted after continuously restarting for the first preset number of times, prompting that the temperature sensor fails.

18. The method of any one of claims 1 to 14, wherein the current frame temperature values for each channel are derived from different temperature sensors.

19. The method of claim 18, further comprising:

and if the temperature sensor corresponding to the channel is continuously restarted for a second preset number of times, prompting the temperature sensor corresponding to the channel to have a fault.

20. A temperature processing apparatus, comprising:

the acquisition module is used for acquiring the current frame temperature value of each channel;

the calculation module is used for calculating the absolute value of the difference value between the current frame temperature value and the previous frame temperature value of each channel to obtain the current frame temperature variation of each channel;

the first determining module is used for determining each first effective channel based on the current frame temperature variation of each channel and a first threshold;

the second determining module is used for determining each second effective channel based on the multi-frame temperature values of each first effective channel;

and the obtaining module is used for obtaining the current frame output temperature value according to the current frame temperature value of each second effective channel.

21. The apparatus of claim 20, wherein the first determining module is specifically configured to:

and after judging that the temperature variation of the current frame of the channel is smaller than the first threshold, taking the channel as the first effective channel.

22. The apparatus of claim 20, further comprising a first reset module, wherein:

the first resetting module is configured to reset the channel after it is judged and obtained that the temperature variation of the current frame of the channel is greater than or equal to the first threshold.

23. The apparatus of claim 20, further comprising a second reset module, wherein:

and the second resetting module is used for resetting the first effective channel after judging that the temperature variance of the first effective channel is larger than or equal to the second threshold.

24. The apparatus of claim 20, wherein the obtaining module is specifically configured to:

and calculating the average value of the current frame temperature values of the second effective channels as the current frame output temperature value.

25. The apparatus of claim 20, wherein the obtaining module comprises:

the first determining unit is used for determining each third effective channel based on the current frame temperature value of each second effective channel;

and the first obtaining unit is used for obtaining the current frame output temperature value according to the current frame temperature value of each third effective channel.

26. The apparatus according to claim 25, wherein the first obtaining unit is specifically configured to:

and calculating the average value of the current frame temperature values of the third effective channels as the current frame output temperature value.

27. The apparatus of claim 25, wherein the first determining unit comprises a calculating subunit and a judging subunit, wherein:

the calculating subunit is configured to calculate an absolute value of a difference between a current frame temperature value of the second effective channel and a current frame temperature value of each of the other second effective channels, and obtain a comparison value corresponding to the second effective channel;

and the judging subunit is configured to, after judging that the number of comparison values smaller than a third threshold in the comparison value corresponding to the second effective channel is greater than a preset value, use the second effective channel as the third effective channel.

28. The apparatus of claim 20, wherein the second determining module comprises:

the second obtaining unit is used for obtaining the temperature variance of each first effective channel based on the variance of the temperature values of the latest preset number of frames of each first effective channel;

and the second determining unit is used for determining each second effective channel based on the temperature variance of each first effective channel and a second threshold value.

29. The apparatus according to claim 28, wherein the second determining unit is specifically configured to:

and if the temperature variance of the first effective channel is judged to be smaller than the second threshold, taking the first effective channel as the second effective channel.

30. The apparatus of claim 28, further comprising a third reset module, wherein:

and the third resetting module is configured to reset the second effective channel after judging that the number of comparison values smaller than the third threshold in the comparison value corresponding to the second effective channel is smaller than or equal to the preset value.

31. The apparatus of claim 20, wherein the second determining module comprises:

a third obtaining unit, configured to obtain an effective temperature value of each first effective channel based on the multi-frame temperature value of each first effective channel;

and the judging unit is used for taking the first effective channel as a second effective channel after judging that the effective temperature value of the first effective channel is larger than a fourth threshold and smaller than a fifth threshold.

32. The apparatus according to claim 31, wherein the third obtaining unit is specifically configured to:

calculating the absolute value of the difference value between the current frame temperature value and the previous frame temperature value of the first effective channel to obtain an adjacent difference value;

if the proximity difference value is judged and obtained to be smaller than or equal to a sixth threshold value, taking the current frame temperature value of the first effective channel as the effective temperature value of the first effective channel;

and if the proximity difference value is judged to be larger than the sixth threshold value, taking the last frame temperature value of the first effective channel as the effective temperature value of the first effective channel.

33. The apparatus according to claim 31, wherein the determining unit is specifically configured to:

obtaining q frame temperature values of the first effective channel, wherein the q frame temperature values comprise current frame temperature values of the first effective channel; wherein q is an odd number of 3 or more;

and arranging the q-frame temperature values in a descending order, and acquiring the temperature value in the middle of the ordering as the effective temperature value of the first effective channel.

34. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 19 are implemented when the computer program is executed by the processor.

35. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 19.

Technical Field

The invention relates to the technical field of data processing, in particular to a temperature processing method and device.

Background

At present, a temperature sensor is an essential component of a temperature detection system of an electric vehicle as an information source of the temperature detection system of the electric vehicle.

In the prior art, a temperature detection system of an electric vehicle usually adopts a thermocouple temperature sensor for temperature acquisition. In the actual temperature collection process, the method is easily influenced by some interference factors, such as: due to the influence of system lines and loads or external electromagnetic radiation, temperature measurement results are deviated, and the accuracy of temperature acquisition is reduced. In order to reduce the influence of the above interference factors on the temperature acquisition, a filter may be added to the circuit or a suitable filtering algorithm may be added to the system to filter the returned temperature value. However, if the temperature sensor is affected by the outside, the returned temperature value changes at a certain moment, and the error value is kept unchanged, the temperature value cannot be found and corrected through a filter or a filtering algorithm, so that the temperature value is always wrong, and the error of the temperature value may cause other faults of the electric vehicle.

Disclosure of Invention

In view of the problems in the prior art, embodiments of the present invention provide a temperature processing method and apparatus, which can at least partially solve the problems in the prior art.

In one aspect, the present invention provides a temperature processing method, including:

acquiring a current frame temperature value of each channel;

calculating the absolute value of the difference value between the current frame temperature value and the previous frame temperature value of each channel to obtain the current frame temperature variation of each channel;

determining each first effective channel based on the current frame temperature variation of each channel and a first threshold;

determining each second effective channel based on the multi-frame temperature values of each first effective channel;

and obtaining the current frame output temperature value according to the current frame temperature value of each second effective channel.

In another aspect, the present invention provides a temperature processing apparatus comprising:

the acquisition module is used for acquiring the current frame temperature value of each channel;

the calculation module is used for calculating the absolute value of the difference value between the current frame temperature value and the previous frame temperature value of each channel to obtain the current frame temperature variation of each channel;

the first determining module is used for determining each first effective channel based on the current frame temperature variation of each channel and a first threshold;

the second determining module is used for determining each second effective channel based on the multi-frame temperature values of each first effective channel;

and the obtaining module is used for obtaining the current frame output temperature value according to the current frame temperature value of each second effective channel.

In another aspect, the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the temperature processing method according to any of the above embodiments.

In yet another aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the temperature processing method according to any one of the above embodiments.

The temperature processing method and the temperature processing device provided by the embodiment of the invention can obtain the current frame temperature value of each channel, calculate the absolute value of the difference value between the current frame temperature value and the previous frame temperature value of each channel, obtain the current frame temperature variation of each channel, determine each first effective channel based on the current frame temperature variation and the first threshold of each channel, determine each second effective channel based on the multi-frame temperature value of each first effective channel, obtain the current frame output temperature value according to the current frame temperature value of each second effective channel, and improve the accuracy of temperature acquisition.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:

fig. 1 is a schematic flow chart of a temperature processing method according to a first embodiment of the present invention.

Fig. 2 is a schematic flow chart of a temperature processing method according to a second embodiment of the present invention.

Fig. 3 is a schematic flow chart of a temperature processing method according to a third embodiment of the invention.

Fig. 4 is a schematic flow chart of a temperature processing method according to a fourth embodiment of the invention.

Fig. 5 is a schematic flow chart of a temperature processing method according to a fifth embodiment of the present invention.

Fig. 6 is a schematic flow chart of a temperature processing method according to a sixth embodiment of the invention.

Fig. 7 is a schematic flow chart of a temperature processing method according to a seventh embodiment of the invention.

Fig. 8 is a schematic structural diagram of a temperature processing apparatus according to an eighth embodiment of the present invention.

Fig. 9 is a schematic structural view of a temperature processing apparatus according to a ninth embodiment of the present invention.

Fig. 10 is a schematic structural diagram of a temperature processing apparatus according to a tenth embodiment of the present invention.

Fig. 11 is a schematic structural diagram of a temperature processing apparatus according to an eleventh embodiment of the present invention.

Fig. 12 is a schematic structural view of a temperature processing apparatus according to a twelfth embodiment of the present invention.

Fig. 13 is a schematic structural view of a temperature processing apparatus according to a thirteenth embodiment of the present invention.

Fig. 14 is a schematic structural diagram of a temperature processing apparatus according to a fourteenth embodiment of the present invention.

Fig. 15 is a schematic structural diagram of a temperature processing apparatus according to a fifteenth embodiment of the present invention.

Fig. 16 is a schematic physical structure diagram of an electronic device according to a sixteenth embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.

In order to facilitate understanding of the technical solutions provided in the present application, the following first describes relevant contents of the technical solutions in the present application. In the embodiment of the invention, at least two temperature sensors or at least two filtering algorithms are needed for acquiring the temperature of the target object, and the at least two filtering algorithms correspond to the same temperature sensor. In the embodiment of the present invention, for convenience of description, one channel corresponds to one temperature sensor or one filtering algorithm. The temperature processing method provided by the embodiment of the invention can be used for a temperature detection system of an electric automobile and can also be applied to other scenes needing temperature acquisition, and the embodiment of the invention is not limited.

Fig. 1 is a schematic flow chart of a temperature processing method according to a first embodiment of the present invention, and as shown in fig. 1, the temperature processing method according to the embodiment of the present invention includes:

s101, obtaining a current frame temperature value of each channel;

specifically, the temperature processing device may acquire a current frame temperature value of each channel. If each channel corresponds to one temperature sensor, the temperature sensor corresponding to each channel can acquire the temperature in real time, the acquired temperature value is sent to the temperature processing device, and the temperature processing device takes the received temperature value acquired by the temperature sensor in real time as the current frame temperature value of the corresponding channel. If each channel corresponds to one filtering algorithm, different filtering algorithms correspond to the same temperature sensor, the temperature sensor can acquire temperature in real time to obtain a temperature acquisition signal, and the temperature detection device processes the temperature acquisition signal through different filtering algorithms to obtain a current frame temperature value of each channel. The number of the channels is at least two, and the channels are arranged according to actual needs, and the embodiment of the invention is not limited. The temperature processing device includes, but is not limited to, a single chip, a Digital Signal Processor (DSP), a Processor, and the like.

S102, calculating the absolute value of the difference value between the current frame temperature value and the previous frame temperature value of each channel to obtain the current frame temperature variation of each channel;

specifically, after obtaining the current frame temperature value of each channel, the temperature processing device calculates, for the current frame temperature value of each channel, an absolute value of a difference between the current frame temperature value of the channel and the previous frame temperature value of the channel, as a current frame temperature variation of the channel. The temperature processing means may obtain a temperature change amount of the current frame for each channel.

S103, determining each first effective channel based on the current frame temperature variation and the first threshold of each channel;

specifically, for the current frame temperature variation of each channel, the temperature processing apparatus may compare the current frame temperature variation of the channel with a first threshold, and determine whether the channel is a first effective channel according to a comparison result, where each first effective channel corresponds to only one channel. The temperature processing means may obtain respective first effective channels. The first threshold is set according to actual needs, and the embodiment of the present invention is not limited.

For example, the temperature processing apparatus compares the current frame temperature variation of the channel a with a first threshold, and if the current frame temperature variation of the channel a is smaller than the first threshold, which indicates that the temperature value obtained through the channel a is stable, the channel a may be used as the first effective channel. The temperature processing device compares the temperature variation of the current frame of the channel B with the first threshold, and if the temperature variation of the current frame of the channel B is larger than or equal to the first threshold, the temperature value obtained through the channel B is unstable, and the channel B can be reset to obtain the temperature value again.

S104, determining each second effective channel based on the multi-frame temperature values of each first effective channel;

specifically, the temperature processing apparatus may obtain a multi-frame temperature value of each first effective channel, and then determine each second effective channel based on the multi-frame temperature value of each first effective channel.

For example, the temperature processing device may obtain the temperature variance of each first effective channel according to the variance of the temperature values of the latest preset number of frames of each first effective channel, and then determine each second effective channel according to the temperature variance of each first effective channel and the second threshold.

And S105, obtaining a current frame output temperature value according to the current frame temperature value of each second effective channel.

Specifically, after obtaining each second effective channel, the temperature processing apparatus may obtain a current frame output temperature value according to a current frame temperature value of each second effective channel.

For example, the temperature processing device may calculate an average value of current frame temperature values of the respective second effective channels as the current frame output temperature value.

The temperature processing method provided by the embodiment of the invention can obtain the current frame temperature value of each channel, calculate the absolute value of the difference value between the current frame temperature value and the previous frame temperature value of each channel, obtain the current frame temperature variation of each channel, determine each first effective channel based on the current frame temperature variation and the first threshold of each channel, determine each second effective channel based on the multi-frame temperature value of each first effective channel, and obtain the current frame output temperature value according to the current frame temperature value of each second effective channel, thereby improving the accuracy of temperature acquisition.

On the basis of the foregoing embodiments, further, the determining, based on the current frame temperature variation of each channel and the first threshold, each first effective channel includes:

and if the temperature variation of the current frame of the channel is judged to be smaller than the first threshold, taking the channel as the first effective channel.

Specifically, the temperature processing apparatus compares the current frame temperature variation of the channel with the first threshold, and if the current frame temperature variation of the channel is smaller than the first threshold, the channel is regarded as the first effective channel, and the first effective channel corresponds to the channel. And the current frame temperature value of the channel is used as the current frame temperature value of the corresponding first effective channel, and the temperature sensor or the filtering algorithm corresponding to the channel is used as the temperature sensor or the filtering algorithm corresponding to the corresponding first effective channel.

On the basis of the foregoing embodiments, further, the temperature processing method provided in the embodiment of the present invention further includes:

and if the temperature variation of the current frame of the channel is judged and obtained to be larger than or equal to the first threshold value, resetting the channel.

Specifically, the temperature processing apparatus compares the current frame temperature variation of the channel with the first threshold, and if the current frame temperature variation of the channel is greater than or equal to the first threshold, which indicates that the temperature value obtained by the channel is unstable, the channel may be reset.

For example, if the channel corresponds to one temperature sensor, the temperature sensor corresponding to the channel may be restarted, so as to reset the channel and perform temperature collection again. If the channel corresponds to one filtering algorithm, the corresponding filtering algorithm is reset, and filtering is carried out again.

On the basis of the foregoing embodiments, further, the obtaining a current frame output temperature value according to a current frame temperature value of each second effective channel includes:

and calculating the average value of the current frame temperature values of the second effective channels as the current frame output temperature value.

Specifically, the current frame temperature value of each second effective channel is effective, and the temperature processing device may calculate an average value of the current frame temperature values of each second effective channel, and use the calculated average value as the current frame output temperature value.

For example, the temperature processing means is according to the formulaCalculating to obtain the output temperature value T of the current frameoutWherein, TkRepresenting the current frame temperature value of the kth second effective channel, k is a positive integer and is less than or equal to w, w represents the number of the second effective channels。

Fig. 2 is a schematic flow chart of a temperature processing method according to a second embodiment of the present invention, and as shown in fig. 2, based on the foregoing embodiments, further, the obtaining a current frame output temperature value according to a current frame temperature value of each second effective channel includes:

s201, determining each third effective channel based on the current frame temperature value of each second effective channel;

specifically, after determining each second effective channel, the temperature processing apparatus may compare, for each second effective channel, a current frame temperature value of the second effective channel with current frame temperature values of other second effective channels in pairs, and determine whether the second effective channel is a third effective channel according to a comparison result, where the third effective channel only corresponds to one second effective channel. The temperature processing means may obtain respective third effective channels.

S202, obtaining a current frame output temperature value according to the current frame temperature value of each third effective channel.

Specifically, after obtaining each third effective channel, the temperature processing apparatus may obtain a current frame output temperature value according to a current frame temperature value of each third effective channel.

For example, the temperature processing device may calculate an average value of the current frame temperature values of the respective third effective channels as the current frame output temperature value.

On the basis of the foregoing embodiments, further, the obtaining a current frame output temperature value according to the current frame temperature value of each third effective channel includes:

and calculating the average value of the current frame temperature values of the third effective channels as the current frame output temperature value.

Specifically, the current frame temperature value of each third effective channel is effective, and the temperature processing device may calculate an average value of the current frame temperature values of each third effective channel, and use the calculated average value as the current frame output temperature value. For example, the temperature processing means is according to the formulaCalculating to obtain the output temperature value T of the current frameoutWherein, TjAnd j is a positive integer and is less than or equal to m, and m represents the number of the third effective channels.

Fig. 3 is a schematic flow chart of a temperature processing method according to a third embodiment of the present invention, and as shown in fig. 3, based on the foregoing embodiments, further, the determining each third effective channel based on the current frame temperature value of each second effective channel includes:

s301, calculating the absolute value of the difference between the current frame temperature value of the second effective channel and the current frame temperature value of each of the other second effective channels to obtain a comparison value corresponding to the second effective channel;

specifically, the temperature processing device may calculate an absolute value of a difference between the current frame temperature value of the second effective channel and the current frame temperature value of each of the other second effective channels, to obtain a comparison value corresponding to the second effective channel, where it is understood that there may be one or more comparison values corresponding to the second effective channel. The temperature processing device may obtain a comparison value corresponding to each second effective channel.

For example, there are 3 second effective channels: the temperature control device comprises a second effective channel A, a second effective channel C and a second effective channel D, wherein the current frame temperature value of the second effective channel A is a, the current frame temperature value of the second effective channel C is C, and the current frame temperature value of the second effective channel D is D. And calculating the absolute value of the difference value between a and c as Δ ac, calculating the absolute value of the difference value between a and d as Δ ad, and calculating the comparison values corresponding to the second effective channel A as Δ ac and Δ ad. And calculating the absolute value of the difference between C and a to be delta ca, calculating the absolute value of the difference between C and d to be delta cd, and calculating the comparison values corresponding to the second effective channel C to be delta ca and delta cd. The absolute value of the difference between D and a is calculated to be Δ da, the absolute value of the difference between D and c is calculated to be Δ dc, and the comparison values corresponding to the second effective channel D are Δ da and Δ dc.

S302, if the number of comparison values smaller than a third threshold in the comparison values corresponding to the second effective channel is judged to be larger than a preset value, the second effective channel is used as the third effective channel.

Specifically, each comparison value in the comparison values corresponding to the second effective channel is compared with a third threshold, and the number of the comparison values smaller than the third threshold is counted, and if the number of the comparison values smaller than the third threshold is greater than a preset value, it is indicated that the current frame temperature value of the second effective channel is effective, the second effective channel is taken as the third effective channel. Each third effective channel only corresponds to one second effective channel, and the current frame temperature value of the third effective channel is equal to the current frame temperature value of the corresponding second effective channel. The third threshold is set according to actual needs, and the embodiment of the present invention is not limited. The preset value is set according to actual needs, and the embodiment of the invention is not limited.

For example, the preset value is 1. And if the Δ ac is smaller than the third threshold and the Δ ad is smaller than the third threshold, the number of comparison values smaller than the third threshold is 2 for the second effective channel a and is greater than a preset value 1, and then the second effective channel a is taken as a third effective channel. And comparing the comparison values corresponding to the second effective channel D with the third threshold values respectively, wherein if the comparison values are respectively delta da and delta dc smaller than the third threshold values and delta dc is larger than the third threshold values, the number of the comparison values smaller than the third threshold values for the second effective channel D is 1 and is equal to the preset value 1, and the second effective channel D is not taken as the third effective channel.

On the basis of the foregoing embodiments, further, the temperature processing method provided in the embodiment of the present invention further includes:

and if the number of comparison values smaller than the third threshold in the comparison values corresponding to the second effective channel is judged to be less than or equal to the preset value, resetting the second effective channel.

Specifically, each of the comparison values corresponding to the second valid channel is compared with a third threshold, and the number of the comparison values smaller than the third threshold is counted, and if the number of the comparison values smaller than the third threshold is smaller than or equal to the preset value, it is indicated that the current frame temperature value corresponding to the second valid channel is invalid, the second valid channel may be reset.

For example, if the second effective channel corresponds to one temperature sensor, the temperature sensor corresponding to the second effective channel may be restarted, so as to reset the second effective channel and perform temperature collection again. And if the second effective channel corresponds to one filtering algorithm, resetting the corresponding filtering algorithm and carrying out filtering again.

Fig. 4 is a schematic flow chart of a temperature processing method according to a fourth embodiment of the present invention, and as shown in fig. 4, on the basis of the foregoing embodiments, further, the determining, based on multiple frames of temperature values of each first active channel, each second active channel includes:

s401, obtaining the temperature variance of each first effective channel based on the variance of the temperature values of the latest preset number of frames of each first effective channel;

specifically, for each first effective channel, the temperature processing device records the latest preset number of frame temperature values of each first effective channel, and then calculates the variance of the latest preset number of frame temperature values of each first effective channel to obtain the temperature variance of each first effective channel. Wherein the latest preset number of frame temperature values of the first effective channel comprises a current frame temperature value of the first effective channel. The preset number is actually required to be set, and the embodiment of the invention is not limited.

For example, if the temperature processing device determines that the channel a is the first effective channel, the temperature value of the latest 20 frames of the first effective channel a is obtained, then the variance of the temperature value of the latest 20 frames of the first effective channel a is calculated according to the variance formula, and the calculated variance is used as the temperature variance of the first effective channel a. The variance equation is expressed as follows:

wherein δ represents the temperature variance of the first effective channel, p represents the average of the temperature values of the latest n frames of the first effective channel, and tiAnd the temperature value of the latest ith frame of the first effective channel is represented, i is a positive integer and is less than or equal to n, and n represents a preset number.

S402, determining each second effective channel based on the temperature variance of each first effective channel and a second threshold.

Specifically, for the temperature variance of each first effective channel, the temperature processing apparatus may compare the temperature variance of the first effective channel with a second threshold, and determine whether the first effective channel is a second effective channel according to a result of the comparison, where the second effective channel uniquely corresponds to one first effective channel. The temperature processing means may obtain respective second effective channels. The second threshold is set according to actual needs, and the embodiment of the present invention is not limited.

For example, the temperature processing device compares the temperature variance of the first effective channel a with a second threshold, and if the temperature variance of the first effective channel a is smaller than the second threshold, which indicates that the temperature value obtained through the first effective channel a is stable for a period of time, the first effective channel a may be regarded as the second effective channel. The temperature processing device compares the temperature variance of the first effective channel C with the second threshold, and if the temperature variance of the first effective channel C is greater than or equal to the second threshold, the temperature value obtained through the first effective channel C in a period of time is unstable, and the first effective channel C can be reset to obtain the temperature value again.

On the basis of the foregoing embodiments, further, the determining, based on the temperature variance of each first effective channel and the second threshold, each second effective channel includes:

and if the temperature variance of the first effective channel is judged to be smaller than the second threshold, taking the first effective channel as the second effective channel.

Specifically, the temperature processing device compares the temperature variance of the first effective channel with the second threshold, and if the temperature variance of the first effective channel is smaller than the second threshold, the first effective channel is regarded as the second effective channel, and the second effective channel corresponds to the first effective channel. And the current frame temperature value of the first effective channel is used as the current frame temperature value of the corresponding second effective channel, and the temperature sensor or the filtering algorithm corresponding to the first effective channel is used as the temperature sensor or the filtering algorithm corresponding to the corresponding second effective channel.

On the basis of the foregoing embodiments, further, the temperature processing method provided in the embodiment of the present invention further includes:

and if the temperature variance of the first effective channel is judged to be larger than or equal to the second threshold value, resetting the first effective channel.

Specifically, the temperature processing device compares the temperature variance of the first effective channel with the second threshold, and if the temperature variance of the first effective channel is greater than or equal to the second threshold, which indicates that the temperature value obtained by the first effective channel is unstable for a period of time, the first effective channel may be reset.

For example, if the first effective channel corresponds to one temperature sensor, the temperature sensor corresponding to the first effective channel may be restarted, so as to reset the first effective channel and perform temperature collection again. And if the first effective channel corresponds to one filtering algorithm, resetting the corresponding filtering algorithm and carrying out filtering again.

Fig. 5 is a schematic flow chart of a temperature processing method according to a fifth embodiment of the present invention, and as shown in fig. 5, on the basis of the foregoing embodiments, further, the determining, based on the multi-frame temperature values of each first active channel, each second active channel includes:

s501, obtaining an effective temperature value of each first effective channel based on multi-frame temperature values of each first effective channel;

specifically, the temperature processing apparatus may obtain a multi-frame temperature value of each first effective channel, and then obtain an effective temperature value of each first effective channel according to the multi-frame temperature value of each first effective channel.

And S502, if the effective temperature value of the first effective channel is judged to be larger than a fourth threshold value and smaller than a fifth threshold value, taking the first effective channel as a second effective channel.

And the temperature processing device compares the effective temperature value of the first effective channel with a fourth threshold value and a fifth threshold value respectively, and if the effective temperature value of the first effective channel is greater than the fourth threshold value and the effective temperature value of the first effective channel is less than the fifth threshold value, the first effective channel is taken as the second effective channel. The fourth threshold is set according to actual needs, and the embodiment of the present invention is not limited.

On the basis of the foregoing embodiments, further, the obtaining an effective temperature value of each first effective channel based on the multiple frames of temperature values of each first effective channel includes:

calculating the absolute value of the difference value between the current frame temperature value and the previous frame temperature value of the first effective channel to obtain an adjacent difference value; if the proximity difference value is judged and obtained to be smaller than or equal to a sixth threshold value, taking the current frame temperature value of the first effective channel as the effective temperature value of the first effective channel; and if the proximity difference value is judged to be larger than the sixth threshold value, taking the last frame temperature value of the first effective channel as the effective temperature value of the first effective channel.

Specifically, the temperature processing apparatus may calculate an absolute value of a difference between a current frame temperature value and a previous frame temperature value of the first effective channel as an adjacent difference, compare the adjacent difference with a sixth threshold, and if the adjacent difference is less than or equal to the sixth threshold, use the current frame temperature value of the first effective channel as the effective temperature value of the first effective channel. If the proximity difference is greater than the sixth threshold, then the last frame temperature value for the first active channel is taken as the active temperature value for the first active channel. The effective temperature value is determined through the process, and the pulse interference caused by accidental factors can be effectively overcome. The sixth threshold is set according to practical experience, and the embodiment of the present invention is not limited.

On the basis of the foregoing embodiments, further, the obtaining an effective temperature value of each first effective channel based on the multiple frames of temperature values of each first effective channel includes:

obtaining q frame temperature values of the first effective channel, wherein the q frame temperature values comprise current frame temperature values of the first effective channel; wherein q is an odd number of 3 or more; and arranging the q-frame temperature values in a descending order, and acquiring the temperature value in the middle of the ordering as the effective temperature value of the first effective channel.

Specifically, the temperature processing device may obtain q frame temperature values of the first effective channel, then sequence the q frame temperature values in descending order, and obtain a temperature value in the middle of the sequence from a sequencing result as the effective temperature value of the first effective channel. Wherein the q frame temperature values include a current frame temperature value of the first effective channel, and q is an odd number greater than or equal to 3. The effective temperature value is determined through the process, fluctuation interference caused by accidental factors can be effectively overcome, and a good filtering effect is achieved on the slowly-changing temperature.

For example, q is 5, the temperature processing device obtains 5 consecutive frame temperature values including a current frame temperature value of the first effective channel, then sorts the 5 frame temperature values in descending order, and the obtained sorting results are marked as a 1 st temperature value, a 2 nd temperature value, a 3 rd temperature value, a 4 th temperature value and a 5 th temperature value, wherein the 1 st temperature value is the largest, and the 5 th temperature value is the smallest, so that a middle sorting temperature value is obtained: the 3 rd temperature value is taken as an effective temperature value of the first effective channel.

Based on the above embodiments, further, the current frame temperature values of the channels are derived from different filtering algorithms.

Specifically, each channel corresponds to one filtering algorithm, and the filtering algorithm corresponding to each channel is different. Filtering is carried out by applying different filtering algorithms to the temperature acquisition signals of the same temperature sensor, so as to obtain the current frame temperature value of each channel. The filtering algorithm is selected according to actual needs, and the embodiment of the invention is not limited.

For example, three filtering algorithms, namely a median filtering algorithm, a nonlinear Kalman filtering algorithm and an adaptive inverse robust Kalman filtering algorithm, are selected to filter the temperature acquisition signals of the same temperature sensor, so as to obtain the current frame temperature values of the three channels.

On the basis of the foregoing embodiments, further, the temperature processing method provided in the embodiment of the present invention further includes:

and if the total number of the third effective channels is judged to be less than the set value, restarting the temperature sensors corresponding to the channels to collect the temperature again.

Specifically, under the condition that the current frame temperature values of the channels are derived from different filtering algorithms, the temperature processing device may count to obtain the total number of the third effective channels, then compare the total number of the third effective channels with a set value, and if the total number of the third effective channels is smaller than the set value, it indicates that the temperature acquisition signals of the temperature sensors corresponding to the channels are invalid, and may restart the temperature sensors corresponding to the channels to perform temperature acquisition again. Wherein, each channel corresponds to the same temperature sensor. The setting value is set according to actual needs, and the embodiment of the invention is not limited.

On the basis of the foregoing embodiments, further, the temperature processing method provided in the embodiment of the present invention further includes:

and if the temperature sensor is continuously restarted for a first preset number of times, prompting that the temperature sensor fails.

Specifically, under the condition that the current frame temperature values of each channel are derived from different filtering algorithms, if the temperature sensor is continuously restarted for a first preset number of times, the temperature sensor is indicated to have a fault, the temperature sensor cannot accurately acquire the temperature, and the fault of the temperature sensor can be prompted. The first preset number of times may be set to 3 times, and the first preset number of times is set according to actual needs, which is not limited in the embodiment of the present invention.

For example, the temperature sensor may be notified of a failure by an alarm message or an alarm sound.

On the basis of the above embodiments, further, the current frame temperature values of the respective channels are derived from different temperature sensors.

Specifically, each channel corresponds to one temperature sensor, each channel corresponds to a different temperature sensor, and the temperature acquisition objects of the temperature sensors corresponding to the channels are the same. And filtering the temperature acquisition signals of the corresponding temperature sensors by adopting the same filtering algorithm for each channel to obtain the current frame temperature value of each channel.

For example, 5 temperature sensors are provided to acquire the temperature of the same object.

On the basis of the foregoing embodiments, further, the temperature processing method provided in the embodiment of the present invention further includes:

and if the temperature sensor corresponding to the channel is continuously restarted for a second preset number of times, prompting the temperature sensor corresponding to the channel to have a fault.

Specifically, under the condition that the current frame temperature value of each channel is derived from different temperature sensors, the temperature processing device can count the continuous restarting times of the temperature sensor corresponding to each channel, and if the temperature sensor corresponding to the channel is continuously restarted for a second preset time, the temperature sensor corresponding to the channel fails to accurately acquire the temperature, and the temperature sensor corresponding to the channel can be prompted to fail. The second preset number of times may be set to 3 times, and the second preset number of times is set according to actual needs, which is not limited in the embodiment of the present invention.

The following describes a specific implementation process of the temperature processing method provided by the embodiment of the present invention by taking a processing process in which three different temperature sensors perform temperature acquisition on the same object as an example.

A temperature sensor 1, a temperature sensor 2 and a temperature sensor 3 are arranged in a temperature detection system, and the three temperature sensors acquire temperature values once every 100ms and send the temperature values to a temperature processing device. Channel 1 corresponds to temperature sensor 1, channel 2 corresponds to temperature sensor 2, and channel 3 corresponds to temperature sensor 3. The first threshold value is set to 1, the second threshold value is set to 1, and the third threshold value is set to 1.

The temperature data obtained by the temperature sensor 1, the temperature sensor 2, and the temperature sensor 3 and the related processing results are shown in table 1.

TABLE 1 temperature data and associated processing results

Fig. 6 is a schematic flow chart of a temperature processing method according to a sixth embodiment of the present invention, and as shown in fig. 6, a specific implementation flow of the temperature processing method according to the embodiment of the present invention is as follows:

firstly, obtaining a current frame temperature value of each channel. The temperature sensor 1, the temperature sensor 2 and the temperature sensor 3 collect temperature data and send the data to the temperature processing device. The temperature processing device can obtain the current frame temperature value of the channel 1, the current frame temperature value of the channel 2 and the current frame temperature value of the channel 3.

The temperature processing device sequentially acquires 5 frames of temperature data, and the acquired 1 st frame of data is as follows: the current frame temperature value of channel 1 is 18.52, the current frame temperature value of channel 2 is 18.55, and the current frame temperature value of channel 3 is 18.97. The 2 nd frame data is: the current frame temperature value for channel 1 is 19.28, the current frame temperature value for channel 2 is 19.19, and the current frame temperature value for channel 3 is 19.24. The 3 rd frame data, the 4 th frame data and the 5 th frame data are shown in table 1, and are not described herein again.

And secondly, calculating the temperature variation of the current frame of each channel. The temperature processing device calculates the absolute value of the difference value between the current frame temperature value and the previous frame temperature value of the three channels, and can obtain the current frame temperature variation of the three channels.

For the data of the 1 st frame, the temperature processing device respectively calculates the absolute value of the difference value between the current frame temperature value and the previous frame temperature value of the three channels, and obtains that the temperature variation of the channel 1 is 0.24, the temperature variation of the channel 2 is 0.49, and the temperature variation of the channel 3 is 0.16. The calculated temperature variation amounts of the three channels for the 2 nd frame data, the 3 rd frame data, the 4 th frame data and the 5 th frame data are shown in table 1, and are not described herein again. In the case of the 4 th frame data, since the temperature value of the channel 3 in the 3 rd frame data is invalid, the temperature value of the channel 3 of the 2 nd frame data is subtracted from the temperature value of the channel 3 of the 4 th frame data when the temperature variation of the channel 3 is calculated.

And thirdly, judging whether each channel is a first effective channel. The temperature processing device compares the temperature variation of the current frame of each channel with a first threshold value 1, if the temperature variation of the channel is less than 1, the channel is determined to be a first effective channel, and the fifth step is carried out; and if the temperature variation of the channel is greater than or equal to 1, the channel is not the first effective channel, and the fourth step is carried out.

For frame data 1, the temperature variation of channel 1 is 0.42, the temperature variation of channel 2 is 0.49, and the temperature variation of channel 3 is 0.16, which are all less than 1, so that channel 1, channel 2, and channel 3 are all regarded as the first effective channel, and may be labeled as first effective channel 1, first effective channel 2, and first effective channel 3. Similarly, it can be determined that channel 1, channel 2, and channel 3 are the first valid channels for frame 2 data, frame 4 data, and frame 5 data.

For the data of frame 3, the temperature variation of channel 1 is 0.08 and the temperature variation of channel 2 is 0.24, both of which are smaller than 1, and therefore, channel 1 and channel 2 are taken as the first effective channels; and the temperature variation of channel 3 is 20.19, which is greater than 1, so channel 3 is not the first active channel.

And fourthly, restarting the temperature sensor corresponding to the channel. The temperature processing device resets the channel in which the temperature variation of the current frame is greater than or equal to 1.

For the data of frame 3, the temperature variation of channel 3 is 20.19, which is greater than 1, and channel 3 is reset, i.e. the temperature sensor 3 corresponding to channel 3 is restarted.

For the 1 st frame data and the 2 nd frame data, the 4 th frame data and the 5 th frame data do not need to reset the channel.

And fifthly, calculating the temperature variance of each first effective channel. The temperature processing means obtains a temperature variance for each first active channel based on the variance of the temperature values of the last 20 frames of the respective first active channel.

For the data of the 1 st frame, the temperature processing device calculates the variance of the temperature values of the latest 20 frames of the three first effective channels respectively, and obtains that the temperature variance of the first effective channel 1 is 0.24, the temperature variance of the first effective channel 2 is 0.23, and the temperature variance of the first channel 3 is 0.26. The temperature variances of the three channels calculated from the 2 nd frame data, the 4 th frame data and the 5 th frame data are shown in table 1, and are not described herein again.

For the data of the 3 rd frame, the temperature processing device calculates the variance of the temperature values of the latest 20 frames of the two first effective channels, and obtains that the temperature variance of the first effective channel 1 is 0.23 and the temperature variance of the first effective channel 2 is 0.26.

And sixthly, judging whether each first effective channel is a second effective channel. The temperature processing device compares the temperature variance of each first effective channel with a second threshold value 1, if the temperature variance of the first effective channel is less than 1, the channel is determined to be a second effective channel, and the eighth step is carried out; if the temperature variance of the channel is greater than or equal to 1, the channel is not the second valid channel and the seventh step is entered.

For the frame data of 1 st, the temperature variance of the first effective channel 1 is 0.24, the temperature variance of the first effective channel 2 is 0.23, and the temperature variance of the first effective channel 3 is 0.26, which are all less than 1, so that the first effective channel 1, the first effective channel 2, and the first effective channel 3 are all used as the second effective channel, which can be labeled as the second effective channel 1, the second effective channel 2, and the second effective channel 3. Similarly, it can be determined that the first effective channel 1, the first effective channel 2, and the first effective channel 3 are all the second effective channels for the 2 nd frame data, the 4 th frame data, and the 5 th frame data.

For the data of frame 3, the temperature variance of the first effective channel 1 of 0.23 and the temperature variance of the first effective channel 2 of 0.26 are both smaller than 1, and therefore, the first effective channel 1 and the first effective channel 2 are taken as the second effective channel.

And seventhly, restarting the temperature sensor corresponding to the first effective channel. The temperature processing device resets the first effective channel, namely restarts the temperature sensor corresponding to the first effective channel so as to collect the temperature again.

And eighthly, calculating a comparison value corresponding to each second effective channel. The temperature processing device calculates the absolute value of the difference between the current frame temperature value of the second effective channel and the current frame temperature value of each of the other second effective channels, and obtains a comparison value corresponding to the second effective channel.

For the frame data of 1 st, the absolute value of the difference between the current frame temperature value 18.52 of the second effective channel 1 and the current frame temperature value 18.55 of the second effective channel 2 is calculated to be 0.03, the absolute value of the difference between the current frame temperature value 18.52 of the second effective channel 1 and the current frame temperature value 18.97 of the second effective channel 3 is calculated to be 0.45, and 0.03 and 0.45 are comparison values corresponding to the second effective channel 1. Similarly, the comparison values 0.03 and 0.42 for the second valid channel 2 and 0.04 and 0.05 for the second valid channel 3 can be calculated.

Similarly, for the 2 nd frame data, the 4 th frame data and the 5 th frame data, the comparison value corresponding to the second effective channel 1, the comparison value corresponding to the second effective channel 2 and the comparison value corresponding to the second effective channel 3 may be calculated respectively.

For the 3 rd frame data, a comparison value corresponding to the second effective channel 1 and a comparison value corresponding to the second effective channel 2 may be calculated.

And ninthly, judging whether each second effective channel is a third effective channel. And counting the number of comparison values smaller than the third threshold in the comparison value corresponding to the second effective channel by the temperature processing device, and if the number of comparison values smaller than the third threshold in the comparison value corresponding to the second effective channel is greater than a preset value 0, taking the second effective channel as the third effective channel, and then entering the eleventh step. And if the number of comparison values which are greater than or equal to the third threshold value in the comparison values corresponding to the second effective channel is equal to 0, entering a tenth step.

For the data of the 1 st frame, the comparison values 0.03 and 0.45 corresponding to the second effective channel 1 are both smaller than 1, the number of the comparison values smaller than 1 is 2 and larger than 0, and the second effective channel is taken as a third effective channel and is marked as a third effective channel 1. Similarly, it can be determined that the second effective channel 2 and the second effective channel 3 are third effective channels, and are respectively marked as a third effective channel 2 and a third effective channel 3.

Similarly, it can be determined that the second effective channel 1, the second effective channel 2, and the second effective channel 3 are all the third effective channels for the 2 nd frame data, the 4 th frame data, and the 5 th frame data.

Similarly, it can be determined that the second effective channel 1 and the second effective channel 2 are both the third effective channel for the 3 rd frame data.

And step ten, restarting the temperature sensor corresponding to the second effective channel. The temperature processing device resets the second effective channel, namely restarts the temperature sensor corresponding to the second effective channel so as to collect the temperature again.

And step eleven, obtaining the output temperature value of the current frame. The temperature processing device calculates the average value of the current frame temperature values of the third effective channels as the current frame output temperature value. Then returning to the first step again, and circulating to and fro.

For the data of the frame 1, calculating the average value of the current frame temperature value 18.52 of the third effective channel 1, the current frame temperature value 18.55 of the third effective channel 2 and the current frame temperature value 18.97 of the third effective channel 3 to obtain an average value 18.68, wherein the current frame output temperature value is 18.68.

Similarly, for the 2 nd frame data, the 4 th frame data and the 5 th frame data, the average value of the current frame temperature value of the third effective channel 1, the current frame temperature value of the third effective channel 2 and the current frame temperature value of the third effective channel 3 is respectively calculated as the current frame output temperature value, and the calculation result is detailed in table 1.

For the data of the frame 3, calculating the average value of the current frame temperature value 19.2 of the third effective channel 1 and the current frame temperature value 19.43 of the third effective channel 2 to obtain an average value 19.32, wherein the current frame output temperature value is 19.32.

The following describes a specific implementation process of the temperature processing method provided by the embodiment of the present invention by taking three different filtering algorithms as examples of processing processes of temperature acquisition signals acquired by the same temperature sensor.

A temperature sensor X is arranged in a temperature detection system, the temperature sensor X collects the temperature once every 100ms, temperature collection signals are obtained and sent to a temperature processing device, and the temperature processing device filters the temperature collection signals through three different filtering algorithms to obtain current frame temperature values of three channels. The three filtering algorithms are respectively a median filtering algorithm, a nonlinear Kalman filtering algorithm and an adaptive inverse robust Kalman filtering algorithm. The median filtering algorithm corresponds to a channel I, the nonlinear Kalman filtering algorithm corresponds to a channel II, and the adaptive anti-robust Kalman filtering algorithm corresponds to a channel III. The first threshold value is set to 1, the second threshold value is set to 1, and the third threshold value is set to 1.

The temperature values obtained by filtering the temperature acquisition information obtained by the temperature sensor X and the related processing results are shown in table 2.

TABLE 2 temperature values and associated processing results

Fig. 7 is a schematic flow chart of a temperature processing method according to a seventh embodiment of the present invention, and as shown in fig. 7, a specific implementation flow of the temperature processing method according to the embodiment of the present invention is as follows:

firstly, obtaining a current frame temperature value of each channel. The temperature sensor X sends the acquired temperature acquisition signal to the temperature processing device, and the temperature processing device filters the temperature acquisition signal through three filtering algorithms to respectively obtain a current frame temperature value of the channel I, a current frame temperature value of the channel II and a current frame temperature value of the channel III.

The temperature processing device sequentially acquires 5 frames of temperature data, and the acquired 1 st frame of data is as follows: the current frame temperature value of channel I is 25.84, the current frame temperature value of channel ii is 25.81, and the current frame temperature value of channel iii is 25.88. The 2 nd frame data, the 3 rd frame data, the 4 th frame data and the 5 th frame data are shown in table 2, and are not described herein again.

And secondly, calculating the temperature variation of the current frame of each channel. The temperature processing device calculates the absolute value of the difference value between the current frame temperature value and the previous frame temperature value of the three channels, and can obtain the current frame temperature variation of the three channels.

For the data of the 1 st frame, the temperature processing device respectively calculates the absolute value of the difference value between the current frame temperature value and the previous frame temperature value of the three channels, and obtains the temperature variation of the channel I as 0.06, the temperature variation of the channel II as 0.12 and the temperature variation of the channel III as 0.07. The calculated temperature variation amounts of the three channels for the 2 nd frame data, the 3 rd frame data, the 4 th frame data and the 5 th frame data are shown in table 2, and are not described herein again. For the 4 th frame data, since the temperature value of the channel II in the 3 rd frame data is invalid, when the temperature variation of the channel II is calculated, the temperature value of the channel II of the 4 th frame data is used for subtracting the temperature value of the channel II of the 2 nd frame data.

And thirdly, judging whether each channel is a first effective channel. The temperature processing device compares the temperature variation of the current frame of each channel with a first threshold value 1, if the temperature variation of the current frame of the channel is less than 1, the channel is determined to be a first effective channel, and the fifth step is carried out; if the temperature variation of the current frame of the channel is greater than or equal to 1, the channel is not the first effective channel, and the fourth step is entered.

For the data of frame 1, the temperature variation of channel I is 0.06, the temperature variation of channel ii is 0.12, and the temperature variation of channel iii is 0.07, which are all less than 1, so that channel I, channel ii, and channel iii are all regarded as the first effective channel, and can be marked as the first effective channel I, the first effective channel ii, and the first effective channel iii. Similarly, it can be determined that channel I, channel ii, and channel iii are the first valid channels for frame 2 data, frame 4 data, and frame 5 data.

For the data of frame 3, the temperature variation of channel I is 0.02 and the temperature variation of channel iii is 0.03, both of which are less than 1, so that channel I and channel iii are taken as the first effective channel; and the temperature variation of channel ii is 23.86, greater than 1, so channel ii is not the first active channel.

And fourthly, resetting a filtering algorithm corresponding to the channel. The temperature processing device resets the channel with the temperature variation of the current frame being greater than or equal to 1, namely, resets the filtering algorithm corresponding to the channel.

For the data of frame 3, if the temperature variation of channel ii is 23.86, which is greater than 1, channel ii is reset, i.e. the filtering algorithm corresponding to channel ii is restarted.

For the 1 st frame data and the 2 nd frame data, the 4 th frame data and the 5 th frame data do not need to reset the channel.

And fifthly, calculating the temperature variance of each first effective channel. The temperature processing means obtains a temperature variance for each first active channel based on the variance of the temperature values of the last 20 frames of the respective first active channel.

For the data of the 1 st frame, the temperature processing device calculates the variance of the temperature values of the latest 20 frames of the three first effective channels respectively, and obtains that the temperature variance of the first effective channel I is 0.62, the temperature variance of the first effective channel II is 0.43, and the temperature variance of the first effective channel III is 0.23. The temperature variances of the three channels calculated from the 2 nd frame data, the 4 th frame data and the 5 th frame data are shown in table 2, which is not described herein again.

For the data of the 3 rd frame, the temperature processing device calculates the variance of the temperature values of the latest 20 frames of the two first effective channels, and obtains that the temperature variance of the first effective channel I is 0.48 and the temperature variance of the first effective channel III is 0.35.

And sixthly, judging whether each first effective channel is a second effective channel. The temperature processing device compares the temperature variance of each first effective channel with a second threshold value 1, if the temperature variance of the first effective channel is less than 1, the channel is determined to be a second effective channel, and the eighth step is carried out; if the temperature variance of the channel is greater than or equal to 1, the channel is not the second valid channel and the seventh step is entered.

For the data of frame 1, the temperature variance of the first effective channel I is 0.48, the temperature variance of the first effective channel ii is 0.43, and the temperature variance of the first effective channel iii is 0.23, all of which are less than 1, so that the first effective channel I, the first effective channel ii, and the first effective channel iii are all used as the second effective channel, and can be marked as the second effective channel I, the second effective channel ii, and the second effective channel iii. Similarly, it can be determined that for the 2 nd frame data, the 4 th frame data and the 5 th frame data, the first effective channel I, the first effective channel ii and the first effective channel iii are all the second effective channels.

For the data of frame 3, the temperature variance of the first effective channel I of 0.48 and the temperature variance of the first effective channel iii of 0.35 are both smaller than 1, and therefore, the first effective channel I and the first effective channel iii are taken as the second effective channel.

And seventhly, resetting a filtering algorithm corresponding to the first effective channel. The temperature processing device resets the first effective channel, namely, resets the filtering algorithm corresponding to the first effective channel so as to carry out filtering again.

And eighthly, calculating a comparison value corresponding to each second effective channel. The temperature processing device calculates the absolute value of the difference between the current frame temperature value of the second effective channel and the current frame temperature value of each of the other second effective channels, and obtains a comparison value corresponding to the second effective channel.

For the data of the frame 1, calculating the absolute value of the difference between the current frame temperature value 25.84 of the second effective channel I and the current frame temperature value of the second effective channel ii as 25.81 as 0.03, calculating the absolute value of the difference between the current frame temperature value 25.84 of the second effective channel I and the current frame temperature value of the second effective channel iii as 25.88 as 0.04, and using 0.03 and 0.04 as comparison values corresponding to the second effective channel I. Similarly, the comparison values 0.03 and 0.07 for the second active channel ii and the comparison values 0.04 and 0.07 for the second active channel iii can be calculated.

Similarly, for the 2 nd frame data, the 4 th frame data and the 5 th frame data, the comparison value corresponding to the second effective channel I, the comparison value corresponding to the second effective channel ii and the comparison value corresponding to the second effective channel iii can be respectively calculated.

For the 3 rd frame data, a comparison value corresponding to the second effective channel I and a comparison value corresponding to the second effective channel iii can be calculated.

And ninthly, judging whether each second effective channel is a third effective channel. And counting the number of comparison values smaller than the third threshold in the comparison value corresponding to the second effective channel by the temperature processing device, and if the number of comparison values smaller than the third threshold in the comparison value corresponding to the second effective channel is greater than a preset value 0, taking the second effective channel as the third effective channel, and then entering the eleventh step. And if the number of comparison values which are greater than or equal to the third threshold value in the comparison values corresponding to the second effective channel is equal to 0, entering a tenth step.

For the 1 st frame data, the comparison values 0.03 and 0.04 corresponding to the second effective channel I are both smaller than 1, the number of the comparison values smaller than 1 is 2 and larger than 0, and the second effective channel is taken as a third effective channel and is marked as a third effective channel I. Similarly, the second effective channel ii and the second effective channel iii can be determined as third effective channels, and are respectively recorded as a third effective channel ii and a third effective channel iii.

Similarly, it can be determined that for the 2 nd frame data, the 4 th frame data and the 5 th frame data, the second effective channel I, the second effective channel ii and the second effective channel iii are all the third effective channels.

Similarly, it can be determined that for the 3 rd frame data, the second effective channel I and the second effective channel iii are both the third effective channel.

And step ten, resetting a filtering algorithm corresponding to the second effective channel. The temperature processing device resets the second effective channel, namely, resets the filtering algorithm corresponding to the second effective channel so as to carry out filtering again.

And step eleven, obtaining the output temperature value of the current frame. The temperature processing device calculates the average value of the current frame temperature values of the third effective channels as the current frame output temperature value. Then returning to the first step again, and circulating to and fro.

For the data of the frame 1, calculating the average value of the current frame temperature value 25.84 of the third effective channel I, the current frame temperature value 25.81 of the third effective channel II and the current frame temperature value 25.88 of the third effective channel III to obtain an average value 25.84, wherein the current frame output temperature value is 25.84.

Similarly, for the 2 nd frame data, the 4 th frame data and the 5 th frame data, the average value of the current frame temperature value of the third effective channel I, the current frame temperature value of the third effective channel ii and the current frame temperature value of the third effective channel iii is calculated respectively as the current frame output temperature value, and the calculation result is detailed in table 2.

And for the data of the 3 rd frame, calculating the average value of the current frame temperature value 25.79 of the third effective channel I and the current frame temperature value 25.8 of the third effective channel III to obtain an average value of 25.80, wherein the current frame output temperature value is 25.80.

According to the temperature processing method provided by the embodiment of the invention, through the design of the temperature acquisition redundancy function, whether the temperature values returned by a plurality of temperature sensors or obtained by processing a plurality of filtering algorithms are effective or not can be judged, and the accuracy of temperature acquisition is improved. If the temperature value is invalid, the temperature sensor can be restarted or the filtering algorithm can be automatically reset, and the collection or the processing can be carried out again to obtain the valid temperature value.

Fig. 8 is a schematic structural diagram of a temperature processing apparatus according to an eighth embodiment of the present invention, and as shown in fig. 8, the temperature processing apparatus according to the embodiment of the present invention includes an obtaining module 801, a calculating module 802, a first determining module 803, a second determining module 804, and an obtaining module 805, where:

the obtaining module 801 is configured to obtain a current frame temperature value of each channel; the calculating module 802 is configured to calculate an absolute value of a difference between a current frame temperature value and a previous frame temperature value of each channel, and obtain a current frame temperature variation of each channel; the first determining module 803 is configured to determine each first effective channel based on the current frame temperature variation of each channel and a first threshold; the second determining module 804 is configured to determine each second effective channel based on the multi-frame temperature values of each first effective channel; the obtaining module 805 is configured to obtain a current frame output temperature value according to the current frame temperature value of each second effective channel.

Specifically, the obtaining module 801 may obtain a current frame temperature value of each channel. If each channel corresponds to one temperature sensor, the temperature sensor corresponding to each channel can acquire the temperature in real time, the acquired temperature value is sent to the acquisition module 801, and the acquisition module 801 uses the received temperature value acquired by the temperature sensor in real time as the current frame temperature value of the corresponding channel. If each channel corresponds to one filtering algorithm, different filtering algorithms correspond to the same temperature sensor, the temperature sensor can acquire temperature in real time to obtain a temperature acquisition signal, and the acquisition module 801 processes the temperature acquisition signal through different filtering algorithms to obtain a current frame temperature value of each channel. The number of the channels is at least two, and the channels are arranged according to actual needs, and the embodiment of the invention is not limited.

After obtaining the current frame temperature value of each channel, for the current frame temperature value of each channel, the calculating module 802 calculates an absolute value of a difference between the current frame temperature value of the channel and the previous frame temperature value of the channel, as a current frame temperature variation of the channel. The calculation module 802 may obtain the current frame temperature variation of each channel.

For the current frame temperature variation of each channel, the first determining module 803 may compare the current frame temperature variation of the channel with a first threshold, and determine whether the channel is a first effective channel according to a comparison result, where each first effective channel corresponds to only one channel. The first determination module 803 may obtain respective first valid channels. The first threshold is set according to actual needs, and the embodiment of the present invention is not limited.

The second determining module 804 may obtain a multi-frame temperature value of each first effective channel, and then determine each second effective channel based on the multi-frame temperature value of each first effective channel.

After obtaining each second effective channel, the obtaining module 805 may obtain a current frame output temperature value according to the current frame temperature value of each second effective channel.

The temperature processing device provided by the embodiment of the invention can acquire the current frame temperature value of each channel, calculate the absolute value of the difference value between the current frame temperature value and the previous frame temperature value of each channel, acquire the current frame temperature variation of each channel, determine each first effective channel based on the current frame temperature variation and the first threshold of each channel, determine each second effective channel based on the multi-frame temperature value of each first effective channel, and acquire the current frame output temperature value according to the current frame temperature value of each second effective channel, thereby improving the accuracy of temperature acquisition.

On the basis of the foregoing embodiments, further, the first determining module 803 is specifically configured to:

and after judging that the temperature variation of the current frame of the channel is smaller than the first threshold, taking the channel as the first effective channel.

Specifically, the first determining module 803 compares the temperature variation of the current frame of the channel with the first threshold, and if the temperature variation of the current frame of the channel is smaller than the first threshold, the channel is regarded as the first effective channel, and the first effective channel corresponds to the channel. And the current frame temperature value of the channel is used as the current frame temperature value of the corresponding first effective channel, and the temperature sensor or the filtering algorithm corresponding to the channel is used as the temperature sensor or the filtering algorithm corresponding to the corresponding first effective channel.

Fig. 9 is a schematic structural diagram of a temperature processing apparatus according to a ninth embodiment of the present invention, and as shown in fig. 9, on the basis of the foregoing embodiments, the temperature processing apparatus according to the embodiment of the present invention further includes a first resetting module 806, where:

the first resetting module 806 is configured to reset the channel after determining that the temperature variation of the current frame of the channel is greater than or equal to the first threshold.

Specifically, the current frame temperature variation of the channel is compared with the first threshold, and if the current frame temperature variation of the channel is greater than or equal to the first threshold, which indicates that the temperature value obtained by the channel is unstable, the first reset module 806 may reset the channel.

On the basis of the foregoing embodiments, further, the obtaining module 805 is specifically configured to:

and calculating the average value of the current frame temperature values of the second effective channels as the current frame output temperature value.

Specifically, the current frame temperature value of each second effective channel is effective, the obtaining module 805 may calculate an average value of the current frame temperature values of each second effective channel, and use the calculated average value as the current frame output temperature value.

Fig. 10 is a schematic structural diagram of a temperature processing apparatus according to an eleventh embodiment of the present invention, and as shown in fig. 10, on the basis of the foregoing embodiments, further, the obtaining module 805 includes a first determining unit 8051 and a first obtaining unit 8052, where:

the first determining unit 8051 is configured to determine each third effective channel based on the current frame temperature value of each second effective channel; the first obtaining unit 8052 is configured to obtain a current frame output temperature value according to the current frame temperature value of each third effective channel.

Specifically, after determining each second effective channel, for each second effective channel, the first determining unit 8051 may compare the current frame temperature value of the second effective channel with the current frame temperature values of other second effective channels, and determine whether the second effective channel is a third effective channel according to a comparison result, where the third effective channel only corresponds to one second effective channel. The first determination unit 8051 may obtain the respective third effective channels.

After obtaining each third effective channel, the first obtaining unit 8052 may obtain a current frame output temperature value according to the current frame temperature value of each third effective channel.

On the basis of the foregoing embodiments, further, the first obtaining unit 8052 is specifically configured to:

and calculating the average value of the current frame temperature values of the third effective channels as the current frame output temperature value.

Specifically, the current frame temperature value of each third effective channel is effective, and the first obtaining unit 8052 may calculate an average value of the current frame temperature values of each third effective channel, and use the calculated average value as the current frame output temperature value.

Fig. 11 is a schematic structural diagram of a temperature processing apparatus according to an eleventh embodiment of the present invention, and as shown in fig. 11, on the basis of the foregoing embodiments, further, the first determining unit 8051 includes a calculating subunit 80511 and a judging subunit 80512, where:

the calculating subunit 80511 is configured to calculate an absolute value of a difference between a current frame temperature value of the second effective channel and a current frame temperature value of each of the other second effective channels, and obtain a comparison value corresponding to the second effective channel; the determining subunit 80512 is configured to, after it is determined that the number of comparison values smaller than the third threshold in the comparison value corresponding to the second effective channel is greater than a preset value, take the second effective channel as the third effective channel.

Specifically, the calculating subunit 80511 may calculate an absolute value of a difference between the current frame temperature value of the second effective channel and the current frame temperature value of each of the other second effective channels, to obtain a comparison value corresponding to the second effective channel, where it is understood that there may be one or more comparison values corresponding to the second effective channel. The temperature processing device may obtain a comparison value corresponding to each second effective channel.

The determining subunit 80512 compares each of the comparison values corresponding to the second valid channel with a third threshold, and counts the number of the comparison values smaller than the third threshold, and if the number of the comparison values smaller than the third threshold is greater than a preset value, it indicates that the current frame temperature value of the second valid channel is valid, and then the second valid channel is taken as the third valid channel. Each third effective channel only corresponds to one second effective channel, and the current frame temperature value of the third effective channel is equal to the current frame temperature value of the corresponding second effective channel. The third threshold is set according to actual needs, and the embodiment of the present invention is not limited. The preset value is set according to actual needs, and the embodiment of the invention is not limited.

Fig. 12 is a schematic structural diagram of a temperature processing apparatus according to a twelfth embodiment of the present invention, and as shown in fig. 12, on the basis of the foregoing embodiments, the temperature processing apparatus according to the embodiment of the present invention further includes a third resetting module 808, where:

the third resetting module 808 is configured to reset the second effective channel after determining that the number of comparison values smaller than the third threshold in the comparison value corresponding to the second effective channel is smaller than or equal to the preset value.

Specifically, each of the comparison values corresponding to the second valid channel is compared with a third threshold, and the number of the comparison values smaller than the third threshold is counted, and if the number of the comparison values smaller than the third threshold is smaller than or equal to the preset value, it indicates that the current frame temperature value corresponding to the second valid channel is invalid, the third resetting module 808 may reset the second valid channel.

Fig. 13 is a schematic structural diagram of a temperature processing apparatus according to a thirteenth embodiment of the present invention, and as shown in fig. 13, on the basis of the foregoing embodiments, further, the second determining module 804 includes a second obtaining unit 8041 and a second determining unit 8042, where:

the second obtaining unit 8041 is configured to obtain a temperature variance of each first effective channel based on a variance of the temperature values of the latest preset number of frames of each first effective channel; the second determining unit 8042 is configured to determine each second effective channel based on the temperature variance of each first effective channel and a second threshold.

Specifically, for each first effective channel, the second obtaining unit 8041 records the latest preset number of frame temperature values of each first effective channel, and then calculates the variance of the latest preset number of frame temperature values of each first effective channel to obtain the temperature variance of each first effective channel. Wherein the latest preset number of frame temperature values of the first effective channel comprises a current frame temperature value of the first effective channel. The preset number is actually required to be set, and the embodiment of the invention is not limited.

For the temperature variance of each first effective channel, the second determining unit 8042 may compare the temperature variance of the first effective channel with a second threshold, and determine whether the first effective channel is a second effective channel according to a comparison result, where the second effective channel uniquely corresponds to one first effective channel. The second determination unit 8042 may obtain respective second effective channels. The second threshold is set according to actual needs, and the embodiment of the present invention is not limited.

Fig. 14 is a schematic structural diagram of a temperature processing apparatus according to a fourteenth embodiment of the present invention, and as shown in fig. 14, on the basis of the foregoing embodiments, further, the temperature processing apparatus according to the embodiment of the present invention further includes a second resetting module 807, where:

the second resetting module 807 is configured to reset the first active channel after determining that the temperature variance of the first active channel is greater than or equal to the second threshold.

Specifically, the temperature variance of the first active channel is compared with the second threshold, and if the temperature variance of the first active channel is greater than or equal to the second threshold, which indicates that the temperature value obtained by the first active channel is unstable for a period of time, the second resetting module 807 may reset the first active channel.

On the basis of the foregoing embodiments, further, the second determining unit 8042 is specifically configured to:

and if the temperature variance of the first effective channel is judged to be smaller than the second threshold, taking the first effective channel as the second effective channel.

Specifically, the second determination unit 8042 compares the temperature variance of the first effective channel with the second threshold, and if the temperature variance of the first effective channel is smaller than the second threshold, the first effective channel is regarded as the second effective channel, which corresponds to the first effective channel. And the current frame temperature value of the first effective channel is used as the current frame temperature value of the corresponding second effective channel, and the temperature sensor or the filtering algorithm corresponding to the first effective channel is used as the temperature sensor or the filtering algorithm corresponding to the corresponding second effective channel.

Fig. 15 is a schematic structural diagram of a temperature processing apparatus according to a fifteenth embodiment of the present invention, and as shown in fig. 15, on the basis of the foregoing embodiments, further, the second determining module 804 includes a third obtaining unit 8043 and a determining unit 8044, where:

the third obtaining unit 8043 is configured to obtain an effective temperature value of each first effective channel based on the multi-frame temperature value of each first effective channel; the judging unit 8044 is configured to, after judging that the effective temperature value of the first effective channel is greater than a fourth threshold and smaller than a fifth threshold, use the first effective channel as a second effective channel.

Specifically, the third obtaining unit 8043 may obtain a multi-frame temperature value of each first effective channel, and then obtain an effective temperature value of each first effective channel according to the multi-frame temperature value of each first effective channel.

The determining unit 8044 compares the effective temperature value of the first effective channel with a fourth threshold and a fifth threshold, respectively, and if the effective temperature value of the first effective channel is greater than the fourth threshold and the effective temperature value of the first effective channel is less than the fifth threshold, the first effective channel is taken as the second effective channel. The fourth threshold and the fifth threshold are set according to actual needs, and the embodiment of the present invention is not limited.

On the basis of the foregoing embodiments, further, the third obtaining unit 8043 is specifically configured to:

calculating the absolute value of the difference value between the current frame temperature value and the previous frame temperature value of the first effective channel to obtain an adjacent difference value; if the proximity difference value is judged and obtained to be smaller than or equal to a sixth threshold value, taking the current frame temperature value of the first effective channel as the effective temperature value of the first effective channel; and if the proximity difference value is judged to be larger than the sixth threshold value, taking the last frame temperature value of the first effective channel as the effective temperature value of the first effective channel.

Specifically, the third obtaining unit 8043 may calculate an absolute value of a difference between a current frame temperature value and a previous frame temperature value of the first effective channel, as an adjacent difference, then compare the adjacent difference with a sixth threshold, and if the adjacent difference is less than or equal to the sixth threshold, then use the current frame temperature value of the first effective channel as the effective temperature value of the first effective channel. If the proximity difference is greater than the sixth threshold, then the last frame temperature value for the first active channel is taken as the active temperature value for the first active channel. The effective temperature value is determined through the process, and the pulse interference caused by accidental factors can be effectively overcome. The sixth threshold is set according to practical experience, and the embodiment of the present invention is not limited.

On the basis of the foregoing embodiments, further, the determining unit 8044 is specifically configured to:

obtaining q frame temperature values of the first effective channel, wherein the q frame temperature values comprise current frame temperature values of the first effective channel; wherein q is an odd number of 3 or more; and arranging the q-frame temperature values in a descending order, and acquiring the temperature value in the middle of the ordering as the effective temperature value of the first effective channel.

Specifically, the determining unit 8044 may obtain q-frame temperature values of the first effective channel, then sort the q-frame temperature values in descending order, and obtain a temperature value in the middle of sorting from a sorting result as the effective temperature value of the first effective channel. Wherein the q frame temperature values include a current frame temperature value of the first effective channel, and q is an odd number greater than or equal to 3. The effective temperature value is determined through the process, fluctuation interference caused by accidental factors can be effectively overcome, and a good filtering effect is achieved on the slowly-changing temperature.

The embodiment of the apparatus provided in the embodiment of the present invention may be specifically configured to execute the processing flows of the above method embodiments, and the functions of the apparatus are not described herein again, and refer to the detailed description of the above method embodiments.

Fig. 16 is a schematic physical structure diagram of an electronic device according to a sixteenth embodiment of the present invention, and as shown in fig. 16, the electronic device may include: a processor (processor)1601, a communication Interface (Communications Interface)1602, a memory (memory)1603, and a communication bus 1604, wherein the processor 1601, the communication Interface 1602, and the memory 1603 communicate with each other via the communication bus 1604. Processor 1601 may call logic instructions in memory 1603 to perform the following method: acquiring a current frame temperature value of each channel; calculating the absolute value of the difference value between the current frame temperature value and the previous frame temperature value of each channel to obtain the current frame temperature variation of each channel; determining each first effective channel based on the current frame temperature variation of each channel and a first threshold; determining each second effective channel based on the multi-frame temperature values of each first effective channel; and obtaining the current frame output temperature value according to the current frame temperature value of each second effective channel.

Furthermore, the logic instructions in the memory 1603 can be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: acquiring a current frame temperature value of each channel; calculating the absolute value of the difference value between the current frame temperature value and the previous frame temperature value of each channel to obtain the current frame temperature variation of each channel; determining each first effective channel based on the current frame temperature variation of each channel and a first threshold; determining each second effective channel based on the multi-frame temperature values of each first effective channel; and obtaining the current frame output temperature value according to the current frame temperature value of each second effective channel.

The present embodiment provides a computer-readable storage medium, which stores a computer program, where the computer program causes the computer to execute the method provided by the above method embodiments, for example, the method includes: acquiring a current frame temperature value of each channel; calculating the absolute value of the difference value between the current frame temperature value and the previous frame temperature value of each channel to obtain the current frame temperature variation of each channel; determining each first effective channel based on the current frame temperature variation of each channel and a first threshold; determining each second effective channel based on the multi-frame temperature values of each first effective channel; and obtaining the current frame output temperature value according to the current frame temperature value of each second effective channel.

As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

In the description herein, reference to the description of the terms "one embodiment," "a particular embodiment," "some embodiments," "for example," "an example," "a particular example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

33页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种NMP热管比较温度源装置和实现方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!