A method, device, electronic device and storage medium for determining temperature and humidity

By curve fitting and image comparison of temperature and humidity grating coupling data, grayscale maps are constructed to decouple to obtain humidity and temperature, which solves the problem of low temperature and humidity decoupling efficiency in the existing technology, and achieves rapid and accurate temperature and humidity decoupling .

CN118230003BActive Publication Date: 2024-12-03WUHAN UNIV OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410322064.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-20
Publication Date
2024-12-03
Estimated Expiration
2044-03-20

AI Technical Summary

Technical Problem

When the existing temperature and humidity decoupling method performs temperature compensation for the humidity grating, it is difficult to compensate the temperature gate and the humidity gate one by one, the data volume is large, the calculation efficiency is low, and it is difficult to meet the actual engineering needs.

Method used

By obtaining the temperature and humidity grating coupling data, curve fitting is performed to obtain the wavelength offset of the temperature gate and the humidity gate, the temperature and humidity grayscale map is constructed, and image comparison is performed to decouple to obtain the corresponding humidity and temperature.

Benefits of technology

It realizes rapid and accurate decoupling of temperature and humidity, improves computing efficiency, and meets actual engineering needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118230003B_ABST
    Figure CN118230003B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, electronic device and storage medium for determining temperature and humidity, and relates to the field of optical fiber sensing technology. The method includes: obtaining temperature and humidity grating coupling data; performing curve fitting on the temperature and humidity grating coupling data based on the cubic spline interpolation method to obtain the temperature grating wavelength offset and the humidity grating wavelength offset; constructing a temperature grayscale map and a temperature and humidity grayscale map according to the temperature grating wavelength offset and the humidity grating wavelength offset; performing image comparison on the temperature grayscale map and the temperature and humidity grayscale map to obtain a difference image; decoupling the difference image to obtain the corresponding humidity, and decoupling the temperature grating wavelength offset to obtain the corresponding temperature. The present invention constructs a temperature grayscale map and a temperature and humidity grayscale map according to the temperature grating wavelength offset and the humidity grating wavelength offset, obtains a difference image based on image comparison, and decouples the difference image to obtain the corresponding humidity, thereby realizing rapid and accurate decoupling of temperature and humidity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of optical fiber sensing technology, and in particular to a method, device, electronic equipment and storage medium for determining temperature and humidity. Background Art

[0002] The monitoring and measurement of relative humidity plays a very important role in industrial production, agricultural planting, health care and environmental protection. Traditional electronic temperature and humidity sensors are limited in use in many complex environments due to their large size, poor corrosion resistance and weak anti-electromagnetic interference ability. Compared with traditional electronic temperature and humidity sensors, optical fiber sensors have the advantages of small size, light weight, high sensitivity and strong anti-electromagnetic interference ability, and are more suitable for long-term use. In addition, the grating array sensing temperature and humidity sensor coated with humidity-sensitive materials not only has the advantages of optical fiber sensors, but also has the characteristics of easy reuse, which can form a large-scale sensing network, thereby further expanding its application field.

[0003] However, in actual use, since the gratings of the humidity fiber Bragg grating sensor array coated with humidity-sensitive materials are sensitive to both temperature and humidity, the influence of temperature changes must be compensated. Ideally, the temperature and humidity fiber Bragg grating sensor arrays need to correspond one to one, but due to the errors in actual grating writing and the randomness of implantation, there is a certain error in the distance between the two. In addition, there are many sensors with a large distribution range, making it difficult to compensate one by one. In addition, the amount of data is large, and the amount of computation required in the processing process is large.

[0004] Therefore, when the existing temperature and humidity decoupling method performs temperature compensation on the humidity grating, it is difficult to compensate the temperature grating and the humidity grating one by one, and the data volume is large. The calculation efficiency of temperature and humidity decoupling is low, which is difficult to meet actual engineering needs. Summary of the invention

[0005] In view of this, it is necessary to provide a temperature and humidity determination method, device, electronic device and storage medium to solve the technical problems in the prior art that when temperature compensation is performed on the humidity grating, the temperature grating and the humidity grating are difficult to compensate one-to-one, the data volume is large, the accuracy of temperature and humidity decoupling is poor, and the calculation efficiency is low, which is difficult to meet the actual engineering needs.

[0006] In order to solve the above problems, on the one hand, the present invention provides a method for determining temperature and humidity, comprising:

[0007] Acquire temperature and humidity grating coupling data;

[0008] The temperature and humidity grating coupling data are curve fitted to obtain the temperature grating wavelength offset and the humidity grating wavelength offset;

[0009] A temperature grayscale image and a temperature and humidity grayscale image are constructed according to the temperature grating wavelength offset and the humidity grating wavelength offset;

[0010] Perform image comparison between the temperature grayscale image and the temperature and humidity grayscale image to obtain a difference image;

[0011] The difference image is decoupled to obtain the corresponding humidity, and the corresponding temperature is decoupled according to the temperature grating wavelength offset.

[0012] In a possible implementation, the temperature and humidity grating coupling data includes temperature grating data and humidity grating data.

[0013] In a possible implementation, obtaining temperature and humidity grating coupling data includes:

[0014] The temperature grid data of the area to be measured is obtained based on the temperature grid that is sensitive to temperature, and the humidity grid data of the area to be measured is obtained based on the humidity grid that is sensitive to temperature and humidity.

[0015] In a possible implementation, curve fitting is performed on the temperature and humidity grating coupling data based on a cubic spline interpolation method to obtain the temperature grating wavelength offset and the humidity grating wavelength offset, including:

[0016] The temperature grating wavelength offset is obtained by curve fitting the temperature grating data based on the cubic spline interpolation method;

[0017] The conversion relationship between the temperature grating wavelength offset and the humidity grating temperature drift wavelength offset is determined, and the humidity grating wavelength offset is determined according to the temperature grating wavelength offset and the conversion relationship.

[0018] In a possible implementation, constructing a temperature grayscale image and a temperature and humidity grayscale image according to the temperature grating wavelength offset and the humidity grating wavelength offset includes:

[0019] An initial moment is selected, and the wavelength value at the initial moment is used as the initial value, and the wavelength change amount of the temperature grid and the humidity grid at each moment is determined according to the initial value and the wavelength offset of the temperature grid and the wavelength offset of the humidity grid;

[0020] The grayscale pixel values ​​of the temperature grid and the humidity grid are determined according to the wavelength changes of the temperature grid and the humidity grid at each moment, and the temperature grayscale image and the temperature and humidity grayscale image are obtained according to the grayscale pixel values ​​of the temperature grid and the humidity grid.

[0021] In a possible implementation, performing image comparison based on the temperature grayscale image and the temperature and humidity grayscale image to obtain a difference image includes:

[0022] The temperature grayscale image and the temperature and humidity grayscale image are compared based on the difference method or the ratio method to obtain a difference image.

[0023] In a possible implementation, the corresponding humidity is obtained by decoupling the difference image, and the corresponding temperature is obtained by decoupling the temperature grating wavelength offset, including:

[0024] Determine the single humidity wavelength offset of the humidity grid according to the difference image, and determine the corresponding humidity according to the single humidity wavelength offset and the humidity sensitivity of the humidity grid;

[0025] The corresponding temperature is determined according to the wavelength offset of the temperature grating and the temperature sensitivity of the temperature grating.

[0026] On the other hand, the present invention also provides a temperature and humidity determination device, comprising:

[0027] A data acquisition unit, used for acquiring temperature and humidity grating coupling data;

[0028] A curve fitting unit, used for performing curve fitting on the temperature and humidity grating coupling data to obtain the temperature grating wavelength offset and the humidity grating wavelength offset;

[0029] A grayscale image construction unit, used to construct a temperature grayscale image and a temperature and humidity grayscale image by using the temperature grating wavelength offset and the humidity grating wavelength offset;

[0030] An image comparison unit, used for comparing the temperature grayscale image and the temperature and humidity grayscale image to obtain a difference image;

[0031] The temperature and humidity decoupling unit is used to decouple the difference image to obtain the corresponding humidity, and decouple the temperature grating wavelength offset to obtain the corresponding temperature.

[0032] On the other hand, the present invention also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the temperature and humidity determination method described above is implemented.

[0033] On the other hand, the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the above-mentioned method for determining temperature and humidity is implemented.

[0034] The beneficial effect of the present invention is: in the temperature and humidity determination method provided by the present invention, a temperature grayscale image and a temperature and humidity grayscale image are constructed according to the temperature grating wavelength offset and the humidity grating wavelength offset, and a difference image is obtained based on image comparison, and the difference image is decoupled to obtain the corresponding humidity, thereby achieving rapid and accurate decoupling of temperature and humidity. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0036] Figure 1 A schematic diagram of a flow chart of an embodiment of a method for determining temperature and humidity provided by the present invention;

[0037] Figure 2 A schematic diagram of the structure of an embodiment of a device for determining temperature and humidity provided by the present invention;

[0038] Figure 3 A schematic structural diagram of an embodiment of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0040] It should be understood that the drawings of the schematic diagrams are not drawn to scale. The flowcharts used in the present invention illustrate the operations implemented according to some embodiments of the present invention. It should be understood that the operations of the flowcharts may be implemented out of order, and steps without logical contextual relationships may be reversed in order or implemented simultaneously. In addition, those skilled in the art may add one or more other operations to the flowcharts, or may remove one or more operations from the flowcharts, under the guidance of the content of the present invention.

[0041] Some of the block diagrams shown in the accompanying drawings are functional entities that do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor systems and / or microcontroller systems.

[0042] Reference to an "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0043] Figure 1 A flow chart of an embodiment of the method for determining temperature and humidity provided by the present invention is shown in FIG. Figure 1 As shown, the temperature and humidity determination method includes:

[0044] S101, obtaining temperature and humidity grating coupling data;

[0045] S102, performing curve fitting on the temperature and humidity grating coupling data to obtain a temperature grating wavelength offset and a humidity grating wavelength offset;

[0046] S103, constructing a temperature grayscale image and a temperature and humidity grayscale image according to the temperature grating wavelength offset and the humidity grating wavelength offset;

[0047] S104, performing image comparison on the temperature grayscale image and the temperature and humidity grayscale image to obtain a difference image;

[0048] S105 , decoupling the difference image to obtain the corresponding humidity, and decoupling the temperature grating wavelength offset to obtain the corresponding temperature.

[0049] Compared with the prior art, the temperature and humidity determination method provided by the present invention constructs a temperature grayscale image and a temperature and humidity grayscale image according to the temperature grating wavelength offset and the humidity grating wavelength offset, obtains a difference image based on image comparison, decouples the difference image to obtain the corresponding humidity, and realizes rapid and accurate decoupling of temperature and humidity.

[0050] In some embodiments of the present invention, the temperature-humidity grating coupling data includes temperature grating data and humidity grating data.

[0051] In some embodiments of the present invention, obtaining temperature and humidity grating coupling data includes:

[0052] The temperature grid data of the area to be measured is obtained based on the temperature grid that is sensitive to temperature, and the humidity grid data of the area to be measured is obtained based on the humidity grid that is sensitive to temperature and humidity.

[0053] Specifically, the embodiment obtains the temperature and humidity grating coupling data of the area to be measured through a fiber grating array composed of a temperature fiber grating and a humidity fiber grating coated with a humidity-sensitive material. The temperature grating is only sensitive to temperature, and the temperature grating data of the wavelength shift caused by the temperature can be obtained, while the humidity grating is sensitive to both temperature and humidity, so the humidity grating data obtained is affected by both temperature and humidity.

[0054] In some embodiments of the present invention, curve fitting is performed on the temperature and humidity grating coupling data based on the cubic spline interpolation method to obtain the temperature grating wavelength offset and the humidity grating wavelength offset, including:

[0055] The temperature grating wavelength offset is obtained by curve fitting the temperature grating data based on the cubic spline interpolation method;

[0056] The conversion relationship between the temperature grating wavelength offset and the humidity grating temperature drift wavelength offset is determined, and the humidity grating wavelength offset is determined according to the temperature grating wavelength offset and the conversion relationship.

[0057] Specifically, to facilitate subsequent processing, the embodiment first performs curve fitting on the data obtained from the temperature and humidity grids. For the temperature grid, the embodiment uses the cubic spline interpolation method to fit the temperature grid distance and the corresponding wavelength at each time point into a smooth curve, and the formula is as follows:

[0058] λ 1T =f1(X T )T=t1,λ 2T =f2(X T )T=t2,t3,...,tn

[0059] Where X T is the temperature grid position matrix, and then the X at time t1 is T Substituting into the above formula, we can get the temperature wavelength offset of the humidity grid at time t1, and further generalize the wavelength offset of X from time t2 to time tn. T Substitute into the respective function λ 2T =f2(X T ), thereby obtaining the temperature drift wavelength offset of the temperature grid at the humidity grid during the entire time period represented by the curve.

[0060] After obtaining the wavelength offset of the temperature grid affected by temperature at the same position as the temperature grid through the cubic spline interpolation method, since the influence of temperature on the humidity grid and the temperature grid is a linear influence, the temperature drift wavelength offset of the temperature grid and the temperature drift wavelength offset of the humidity grid have the same curve shape. Therefore, when curve fitting the humidity grid wavelength offset, after taking some humidity grid sampling points, the wavelength offset of the temperature grid is converted to the humidity grid by proportional calculation to reduce the amount of calculation. The formula for the conversion relationship between the temperature grid wavelength offset and the humidity grid temperature drift wavelength offset is expressed as follows:

[0061]

[0062] where λ H-T is the wavelength shift corresponding to the humidity grid affected by temperature, λ T-T is the wavelength shift of the temperature grating affected by temperature, α H-T is the temperature sensitivity of the humidity grid, α T-T is the temperature sensitivity of the temperature grid.

[0063] It should be noted that, because the humidity grid is also sensitive to temperature, the embodiment uses the above algorithm to process data to reduce errors and obtain the temperature grid wavelength offset curve and humidity grid wavelength offset curve corresponding to the temperature and humidity grid. H-H =λ H -λ H-T The wavelength shift λ of the humidity grating affected by humidity is obtained H-H , where λ His the wavelength offset of the humidity grating, but due to the errors in actual grating writing and the randomness of implantation, there are still errors in value taking, and the calculation is also relatively cumbersome. Therefore, the embodiment further extracts the difference value through image processing in the subsequent step.

[0064] In some embodiments of the present invention, constructing a temperature grayscale map and a temperature and humidity grayscale map according to the temperature grating wavelength offset and the humidity grating wavelength offset includes:

[0065] An initial moment is selected, and the wavelength value at the initial moment is used as the initial value, and the wavelength change amount of the temperature grid and the humidity grid at each moment is determined according to the initial value and the wavelength offset of the temperature grid and the wavelength offset of the humidity grid;

[0066] The grayscale pixel values ​​of the temperature grid and the humidity grid are determined according to the wavelength changes of the temperature grid and the humidity grid at each moment, and the temperature grayscale image and the temperature and humidity grayscale image are obtained according to the grayscale pixel values ​​of the temperature grid and the humidity grid.

[0067] Specifically, in the process of constructing grayscale images for the temperature grating wavelength offset and the humidity grating wavelength offset respectively, it is first necessary to select the wavelength value at a certain moment as the initial value, subtract the initial value from the wavelength value at the subsequent moment, and obtain the wavelength change, and use the value of the wavelength change as the value of the grayscale image pixel point, so as to convert the temperature grating wavelength offset and the humidity grating wavelength offset into grayscale pixel point values, and obtain the temperature grayscale image corresponding to the temperature grating and the temperature and humidity grayscale image of the humidity grating.

[0068] In some embodiments of the present invention, performing image comparison based on the temperature grayscale image and the temperature and humidity grayscale image to obtain a difference image includes:

[0069] Based on the difference method or ratio method, the temperature grayscale image and the temperature and humidity grayscale image are compared to obtain the difference image.

[0070] Specifically, after obtaining the temperature grayscale image and the temperature and humidity grayscale image, the difference method or the ratio method can be used, but not limited to, to compare the images to obtain the difference image. The interpolation method formula is as follows:

[0071] I sub =|I1-I2|

[0072] In the formula, I1 and I2 refer to the temperature and humidity grayscale image and temperature grayscale image respectively, I sub It refers to the difference image obtained by subtracting two images.

[0073] The ratio method formula is as follows:

[0074]

[0075] In the formula, I rat It refers to the difference image obtained by comparing two images.

[0076] In some embodiments of the present invention, decoupling the difference image to obtain the corresponding humidity, and decoupling the temperature grating wavelength offset to obtain the corresponding temperature, includes:

[0077] Determine the single humidity wavelength offset of the humidity grid according to the difference image, and determine the corresponding humidity according to the single humidity wavelength offset and the humidity sensitivity of the humidity grid;

[0078] The corresponding temperature is determined according to the wavelength offset of the temperature grating and the temperature sensitivity of the temperature grating.

[0079] Specifically, after image comparison in the embodiment, the difference image obtained is the required humidity field image. Based on the image, the single humidity wavelength offset that is only affected by humidity can be inferred, and combined with the humidity sensitivity of the humidity grid, the corresponding humidity of the area to be measured is decoupled to obtain the corresponding temperature of the area to be measured, and then the temperature grid wavelength offset and the temperature sensitivity of the temperature grid are used to obtain the corresponding temperature of the area to be measured, thereby realizing the decoupling of temperature and humidity.

[0080] In summary, the present invention constructs a temperature grayscale image and a temperature and humidity grayscale image according to the temperature grating wavelength offset and the humidity grating wavelength offset, obtains a difference image based on image comparison, decouples the difference image to obtain the corresponding humidity, and realizes fast and accurate decoupling of temperature and humidity.

[0081] Based on the temperature and humidity determination method of the present invention, the present invention also provides a temperature and humidity determination device, such as Figure 2 As shown, the temperature and humidity determination device 200 includes:

[0082] A data acquisition unit 201 is used to acquire temperature and humidity grating coupling data;

[0083] A curve fitting unit 202 is used to perform curve fitting on the temperature and humidity grating coupling data to obtain a temperature grating wavelength offset and a humidity grating wavelength offset;

[0084] A grayscale image construction unit 203, used to construct a temperature grayscale image and a temperature and humidity grayscale image by using the temperature grating wavelength offset and the humidity grating wavelength offset;

[0085] An image comparison unit 204 is used to compare the temperature grayscale image and the temperature and humidity grayscale image to obtain a difference image;

[0086] The temperature and humidity decoupling unit 205 is used to decouple the difference image to obtain the corresponding humidity, and decouple the temperature grating wavelength offset to obtain the corresponding temperature.

[0087] The temperature and humidity determination device 200 provided in the above embodiment can implement the technical solution in the above temperature and humidity determination method embodiment. The specific implementation principles of the above modules or units can refer to the corresponding contents in the above temperature and humidity determination method embodiment, which will not be repeated here.

[0088] The present invention also provides an electronic device 300, such as Figure 3 As shown, Figure 3 This is a structural diagram of an embodiment of an electronic device provided by the present invention. The electronic device 300 includes a processor 301, a memory 302, and a computer program stored in the memory 302 and executable on the processor 301. When the processor 301 executes the program, the above-mentioned temperature and humidity determination method is implemented.

[0089] As a preferred embodiment, the electronic device further includes a display 303 for displaying the process of the processor 301 executing the temperature and humidity determination method.

[0090] The processor 301 may be an integrated circuit chip with signal processing capability. The processor 301 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC). The methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. The general-purpose processor may also be a microprocessor or the processor may also be any conventional processor, etc.

[0091] The memory 302 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a secure digital (SD card), a flash card, etc. The memory 302 is used to store programs, and the processor 301 executes the program after receiving the execution instruction. The process definition method disclosed in any of the embodiments of the present invention may be applied to the processor 301 or implemented by the processor 301.

[0092] The display 303 may be an LED display screen, a liquid crystal display, or a touch-sensitive display, etc. The display 303 is used to display various information of the electronic device 300 .

[0093] Understandably, Figure 3 The structure shown is only a schematic diagram of the structure of the electronic device 300. The electronic device 300 may also include Figure 3 More or fewer components as shown. Figure 3Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0094] An embodiment of the present invention also provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the above-mentioned software requirement error detection network training method and / or the above-mentioned software requirement error detection network application method are implemented.

[0095] Generally speaking, the computer instructions for implementing the method of the present invention can be carried by any combination of one or more computer-readable storage media. Non-transitory computer-readable storage media can include any computer-readable media, except for the transitory propagating signal itself.

[0096] Computer readable storage media may be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or components, or any combination thereof. More specific examples of computer readable storage media (a non-exhaustive list) include: an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or device.

[0097] The above are only preferred specific implementations of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.

Claims

1. A method for determining temperature and humidity, characterized in that: The method comprises: Acquire temperature and humidity grating coupling data; Performing curve fitting on the temperature and humidity grating coupling data to obtain a temperature grating wavelength offset and a humidity grating wavelength offset; Constructing a temperature grayscale image according to the temperature grating wavelength offset, and constructing a temperature and humidity grayscale image according to the humidity grating wavelength offset; Performing image comparison on the temperature grayscale image and the temperature and humidity grayscale image to obtain a difference image; The difference image is decoupled to obtain the corresponding humidity, and the corresponding temperature is decoupled according to the temperature grating wavelength offset.

2. The method for determining temperature and humidity according to claim 1, characterized in that: The temperature and humidity grating coupling data includes temperature grating data and humidity grating data.

3. The method for determining temperature and humidity according to claim 2, characterized in that: The step of obtaining temperature and humidity grating coupling data comprises: The temperature grid data of the area to be measured is obtained based on the temperature grid that is sensitive to temperature, and the humidity grid data of the area to be measured is obtained based on the humidity grid that is sensitive to temperature and humidity.

4. The method for determining temperature and humidity according to claim 3, characterized in that: The step of performing curve fitting on the temperature and humidity grating coupling data to obtain a temperature grating wavelength offset and a humidity grating wavelength offset comprises: The temperature grating wavelength offset is obtained by curve fitting the temperature grating data based on the cubic spline interpolation method; A conversion relationship between the temperature grating wavelength offset and the humidity grating wavelength offset is determined, and the humidity grating wavelength offset is determined according to the temperature grating wavelength offset and the conversion relationship.

5. The method for determining temperature and humidity according to claim 1, characterized in that: The temperature grayscale image is constructed according to the temperature grating wavelength offset, and the temperature and humidity grayscale image is constructed according to the humidity grating wavelength offset: Selecting an initial moment, and taking the wavelength value at the initial moment as the initial value, determining the wavelength change of the temperature grid at each moment according to the initial value and the temperature grid wavelength offset, and determining the wavelength change of the humidity grid at each moment according to the initial value and the humidity grid wavelength offset; The temperature grid grayscale pixel value is determined according to the wavelength change of the temperature grid at each moment, and a temperature grayscale map is obtained according to the temperature grid grayscale pixel value. The humidity grid grayscale pixel value is determined according to the wavelength change of the humidity grid at each moment, and a temperature and humidity grayscale map is obtained according to the humidity grid grayscale pixel value.

6. The method for determining temperature and humidity according to claim 1, characterized in that: The step of performing image comparison according to the temperature grayscale image and the temperature and humidity grayscale image to obtain a difference image includes: The temperature grayscale image and the temperature and humidity grayscale image are compared based on a difference method or a ratio method to obtain a difference image.

7. The method for determining temperature and humidity according to claim 1, characterized in that: Decoupling the difference image to obtain the corresponding humidity, and decoupling the temperature grating wavelength offset to obtain the corresponding temperature, comprises: Determine a single humidity wavelength offset of the humidity grid according to the difference image, and determine the corresponding humidity according to the single humidity wavelength offset and the humidity sensitivity of the humidity grid; The corresponding temperature is determined according to the temperature grating wavelength offset and the temperature sensitivity of the temperature grating.

8. A temperature and humidity determination device, characterized in that: include: A data acquisition unit, used for acquiring temperature and humidity grating coupling data; A curve fitting unit, used for performing curve fitting on the temperature and humidity grating coupling data to obtain a temperature grating wavelength offset and a humidity grating wavelength offset; A grayscale image construction unit, used to construct a temperature grayscale image according to the temperature grating wavelength offset, and to construct a temperature and humidity grayscale image according to the humidity grating wavelength offset; An image comparison unit, used for performing image comparison on the temperature grayscale image and the temperature and humidity grayscale image to obtain a difference image; The temperature and humidity decoupling unit is used to decouple the difference image to obtain the corresponding humidity, and decouple the temperature grating wavelength offset to obtain the corresponding temperature.

9. An electronic device comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the temperature and humidity determination method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the temperature and humidity determination method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Image forming apparatus and image forming method

    CN102279539A

  • Fiber bragg grating temperature and humidity integrated sensor array and temperature and humidity measuring method

    CN116519060A