CN111026708B - Thermal imager image file storage method, device, equipment and storage medium - Google Patents

Thermal imager image file storage method, device, equipment and storage medium Download PDF

Info

Publication number
CN111026708B
CN111026708B CN201911166487.XA CN201911166487A CN111026708B CN 111026708 B CN111026708 B CN 111026708B CN 201911166487 A CN201911166487 A CN 201911166487A CN 111026708 B CN111026708 B CN 111026708B
Authority
CN
China
Prior art keywords
thermal imager
file
data
temperature data
image file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911166487.XA
Other languages
Chinese (zh)
Other versions
CN111026708A (en
Inventor
齐亚鲁
王培旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Iray Technology Co Ltd
Original Assignee
Iray Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Iray Technology Co Ltd filed Critical Iray Technology Co Ltd
Priority to CN201911166487.XA priority Critical patent/CN111026708B/en
Publication of CN111026708A publication Critical patent/CN111026708A/en
Application granted granted Critical
Publication of CN111026708B publication Critical patent/CN111026708B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Radiation Pyrometers (AREA)

Abstract

The application discloses a thermal imager image file storage method, a thermal imager image file storage device, thermal imager image file storage equipment and a computer readable storage medium, wherein the method comprises the following steps: when the thermal imager is triggered to shoot, acquiring a screen capture of the thermal imager at the shooting moment and temperature data of the thermal imager at the shooting moment; setting a first head file by utilizing a screenshot, and writing the first head file into a target storage position; setting a second header file by using index information of the temperature data, and writing the second header file into a target storage position; and writing temperature data after the second head file to obtain a thermal imager image file. Therefore, the method realizes that the screenshot and the temperature data of the thermal imager are simultaneously stored in the same file to obtain the image file of the thermal imager, so that the process of storing the image file of the thermal imager is more convenient; in the process of using the thermal imager image files, two files do not need to be copied or processed, and only one thermal imager image file needs to be processed, so that the method improves the convenience of using the thermal imager image files.

Description

Thermal imager image file storage method, device, equipment and storage medium
Technical Field
The invention relates to the field of data storage, in particular to a thermal imager image file storage method, a thermal imager image file storage device, thermal imager image file storage equipment and a computer readable storage medium.
Background
The infrared thermal imaging is a technology which is vigorously developed in various countries in the world at present, and is widely applied to multiple fields of military reconnaissance, security monitoring, electric power inspection and the like. The thermal infrared imager has an infrared temperature measurement function, can reflect the overall temperature information of a measured target in real time, and can early warn abnormal states. Most thermal imagers are provided with an infrared imaging sensor and a visible light sensor at the same time, and infrared data and visible light images are superposed through a double-light fusion algorithm, so that temperature information of a measured target can be provided for an observer more intuitively.
The storage of the thermal imager image file is a necessary function of the thermal infrared imager, and the stored thermal imager image file is required to record an infrared image, temperature data and the like of a detected target, so that a computer end can perform secondary temperature measurement analysis after reading the thermal imager image file, such as point, line and area temperature data analysis and the like. Because the information required to be stored comprises a plurality of types, the current thermal infrared imager adopts a separate storage mode to store screenshots into image formats such as standard JPEG (joint photographic experts group) and store temperature data into a file with a custom format. When the temperature measuring device is used, two files need to be copied at the same time, information of the two files is read by utilizing infrared analysis software, and temperature measurement secondary analysis is carried out after program correlation. That is to say, in the existing storage method of thermal imager image files, the screenshot and the temperature data are separately stored into two files, the two files need to be copied simultaneously when the thermal imager copies the files to the computer, and the two files must be placed in the same file, and if any file is omitted or the correspondence fails, there is not enough information to perform secondary temperature measurement analysis. Therefore, the method for storing the thermal imager image files in the prior art brings great inconvenience to the process of using the thermal imager image files.
Therefore, how to improve the convenience of storing and using the thermal imager image files is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, the present invention is directed to a method for storing an image file of a thermal imager, which can improve the convenience of storing and using the image file of the thermal imager; another object of the present invention is to provide a storage device, an apparatus and a computer readable storage medium for thermal imager image files, all having the above advantages.
In order to solve the technical problem, the invention provides a thermal imager image file storage method, which comprises the following steps:
when the thermal imager is triggered to shoot, acquiring a screen capture of the thermal imager at the shooting moment and temperature data of the thermal imager at the shooting moment;
setting a first head file by utilizing the screenshot, and writing the first head file into a target storage position;
setting a second header file by using the index information of the temperature data, and writing the second header file into the target storage position;
and writing the temperature data into the second header file to obtain a thermal imager image file.
Preferably, further comprising:
acquiring temperature measurement parameters and storing the temperature measurement parameters in the second header file;
correspondingly, after the temperature data is written in after the second header file is obtained, the method further comprises the following steps:
inputting the temperature measurement parameters into a preset formula model to obtain new temperature data;
updating the temperature data with the new temperature data; wherein the preset formula model comprises:
Figure BDA0002287593340000021
Figure BDA0002287593340000022
wherein, T 1 Temperature data, T, stored in the thermal imager image file 2 Is an intermediate variable, T 3 For temperature data obtained by updating temperature measurement parameters, ε is emissivity, tau is atmospheric permeability, T u Is ambient temperature, T a And n is the correlation coefficient of the infrared wavelength at the atmospheric temperature.
Preferably, when triggering the thermal imager to shoot, the method further comprises the following steps:
acquiring infrared data and a visible light image at the shooting moment;
correspondingly, the process of setting a second header file by using the index information of the temperature data and writing the second header file into the target storage location specifically includes:
setting the second header file by using the index information of the temperature data, the index information of the infrared data and the index information of the visible light image, and writing the second header file into the target storage position;
correspondingly, the process of writing the temperature data after the second head file to obtain the thermal imager image file specifically comprises the following steps:
and writing the visible light image, the infrared data and the temperature data after the second head file according to a preset format to obtain the thermal imager image file.
Preferably, after the acquiring the infrared data and the visible light image at the shooting time, the method further comprises:
and carrying out non-uniformity correction and/or denoising and/or detail enhancement operation on the infrared data.
Preferably, after the visible light image, the infrared data, and the temperature data are written into the second header file according to the preset format to obtain the thermal imager image file, the method further includes:
and performing data compression operation on the thermal imager image file, and storing the compressed thermal imager image file.
Preferably, after the writing of the visible light image, the infrared data, and the temperature data after the second header file according to the preset format to obtain the thermal imager image file, the method further includes:
and carrying out data encryption operation on the thermal imager image file, and storing the encrypted thermal imager image file.
Preferably, before the writing the visible light image, the infrared data, and the temperature data after the second header file according to the preset format to obtain the thermal imager image file, the method further includes:
converting the temperature data into corresponding data in an integer form;
correspondingly, the process of writing the visible light image, the infrared data and the temperature data after the second header file according to the preset format to obtain the thermal imager image file specifically comprises the following steps:
and writing the visible light image, the infrared data and the data in the integer form after the second head file according to the preset format to obtain the thermal imager image file.
In order to solve the above technical problem, the present invention further provides a thermal imager image file storage device, including:
the thermal imager comprises an information acquisition module, a data acquisition module and a data processing module, wherein the information acquisition module is used for acquiring a screen capture of the thermal imager at a shooting moment and temperature data of the thermal imager at the shooting moment when the thermal imager is triggered to shoot;
the first writing module is used for setting a first head file by utilizing the screenshot and writing the first head file into a target storage position;
the second writing module is used for setting a second head file by using the index information of the temperature data and writing the second head file into the target storage position;
and the third writing module is used for writing the temperature data after the second head file to obtain a thermal imager image file.
Preferably, further comprising:
the temperature measurement parameter acquisition module is used for acquiring temperature measurement parameters and storing the temperature measurement parameters in the second header file;
the temperature measurement parameter input module is used for inputting the temperature measurement parameters into a preset formula model to obtain new temperature data;
the temperature data updating module is used for updating the temperature data by using the new temperature data; wherein the preset formula model comprises:
Figure BDA0002287593340000041
Figure BDA0002287593340000042
wherein, T 1 Temperature data, T, stored in the thermal imager image file 2 Is an intermediate variable, T 3 For temperature data obtained by updating temperature measurement parameters, ε is emissivity, tau is atmospheric permeability, T u Is the ambient temperature, T a And n is the correlation coefficient of infrared wavelength at the atmospheric temperature.
Preferably, further comprising:
the first acquisition module is used for acquiring infrared data and visible light images at the shooting moment;
correspondingly, the second writing module specifically includes:
the second writing sub-module is used for setting the second head file by using the index information of the temperature data, the index information of the infrared data and the index information of the visible light image, and writing the second head file into the target storage position;
correspondingly, the third write module specifically includes:
and the third writing sub-module is used for writing the visible light image, the infrared data and the temperature data after the second head file according to a preset format to obtain the thermal imager image file.
Preferably, further comprising:
and the preprocessing module is used for carrying out non-uniformity correction and/or denoising and/or detail enhancement operation on the infrared data.
Preferably, further comprising:
and the compression module is used for carrying out data compression operation on the thermal imager image file and storing the compressed thermal imager image file.
Preferably, further comprising:
and the encryption module is used for carrying out data encryption operation on the thermal imager image file and storing the encrypted thermal imager image file.
Preferably, further comprising:
the data conversion module is used for converting the temperature data into data in a corresponding integer form;
correspondingly, the third write submodule specifically is:
and the third writing unit is used for writing the visible light image, the infrared data and the data in the integer form after the second head file according to the preset format to obtain the thermal imager image file.
In order to solve the above technical problem, the present invention further provides a thermal imager image file storage device, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of any thermal imager image file storage method when executing the computer program.
In order to solve the technical problem, the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of any one of the thermal imager image file storage methods are implemented.
The invention provides a storage method of an image file of a thermal imager, which comprises the steps of acquiring a screen capture of the thermal imager at the shooting moment and temperature data of the thermal imager at the shooting moment when the thermal imager is triggered to shoot; setting a first head file by utilizing a screenshot, and writing the first head file into a target storage position; setting a second header file by using index information of the temperature data, and writing the second header file into a target storage position; and writing temperature data after the second head file to obtain a thermal imager image file. That is to say, the method realizes that the screenshot and the temperature data of the thermal imager are simultaneously stored in the same file to obtain the image file of the thermal imager, so that the process of storing the image file of the thermal imager is more convenient; in addition, compared with the prior art, in the subsequent process of using the thermal imager image files, the method does not need to copy or process two files, and only needs to process one thermal imager image file, so that the method improves the convenience of using the thermal imager image files.
In order to solve the technical problems, the invention also provides a storage device, equipment and a computer readable storage medium for the thermal imager image files, which have the beneficial effects.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the embodiments or technical solutions of the present invention 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 provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for storing an image file of a thermal imager according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a storage format of a thermal imager image file according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a second header file according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for reading an image file of a thermal imager according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a relationship between data information and implementation functions according to an embodiment of the present invention;
fig. 6 is a structural diagram of a storage device for image files of a thermal imager according to an embodiment of the present invention;
fig. 7 is a structural diagram of a storage device for image files of a thermal imager according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
The core of the embodiment of the invention is to provide a thermal imager image file storage method which can improve the convenience of storing and using the thermal imager image files; another core of the present invention is to provide a storage device, an apparatus and a computer readable storage medium for thermal imager image files, all having the above beneficial effects.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a flowchart of a method for storing an image file of a thermal imager according to an embodiment of the present invention. As shown in fig. 1, a method for storing an image file of a thermal imager includes:
s11: when the thermal imager is triggered to shoot, acquiring a screen capture of the thermal imager at the shooting moment and temperature data of the thermal imager at the shooting moment.
Specifically, the method comprises the step of acquiring a screenshot of the thermal imager at the shooting moment according to a current thermal imager display interface when the thermal imager is triggered to shoot. The screen shot at least includes an infrared image, and may further include information of interest set by a user, such as shooting time information, a central point temperature, a highest point temperature, a lowest point temperature, an image mode, a pseudo color, and the like, where the image mode includes a visible light mode, an infrared mode, a thermal fusion mode, a picture-in-picture mode, an iMIX mode, and the like, and the information included in the screen shot is not specifically limited in this embodiment. In addition, when the thermal imager is triggered to shoot, temperature data at the shooting moment is also obtained, wherein the temperature data refers to the temperature value of each pixel point, and the specific mode for obtaining the temperature data is not limited in this embodiment.
S12: and setting a first head file by utilizing the screenshot, and writing the first head file into the target storage position.
In this step, a first header file is written in the target storage location, where the first header file is a complete JPEG file, and specifically includes JPEG header information, a screenshot, and a JPEG end character 0xFFD 9.
S13: setting a second header file by using index information of the temperature data, and writing the second header file into a target storage position;
s14: and writing temperature data after the second head file to obtain a thermal imager image file.
Specifically, a second header file is set by using index information of the temperature information, and the index information is used for reading and analyzing the temperature information subsequently; in addition, the second header file also comprises a custom header start symbol, a custom header end symbol, a custom header size, thermal imager status information and the like, wherein the custom start symbol can be 0xACCA, and the custom header end symbol can be 0 xCAC, so that the file can be judged when the thermal imager image file is read; the thermal imager state information refers to information indicating a state of the thermal imager when shooting, such as a color plate number of a pseudo color plate used, a recording current image mode, and the like. Then, the second header file is continuously written into the target storage location corresponding to the first header file.
After the second header file is written, the temperature data is continuously written after the second header file, so that the temperature data can be analyzed subsequently according to the index information of the temperature information stored in the second header file.
It should be noted that, in this embodiment, a storage format of the thermal imager image file may be set according to an actual requirement, for example, JPEG, BMP, PNG, GIF, TIFF, and the like may be set, which is not limited in this embodiment. The image files of the thermal imager are stored in a standard image file format, the shooting effect of the thermal imager can be checked through a Windows system with a picture browser in an upper computer, and deeper temperature measurement secondary analysis can be performed through special analysis software.
According to the storage method of the thermal imager image file provided by the embodiment of the invention, when the thermal imager is triggered to shoot, a screenshot of the thermal imager at the shooting moment and temperature data of the thermal imager at the shooting moment are obtained; setting a first head file by using a screenshot, and writing the first head file into a target storage position; setting a second header file by using the index information of the temperature data, and writing the second header file into a target storage position; and writing temperature data after the second head file to obtain a thermal imager image file. That is to say, the method realizes that the screenshot and the temperature data of the thermal imager are simultaneously stored in the same file to obtain the image file of the thermal imager, so that the process of storing the image file of the thermal imager is more convenient; in addition, compared with the prior art, the method does not need to copy or process two files in the subsequent process of using the thermal imager image files, and only needs to process one thermal imager image file, so that the method improves the convenience of using the thermal imager image files.
On the basis of the above embodiments, the present embodiment further describes and optimizes the technical solution, and specifically, the present embodiment further includes:
acquiring temperature measurement parameters and storing the temperature measurement parameters in a second header file;
correspondingly, after the temperature data is written in after the second header file to obtain the thermal imager image file, the method further comprises the following steps:
inputting the temperature measurement parameters into a preset formula model to obtain new temperature data;
updating the temperature data with the new temperature data; wherein, predetermine formula model includes:
Figure BDA0002287593340000081
Figure BDA0002287593340000082
wherein, T 1 For temperature data, T, stored in thermal imager image files 2 Is an intermediate variable, T 3 For temperature data obtained by updating temperature measurement parameters, ε is emissivity, tau is atmospheric permeability, T u Is ambient temperature, T a And n is the correlation coefficient of the infrared wavelength at the atmospheric temperature.
In this embodiment, temperature measurement parameters are further obtained, where the temperature measurement parameters include emissivity, atmospheric transmittance, ambient temperature, and atmospheric temperature. Specifically, different types of sensors may be used to obtain each corresponding temperature measurement parameter, or the corresponding temperature measurement parameter may be obtained by responding to an input operation of a user.
Then, inputting the acquired temperature measurement parameters into a preset formula model so as to input new temperature data according to the temperature measurement parameters by using the preset formula model; and updating the temperature data in the thermal imager image file by using the output new temperature data.
In this embodiment, the predetermined formula model is:
Figure BDA0002287593340000091
Figure BDA0002287593340000092
wherein, T 1 For temperature data, T, stored in thermal imager image files 2 Is an intermediate variable, T 3 For temperature data obtained by updating temperature measurement parameters, ε is emissivity, tau is atmospheric permeability, T u Is the ambient temperature, T a And n is the correlation coefficient of the infrared wavelength at the atmospheric temperature.
Therefore, according to the method of the embodiment, the real-time updating of the temperature can be realized according to the obtained temperature measurement parameters, the error of temperature data caused by the wrong temperature measurement parameter setting when the thermal imager shoots is avoided, and the accuracy of the thermal imager image file is further improved.
On the basis of the above embodiment, the embodiment further describes and optimizes the technical solution, and specifically, when triggering the thermal imager to shoot, the embodiment further includes:
acquiring infrared data and a visible light image at the shooting moment;
correspondingly, the process of setting the second header file by using the index information of the temperature data and writing the second header file into the target storage location specifically comprises the following steps:
setting a second header file by using the index information of the temperature data, the index information of the infrared data and the index information of the visible light image, and writing the second header file into a target storage position;
correspondingly, the process of writing temperature data after the second head file to obtain the thermal imager image file specifically comprises the following steps:
and writing the visible light image, the infrared data and the temperature data after the second head file according to a preset format to obtain a thermal imager image file.
The technical solution of the present embodiment is explained with reference to the schematic diagram of a storage format of a thermal imager image file shown in fig. 2 and the schematic diagram of a second header file shown in fig. 3. Specifically, in the embodiment, when the thermal imager is triggered to shoot, infrared data and a visible light image at the shooting moment are further acquired. The infrared data is the data acquired by an infrared imaging sensor in the thermal imager, and is stored as the infrared imaging data of each pixel point, and each pixel point is represented by 8bit gray value; the visible light image is an image captured by a visible light sensor, and the visible light image may be stored in an RGB format, which is not limited thereto. Correspondingly, when the second header file is set, the second header file needs to be further set by using the index information of the temperature data, the index information of the infrared data and the index information of the visible light image, and then the second header file is written into a target storage position; in this way, infrared data and visible light images can be read further subsequently according to the second header file. On the basis, the visible light image, the infrared data and the temperature data are written in the second head file according to a preset format, and a thermal imager image file is obtained.
It should be noted that the preset format refers to a preset sequence for writing the visible light image, the infrared data, and the temperature data, and is specifically set according to actual requirements, which is not limited in this embodiment.
Therefore, the infrared data and the visible light image are further stored in the thermal imager image file, more analysis processing operations can be performed by subsequently utilizing the thermal imager image file, and the use experience of a user is further improved.
As a preferred embodiment, after acquiring the infrared data and the visible light image at the shooting time, the present embodiment further includes:
and carrying out non-uniformity correction and/or denoising and/or detail enhancement operation on the infrared data.
It is understood that the non-uniformity correction method may be a calibration-based correction algorithm and a scene-based correction algorithm, wherein the calibration-based correction algorithm specifically includes, for example, a two-point correction algorithm TPC, a multi-point correction algorithm ETPC, and a polynomial fitting algorithm; the correction algorithm based on the scene specifically comprises a neural network method, a time domain high-pass filtering algorithm, a constant statistical averaging method and the like. Denoising refers to filtering out noisy data in the infrared data. Detail enhancement refers to enhancing detail features in infrared data by means of dynamic compression methods and the like.
It should be noted that, in practical operation, the infrared image may be subjected to non-uniformity correction and/or denoising and/or detail enhancement operation, so as to further improve the accuracy of the thermal imager image file.
On the basis of the foregoing embodiment, the present embodiment further describes and optimizes the technical solution, and specifically, after writing the visible light image, the infrared data, and the temperature data in the second header file according to the preset format to obtain the thermal imager image file, the present embodiment further includes:
and performing data compression operation on the thermal imager image file, and storing the compressed thermal imager image file.
Specifically, in the embodiment, after the visible light image, the infrared data and the temperature data are written in the second header file according to the preset format to obtain the thermal imager image file, the thermal imager image file is further subjected to data compression operation, and the compressed thermal imager image file is stored. It should be noted that, data compression is a technical method for reducing data volume to reduce storage space and improve transmission, storage and processing efficiency thereof on the premise of not losing information; or reorganize the data according to a certain algorithm, and reduce the redundancy and storage space of the data.
Therefore, by further performing data compression operation on the thermal imager image files, the storage space required for storing the thermal imager image files can be further reduced, transmission resources required during transmission of the thermal imager image files can be further reduced, and the rate of copying the thermal imager image files can be improved.
On the basis of the foregoing embodiment, the present embodiment further describes and optimizes the technical solution, and specifically, after writing the visible light image, the infrared data, and the temperature data in the second header file according to the preset format to obtain the thermal imager image file, the present embodiment further includes:
and carrying out data encryption operation on the thermal imager image file, and storing the encrypted thermal imager image file.
In this embodiment, after the visible light image, the infrared data and the temperature data are written into the second header file according to the preset format to obtain the thermal imager image file, the thermal imager image file is further subjected to data encryption operation, and the encrypted thermal imager image file is stored.
That is to say, the thermal imager image file is converted into a meaningless ciphertext (cipher text) through the Encryption key and the Encryption function, and the encrypted thermal imager image file is stored, so that the thermal imager image file needs to be decrypted by using the decryption key first when the thermal imager image file needs to be read subsequently, and the original thermal imager image file can be obtained only under the condition that the decryption is successful.
Therefore, in the embodiment, after the visible light image, the infrared data and the temperature data are written in the second header file according to the preset format to obtain the thermal imager image file, the thermal imager image file is further subjected to data encryption operation, and the encrypted thermal imager image file is stored, so that the security of storing the thermal imager image file can be further improved.
On the basis of the foregoing embodiment, the present embodiment further describes and optimizes the technical solution, and specifically, before writing the visible light image, the infrared data, and the temperature data into the second header file according to the preset format to obtain the thermal imager image file, the present embodiment further includes:
converting the temperature data into corresponding data in an integer form;
correspondingly, writing the visible light image, the infrared data and the temperature data after the second head file according to a preset format to obtain the thermal imager image file, which specifically comprises the following steps:
and writing the visible light image, the infrared data and the data in the integer form into the second header file according to a preset format to obtain the thermal imager image file.
It should be noted that the temperature data generally includes decimal places and is expressed in kelvin temperature. In this embodiment, after the temperature data is obtained, the temperature data is first converted into data in the form of corresponding integers, and correspondingly, when the temperature data is stored, the visible light image, the infrared data and the data in the form of integers are written into the second header file according to a preset format, so as to obtain the thermal imager image file. The temperature value of each pixel point occupies 2Byte space, and compared with a mode of directly storing temperature data, the method can relatively reduce the space required by storing the temperature data.
It can be understood that, since data conversion is performed when temperature data is stored, corresponding conversion is also required to be performed when temperature data is used, and the temperature data is restored to actual temperature data. For example, the kelvin temperature data is expanded by 10 times to eliminate the fractional part at the time of conversion to obtain integer data, and the integer data is stored, and the integer data is divided by 10 at the time of use, so that the kelvin temperature can be converted into the actual kelvin temperature.
Based on the thermal imager image files obtained correspondingly by the storage method of the thermal imager image files provided by the embodiment, the embodiment provides a reading method of the thermal imager image files; please refer to a flowchart of a method for reading an image file of a thermal imager as shown in fig. 4, where the method includes:
s21: acquiring a pre-stored thermal imager image file;
s22: reading a screen capture in the thermal imager image file according to the first head file;
s23: reading data information of preset digits in the thermal imager image file according to a preset rule, and judging whether the data information is a second header file; if yes, entering S24;
s24: and analyzing the second header file to obtain temperature data in the thermal imager image file.
Specifically, when reading the thermal imager image file by using an upper computer, firstly, obtaining the pre-stored thermal imager image file, then reading according to a JPEG file format, obtaining a screenshot in the thermal imager image file, when reading a JPEG end symbol 0xFFD9 of a first header file, further reading data information of a preset digit according to a preset rule, and judging whether the read data information is a second header file, wherein the specific judgment mode is as follows: judging whether the initial character of the read data information is the same as the self-defined initial character 0xACCA of the second header file or not; if the data information is the same as the user-defined header size preset in the second file, further judging whether the size of the read data information is the same as the user-defined header size preset in the second file; if the data information is the same as the self-defined header file, further judging whether the end character of the read data information is the same as the self-defined header file end character 0 xCAC in the second header file; if the data information is the same as the read data information, the read data information is a second header file; therefore, the temperature data in the thermal imager image file can be acquired by analyzing the second header file.
It should be noted that, if the temperature measurement parameters and the thermal imager state information are stored in the second header file of the pre-stored thermal imager image file, the temperature measurement parameters and the thermal imager state information may also be obtained by analyzing the second header file. And when the pre-stored thermal imager image file is stored with the infrared data and the visible light image, the thermal imager image file can be further analyzed to obtain the corresponding infrared data and the corresponding visible light image for analysis of more functions.
Therefore, the method of the embodiment can conveniently and effectively read the data information in the image file of the thermal imager, and further perform secondary temperature measurement analysis by using the read data information.
It should be noted that, in combination with the relationship diagram between the data information and the function, as shown in fig. 5, after the upper computer acquires the screenshot, the temperature data, the thermal imager state information, the temperature measurement parameter, the visible light image, and the infrared data, the following functions may be implemented according to the acquired information:
the pseudo color switching function:
the upper computer is preset with the same pseudo-color plates as those in the thermal imager, and when a plurality of pseudo-color plates exist, the pseudo-color plates in the upper computer and the thermal imager are respectively numbered in the same way, so that the recorded pseudo-color numbers can be read subsequently according to the state information of the thermal imager, and the pseudo-color effect when the thermal imager is used for shooting is reproduced in the upper computer by using the same pseudo-color numbers. In addition, other pseudo-color effects in the pseudo-color plate can be switched to, and the functions of firstly shooting and then replacing the pseudo-color plate off line are realized.
Image mode switching function:
it should be noted that the image modes in this embodiment include a visible light mode, an infrared mode, a thermal fusion mode, a picture-in-picture mode, an iMIX mode, and the like, the switching of the image modes depends on data information such as infrared data, visible light images, and temperature measurement parameters, and the upper computer uses a preset algorithm to switch between different image modes through the read data information. For example, for the thermal fusion mode, the image after thermal fusion is obtained according to the following preset algorithm:
RHgray(x,y)=α×IR(x,y)+β×VI(x,y);
wherein, alpha, beta is more than 0, alpha + beta =1, IR (x, y) represents infrared data, VI (x, y) represents a visible light image, and the two can realize the thermal fusion function by weighting with different proportions.
Other image mode acquisition methods are common knowledge of those skilled in the art, and are not described herein.
Temperature data update function:
temperature data is updated by modifying temperature measurement parameters such as emissivity, atmospheric transmittance, ambient temperature and atmospheric temperature. The specific implementation steps of this function may refer to the implementation steps for updating the temperature data in the thermal imager image file in the above embodiments, which are not described herein again.
Temperature data statistics function:
by reading the temperature data in the image file of the thermal imager, the temperature of a certain point, a certain line or a certain area of the visible light image and the infrared data can be statistically analyzed, and statistical information such as a maximum temperature value, a minimum temperature value, an average temperature value, variance and the like is given out, so that the statistical analysis of the temperature data is realized.
The above detailed description is given for the embodiment of the method for storing a thermal imager image file according to the present invention, and the present invention further provides a device, an apparatus, and a computer-readable storage medium for storing a thermal imager image file corresponding to the method.
Fig. 6 is a structural diagram of a storage device for thermal imager image files according to an embodiment of the present invention, and as shown in fig. 6, the storage device for thermal imager image files includes:
the information acquisition module 61 is used for acquiring a screen capture of the thermal imager at the shooting moment and temperature data of the thermal imager at the shooting moment when the thermal imager is triggered to shoot;
a first writing module 62, configured to set a first head file by using the screenshot, and write the first head file into the target storage location;
a second writing module 63, configured to set a second header file by using the index information of the temperature data, and write the second header file into a target storage location;
and a third writing module 64, configured to write temperature data after the second header file, so as to obtain a thermal imager image file.
The storage device for the thermal imager image files provided by the embodiment of the invention has the beneficial effects of the storage method for the thermal imager image files.
As a preferred embodiment, further comprising:
the temperature measurement parameter acquisition module is used for acquiring temperature measurement parameters and storing the temperature measurement parameters in a second header file;
the temperature measurement parameter input module is used for inputting the temperature measurement parameters into a preset formula model to obtain new temperature data;
the temperature data updating module is used for updating the temperature data by using the new temperature data; wherein, predetermine formula model includes:
Figure BDA0002287593340000151
Figure BDA0002287593340000152
wherein, T 1 For temperature data, T, stored in thermal imager image files 2 Is an intermediate variable, T 3 For temperature data obtained by updating temperature measurement parameters, ε is emissivity, tau is atmospheric permeability, T u Is ambient temperature, T a And n is the correlation coefficient of infrared wavelength at the atmospheric temperature.
As a preferred embodiment, further comprising:
the first acquisition module is used for acquiring infrared data and visible light images at the shooting moment;
correspondingly, the second writing module specifically comprises:
the second writing sub-module is used for setting a second head file by using the index information of the temperature data, the index information of the infrared data and the index information of the visible light image and writing the second head file into a target storage position;
correspondingly, the third write module specifically includes:
and the third write-in sub-module is used for writing the visible light image, the infrared data and the temperature data after the second head file according to the preset format to obtain the thermal imager image file.
As a preferred embodiment, further comprising:
and the preprocessing module is used for carrying out non-uniformity correction and/or denoising and/or detail enhancement operation on the infrared data.
As a preferred embodiment, further comprising:
and the compression module is used for carrying out data compression operation on the thermal imager image file and storing the compressed thermal imager image file.
As a preferred embodiment, further comprising:
and the encryption module is used for carrying out data encryption operation on the thermal imager image file and storing the encrypted thermal imager image file.
As a preferred embodiment, further comprising:
the data conversion module is used for converting the temperature data into data in a corresponding integer form;
correspondingly, the third write submodule specifically is:
and the third writing unit is used for writing the visible light image, the infrared data and the data in the integer form after the second head file according to the preset format to obtain the thermal imager image file.
Fig. 7 is a structural diagram of a storage device for thermal imager image files according to an embodiment of the present invention, and as shown in fig. 7, the storage device for thermal imager image files includes:
a memory 71 for storing a computer program;
a processor 72 for implementing the steps of the method for storing thermal imager image files as described above when executing the computer program.
The storage device for the thermal imager image files provided by the embodiment of the invention has the beneficial effects of the storage method for the thermal imager image files.
In order to solve the technical problem, the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the storage method for the thermal imager image file are implemented as described above.
The computer-readable storage medium provided by the embodiment of the invention has the beneficial effects of the thermal imager image file storage method.
The method, the device, the equipment and the computer readable storage medium for storing the thermal imager image file provided by the invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are set forth only to help understand the method and its core ideas of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.

Claims (9)

1. A method for storing an image file of a thermal imager is characterized by comprising the following steps:
when the thermal imager is triggered to shoot, acquiring a screen capture of the thermal imager at the shooting moment and temperature data of the thermal imager at the shooting moment;
setting a first head file by utilizing the screenshot, and writing the first head file into a target storage position;
setting a second header file by using the index information of the temperature data, and writing the second header file into the target storage position;
writing the temperature data after the second header file to obtain a thermal imager image file;
acquiring temperature measurement parameters and storing the temperature measurement parameters in the second header file;
correspondingly, after the temperature data is written into the second header file to obtain the thermal imager image file, the method further comprises the following steps:
inputting the temperature measurement parameters into a preset formula model to obtain new temperature data;
updating the temperature data with the new temperature data; wherein the preset formula model comprises:
Figure FDA0004074431640000011
Figure FDA0004074431640000012
wherein, T 1 Temperature data, T, stored in the thermal imager image file 2 Is an intermediate variable, T 3 For temperature data obtained by updating temperature measurement parameters, ε is emissivity, tau is atmospheric permeability, T u Is ambient temperature, T a And n is the correlation coefficient of the infrared wavelength at the atmospheric temperature.
2. The method of claim 1, wherein when triggering the thermal imager to shoot, further comprising:
acquiring infrared data and a visible light image at the shooting moment;
correspondingly, the process of setting a second header file by using the index information of the temperature data and writing the second header file into the target storage location specifically includes:
setting the second header file by using the index information of the temperature data, the index information of the infrared data and the index information of the visible light image, and writing the second header file into the target storage position;
correspondingly, the process of writing the temperature data after the second head file to obtain the thermal imager image file specifically comprises the following steps:
and writing the visible light image, the infrared data and the temperature data after the second head file according to a preset format to obtain the thermal imager image file.
3. The method of claim 2, further comprising, after said acquiring infrared data and visible light images at a time of capture:
and carrying out non-uniformity correction and/or denoising and/or detail enhancement operation on the infrared data.
4. The method of claim 2, wherein after said writing the visible light image, the infrared data, and the temperature data after the second header file according to the predetermined format to obtain the thermal imager image file, further comprises:
and performing data compression operation on the thermal imager image file, and storing the compressed thermal imager image file.
5. The method of claim 2, wherein after said writing the visible light image, the infrared data, and the temperature data after the second header file according to the predetermined format to obtain the thermal imager image file, further comprises:
and carrying out data encryption operation on the thermal imager image file, and storing the encrypted thermal imager image file.
6. The method of claim 2, wherein before the writing the visible light image, the infrared data, and the temperature data after the second header file according to the predetermined format to obtain the thermal imager image file, further comprises:
converting the temperature data into corresponding data in an integer form;
correspondingly, the process of writing the visible light image, the infrared data and the temperature data after the second header file according to the preset format to obtain the thermal imager image file specifically comprises the following steps:
and writing the visible light image, the infrared data and the data in the integer form after the second head file according to the preset format to obtain the thermal imager image file.
7. A thermal imager image file storage device, comprising:
the information acquisition module is used for acquiring a screen capture of the thermal imager at the shooting moment and temperature data of the thermal imager at the shooting moment when the thermal imager is triggered to shoot;
the first writing module is used for setting a first head file by utilizing the screenshot and writing the first head file into a target storage position;
the second writing module is used for setting a second head file by using the index information of the temperature data and writing the second head file into the target storage position;
the third writing module is used for writing the temperature data after the second head file to obtain a thermal imager image file;
the temperature measurement parameter acquisition module is used for acquiring temperature measurement parameters and storing the temperature measurement parameters in the second header file;
the temperature measurement parameter input module is used for inputting the temperature measurement parameters into a preset formula model to obtain new temperature data;
the temperature data updating module is used for updating the temperature data by using the new temperature data; wherein the preset formula model comprises:
Figure FDA0004074431640000031
Figure FDA0004074431640000032
wherein, T 1 Temperature data, T, stored in the thermal imager image file 2 Is an intermediate variable, T 3 For temperature data obtained by updating temperature measurement parameters, ε is emissivity, tau is atmospheric permeability, T u Is ambient temperature, T a And n is the correlation coefficient of the infrared wavelength at the atmospheric temperature.
8. A thermal imager image file storage device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for storing thermal imager image files according to any one of claims 1 to 6 when executing said computer program.
9. A computer-readable storage medium, characterized in that a computer program is stored thereon which, when being executed by a processor, carries out the steps of the method for storing thermal imager image files of any one of claims 1 to 6.
CN201911166487.XA 2019-11-25 2019-11-25 Thermal imager image file storage method, device, equipment and storage medium Active CN111026708B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911166487.XA CN111026708B (en) 2019-11-25 2019-11-25 Thermal imager image file storage method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911166487.XA CN111026708B (en) 2019-11-25 2019-11-25 Thermal imager image file storage method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111026708A CN111026708A (en) 2020-04-17
CN111026708B true CN111026708B (en) 2023-04-14

Family

ID=70206660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911166487.XA Active CN111026708B (en) 2019-11-25 2019-11-25 Thermal imager image file storage method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111026708B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111879412B (en) * 2020-08-03 2021-12-21 烟台艾睿光电科技有限公司 Image generation method and device for refrigeration type infrared detector and readable storage medium
CN112004093B (en) * 2020-09-02 2022-07-12 烟台艾睿光电科技有限公司 Infrared data compression method, device and equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092991A (en) * 2013-02-08 2013-05-08 宁波江丰生物信息技术有限公司 Image information processing method and device and image displaying method and device
CN104251737A (en) * 2013-06-26 2014-12-31 南京理工大学 Infrared thermometer data analysis processing platform and method
CN104715070A (en) * 2015-04-01 2015-06-17 武汉中科通达高新技术股份有限公司 Large image file as well as generation and read method thereof
CN105389375A (en) * 2015-11-18 2016-03-09 福建师范大学 Viewshed based image index setting method and system, and retrieving method
WO2016051849A1 (en) * 2014-09-30 2016-04-07 富士フイルム株式会社 Infrared imaging device, image processing method, and image processing program
CN105740437A (en) * 2016-01-30 2016-07-06 曲阜裕隆生物科技有限公司 3D (Three-Dimensional) image storage method and display method and 3D image file format
CN106327421A (en) * 2016-09-13 2017-01-11 首都师范大学 Image data storage method and image data storage device
CN106649474A (en) * 2016-09-29 2017-05-10 上海热像机电科技股份有限公司 Novel infrared image data storage method
CN109120846A (en) * 2018-08-01 2019-01-01 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment, computer readable storage medium
CN109286739A (en) * 2018-08-07 2019-01-29 国网上海市电力公司 The generation method of thermal imagery file creating apparatus and thermal imagery file
CN109698890A (en) * 2017-10-20 2019-04-30 龙芯中科技术有限公司 Image file store method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092991A (en) * 2013-02-08 2013-05-08 宁波江丰生物信息技术有限公司 Image information processing method and device and image displaying method and device
CN104251737A (en) * 2013-06-26 2014-12-31 南京理工大学 Infrared thermometer data analysis processing platform and method
WO2016051849A1 (en) * 2014-09-30 2016-04-07 富士フイルム株式会社 Infrared imaging device, image processing method, and image processing program
CN104715070A (en) * 2015-04-01 2015-06-17 武汉中科通达高新技术股份有限公司 Large image file as well as generation and read method thereof
CN105389375A (en) * 2015-11-18 2016-03-09 福建师范大学 Viewshed based image index setting method and system, and retrieving method
CN105740437A (en) * 2016-01-30 2016-07-06 曲阜裕隆生物科技有限公司 3D (Three-Dimensional) image storage method and display method and 3D image file format
CN106327421A (en) * 2016-09-13 2017-01-11 首都师范大学 Image data storage method and image data storage device
CN106649474A (en) * 2016-09-29 2017-05-10 上海热像机电科技股份有限公司 Novel infrared image data storage method
CN109698890A (en) * 2017-10-20 2019-04-30 龙芯中科技术有限公司 Image file store method and device
CN109120846A (en) * 2018-08-01 2019-01-01 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment, computer readable storage medium
CN109286739A (en) * 2018-08-07 2019-01-29 国网上海市电力公司 The generation method of thermal imagery file creating apparatus and thermal imagery file

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于智能手机的红外热成像测温系统研究;张琨;《中国优秀硕士学位论文全文数据库信息科技辑》(第8期);全文 *

Also Published As

Publication number Publication date
CN111026708A (en) 2020-04-17

Similar Documents

Publication Publication Date Title
Thongkamwitoon et al. An image recapture detection algorithm based on learning dictionaries of edge profiles
Fridrich Steganography in digital media: principles, algorithms, and applications
CN108605099B (en) Terminal and method for terminal photographing
US9445069B2 (en) Image-processing device, image-capturing device, image-processing method, and recording medium
JP4556813B2 (en) Image processing apparatus and program
CN101998041B (en) Imaging apparatus and method of controlling same
US20100027853A1 (en) Image encryption system and method for automatically encrypting image of at least partially nude person and digital image capture device having same
CN111026708B (en) Thermal imager image file storage method, device, equipment and storage medium
US9207768B2 (en) Method and apparatus for controlling mobile terminal using user interaction
US20040095600A1 (en) Image processing system, image capturing device, image processing terminal, image processing data storage terminal, program for the device, program for the terminal, data structure of image data, method of processing image, and method of generating image data
Murali et al. Comparision and analysis of photo image forgery detection techniques
JP6096382B2 (en) Image processing apparatus, imaging apparatus, image processing method, and program
JP4533287B2 (en) Color processing method and apparatus
CN110248177B (en) Image data processing method and device
JPH11161773A (en) Method for processing picture and device for inputting picture
JP4385841B2 (en) Image processing device
US9633418B2 (en) Image processing device, imaging apparatus, image processing method, and program
JP2015076782A (en) Image processing device, control method therefor, and control program
JP6374849B2 (en) User terminal, color correction system, and color correction method
CN108370415B (en) Image processing apparatus and image processing method
JP2017224939A (en) Imaging apparatus
JPWO2018025466A1 (en) Image processing apparatus and image processing method
JP2014123881A (en) Information processing device, information processing method, and computer program
CN113284127B (en) Image fusion display method and device, computer equipment and storage medium
CN111325652A (en) Information embedding method, information extracting method, information embedding device, information extracting device, information embedding equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20200417

Assignee: INFIRAY TECHNOLOGIES CO.,LTD.

Assignor: Yantai Airui Photo-Electric Technology Co.,Ltd.

Contract record no.: X2024980006380

Denomination of invention: A storage method, device, device, and storage medium for thermal imager image files

Granted publication date: 20230414

License type: Common License

Record date: 20240530

EE01 Entry into force of recordation of patent licensing contract