Method and device for controlling multi-color infrared detector, electronic equipment and storage medium
By using the PL-side control method of ZYNQ fully programmable on-chip system, the application problem of FPGA in multi-color infrared detectors was solved, realizing efficient acquisition and imaging display of multi-band infrared radiation signals, and improving the imaging effect and target recognition capability of multi-color infrared detectors.
Patent Information
- Application Number
- CN202311752168.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-19
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-12-19
AI Technical Summary
Existing FPGA-based electronic control methods for infrared detectors can only be applied to monochromatic infrared detectors and are difficult to apply to multicolor infrared detectors, which affects the widespread use of multicolor infrared detectors.
The ZYNQ fully programmable on-chip system is used to construct the readout circuit configuration information through the PL terminal, control the analog-to-digital converter to acquire image signal data, perform image enhancement processing and storage, and realize multi-band infrared radiation signal acquisition and imaging display.
It enables the acquisition, processing, and imaging display of multi-band infrared radiation signals, improving imaging performance and target information acquisition capabilities, and enhancing anti-interference capabilities.
Smart Images

Figure CN117768751B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of infrared radiation detection technology, specifically relating to a control method and device for a multicolor infrared detector, electronic equipment, and storage medium. Background Technology
[0002] Infrared detectors are categorized into monochromatic infrared detectors and multicolor infrared detectors based on the wavelength range they detect. Multicolor infrared detectors can simultaneously detect multiple wavelengths, providing more comprehensive and detailed infrared image information. Multicolor infrared detectors are typically implemented using an infrared focal plane array (IRFPA). An IRFPA consists of an array of multiple photosensitive elements, each corresponding to a different wavelength band. Each photosensitive element converts infrared radiation into an electrical charge signal, which is then processed and acquired by an electronic control system. Compared to monochromatic infrared detectors, multicolor infrared detectors offer richer and more accurate target information acquisition capabilities, higher target recognition and classification abilities, and stronger anti-interference capabilities, making them suitable for various specific application scenarios.
[0003] An FPGA is a programmable logic device with a reconfigurable hardware structure that can be customized for specific applications. The flexibility of FPGAs allows them to be tailored to the specific needs of infrared detectors, enabling high-speed, real-time data processing and control applications.
[0004] In the existing technology, the FPGA-based electronic control method for infrared detectors can only be applied to monochromatic infrared detectors and is difficult to apply to multicolor infrared detectors, which affects the widespread use of multicolor infrared detectors.
[0005] The information disclosed in this background section is intended only to enhance the understanding of the overall background of the invention and should not be construed as an admission or in any way implying that the information constitutes prior art known to those skilled in the art. Summary of the Invention
[0006] The purpose of this invention is to provide a control method and device, electronic equipment and storage medium for a multicolor infrared detector, in order to solve the technical problem that the existing FPGA-based infrared detector electronic control method can only be applied to monochromatic infrared detectors and is difficult to apply to multicolor infrared detectors, which affects the widespread use of multicolor infrared detectors.
[0007] To achieve the above objectives, one technical solution adopted in this application is:
[0008] A control method for a multicolor infrared detector is provided, applied to a lower-level PL (Programmable Logic Controller) terminal, including:
[0009] Acquire control signal data, which is sent from the host computer to the lower-level PS terminal and then parsed and sent by the lower-level PS terminal;
[0010] Based on the control signal data, readout circuit configuration information is constructed and output to the readout circuit, so that the readout circuit can output the detector's detection signal based on the readout circuit configuration information;
[0011] Based on the control signal data, the analog-to-digital converter is controlled to collect the detection signal output by the readout circuit to obtain image signal data;
[0012] The image signal data is subjected to image enhancement processing;
[0013] The image signal data after image enhancement processing is stored in the cache module;
[0014] The image signal data is extracted from the cache module and fused into an image. Then, the image signal data after fusion is stored in the cache module so that the lower-level PS terminal can read the image signal data from the cache module and transmit it to the upper-level computer for image display.
[0015] In one or more embodiments, the readout circuit configuration information includes static configuration information and timing control information of the readout circuit. The timing control information includes a clock signal, a band signal, and a synchronization signal. The band signal includes different level states to calibrate different band modes. Each band mode selects one band from multiple bands to output a probe signal. The synchronization signal includes different level states to calibrate the start point of each frame in the band mode.
[0016] The step of constructing readout circuit configuration information based on the control signal data and outputting it to the readout circuit so that the readout circuit can output the detector's detection signal based on the readout circuit configuration information is as follows:
[0017] A clock signal, band signal, and synchronization signal are synchronously transmitted to the readout circuit so that the readout circuit can confirm the band information of the current frame based on the clock signal, band signal, and synchronization signal, and control the output of the detection signal of the corresponding detector.
[0018] In one or more embodiments, the step of controlling the analog-to-digital converter to acquire the detection signal output by the readout circuit based on the control signal data to obtain image signal data includes:
[0019] The signal extraction rate is obtained based on the control signal data;
[0020] The differential signal output by the analog-to-digital converter is acquired, and the differential signal is oversampled based on the signal decimation rate to obtain the image signal data and store it in a queue.
[0021] In one or more embodiments, the step of performing image enhancement processing on the image signal data includes:
[0022] The non-uniformity correction coefficient is read from the block memory. The non-uniformity correction coefficient is stored in a non-volatile memory chip and is read and written to the block memory by the lower-level PS terminal when powered on.
[0023] Based on the non-uniformity correction coefficient, non-uniformity correction is performed on the data of each pixel in the image signal data to obtain non-uniformly corrected image signal data.
[0024] In one or more embodiments, the non-uniform correction coefficient includes a correction gain coefficient A. i,j and correction bias coefficient B i,j The correction gain coefficient A i,j and correction bias coefficient B i,j Satisfy the following formula:
[0025]
[0026] In the formula, S i,j (φ H ) and S i,j (φ L ) represent the high-temperature and low-temperature output voltage responses of the detector at point (i,j), respectively. This represents the average output value of the infrared detection unit's response at high temperatures. The mean value of the infrared detection unit's response output at low temperatures satisfies the following formula:
[0027]
[0028] The specific steps for performing non-uniform correction on the data of each pixel in the image signal data based on the non-uniform correction system are as follows:
[0029] The data Y of each pixel after non-uniform correction is calculated based on the following formula. i,j :
[0030] Y i,j =A i,j ·X i,j +B i,j .
[0031] In one or more embodiments, the step of acquiring the image signal data and performing image enhancement processing on the image signal data includes:
[0032] The image signal data is row-buffered to obtain a template including at least three rows of pixels. Each pixel of the image signal data is sequentially entered into and output to the template.
[0033] Defect identification is performed on the pixel data within the template;
[0034] For pixel data that is identified as a defect, correction is made based on the average value of neighboring pixel data.
[0035] In one or more embodiments, the step of defect identification of pixel data within the template includes:
[0036] Determine whether the coordinates of the center pixel data of each 3*3 matrix in the template are preset defect coordinates;
[0037] If so, the center pixel data of the 3*3 matrix is identified as a defect;
[0038] And / or, calculate the difference between the center pixel data and all surrounding pixel data of each 3*3 matrix in the template;
[0039] When the difference between the center pixel data and all surrounding pixel data is positive or negative, and the absolute value of the difference between the center pixel data and all surrounding pixel data is greater than a threshold, the center pixel data is identified as a defect.
[0040] In one or more embodiments, the step of acquiring the image signal data and performing image enhancement processing on the image signal data includes:
[0041] Obtain the data of the m-th frame from the image signal data;
[0042] By statistically analyzing the pixel value of each pixel in the m-th frame of data, the original image histogram is obtained.
[0043] The original image histogram is accumulated to obtain the accumulated histogram.
[0044] A pixel value mapping table is calculated based on the cumulative histogram. Each element in the pixel value mapping table is used to describe the mapping relationship between the original pixel value and the equalized pixel value.
[0045] Based on the pixel value mapping table, histogram equalization is performed on the (m+n)th frame of data, where n is the number of infrared bands of the multicolor infrared detector.
[0046] In one embodiment, the image signal data includes image data of three different infrared wavelengths, and the step of extracting the image signal data from the cache module for image fusion specifically involves:
[0047] Input the image data of the first infrared wavelength into the g channel;
[0048] The differences between the image data of the second infrared wavelength and the image data of the third infrared wavelength relative to the image data of the first infrared wavelength are calculated respectively to obtain the characteristic image data of the second infrared wavelength and the characteristic image data of the third infrared wavelength.
[0049] Calculate the difference between the feature image data of the second infrared wavelength and the feature image data of the third infrared wavelength to obtain the enhanced image data of the second infrared wavelength and input it into the r channel;
[0050] The difference between the feature image data of the third infrared wavelength and the feature image data of the second infrared wavelength is calculated to obtain the enhanced image data of the third infrared wavelength and input into the b channel;
[0051] Based on the g channel, r channel, and b channel, the image signal data after image fusion is obtained.
[0052] In one or more embodiments, it further includes:
[0053] The chip temperature data is acquired, and when the chip temperature exceeds a first threshold, an alarm signal is sent to cause the lower-level machine to suspend operation, enter an error state, and trigger an alarm.
[0054] To achieve the above objectives, another technical solution adopted in this application is:
[0055] A control device for a multicolor infrared detector is provided, comprising:
[0056] The command receiving module is used to acquire control signal data, which is sent from the host computer to the lower-level PS terminal and then sent after being parsed by the lower-level PS terminal.
[0057] The readout circuit control module is used to construct readout circuit configuration information based on the control signal data and output it to the readout circuit, so that the readout circuit can output the detector's detection signal based on the readout circuit configuration information;
[0058] The acquisition module is used to control the analog-to-digital converter to acquire the detection signal output by the readout circuit based on the control signal data, so as to obtain image signal data;
[0059] The image processing module is used to perform image enhancement processing on the image signal data;
[0060] The storage module is used to store the image signal data after image enhancement processing in the cache module, so that the lower-level PS terminal can read the image signal data by the cache module and transmit it to the upper-level computer for image display.
[0061] To achieve the above objectives, another technical solution adopted in this application is:
[0062] An electronic device is provided, comprising:
[0063] At least one processor; and
[0064] A memory that stores instructions, which, when executed by the at least one processor, cause the at least one processor to perform the control method for the multicolor infrared detector as described in any of the above embodiments.
[0065] To achieve the above objectives, another technical solution adopted in this application is:
[0066] A machine-readable storage medium is provided that stores executable instructions, which, when executed, cause the machine to perform a control method for a multicolor infrared detector as described in any of the above embodiments.
[0067] Compared with the prior art, the beneficial effects of this application are:
[0068] In the control method of this application, the lower-level PL terminal constructs readout circuit configuration information based on control signal data. The readout circuit realizes the output adjustment of detection signals of multiple infrared bands. The detection signals output by the readout circuit are collected by the analog-to-digital converter to obtain image signal data. After image enhancement processing, the image signal data is stored in the cache module, so that the lower-level PS terminal can read the image signal data and transmit it to the upper-level computer for image display. This realizes the acquisition, processing and imaging display of multi-band infrared radiation signals, providing users with better imaging effects and target information acquisition capabilities. Attached Figure Description
[0069] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0070] Figure 1 This is a flowchart illustrating one embodiment of the control method for the multicolor infrared detector of this application;
[0071] Figure 2This is a schematic diagram of one embodiment of the timing control information of the readout circuit in this application;
[0072] Figure 3 This is a schematic diagram of one embodiment of the image signal data of this application;
[0073] Figure 4 yes Figure 2 A flowchart of one embodiment corresponding to step S400;
[0074] Figure 5 This is a schematic diagram of a non-uniform correction module according to one embodiment of this application;
[0075] Figure 6 yes Figure 2 A flowchart of another embodiment corresponding to step S400.
[0076] Figure 7 This is a schematic diagram showing the location of defects in the image signal data;
[0077] Figure 8 This is a schematic diagram of the template used in the defect compensation application.
[0078] Figure 9 yes Figure 2 A flowchart illustrating another embodiment corresponding to step S400;
[0079] Figure 10 This is a system architecture diagram of one embodiment of the control method for the multicolor infrared detector of this application;
[0080] Figure 11 This is a schematic diagram of one embodiment of the control device for the multicolor infrared detector of this application;
[0081] Figure 12 This is a schematic diagram of one embodiment of the electronic device of this application. Detailed Implementation
[0082] To enable those skilled in the art to better understand the technical solutions of this invention, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this invention.
[0083] Infrared radiation is a band of light in the electromagnetic spectrum immediately adjacent to visible light, possessing many unique characteristics. Infrared radiation can penetrate fog, smoke, and other pollutants, making it crucial for detecting targets that cannot be directly observed by the naked eye or detected by other sensors. Infrared detector technology has emerged to capture, measure, and analyze infrared radiation. Infrared detectors can be categorized into monochromatic infrared detectors and multicolor infrared detectors based on the different wavelength ranges they detect.
[0084] Multicolor infrared detectors have the ability to detect multiple infrared bands simultaneously, and have the following advantages compared to monochromatic infrared detectors:
[0085] 1. Multidimensional Information Acquisition: Multicolor infrared imaging can simultaneously acquire information from multiple infrared bands. Different bands of infrared radiation possess different characteristics, allowing for richer and more comprehensive target information to be obtained through multicolor imaging. For example, multicolor infrared imaging can be used to distinguish a target's temperature, material properties, and chemical composition.
[0086] 2. Target Recognition and Classification: Multicolor infrared imaging offers enhanced target recognition and classification capabilities. By leveraging the differences between infrared bands, targets such as people, vehicles, and buildings can be identified and classified more accurately. This is of great significance for applications such as military reconnaissance, border monitoring, and fire detection.
[0087] 3. Strong anti-interference capability: Because multicolor infrared imaging can verify and compare information from multiple bands, it has a stronger anti-interference capability compared to monochromatic infrared imaging. For example, it can resist the influence of atmospheric conditions and reduce the false positive rate by combining multiple bands.
[0088] 4. Advantages for Specific Applications: Different bands of infrared radiation offer specific advantages for particular applications. For example, short-wave infrared is suitable for target detection through smoke and dense fog, mid-wave infrared is suitable for detecting targets with temperature differences, and long-wave infrared is suitable for detecting targets at low temperatures. Through multicolor infrared imaging, the most suitable band can be selected according to actual needs to optimize imaging performance.
[0089] In summary, multicolor infrared imaging offers richer and more accurate target information acquisition capabilities compared to monochromatic infrared imaging, provides superior target recognition and classification capabilities, and has stronger anti-interference capabilities, making it suitable for various specific application scenarios.
[0090] Electronic control systems for infrared detectors based on Field-Programmable Gate Arrays (FPGAs) represent a significant technological innovation in the field of infrared radiation detection. FPGA chips consist of numerous logic gates and flip-flops, and possess abundant on-chip memory. This programmability and high integration make FPGAs an ideal choice for high-performance signal processing and system control. The flexibility of FPGAs allows for customized configurations to meet specific infrared detector requirements, enabling high-speed, real-time data processing and control applications.
[0091] However, the current FPGA-based electronic control methods for infrared detectors can only be applied to monochromatic infrared detectors and are difficult to apply to multicolor infrared detectors, which affects the widespread use of multicolor infrared detectors.
[0092] To address the aforementioned issues, the applicant has developed an electronic control method for a multicolor infrared detector. This method is based on the ZYNQ fully programmable system-on-a-chip and can be applied to the electronic control of multicolor infrared detectors. It enables multi-band controlled imaging, significantly improves imaging performance, and contributes to the widespread use of multicolor infrared detectors.
[0093] Zynq is an All Programmable System-on-Chip (SoC) consisting of two parts: the PS (Processing System) and the PL (Programmable Logic).
[0094] The control method described in this application is applied to the PL terminal. For details, please refer to [link / reference]. Figure 1 , Figure 1 This is a flowchart illustrating one embodiment of the control method for the multicolor infrared detector of this application.
[0095] like Figure 1 As shown, the control method includes:
[0096] S100, Acquire control signal data.
[0097] In this process, the control signal data is sent by the host computer. The host computer is responsible for tasks such as issuing instructions, setting parameters, and transmitting data. The host computer can communicate with the PS terminal of the slave computer via USB or other transmission methods, and transmit the signals to be processed to the slave computer.
[0098] After receiving the control signal data, the lower-level PS terminal can parse and process the control signal data to ensure that the received signal is valid and reliable. The parsing process can specifically involve verifying, unpacking, and decoding the control signal data.
[0099] After confirming that the control signal data is valid and reliable, the lower-level PS terminal can transmit the control signal data to the lower-level PL terminal.
[0100] In one implementation, the lower-level PS terminal can transmit control signal data to the lower-level PL terminal via the AXI protocol. AXI (Advanced eXtensible Interface) is a popular on-chip bus protocol that enables efficient data transmission and communication.
[0101] S200: Based on the control signal data, construct the readout circuit configuration information and output it to the readout circuit.
[0102] After acquiring the control signal data, the lower-level PL terminal can determine the appropriate working mode and parameter configuration based on the control signal data, thereby constructing the readout circuit configuration information.
[0103] In one embodiment, the readout circuit configuration information may include static configuration information and timing control information of the readout circuit. The static configuration information may include parameter settings such as the integration time of the readout circuit.
[0104] Timing control information may include clock signals, band signals, and synchronization signals. Band signals include different level states to calibrate different band modes. Each band mode selects one band from multiple bands to output a detection signal. For example, when a multicolor infrared detector includes three different infrared bands, each band mode can be achieved by selecting one or all three infrared bands to operate during the duration of that band mode. When three infrared bands are selected, they can output detection signals sequentially, thereby achieving band selection for each frame.
[0105] The synchronization signal includes different level states to calibrate the start point of each frame in the band mode.
[0106] The lower-level PL terminal synchronously transmits clock signals, band signals, and synchronization signals to the readout circuit. Based on the clock signals, band signals, and synchronization signals, the readout circuit can confirm the band information of the current frame and control the output of the corresponding detector's detection signal.
[0107] Please see Figure 2 , Figure 2 This is a schematic diagram of one embodiment of the timing control information of the readout circuit in this application. As shown in the figure, the band mode signal wave-mode is the input signal of the host computer, where 3 is used to indicate that the detection signal is output sequentially for three different infrared bands; the band signal wave is used to indicate the selection of the infrared band corresponding to each frame, including three infrared bands: 0, 1, and 2. The synchronization signal sync is used to calibrate the starting point of each frame in the band mode.
[0108] After receiving the timing control information, the readout circuit can output the corresponding detector's detection signal based on the confirmation of the infrared band selection for each frame, thereby realizing the control and selective output of the multicolor infrared detector.
[0109] S300: Based on control signal data, the analog-to-digital converter is controlled to work to acquire the detection signal output by the readout circuit and obtain image signal data.
[0110] When the readout circuit outputs the detector's detection signal based on the readout circuit configuration information, the lower-level PL terminal controls the analog-to-digital converter to acquire the signal based on the control signal data.
[0111] An analog-to-digital converter (ADC) converts analog infrared radiation signals into digital signals for subsequent digital signal processing and data transmission.
[0112] Specifically, the method for the lower-level PL terminal to control the analog-to-digital converter to acquire data can be to first obtain the signal sampling rate based on the control signal data. The signal sampling rate is used to represent how many times each signal is sampled and then the average value is taken.
[0113] After obtaining the signal simplification rate, the lower-level PL terminal acquires the differential signal output by the analog-to-digital converter, oversamples the differential signal based on the signal simplification rate, obtains the image signal data, and stores it in the queue.
[0114] The queue can be a first-in-first-out (FIFO) memory, which helps with subsequent processing of image signals.
[0115] Please see Figure 3 , Figure 3 This is a schematic diagram illustrating one embodiment of the image signal data of this application. For example... Figure 3 As shown, the image signal data acquired by the lower-level PL terminal may include the ADC analog-to-digital converter's operating clock signal dcop-dcon, the signal decimation rate signal ext-rate, the specific output signals da_p-da_n, and the data transmission clock signal fifo_wr_clk. Among these, the specific output signals da_p-da_n include the specific image data for each frame.
[0116] S400: Perform image enhancement processing on the image signal data.
[0117] After acquiring the image signal data, the lower-level PL terminal performs enhancement processing on the image signal to improve image quality and the clarity of target details.
[0118] In one implementation, image enhancement processing may include non-uniformity correction normalization, defect compensation, and histogram equalization.
[0119] Specifically, the following details the process of three image enhancement techniques. Please refer to [link / reference]. Figure 4 , Figure 4 yes Figure 2 A flowchart of one embodiment corresponding to step S400.
[0120] like Figure 4 As shown, methods for non-uniformity correction in image enhancement processing may include:
[0121] S401a: Read the non-uniformity correction coefficient from the block memory.
[0122] Non-uniform correction is a process of calibrating the output response of an infrared imaging system by using uniform infrared radiation provided by a blackbody radiation source as a reference signal.
[0123] The non-uniformity correction coefficient is stored in the non-volatile memory chip Eeprom and is read by the lower-level PS terminal and written into the block memory bram upon power-up.
[0124] In one implementation, the non-uniform correction coefficient may include a correction gain coefficient A. i,j and correction bias coefficient B i,j Correction gain coefficient A i,j and correction bias coefficient B i,j Satisfy the following formula:
[0125]
[0126] In the formula, S i,j (φ H ) and S i,j (φ L ) represent the high-temperature and low-temperature output voltage responses of the detector at point (i,j), respectively. This represents the average output value of the infrared detection unit's response at high temperatures. The mean value of the infrared detection unit's response output at low temperatures satisfies the following formula:
[0127]
[0128] S402a. Based on the non-uniformity correction coefficient, perform non-uniformity correction on the data of each pixel in the image signal data to obtain non-uniformly corrected image signal data.
[0129] After obtaining the non-uniformity correction coefficient, each pixel in the image signal data can be multiplied by the non-uniformity correction coefficient of that pixel to obtain the non-uniformity corrected image signal data.
[0130] Specifically, the data Y of each pixel after non-uniform correction can be calculated based on the following formula. i,j :
[0131] Y i,j =A i,j ·X i,j +B i,j .
[0132] In one implementation, please refer to Figure 5 , Figure 5 This is a schematic diagram of a non-uniform correction module according to an embodiment of this application, as shown below. Figure 5 As shown, the lower-level PL terminal stores the image signal data in the FIFO memory. The data of each pixel enters and exits the FIFO memory one by one. The lower-level PL terminal can receive the pixel data output by the FIFO memory one by one and perform non-uniformity correction.
[0133] In the diagram, rd_next represents the normalization coefficient for reading the next pixel, adc_data represents the pixel data read by the analog-to-digital converter, FIFO_data represents the FIFO first-in-first-out memory, i.e., the pixel data acquired one by one by the lower-level PL terminal, bram_data represents the data transmitted from the bram memory, i.e., the non-uniformity correction coefficient of the corresponding pixel, and the mux_data obtained after correction by the mux module represents the final corrected pixel data.
[0134] Please see Figure 6 , Figure 6 yes Figure 2 A flowchart illustrating another embodiment corresponding to step S400.
[0135] like Figure 6 As shown, defect compensation in image enhancement processing can include:
[0136] S401b: Perform row buffering on the image signal data to obtain a template including at least three rows of pixels.
[0137] S402b: Defect identification is performed on the pixel data within the template.
[0138] S403b: For pixel data that is identified as a defect, correction is made based on the average value of neighboring pixel data.
[0139] Please see Figure 7 , Figure 7 This is a schematic diagram showing the location of defects in the image signal data, such as... Figure 7 As shown, defects can appear in 9 locations. The difference between defects and neighboring pixels is large, which will seriously affect the imaging quality of the imaging system and may also cause false identification of valid targets.
[0140] To identify defects in image signal data, a matrix of at least 3*3 pixel data is needed to identify defects in the center pixel. Therefore, row caching is required to obtain a template containing at least three rows of pixels. Each pixel of the image signal data can be sequentially entered into and output from the template.
[0141] Please see Figure 8 , Figure 8 This is a schematic diagram of the template for defect compensation in this application, as shown below. Figure 8 As shown, the template includes three rows of buffers. While a pixel data point enters from the left end of the template, a pixel data point is output from the right end. Defects are identified and corrected in the pixel data in the template, thereby achieving defect compensation.
[0142] In one implementation, the specific defect identification method may be:
[0143] Determine whether the coordinates of the center pixel data of each 3*3 matrix in the template are preset defect coordinates;
[0144] If so, the center pixel data of the 3*3 matrix is identified as a defect.
[0145] Among them, the preset defect coordinates can be based on the coordinates of the most likely defect obtained uniformly. They can be stored in the Bram memory and called when performing defect identification.
[0146] In another implementation, the specific defect identification method can also be:
[0147] Calculate the difference between the center pixel data and the data of all surrounding pixels in each 3*3 matrix of the template;
[0148] When the difference between the center pixel data and all surrounding pixel data is positive or negative, and the absolute value of the difference between the center pixel data and all surrounding pixel data is greater than a threshold, the center pixel data is identified as a defect.
[0149] For defects, the pixel data of the neighboring points of the defect can be averaged and used as the pixel data of the defect to achieve defect compensation, which helps to smooth and correct the image.
[0150] Specifically, a 3x3 matrix can be selected where the data of the center pixel is identified as a defect, and the average value of the data of the eight surrounding pixels in the matrix can be used as the pixel data of the defect.
[0151] The aforementioned non-uniformity correction and defect compensation for image signal data are both pixel-by-pixel image processing, meaning they are processed as soon as a new pixel's data signal is received, effectively speeding up the processing. Histogram equalization, on the other hand, equalizes the image signal data for each frame to improve image contrast.
[0152] Specifically, please refer to Figure 9 , Figure 9 yes Figure 2 A flowchart illustrating another implementation method corresponding to step S400.
[0153] like Figure 9 As shown, histogram equalization methods in image enhancement processing can include:
[0154] S401c: Obtain the m-th frame data from the image signal data.
[0155] S402c: Calculate the value of each pixel in the m-th frame to obtain the original image histogram.
[0156] S403c: Perform a cumulative operation on the original image histogram to obtain a cumulative histogram.
[0157] S404c: Pixel value mapping table is calculated based on cumulative histogram.
[0158] Each element in the pixel value mapping table describes the mapping relationship between the original pixel value and the equalized pixel value.
[0159] S405c: Based on the pixel value mapping table, perform histogram equalization processing on the data of the (m+n)th frame.
[0160] Where n is the number of infrared bands of the multicolor infrared detector.
[0161] Based on the above histogram equalization method, the pixel value mapping table of the m+n frame data is used for histogram equalization processing. At the same time, a new pixel value mapping table is calculated using the m+n frame data, which is then used for histogram equalization processing of the subsequent m+2n frame data, which can significantly improve processing efficiency.
[0162] For example, when a multicolor infrared detector includes three different infrared bands, the three different infrared bands output detection signals sequentially and periodically. Each frame corresponds to one infrared band. Data from the first, second, and third frames can be cached. At the same time, a pixel value mapping table is calculated based on the data from the first frame, and this pixel value mapping table is used to perform histogram equalization processing on the data from the fourth frame. Similarly, a pixel value mapping table is calculated based on the data from the second frame, and this pixel value mapping table is used to perform histogram equalization processing on the data from the fifth frame. This process is carried out sequentially, which significantly improves the efficiency of histogram equalization processing.
[0163] S500 stores the image signal data after image enhancement processing into the cache module.
[0164] After the lower-level PL terminal performs image enhancement processing on the image signal data, it can store the image signal data in the cache module. The lower-level PS terminal can then read the image signal data from the cache module and transmit it to the upper-level computer for image display.
[0165] In one implementation, the cache module can be a DDR3 cache, and the PS end of the lower-level machine can read the data stored in the DDR3 cache through the USB interface and send it back to the upper-level machine.
[0166] The reading process involves details of data transmission and communication to ensure data integrity and accuracy. Once the data is returned to the host computer, the host computer will parse, process, and display the image. Through appropriate algorithms and image processing techniques, the processed data is converted into a visualized image and displayed on the screen for user observation and analysis.
[0167] Based on the above methods, multi-band infrared radiation signal acquisition, processing, and imaging display can be achieved, providing users with better imaging effects and target information acquisition capabilities.
[0168] In one embodiment, to achieve image fusion across different infrared bands, the control method for the multicolor infrared detector may further include:
[0169] S600: Image signal data is extracted from the cache module and image fusion is performed. Then, the image signal data after image fusion is stored in the cache module.
[0170] Specifically, in one embodiment, the multicolor infrared detector may include detectors in three different infrared bands, such as long-wave infrared, short-wave infrared, and mid-wave infrared. Image fusion methods may include:
[0171] Image data in the long-wave infrared band is selected and input into the g channel. Since the g channel is the most sensitive channel for human vision, image data in one band can be selected and input into the g channel first.
[0172] The differences between the image data of the short-wave infrared band and the image data of the mid-wave infrared band and the image data of the long-wave infrared band are calculated respectively to obtain the characteristic image data of the short-wave infrared band and the characteristic image data of the mid-wave infrared band.
[0173] The difference between the feature image data of the shortwave infrared band and the feature image data of the midwave infrared band is calculated to obtain the enhanced image data of the shortwave infrared band and input into the r channel;
[0174] The difference between the characteristic image data of the mid-wave infrared band and the characteristic image data of the short-wave infrared band is calculated to obtain the enhanced image data of the mid-wave infrared band and input into the b channel.
[0175] Based on the g channel, r channel, and b channel, the image signal data after image fusion is obtained.
[0176] It should be understood that the above embodiments only illustrate the image fusion method of this application by way of example. In other embodiments, image data of short-wave infrared band or mid-wave infrared band can be directly input into the r channel, and then enhanced image data of other infrared bands can be calculated and input into the r channel and b channel respectively, which can also achieve the effect of this embodiment.
[0177] In other embodiments, the multicolor infrared detector may also include image data of other numbers of infrared bands, and may also be applicable to the image fusion method of this application, which will not be elaborated here.
[0178] In one implementation, the lower-level PL terminal can also detect the chip temperature, acquire chip temperature data, and send an alarm signal when the chip temperature exceeds a first threshold, so that the lower-level machine suspends operation, enters an error state, and alarms.
[0179] For example, the first threshold can be 120°C. The lower-level PL terminal can be connected to the chip temperature sensor to detect the chip temperature. When the chip temperature is greater than 120°C, an alarm signal is issued, causing the entire lower-level system to suspend operation and enter an error state until the lower-level system is reset.
[0180] Please see Figure 10 , Figure 10 This is a system architecture diagram of one embodiment of the control method for the multicolor infrared detector of this application, as shown below. Figure 10 As shown, the lower-level PL terminal obtains commands sent by the upper-level computer through interaction with the lower-level PS terminal. After parsing the commands, it controls the ROIC readout circuit and ADC analog-to-digital converter respectively to obtain image signal data. After performing non-uniformity correction and normalization processing, defect compensation and histogram equalization on the image signal data, the image signal data is stored in the DDR memory. The lower-level PS terminal reads the data from the DDR memory and transmits it to the upper-level computer for image display.
[0181] This application also provides a control device for a multicolor infrared detector; please refer to [link / reference]. Figure 11 , Figure 11 This is a schematic diagram of one embodiment of the control device for the multicolor infrared detector of this application.
[0182] like Figure 11As shown, the control device includes a command receiving module 21, a readout circuit control module 22, an acquisition module 23, an image processing module 24, a storage module 25, and an image fusion module 26.
[0183] The command receiving module 21 is used to acquire control signal data. The control signal data is sent from the host computer to the lower computer PS terminal and then sent after being parsed by the lower computer PS terminal.
[0184] The readout circuit control module 22 is used to construct readout circuit configuration information based on control signal data and output it to the readout circuit so that the readout circuit can output the detector's detection signal based on the readout circuit configuration information;
[0185] The acquisition module 23 is used to control the analog-to-digital converter to acquire the detection signal output by the readout circuit based on the control signal data, and obtain image signal data.
[0186] Image processing module 24 is used to perform image enhancement processing on image signal data;
[0187] Storage module 25 is used to store the image signal data after image enhancement processing into the cache module;
[0188] The image fusion module 26 is used to extract image signal data from the cache module for image fusion, and then store the image signal data after image fusion in the cache module so that the lower-level PS terminal can read the image signal data from the cache module and transmit it to the upper-level computer for image display.
[0189] As per the above reference Figures 1 to 10 The control method for a multicolor infrared detector according to embodiments of this specification has been described. The details mentioned in the above description of the method embodiments also apply to the control device for the multicolor infrared detector according to embodiments of this specification. The control device for the multicolor infrared detector described above can be implemented in hardware, software, or a combination of hardware and software.
[0190] This application also provides an electronic device, please refer to... Figure 12 , Figure 12 This is a schematic diagram of one embodiment of the electronic device of this application. For example... Figure 12 As shown, the electronic device 30 may include at least one processor 31, a memory 32 (e.g., non-volatile memory), a RAM 33, and a communication interface 34, and the at least one processor 31, memory 32, RAM 33, and communication interface 34 are connected together via a bus 35. The at least one processor 31 executes at least one computer-readable instruction stored or encoded in the memory 32.
[0191] It should be understood that the computer-executable instructions stored in memory 32, when executed, cause at least one processor 31 to perform the above-described combinations in the various embodiments of this specification. Figures 1-9 The description includes various operations and functions.
[0192] In the embodiments of this specification, electronic device 30 may include, but is not limited to: personal computer, server computer, workstation, desktop computer, laptop computer, notebook computer, mobile electronic device, smartphone, tablet computer, cellular phone, personal digital assistant (PDA), handheld device, messaging device, wearable electronic device, consumer electronic device, etc.
[0193] According to one embodiment, a program product, such as a machine-readable medium, is provided. The machine-readable medium may have instructions (i.e., the elements implemented in software as described above), which, when executed by a machine, cause the machine to perform the above-described combinations of the various embodiments of this specification. Figures 1-5 The various operations and functions described. Specifically, a system or apparatus equipped with a readable storage medium storing software program code that implements the functions of any of the embodiments described above, and enabling the computer or processor of the system or apparatus to read and execute the instructions stored in the readable storage medium.
[0194] In this case, the program code read from the readable medium itself can perform the functions of any of the above embodiments, and therefore the machine-readable code and the readable storage medium storing the machine-readable code constitute a part of this specification.
[0195] Examples of readable storage media include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD-RW), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, program code can be downloaded from a server computer or the cloud via a communication network.
[0196] Those skilled in the art will understand that the various embodiments disclosed above can be modified and varied without departing from the spirit of the invention. Therefore, the scope of protection of this specification should be defined by the appended claims.
[0197] It should be noted that not all steps and units in the above process and system structure diagrams are mandatory; some steps or units can be omitted according to actual needs. The execution order of each step is not fixed and can be determined as needed. The device structure described in the above embodiments can be a physical structure or a logical structure. That is, some units may be implemented by the same physical client, or some units may be implemented by multiple physical clients, or they may be jointly implemented by certain components in multiple independent devices.
[0198] In the above embodiments, the hardware units or modules can be implemented mechanically or electrically. For example, a hardware unit, module, or processor may include permanent dedicated circuitry or logic (such as a dedicated processor, FPGA, or ASIC) to perform the corresponding operation. The hardware unit or processor may also include programmable logic or circuitry (such as a general-purpose processor or other programmable processor), which can be temporarily configured by software to perform the corresponding operation. The specific implementation method (mechanical, dedicated permanent circuitry, or temporarily configured circuitry) can be determined based on cost and time considerations.
[0199] The specific embodiments described above with reference to the accompanying drawings are exemplary embodiments, but do not represent all embodiments that can be implemented or fall within the scope of the claims. The term "exemplary" as used throughout this specification means "serving as an example, instance, or illustration" and does not imply that it is "preferred" or "advantageous" compared to other embodiments. Specific details are included to provide an understanding of the described techniques. However, these techniques can be practiced without these specific details. In some instances, well-known structures and apparatuses are shown in block diagram form to avoid obscuring the concepts of the described embodiments.
[0200] The foregoing description of this disclosure is provided to enable any person skilled in the art to implement or use this disclosure. Various modifications to this disclosure will be apparent to those skilled in the art, and the general principles applicable herein can be applied to other variations without departing from the scope of this disclosure. Therefore, this disclosure is not limited to the examples and designs described herein, but is consistent with the widest scope of the principles and novel features disclosed herein.
Claims
1. A control method for a multicolor infrared detector, characterized in that, Applications include the lower-level PL terminal: Acquire control signal data, which is sent from the host computer to the lower-level PS terminal and then sent after being parsed by the lower-level PS terminal; Based on the control signal data, readout circuit configuration information is constructed and output to the readout circuit, so that the readout circuit can output the detector's detection signal based on the readout circuit configuration information. The readout circuit configuration information includes static configuration information and timing control information of the readout circuit. The timing control information includes a clock signal, a band signal, and a synchronization signal. The band signal includes different level states to calibrate different band modes. Each band mode selects one band from multiple bands to output the detection signal. The synchronization signal includes different level states to calibrate the start point of each frame in the band mode. The specific steps of constructing readout circuit configuration information based on the control signal data and outputting it to the readout circuit so that the readout circuit can output the detector's detection signal based on the readout circuit configuration information are as follows: synchronously transmitting the clock signal, band signal, and synchronization signal to the readout circuit so that the readout circuit can confirm the band information of the current frame based on the clock signal, band signal, and synchronization signal, and control the output of the corresponding detector's detection signal. Based on the control signal data, the analog-to-digital converter is controlled to collect the detection signal output by the readout circuit to obtain image signal data; The image signal data is subjected to image enhancement processing; The image signal data after image enhancement processing is stored in the cache module; The image signal data is extracted from the cache module and fused into an image. Then, the image signal data after fusion is stored in the cache module so that the lower-level PS terminal can read the image signal data from the cache module and transmit it to the upper-level computer for image display.
2. The control method according to claim 1, characterized in that, The step of controlling the analog-to-digital converter to acquire the detection signal output by the readout circuit based on the control signal data to obtain image signal data includes: The signal extraction rate is obtained based on the control signal data, and the signal extraction rate is used to represent the average value after taking data for each signal a certain number of times. The differential signal output by the analog-to-digital converter is acquired, and the differential signal is oversampled based on the signal decimation rate to obtain the image signal data and store it in a queue.
3. The control method according to claim 1, characterized in that, The step of performing image enhancement processing on the image signal data includes: The non-uniformity correction coefficient is read from the block memory. The non-uniformity correction coefficient is stored in a non-volatile memory chip and is read and written to the block memory by the lower-level PS terminal when powered on. Based on the non-uniformity correction coefficient, non-uniformity correction is performed on the data of each pixel in the image signal data to obtain non-uniformly corrected image signal data.
4. The control method according to claim 3, characterized in that, The non-uniform correction coefficient includes the correction gain coefficient A. i,j and correction bias coefficient B i,j The correction gain coefficient A i,j and correction bias coefficient B i,j Satisfy the following formula: , , In the formula, and The detectors are respectively in Output voltage response at high and low temperatures. This represents the average output value of the infrared detection unit's response at high temperatures. The mean value of the infrared detection unit's response output at low temperatures satisfies the following formula: ; The specific steps for performing non-uniform correction on the data of each pixel in the image signal data based on the non-uniform correction system are as follows: The data for each pixel after non-uniform correction is calculated based on the following formula. : 。 5. The control method according to claim 1, characterized in that, The steps of acquiring the image signal data and performing image enhancement processing on the image signal data include: The image signal data is row-buffered to obtain a template including at least three rows of pixels. Each pixel of the image signal data is sequentially entered into and output to the template. Defect identification is performed on the pixel data within the template; For pixel data that is identified as a defect, correction is made based on the average value of neighboring pixel data.
6. The control method according to claim 5, characterized in that, The step of defect identification of pixel data within the template includes: Determine whether the coordinates of the center pixel data of each 3*3 matrix in the template are preset defect coordinates; If so, the center pixel data of the 3*3 matrix is identified as a defect; And / or, calculate the difference between the center pixel data and all surrounding pixel data of each 3*3 matrix in the template; When the difference between the center pixel data and all surrounding pixel data is positive or negative, and the absolute value of the difference between the center pixel data and all surrounding pixel data is greater than a threshold, the center pixel data is identified as a defect.
7. The control method according to claim 1, characterized in that, The steps of acquiring the image signal data and performing image enhancement processing on the image signal data include: Obtain the data of the m-th frame from the image signal data; By statistically analyzing the pixel value of each pixel in the m-th frame of data, the original image histogram is obtained. The original image histogram is accumulated to obtain the accumulated histogram. A pixel value mapping table is calculated based on the cumulative histogram. Each element in the pixel value mapping table is used to describe the mapping relationship between the original pixel value and the equalized pixel value. Based on the pixel value mapping table, histogram equalization is performed on the (m+n)th frame of data, where n is the number of infrared bands of the multicolor infrared detector.
8. The control method according to claim 1, characterized in that, The image signal data includes image data from three different infrared bands. The step of extracting the image signal data from the cache module and performing image fusion is specifically as follows: Input the image data of the first infrared band into the g channel; The differences between the image data of the second infrared band and the image data of the third infrared band and the image data of the first infrared band are calculated respectively to obtain the feature image data of the second infrared band and the feature image data of the third infrared band. Calculate the difference between the feature image data of the second infrared band and the feature image data of the third infrared band to obtain the enhanced image data of the second infrared band and input it into the r channel; The difference between the feature image data of the third infrared band and the feature image data of the second infrared band is calculated to obtain the enhanced image data of the third infrared band and input into the b channel; Based on the g channel, r channel, and b channel, the image signal data after image fusion is obtained.
9. The control method according to claim 1, characterized in that, Also includes: The chip temperature data is acquired, and when the chip temperature exceeds a first threshold, an alarm signal is sent to cause the lower-level machine to suspend operation, enter an error state, and trigger an alarm.
10. A control device for a multicolor infrared detector, characterized in that, include: The command receiving module is used to acquire control signal data, which is sent from the host computer to the lower-level PS terminal and then sent after being parsed by the lower-level PS terminal. The readout circuit control module is used to construct readout circuit configuration information based on the control signal data and output it to the readout circuit, so that the readout circuit can output the detector's detection signal based on the readout circuit configuration information. The readout circuit configuration information includes static configuration information and timing control information of the readout circuit. The timing control information includes a clock signal, a band signal, and a synchronization signal. The band signal includes different level states to calibrate different band modes. Each band mode selects one band from multiple bands to output the detection signal. The synchronization signal includes different level states to calibrate the start point of each frame in the band mode. Specifically, constructing the readout circuit configuration information based on the control signal data and outputting it to the readout circuit so that the readout circuit can output the detector's detection signal based on the readout circuit configuration information involves: synchronously transmitting the clock signal, band signal, and synchronization signal to the readout circuit so that the readout circuit can confirm the band information of the current frame based on the clock signal, band signal, and synchronization signal, and control the output of the corresponding detector's detection signal. The acquisition module is used to control the analog-to-digital converter to acquire the detection signal output by the readout circuit based on the control signal data, so as to obtain image signal data; The image processing module is used to perform image enhancement processing on the image signal data; The storage module is used to store the image signal data after image enhancement processing in the cache module, so that the lower-level PS terminal can read the image signal data by the cache module and transmit it to the upper-level computer for image display.
11. An electronic device, comprising: At least one processor; as well as A memory storing instructions that, when executed by the at least one processor, cause the at least one processor to perform the control method for the multicolor infrared detector as described in any one of claims 1 to 9.
12. A machine-readable storage medium storing executable instructions that, when executed, cause the machine to perform the control method for a multicolor infrared detector as claimed in any one of claims 1 to 9.
Citation Information
Patent Citations
Method for inhibiting bias voltage ripples and line output amplifier channel non-uniformity
CN103076552A
FPGA system and method for processing video format and image quality
CN114040156A
