Infrared thermal image non-uniformity correction parameter and blind element table backup and remote recovery method

Through the serial port export and restore of inhomogeneity correction parameters and blind tables of infrared thermal images, the problem of difficulty in recovery after user error operation is solved, and the guarantee of infrared image quality and simplification of maintenance process is achieved.

CN119540101APending Publication Date: 2025-02-28KUNMING INST OF PHYSICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411517364.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

The existing infrared thermal image non-uniformity correction parameters and blind table curing design are difficult to recover after user error operation, resulting in a decline in infrared image quality and need to be returned to the factory to recalibrate, which is time-consuming and labor-intensive and cannot guarantee timeliness.

Method used

The non-uniformity correction parameter group and blind table of infrared thermal images are exported to the local PC for backup through the serial port, and the backup parameters are restored to the FLASH designated storage space through the serial port when necessary.

Benefits of technology

It realizes backup and remote recovery of infrared thermal image parameters and blind tables, avoids image quality decline caused by user misoperation, simplifies maintenance processes, and improves timeliness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119540101A_ABST
    Figure CN119540101A_ABST
Patent Text Reader

Abstract

The invention relates to an infrared thermal image non-uniformity correction parameter and blind pixel table backup and remote recovery method, and belongs to the technical field of infrared thermal image non-uniformity correction parameter and blind pixel table curing. According to the invention, all non-uniformity correction parameter groups and blind pixel tables, which are originally solidified in an imaging circuit storage medium FLASH, of an infrared thermal image are exported to a local PC terminal for backup through a serial port; and when the infrared thermal image heterogeneity correction parameter and the blind pixel table have errors and need to be remotely recovered, the backup heterogeneity correction parameter and the blind pixel table can be recovered to the specified storage space of the FLASH through the serial port. The method can effectively solve the problems that after an infrared thermal image is delivered to a user, the user stores abnormal two-point correction parameters and a blind pixel distribution table due to misoperation in the using process, infrared image output is affected, and the infrared thermal image can only be returned to a factory to be subjected to non-uniformity parameter calibration again, so that time and labor are wasted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of infrared thermal image non-uniformity correction parameter and blind element table curing, and in particular relates to an infrared thermal image non-uniformity correction parameter and blind element table backup and remote recovery method. Background Art

[0002] At present, due to the limitations of factors such as the level of infrared detector preparation materials and related manufacturing processes, there is obvious response non-uniformity in each pixel of the infrared focal plane, which seriously affects the quality of infrared images. In order to reduce the impact of the response non-uniformity of detector pixels during use and improve the infrared image quality and infrared thermal imaging observation effect, it is often necessary to calibrate the non-uniformity correction parameters of infrared thermal images under different usage conditions and radiation environments in a targeted manner. In this process, pixels with too high and too low responses will be marked as blind pixels according to the response values ​​of each pixel, and the blind pixel position information will be stored in the storage medium FLASH in the form of a blind pixel table. Each time the infrared thermal imager is turned on, the blind pixel table will be read from the FLASH, and the corresponding blind pixel replacement will be made according to the blind pixel distribution before outputting the infrared image.

[0003] In the actual use of infrared thermal imaging, multiple sets of non-uniformity correction parameters are often stored in the infrared thermal imager to match different working temperatures and different thermal radiation energy scenes, and then a set of non-uniformity correction parameters that best matches the actual infrared thermal imaging working environment and scene thermal radiation conditions is retrieved for actual use.

[0004] After completing the calibration of multiple sets of non-uniformity correction parameters and the infrared thermal imager is delivered to the user, the user often changes the integration time of the infrared detector according to the actual usage to collect data and calculate the two-point correction parameters and blind element distribution, and finally saves them to the storage medium FLASH. This operation will overwrite the original calibration parameters of the infrared thermal imager and update the factory blind element table. If the user collects abnormal two-point correction parameters and blind element distribution table due to misoperation during use, and saves them to FLASH, this will overwrite the original normal factory blind element table. After each startup, the image output by the infrared thermal imager will be affected after reading the wrong blind element table. In the existing design of infrared thermal imager non-uniformity correction parameters and blind element table curing, in the face of the above situation, the infrared thermal imager can only be returned to the factory to re-calibrate the infrared thermal imager non-uniformity correction parameters and obtain a normal blind element table. This is not only time-consuming and labor-intensive, but also cannot guarantee timeliness.

[0005] Therefore, how to overcome the shortcomings of the existing technology is an urgent problem to be solved in the field of infrared non-uniformity correction parameters and blind pixel table curing technology. Summary of the invention

[0006] The purpose of the present invention is to solve the deficiencies of the prior art and provide a method for backing up and remotely restoring infrared thermal imaging non-uniformity correction parameters and blind element tables. The method can export all non-uniformity correction parameter groups and blind element tables originally solidified in the imaging circuit storage medium FLASH of the infrared thermal imager to the local PC for backup through the serial port, and can also restore the backed-up non-uniformity correction parameters and blind element tables to the designated storage space of FLASH through the serial port when necessary.

[0007] To achieve the above purpose, the technical solution adopted by the present invention is as follows:

[0008] The infrared thermal image non-uniformity correction parameter and blind element table backup and remote recovery method includes the following steps:

[0009] Step (1), planning the FLASH storage space according to the size of the detector array; the storage address of the FLASH includes the FPGA program storage space, all non-uniformity correction parameter groups and the blind element table;

[0010] Each group of non-uniformity correction parameter groups includes a gain parameter and a bias parameter corresponding to each pixel of the detector array, an integration time parameter used by the detector of the group of non-uniformity correction parameters, and a detector bias voltage parameter;

[0011] Step (2), connecting the local PC to the infrared thermal imager through the serial port of the infrared thermal imager via a serial port line, and running the thermal imaging communication control host computer software on the PC;

[0012] Step (3), configuring the serial port working mode and serial port communication data format in the thermal imaging communication control host computer software according to the parameter upload and parameter download communication protocols;

[0013] Step (4), the thermal imaging communication control host computer software sends a parameter download communication handshake instruction to the infrared thermal imager. After the thermal imaging communication control host computer software receives the infrared thermal imager handshake success reply, go to step (5); otherwise, the thermal imaging communication control host computer software cannot go to step (5);

[0014] Step (5), the thermal imaging communication control host computer software sends a parameter download preprocessing command to the infrared thermal imager, the thermal imaging communication control host computer software selects the parameter area number to be backed up, the infrared thermal imaging circuit splits the selected pre-read non-uniformity correction parameter or blind element table data into 128 bytes per data packet, and fills the last data packet with zeros if it is less than 128 bytes, and then the infrared thermal imager returns the total number of split data packets to the thermal imaging communication control host computer software according to the parameter download preprocessing communication protocol format;

[0015] Step (6), the thermal imaging communication control host computer software sends a parameter download formal processing command to the infrared thermal imager, and the thermal imaging communication control host computer software stores the pre-read non-uniformity correction parameters or the split data packets of the blind element table data in a binary bin file format; the thermal imaging communication control host computer software sends a data packet command to read the current sending data packet number to the infrared thermal imager according to the parameter download formal processing communication protocol format, and the current packet number starts with 1. After each successful reception of 128 bytes of data of the current sending data packet number returned by the infrared thermal imager and successfully written into the bin file, the current sending data packet number increases by 1, and this cycle continues until the current sending data packet number is equal to the total number of packets in the selected parameter area to be backed up;

[0016] Step (7), when the number of the currently sent data packet in step (6) is equal to the total number of packets, the thermal imaging communication control host computer software sends a parameter download processing completion command to the infrared thermal imager, and after the infrared thermal imager receives the command, a parameter download completion character is displayed on the infrared image;

[0017] Step (8), the thermal imaging communication control host computer software sends a parameter upload communication handshake instruction to the infrared thermal imager, and after the host computer receives the infrared thermal imager handshake success reply, it goes to step (9); otherwise, the thermal imaging communication control host computer software cannot go to step (9);

[0018] Step (9), the thermal imaging communication control host computer software sends a parameter upload preprocessing command to the infrared thermal imager, the thermal imaging communication control host computer software selects the parameter area number to be remotely restored, and the infrared thermal imaging circuit FPGA erases the corresponding sector of the FLASH storage space corresponding to the non-uniformity correction parameter or blind element table that has been pre-uploaded on the local PC end. After the erasure is successful, the infrared thermal imager returns an erasure success command to the thermal imaging communication control host computer software according to the communication protocol;

[0019] Step (10), the thermal imaging communication control host computer software sends a parameter upload formal processing command to the infrared thermal imager, and the infrared thermal imaging circuit FPGA writes the selected non-uniformity correction parameter or blind element table bin file that has been pre-uploaded on the local PC end into the storage sector corresponding to the FLASH; the thermal imaging communication control host computer software splits the bin file data into 128 bytes per packet, and if the bin file is not enough for the FLASH at the end, The data of one sector is padded with zeros. After the padded with zeros, the current 128-byte data and the total number of data unpacked packets are uploaded according to the parameter formal processing communication protocol format and sent to the infrared thermal imager. The infrared thermal imager successfully receives the current packet data and stores the data in the cache medium DDR3 in sequence according to the cache address. Then the infrared thermal imager returns a reply with the current data packet number to the thermal imaging communication control host computer software. The current data packet number starts with 1. After each successful reception of the unpacked 128-byte data sent by the thermal imaging communication control host computer software and successful cache in DDR3, the current packet number increases by 1, and the cache address increases by 128 at the same time. Until the DDR3 is fully cached with data of the capacity of one FLASH sector, the cache address is cleared, and the infrared thermal imager writes the capacity data into the FLASH, and so on. The cycle continues until the current packet number is equal to the total number of packets.

[0020] Step (11), when the current package number in step (10) is equal to the total number of packages, the infrared thermal imager displays the parameter upload completion character on the infrared image, and at the same time returns a data write completion command to the thermal imaging communication control host computer software. After the thermal imaging communication control host computer software receives the command, it displays the parameter upload completion in the status bar.

[0021] Furthermore, preferably, in step (1), the storage address of FLASH includes, from low to high, the FPGA program storage space, all non-uniformity correction parameter groups, blind pixel tables and other parameter groups, and other parameter groups generally include infrared thermal imaging circuit configuration parameters, infrared thermal imaging cumulative working time and reserved parameter areas.

[0022] Furthermore, preferably, in step (3), the serial port working mode is configured to be a full-duplex working mode, and the serial port communication data format is configured to be a communication baud rate of 460800 bps, a data bit length of 8 bits, a start bit length of 1 bit, a stop bit length of 1 bit and a data check form of odd check.

[0023] Furthermore, preferably, in step (5), the total size of the packets occupies 3 bytes, with the high byte in front and the low byte in the back.

[0024] The present invention can export all non-uniformity correction parameter groups and blind element tables originally solidified in the imaging circuit storage medium FLASH of the infrared thermal imager to the local PC for backup through the serial port, and can also restore the backed-up non-uniformity correction parameters and blind element tables to the designated storage space of FLASH through the serial port when remote recovery is required after errors in the infrared thermal imager non-uniformity correction parameters and blind element tables.

[0025] Compared with the prior art, the present invention has the following beneficial effects:

[0026] Compared with the prior art, the present invention can back up multiple groups of non-uniformity correction parameters and blind element tables of mass-produced infrared thermal images that have been calibrated on the local PC side through the serial port, which can solve the problem that after the infrared thermal image is delivered to the user, the user saves abnormal two-point correction parameters and blind element distribution tables due to misoperation during use, affecting the infrared image output, and the infrared thermal image can only be returned to the factory for re-calibration of non-uniformity parameters, which is time-consuming and laborious. Through the present invention, the backed-up non-uniformity correction parameters and blind element tables can be provided to the user, allowing the user to restore the erroneous correction parameters and blind element tables to the original FLASH storage space through the serial port. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 It is a schematic diagram of the FLASH storage space partition of the present invention;

[0028] Figure 2 This is a schematic diagram of the parameter download process of the present invention;

[0029] Figure 3 Schematic diagram of parameter uploading process of the present invention. DETAILED DESCRIPTION

[0030] The present invention is further described in detail below in conjunction with embodiments.

[0031] Those skilled in the art will appreciate that the following examples are only used to illustrate the present invention and should not be considered to limit the scope of the present invention. If no specific techniques or conditions are specified in the examples, the techniques or conditions described in the literature in the art or the product specifications are used. If the manufacturer of the materials or equipment used is not specified, they are all conventional products that can be purchased.

[0032] Example 1

[0033] The method for backing up and remotely restoring infrared thermal image non-uniformity correction parameters and blind element tables is characterized by comprising the following steps:

[0034] Step (1), planning the FLASH storage space according to the size of the detector array; the storage address of the FLASH includes the FPGA program storage space, all non-uniformity correction parameter groups and the blind element table;

[0035] Each group of non-uniformity correction parameter groups includes a gain parameter and a bias parameter corresponding to each pixel of the detector array, an integration time parameter used by the detector of the group of non-uniformity correction parameters, and a detector bias voltage parameter;

[0036] Step (2), connecting the local PC to the infrared thermal imager through the serial port of the infrared thermal imager via a serial port line, and running the thermal imaging communication control host computer software on the PC;

[0037] Step (3), configuring the serial port working mode and serial port communication data format in the thermal imaging communication control host computer software according to the parameter upload and parameter download communication protocols;

[0038] Step (4), the thermal imaging communication control host computer software sends a parameter download communication handshake instruction to the infrared thermal imager. After the thermal imaging communication control host computer software receives the infrared thermal imager handshake success reply, go to step (5); otherwise, the thermal imaging communication control host computer software cannot go to step (5);

[0039] Step (5), the thermal imaging communication control host computer software sends a parameter download preprocessing command to the infrared thermal imager, the thermal imaging communication control host computer software selects the parameter area number to be backed up, the infrared thermal imaging circuit splits the selected pre-read non-uniformity correction parameter or blind element table data into 128 bytes per data packet, and fills the last data packet with zeros if it is less than 128 bytes, and then the infrared thermal imager returns the total number of split data packets to the thermal imaging communication control host computer software according to the parameter download preprocessing communication protocol format;

[0040] Step (6), the thermal imaging communication control host computer software sends a parameter download formal processing command to the infrared thermal imager, and the thermal imaging communication control host computer software stores the pre-read non-uniformity correction parameters or the split data packets of the blind element table data in a binary bin file format; the thermal imaging communication control host computer software sends a data packet command to read the current sending data packet number to the infrared thermal imager according to the parameter download formal processing communication protocol format, and the current packet number starts with 1. After each successful reception of 128 bytes of data of the current sending data packet number returned by the infrared thermal imager and successfully written into the bin file, the current sending data packet number increases by 1, and this cycle continues until the current sending data packet number is equal to the total number of packets in the selected parameter area to be backed up;

[0041] Step (7), when the number of the currently sent data packet in step (6) is equal to the total number of packets, the thermal imaging communication control host computer software sends a parameter download processing completion command to the infrared thermal imager, and after the infrared thermal imager receives the command, a parameter download completion character is displayed on the infrared image;

[0042] Step (8), the thermal imaging communication control host computer software sends a parameter upload communication handshake instruction to the infrared thermal imager, and after the host computer receives the infrared thermal imager handshake success reply, it goes to step (9); otherwise, the thermal imaging communication control host computer software cannot go to step (9);

[0043] Step (9), the thermal imaging communication control host computer software sends a parameter upload preprocessing command to the infrared thermal imager, the thermal imaging communication control host computer software selects the parameter area number to be remotely restored, and the infrared thermal imaging circuit FPGA erases the corresponding sector of the FLASH storage space corresponding to the non-uniformity correction parameter or blind element table that has been pre-uploaded on the local PC end. After the erasure is successful, the infrared thermal imager returns an erasure success command to the thermal imaging communication control host computer software according to the communication protocol;

[0044] Step (10), the thermal imaging communication control host computer software sends a parameter upload formal processing command to the infrared thermal imager, and the infrared thermal imaging circuit FPGA writes the selected non-uniformity correction parameter or blind element table bin file that has been pre-uploaded on the local PC end into the storage sector corresponding to the FLASH; the thermal imaging communication control host computer software splits the bin file data into 128 bytes per packet, and if the bin file is not enough for the FLASH at the end, The data of one sector is padded with zeros. After the padded with zeros, the current 128-byte data and the total number of data unpacked packets are uploaded according to the parameter formal processing communication protocol format and sent to the infrared thermal imager. The infrared thermal imager successfully receives the current packet data and stores the data in the cache medium DDR3 in sequence according to the cache address. Then the infrared thermal imager returns a reply with the current data packet number to the thermal imaging communication control host computer software. The current data packet number starts with 1. After each successful reception of the unpacked 128-byte data sent by the thermal imaging communication control host computer software and successful cache in DDR3, the current packet number increases by 1, and the cache address increases by 128 at the same time. Until the DDR3 is fully cached with data of the capacity of one FLASH sector, the cache address is cleared, and the infrared thermal imager writes the capacity data into the FLASH, and so on. The cycle continues until the current packet number is equal to the total number of packets.

[0045] Step (11), when the current package number in step (10) is equal to the total number of packages, the infrared thermal imager displays the parameter upload completion character on the infrared image, and at the same time returns a data write completion command to the thermal imaging communication control host computer software. After the thermal imaging communication control host computer software receives the command, it displays the parameter upload completion in the status bar.

[0046] Example 2

[0047] The method for backing up and remotely restoring infrared thermal image non-uniformity correction parameters and blind element tables is characterized by comprising the following steps:

[0048] Step (1), planning the FLASH storage space according to the size of the detector array; the storage address of the FLASH includes the FPGA program storage space, all non-uniformity correction parameter groups and the blind element table;

[0049] Each group of non-uniformity correction parameter groups includes a gain parameter and a bias parameter corresponding to each pixel of the detector array, an integration time parameter used by the detector of the group of non-uniformity correction parameters, and a detector bias voltage parameter;

[0050] Step (2), connecting the local PC to the infrared thermal imager through the serial port of the infrared thermal imager via a serial port line, and running the thermal imaging communication control host computer software on the PC;

[0051] Step (3), configuring the serial port working mode and serial port communication data format in the thermal imaging communication control host computer software according to the parameter upload and parameter download communication protocols;

[0052] Step (4), the thermal imaging communication control host computer software sends a parameter download communication handshake instruction to the infrared thermal imager. After the thermal imaging communication control host computer software receives the infrared thermal imager handshake success reply, go to step (5); otherwise, the thermal imaging communication control host computer software cannot go to step (5);

[0053] Step (5), the thermal imaging communication control host computer software sends a parameter download preprocessing command to the infrared thermal imager, the thermal imaging communication control host computer software selects the parameter area number to be backed up, the infrared thermal imaging circuit splits the selected pre-read non-uniformity correction parameter or blind element table data into 128 bytes per data packet, and fills the last data packet with zeros if it is less than 128 bytes, and then the infrared thermal imager returns the total number of split data packets to the thermal imaging communication control host computer software according to the parameter download preprocessing communication protocol format;

[0054] Step (6), the thermal imaging communication control host computer software sends a parameter download formal processing command to the infrared thermal imager, and the thermal imaging communication control host computer software stores the pre-read non-uniformity correction parameters or the split data packets of the blind element table data in a binary bin file format; the thermal imaging communication control host computer software sends a data packet command to read the current sending data packet number to the infrared thermal imager according to the parameter download formal processing communication protocol format, and the current packet number starts with 1. After each successful reception of 128 bytes of data of the current sending data packet number returned by the infrared thermal imager and successfully written into the bin file, the current sending data packet number increases by 1, and this cycle continues until the current sending data packet number is equal to the total number of packets in the selected parameter area to be backed up;

[0055] Step (7), when the number of the currently sent data packet in step (6) is equal to the total number of packets, the thermal imaging communication control host computer software sends a parameter download processing completion command to the infrared thermal imager, and after the infrared thermal imager receives the command, a parameter download completion character is displayed on the infrared image;

[0056] Step (8), the thermal imaging communication control host computer software sends a parameter upload communication handshake instruction to the infrared thermal imager, and after the host computer receives the infrared thermal imager handshake success reply, it goes to step (9); otherwise, the thermal imaging communication control host computer software cannot go to step (9);

[0057] Step (9), the thermal imaging communication control host computer software sends a parameter upload preprocessing command to the infrared thermal imager, the thermal imaging communication control host computer software selects the parameter area number to be remotely restored, and the infrared thermal imaging circuit FPGA erases the corresponding sector of the FLASH storage space corresponding to the non-uniformity correction parameter or blind element table that has been pre-uploaded on the local PC end. After the erasure is successful, the infrared thermal imager returns an erasure success command to the thermal imaging communication control host computer software according to the communication protocol;

[0058] Step (10), the thermal imaging communication control host computer software sends a parameter upload formal processing command to the infrared thermal imager, and the infrared thermal imaging circuit FPGA writes the selected non-uniformity correction parameter or blind element table bin file that has been pre-uploaded on the local PC end into the storage sector corresponding to the FLASH; the thermal imaging communication control host computer software splits the bin file data into 128 bytes per packet, and if the bin file is not enough for the FLASH at the end, The data of one sector is padded with zeros. After the padded with zeros, the current 128-byte data and the total number of data unpacked packets are uploaded according to the parameter formal processing communication protocol format and sent to the infrared thermal imager. The infrared thermal imager successfully receives the current packet data and stores the data in the cache medium DDR3 in sequence according to the cache address. Then the infrared thermal imager returns a reply with the current data packet number to the thermal imaging communication control host computer software. The current data packet number starts with 1. After each successful reception of the unpacked 128-byte data sent by the thermal imaging communication control host computer software and successful cache in DDR3, the current packet number increases by 1, and the cache address increases by 128 at the same time. Until the DDR3 is fully cached with data of the capacity of one FLASH sector, the cache address is cleared, and the infrared thermal imager writes the capacity data into the FLASH, and so on. The cycle continues until the current packet number is equal to the total number of packets.

[0059] Step (11), when the current package number in step (10) is equal to the total number of packages, the infrared thermal imager displays the parameter upload completion character on the infrared image, and at the same time returns a data write completion command to the thermal imaging communication control host computer software. After the thermal imaging communication control host computer software receives the command, it displays the parameter upload completion in the status bar.

[0060] In step (1), the storage address of FLASH includes the FPGA program storage space, all non-uniformity correction parameter groups, blind pixel table and other parameter groups from low to high. Other parameter groups usually include infrared thermal imaging circuit configuration parameters, infrared thermal imaging cumulative working time and reserved parameter area.

[0061] In step (3), the serial port working mode is configured to full-duplex working mode, and the serial port communication data format is configured to have a communication baud rate of 460800 bps, a data bit length of 8 bits, a start bit length of 1 bit, a stop bit length of 1 bit, and a data check form of odd check.

[0062] In step (5), the total packet size occupies 3 bytes, with the high byte in front and the low byte in the back.

[0063] Application Examples

[0064] A method for backing up and remotely restoring infrared thermal image non-uniformity correction parameters and blind element tables comprises the following steps:

[0065] Step (1): Plan the FLASH storage space reasonably according to the size of the detector array. Figure 1 As shown, it is a schematic diagram of the FLASH storage space partition of the present invention. The storage address of FLASH includes FPGA program storage space, all non-uniformity correction parameter groups, blind element table and other parameter groups from low to high. FLASH can use imported chips, whose model is SpansionS29GL512P. The actual storage size of this model FLASH is 512Mb. The storage space is expressed in hexadecimal as 0x0000,0000~0x03FFF,FFFF, including 512 sectors, and each sector occupies 128KB, that is, 131072 bytes. All non-uniformity correction parameter groups have corresponding gain and bias parameters, and each group of non-uniformity correction parameters has corresponding integration time and detector bias voltage parameters. For an infrared detector with an array size of 640×512, there are 327680 pixels in total. Each pixel corresponds to a gain and bias. The gain and bias occupy 2 bytes. Thus, the gain parameters of a set of non-uniformity correction parameters occupy 655360 bytes, which occupies 5 sectors of FLASH space. Similarly, the bias parameters also occupy 655360 bytes, which also occupies 5 sectors of FLASH space. Since FLASH performs data erasure and writing operations in sectors, each set of non-uniformity correction parameters has corresponding integration time and detector bias voltage parameters, which also occupy 1 sector of FLASH space. In this way, a set of non-uniformity correction parameters occupies 11 sectors of FLASH space. The detector blind pixel table only indicates whether the pixel at that position is a blind pixel. Its size is the same as that of the gain parameter table, and it occupies 5 sectors of FLASH space.

[0066] As shown in Table 1, this is the storage space allocation table for a 640×512 array detector using 512Mb FLASH as the storage medium, in which the FPGA program reserves 320 sectors, 15 non-uniformity correction parameter groups occupy a total of 165 sectors, the blind pixel table occupies 5 sectors, and other parameter groups occupy 22 sectors. Other parameter groups usually include infrared thermal imaging circuit configuration parameters, infrared thermal imaging cumulative working time and reserved parameter areas.

[0067] Table 1 512Mb FLASH storage space allocation table for 640×512 array detector

[0068] Storage Type Address size (Byte) Address range (hexadecimal representation) Number of sectors occupied FPGA Program 41,943,040 0x0000,0000~0x027F,FFFF 320 NUC Table 0 1,441,792 0x0280,0000~0x0295,FFFF 11 NUC Table 1 1,441,792 0x0296,0000~0x02AB,FFFF 11 NUC Table 2 1,441,792 0x02AC,0000~0x02C1,FFFF 11 NUC Table 3 1,441,792 0x02C2,0000-0x02D7,FFFF 11 NUC Table 4 1,441,792 0x02D8,0000-0x02ED,FFFF 11 NUC Table 5 1,441,792 0x02EE,0000-0x0303,FFFF 11 NUC Table 6 1,441,792 0x0304,0000-0x0319,FFFF 11 NUC Table 7 1,441,792 0x031A,0000-0x032F,FFFF 11 NUC Table 8 1,441,792 0x0330,0000-0x0345,FFFF 11 NUC Table9 1,441,792 0x0346,0000-0x035B,FFFF 11 NUC Table 10 1,441,792 0x035C,0000-0x0371,FFFF 11 NUC Table 11 1,441,792 0x0372,0000-0x0387,FFFF 11 NUC Table 12 1,441,792 0x0388,0000-0x039D,FFFF 11 NUC Table 13 1,441,792 0x039E,0000-0x03B3,FFFF 11 NUC Table 14 1,441,792 0x03B4,0000-0x03C9,FFFF 11 BPX Table 655,360 0x03CA,0000-0x03D3,FFFF 5 Other parameters 2,883,584 0x03D4,0000-0x03FF,FFFF 22

[0069] If the detector array has other specifications, the FLASH can be allocated by referring to the above calculation method.

[0070] Step (2), the infrared thermal imaging circuit hardware is designed with a serial port, the local PC is connected to the infrared thermal imager through a serial port line, the serial port chip can use the domestic chip SM3490, and the serial port line is a full-duplex serial port line that supports the RS422 protocol;

[0071] Step (3), run the thermal imaging communication control host computer software on the PC, and configure the serial port working mode and serial port communication data format in the thermal imaging communication control host computer software according to the parameter upload and parameter download communication protocols. In this routine, the serial port working mode is configured as full-duplex working mode, the serial port communication baud rate is 460800bps, the number of valid data bits is 8 bits, the data check is odd check, the data start bit is 1, and the data stop bit is 1;

[0072] Parameter download is to export all non-uniformity correction parameter groups and blind element tables originally solidified in the imaging circuit storage medium FLASH of the infrared thermal imager to the local PC for backup. The thermal imager communication control host computer software sends a command to the infrared thermal imager to switch to the parameter download working mode. In this working mode, it will no longer respond to other control commands of the thermal imager.

[0073] Parameter download process diagram Figure 2 As shown, it mainly includes the steps of parameter download communication handshake, preprocessing, formal processing, download completion, etc.

[0074] Step (4), the thermal imaging communication control host computer software sends a parameter download communication handshake instruction to the infrared thermal imager, and the thermal imaging communication control host computer software receives the infrared thermal imager handshake success reply, and the parameter download communication handshake success flag is set to 1. The next operation can be performed only after the handshake is successful, otherwise the host computer cannot enter the next operation;

[0075] The communication protocol of the parameter download communication handshake command is shown in Table 2 and Table 3. Specifically, the thermal imaging communication control host computer software sends the parameter download communication handshake command in the format of Table 2 to the thermal imaging. After the thermal imaging successfully parses the command according to the communication protocol, it returns the return code shown in Table 3 to the thermal imaging communication control host computer software, wherein the status word 0x00 in the return code indicates that the communication handshake is successful, and then the parameter download communication handshake success flag is set to 1.

[0076] Table 2 Parameter download communication handshake sent by host computer

[0077] Serial number Parameter name Byte length Notes 1 Frame Header 2 The frame header is fixed to 0x55 0x4C 2 Function command word 1 Parameter download communication handshake: 0x01 3 Alternative Words 1 0x00 4 Checksum 1 Add all previous bytes

[0078] Table 3 Thermal imaging execution parameter download communication command handshake return code

[0079] Serial number Parameter name Byte length Notes 1 Frame Header 2 The frame header is fixed to 0x55 0x4C 2 Function command word 1 Parameter download communication handshake: 0x01 3 Status word 1 0x00 indicates success, 0x01 indicates failure 4 Checksum 1 Add all previous bytes

[0080] Step (5), the thermal imaging communication control host computer software sends a parameter download preprocessing command to the infrared thermal imager, the thermal imaging communication control host computer software selects the parameter area number to be backed up, and the infrared thermal imaging circuit splits the selected pre-read non-uniformity correction parameter or blind element table data into 128 bytes per data packet, and fills the last data packet with zeros if it is less than 128 bytes. After executing the instruction, the infrared thermal imager returns the total number of split data packets to the host computer according to the parameter download preprocessing communication protocol format, and the total number of packets occupies 3 bytes, with the high byte in front and the low byte in the back;

[0081] The communication protocol of the parameter download preprocessing command is shown in Table 4 and Table 5. Specifically, the host computer sends a parameter download preprocessing command in the format of Table 4 to the thermal imager according to the selected parameter download area code, wherein the parameter download area code ranges from 0x01 to 0x10, corresponding to 15 non-uniformity correction parameter groups and 1 blind element table in sequence. After the thermal imager successfully parses the command according to the communication protocol, it returns a return code as shown in Table 5 to the host computer, wherein the total number of data packets of the selected parameter area split data in the return code occupies 3 bytes, with the high byte in front and the low byte in the back.

[0082] Table 4 Parameter download preprocessing host computer sent

[0083]

[0084] Table 5 Thermal imaging execution parameter download preprocessing command return code

[0085]

[0086] Step (6), the thermal imaging communication controls the host computer software to send a parameter download formal processing command to the infrared thermal imager, and the host computer stores the pre-read non-uniformity correction parameters or the split data packets of the blind element table data in a binary bin file format. The host computer sends a data packet command to read the current sending data packet number to the infrared thermal imager according to the parameter download formal processing communication protocol format. The current packet number starts with 1. After each successful reception of the 128-byte data of the current sending data packet number returned by the infrared thermal imager and successfully written into the bin file, the current sending data packet number is incremented by 1, and this cycle continues until the current sending data packet number is equal to the total number of packets in the selected parameter area to be backed up;

[0087] The communication protocol of the parameter download formal processing command is shown in Table 6 and Table 7. The host computer sends the parameter download formal processing command in the format of Table 6 to the infrared thermal imager according to the selected parameter download area code, wherein the number of the currently sent data packet is incremented by 1 after successfully receiving the 128-byte data of the currently sent data packet number returned by the infrared thermal imager and successfully writing it into the bin file; after the infrared thermal imager successfully parses the command according to the communication protocol, it returns the return command shown in Table 7 to the thermal imager communication control host computer software, and the return command contains the 128-byte data of the currently sent data packet.

[0088] Table 6 Parameter download formal processing host computer sent

[0089]

[0090] Table 7 Thermal imaging execution parameter download preprocessing command return code

[0091]

[0092]

[0093] Step (7), when the number of the currently sent data packet in step (6) is equal to the total number of packets, the thermal imaging communication control host computer software sends a parameter download processing completion command to the infrared thermal imager. After the infrared thermal imager receives the command, the parameter download completion character is displayed on the infrared image. The communication protocol is shown in Table 8.

[0094] Table 8 Parameter download complete command communication protocol

[0095]

[0096] Parameter upload will restore the non-uniformity correction parameter group and blind element table that have been pre-uploaded on the local PC to the specified storage space of FLASH if necessary. The thermal imaging communication controls the host computer software to send a command to the infrared thermal imager to switch to the parameter upload working mode. In this working mode, it will no longer respond to other thermal imaging control commands.

[0097] The parameter upload process diagram is as follows Figure 3 As shown, it mainly includes the steps of parameter upload communication handshake, preprocessing, formal processing, and successful upload.

[0098] Step (8), the thermal imaging communication controls the host computer software to send a parameter upload communication handshake instruction to the infrared thermal imager. After the host computer receives the infrared thermal imager handshake success reply, the parameter upload communication handshake success flag is set to 1. The next step can only be performed after the handshake is successful, otherwise the host computer cannot enter the next step function.

[0099] The communication protocol of the parameter upload communication handshake command is shown in Table 9 and Table 10, which is the communication protocol of the parameter upload communication handshake instruction. The host computer sends the parameter upload communication handshake command in the format of Table 9 to the thermal imager. After the thermal imager successfully parses the command according to the communication protocol, it returns the return code shown in Table 10 to the host computer, where the status word 0x00 in the return code indicates that the communication handshake is successful, and then the parameter upload communication handshake success flag is set to 1.

[0100] Table 9 Parameter upload communication handshake sent by the host computer

[0101]

[0102]

[0103] Table 10 Thermal imaging execution parameter upload communication command handshake return code

[0104] Serial number Parameter name Byte length Notes 1 Frame Header 2 The frame header is fixed to 0x55 0xCC 2 Function command word 1 Parameter upload communication handshake: 0x01 3 Status word 1 0x00 indicates success, 0xFF indicates failure 4 Checksum 1 Add all previous bytes

[0105] In step (9), the thermal imaging communication control host computer software sends a parameter upload preprocessing command to the infrared thermal imager. After the thermal imaging communication control host computer software selects the parameter area number to be remotely restored, the infrared thermal imaging circuit FPGA erases the corresponding sector of the FLASH storage space corresponding to the non-uniformity correction parameter or blind element table that has been pre-uploaded on the local PC. After the erasure is successful, the thermal imager returns an erasure success command to the host computer according to the communication protocol.

[0106] The parameter upload preprocessing command communication protocol is shown in Tables 11 and 12, which are the parameter upload preprocessing command communication protocols. The host computer sends the parameter upload preprocessing command in the format of Table 11 to the thermal imager according to the selected parameter upload parameter area code, where the parameter upload parameter area code ranges from 0x01 to 0x10, corresponding to 15 non-uniformity correction parameter groups and 1 blind element table in sequence; after the thermal imager successfully parses the command according to the communication protocol, it returns a return code as shown in Table 12 to the host computer, where the status word 0x00 in the return code indicates that the selected parameter area is successfully erased, and 0xFF indicates that the erasure fails.

[0107] Table 11 Parameter upload preprocessing host computer sent

[0108]

[0109] Table 12 Infrared thermal imaging execution parameter upload preprocessing command return code

[0110]

[0111]

[0112] Step (10), the thermal imaging communication controls the host computer software to send a parameter upload formal processing command to the infrared thermal imager, and the infrared thermal imaging circuit FPGA writes the selected non-uniformity correction parameters or blind element table bin file that has been pre-uploaded on the local PC into the storage sector corresponding to the FLASH. The host computer splits the bin file data into 128 bytes per packet. Since the FLASH writes data in units of sectors, the data at the end of the bin file that is less than 1 sector of the FLASH is filled with zeros. After filling with zeros, the current packet of 128 bytes of data and the total number of data unpacked packets are uploaded according to the parameters and sent to the infrared thermal imager in the formal processing communication protocol format. The infrared thermal imager successfully receives the current packet data and stores the data in the cache medium DDR3 according to the cache address (initial 0) in sequence. Then the infrared thermal imager returns a reply with the current data packet number to the thermal imaging communication control host computer software. The current data packet number starts with 1. After each successful reception of the unpacked 128-byte data sent by the thermal imaging communication control host computer software and successful caching in DDR3, the current packet number is incremented by 1, and the cache address is incremented by 128 at the same time, until the DDR3 is cached with data of the capacity of 1 FLASH sector, the cache address is cleared, and the infrared thermal imager writes the capacity data into the FLASH, and so on. The cycle continues until the current packet number is equal to the total number of packets.

[0113] The communication protocol for parameter upload formal processing command is shown in Table 13 and Table 14, which is the communication protocol for parameter upload formal processing command. The host computer sends the parameter upload formal processing command in the format of Table 13 to the infrared thermal imager according to the selected parameter upload parameter area number, wherein the number of the currently sent data packet is incremented by 1 each time it is successfully sent; after the infrared thermal imager successfully parses the command according to the communication protocol, it returns a reply as shown in Table 14 to the host computer. The data write status word in the reply is 0x01 by default. When the sent data packets accumulate to the capacity of 1 sector of FLASH, the data is written. 0x00 indicates that the sector data is written successfully, and 0xFF indicates that the sector data fails to be written.

[0114] Table 13 Parameter upload formal processing host computer sent

[0115]

[0116]

[0117] Table 14 Infrared thermal imaging execution parameter upload preprocessing command return code

[0118]

[0119] Step (11), when the current package number in step (10) is equal to the total number of packages, the infrared thermal imager displays the parameter upload completion character on the infrared image, and at the same time returns a data write completion command to the thermal imaging communication control host computer software. After the thermal imaging communication control host computer software receives the command, it displays the parameter upload completion in the status bar. The communication protocol is shown in Table 15.

[0120] Table 15 Parameter upload completion command communication protocol

[0121]

[0122]

[0123] The above shows and describes the basic principles, main features and advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.

Claims

1. Infrared thermal image non-uniformity correction parameters and blind element table backup and remote recovery method, characterized in that: The steps include: Step (1), planning the FLASH storage space according to the size of the detector array; the storage address of the FLASH includes the FPGA program storage space, all non-uniformity correction parameter groups and the blind element table; Each group of non-uniformity correction parameter groups includes a gain parameter and a bias parameter corresponding to each pixel of the detector array, an integration time parameter used by the detector of the group of non-uniformity correction parameters, and a detector bias voltage parameter; Step (2), connecting the local PC to the infrared thermal imager through the serial port of the infrared thermal imager via a serial port cable, and running the thermal imaging communication control host computer software on the PC; Step (3), configure the serial port working mode and serial port communication data format in the thermal imaging communication control host computer software according to the parameter upload and parameter download communication protocols; Step (4), the thermal imaging communication control host computer software sends a parameter download communication handshake command to the infrared thermal imager. After the thermal imaging communication control host computer software receives the infrared thermal imager handshake success reply, go to step (5); otherwise, the thermal imaging communication control host computer software cannot go to step (5); Step (5), the thermal imaging communication control host computer software sends a parameter download preprocessing command to the infrared thermal imager, the thermal imaging communication control host computer software selects the parameter area number to be backed up, the infrared thermal imaging circuit splits the selected pre-read non-uniformity correction parameter or blind element table data into 128 bytes per data packet, and fills the last data packet with zeros if it is less than 128 bytes, and then the infrared thermal imager returns the total number of split data packets to the thermal imaging communication control host computer software according to the parameter download preprocessing communication protocol format; Step (6), the thermal imaging communication control host computer software sends a parameter download formal processing command to the infrared thermal imager, and the thermal imaging communication control host computer software stores the pre-read non-uniformity correction parameters or blind element table data split data packets in a binary bin file format; the thermal imaging communication control host computer software sends a data packet command to read the current sending data packet number to the infrared thermal imager according to the parameter download formal processing communication protocol format, and the current packet number starts with 1. After each successful reception of 128 bytes of data of the current sending data packet number returned by the infrared thermal imager and successfully written into the bin file, the current sending data packet number increases by 1, and this cycle continues until the current sending data packet number is equal to the total number of packets in the selected parameter area to be backed up; Step (7), when the number of the currently sent data packet in step (6) is equal to the total number of packets, the thermal imaging communication control host computer software sends a parameter download processing completion command to the infrared thermal imager, and after the infrared thermal imager receives the command, a parameter download completion character is displayed on the infrared image; Step (8), the thermal imaging communication control host computer software sends a parameter upload communication handshake command to the infrared thermal imager. After the host computer receives the infrared thermal imager handshake success reply, it goes to step (9); otherwise, the thermal imaging communication control host computer software cannot go to step (9); Step (9), the thermal imaging communication control host computer software sends a parameter upload pre-processing command to the infrared thermal imager, the thermal imaging communication control host computer software selects the parameter area number to be remotely restored, and the infrared thermal imaging circuit FPGA erases the corresponding sector of the FLASH storage space corresponding to the non-uniformity correction parameter or blind element table that has been pre-uploaded on the local PC end. After the erasure is successful, the infrared thermal imager returns an erase success command to the thermal imaging communication control host computer software according to the communication protocol; Step (10), the thermal imaging communication control host computer software sends a parameter upload formal processing command to the infrared thermal imager, and the infrared thermal imaging circuit FPGA writes the selected non-uniformity correction parameter or blind element table bin file that has been pre-uploaded on the local PC end into the storage sector corresponding to the FLASH; the thermal imaging communication control host computer software splits the bin file data into 128 bytes per packet, and if the bin file is not enough for the FLASH at the end, The data of one sector is padded with zeros. After the padded with zeros, the current 128-byte data and the total number of data unpacked packets are uploaded according to the parameter formal processing communication protocol format and sent to the infrared thermal imager. The infrared thermal imager successfully receives the current packet data and stores the data in the cache medium DDR3 in sequence according to the cache address. Then the infrared thermal imager returns a reply with the current data packet number to the thermal imaging communication control host computer software. The current data packet number starts with 1. After each successful reception of the unpacked 128-byte data sent by the thermal imaging communication control host computer software and successful cache in DDR3, the current packet number increases by 1, and the cache address increases by 128 at the same time. Until the DDR3 is fully cached with data of the capacity of one FLASH sector, the cache address is cleared, and the infrared thermal imager writes the capacity data into the FLASH, and so on. The cycle continues until the current packet number is equal to the total number of packets. Step (11), when the current package number in step (10) is equal to the total number of packages, the infrared thermal imager displays the parameter upload completion character on the infrared image, and at the same time returns a data writing completion command to the thermal imaging communication control host computer software. After the thermal imaging communication control host computer software receives the command, it displays the parameter upload completion in the status bar.

2. The infrared thermal image non-uniformity correction parameter and blind element table backup and remote recovery method according to claim 1 is characterized in that: In step (1), the storage address of FLASH includes the FPGA program storage space, all non-uniformity correction parameter groups, blind pixel table and other parameter groups from low to high. Other parameter groups usually include infrared thermal imaging circuit configuration parameters, infrared thermal imaging cumulative working time and reserved parameter area.

3. The infrared thermal image non-uniformity correction parameter and blind element table backup and remote recovery method according to claim 1 is characterized in that: In step (3), the serial port working mode is configured as full-duplex working mode, and the serial port communication data format is configured as a communication baud rate of 460800 bps, a data bit length of 8 bits, a start bit length of 1 bit, a stop bit length of 1 bit, and a data check form of odd check.

4. The infrared thermal image non-uniformity correction parameter and blind element table backup and remote recovery method according to claim 1 is characterized in that: In step (5), the total packet size occupies 3 bytes, with the high byte first and the low byte last.