Embedded airport target capturing and tracking method for airborne real-time infrared spectrum measurement

By using grayscale stretching and aperture area pixel replacement technology in the airborne infrared spectrum system, the problems of time-consuming and matching errors in traditional airport target acquisition and tracking methods are solved, and high-accuracy and real-time airport target acquisition and tracking are achieved. .

CN118628525AActive Publication Date: 2024-09-10HUAZHONG UNIV OF SCI & TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410663903.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-09-10
Estimated Expiration
2044-05-27

AI Technical Summary

Technical Problem

Traditional airport target acquisition and tracking methods in airborne infrared spectroscopy systems have the problems of long target acquisition and tracking and matching errors. This is mainly due to the complexity of the airport ground background and the three-dimensionality, smallness or aggregation of targets, which makes full-image matching time-consuming and time-consuming. Not accurate.

Method used

The embedded airport target capture and tracking method using real-time infrared spectrum measurement, by obtaining the histogram of the current frame and the previous frame of the airport grayscale image for grayscale stretching, determines the target search area in the preset format, accurately captures the target position, and During the tracking process, the pixel information surrounding the aperture area is used to replace the pixel values ​​in the aperture area in real time to avoid tracking drift.

Benefits of technology

It improves the accuracy and real-time performance of airport target acquisition and tracking, reduces the matching search area, achieves accurate airport target acquisition and tracking, avoids tracking drift, and ensures the accuracy of spectrum measurement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628525A
    Figure CN118628525A
Patent Text Reader

Abstract

The invention discloses an embedded airport target capturing and tracking method based on airborne real-time infrared spectrum measurement, and the method comprises the steps: obtaining an airport grayscale image of a current frame obtained based on infrared detection, and carrying out the gray stretching of the airport grayscale image of the current frame through combining a histogram of an airport grayscale image of a previous frame, obtaining an airport grayscale image in a preset format; determining a corresponding target search area from the airport grayscale image based on a preset airport target search range; capturing an airport target from the target search area to obtain a target position of the airport target; and carrying out airport target tracking on the basis so as to carry out continuous spectrum measurement on the airport target, replacing the pixel value of the diaphragm region in the airport target image obtained by tracking according to the pixel information around the diaphragm region in combination with the pre-obtained position of the diaphragm region in the tracking process, and removing the diaphragm region in the tracking image in real time. And tracking drift is avoided. According to the invention, real-time and accurate airport target capturing and tracking are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of image processing technology, and more specifically, relates to an embedded airport target capture and tracking method for airborne real-time infrared spectroscopy measurement. Background Art

[0002] The airborne infrared spectroscopy system is a device that integrates infrared image processing and spectral processing. Under airborne conditions, airport targets are static targets under a moving platform. The moving platform and the complex background of the airport ground bring many problems to the capture and tracking of airport targets.

[0003] Traditional target capture directly uses the target template to perform full-image matching search in the input image. Due to the complex ground background of the airport and the fact that airport targets such as airport airplanes are three-dimensional, small or clustered relative to the airport, full-image matching will lead to time-consuming target capture and tracking and matching errors. Summary of the invention

[0004] In view of the defects of the prior art, the purpose of this application is to provide an embedded airport target capture and tracking method with airborne real-time infrared spectroscopy measurement, aiming to solve the problems of time-consuming target capture and tracking and matching errors in the existing airport target capture and tracking methods.

[0005] To achieve the above objectives, in a first aspect, the present application provides an embedded airport target acquisition and tracking method for airborne real-time infrared spectroscopy measurement, the method being applied to a DSP deployed on an airborne platform, the method comprising the following steps:

[0006] Step S101, obtaining a grayscale image of the airport in the current frame obtained based on infrared detection, and performing grayscale stretching on the grayscale image of the airport in the current frame in combination with a histogram of the grayscale image of the airport in the previous frame to obtain a grayscale image of the airport in a preset format;

[0007] Step S102, determining a corresponding target search area from the airport grayscale image in the preset format based on a preset airport target search range;

[0008] Step S103, capturing an airport target from the target search area to obtain a target position of the airport target;

[0009] Step S104, tracking the airport target is performed based on the target position of the airport target to continuously measure the spectrum of the airport target, and in the process of airport target tracking, the position of the aperture area obtained in advance is combined, and the pixel value of the aperture area in the tracked airport target image is replaced according to the pixel information around the aperture area, and the aperture area in the tracking image is removed in real time to avoid tracking drift.

[0010] In an optional example, step S101 specifically includes:

[0011] Obtaining a minimum threshold and a maximum threshold corresponding to the grayscale image of the airport in the previous frame, performing grayscale stretching on the grayscale image of the airport in the current frame based on the minimum threshold and the maximum threshold, and obtaining a grayscale image of the airport in a preset format;

[0012] Among them, the minimum threshold and the maximum threshold are respectively: the grayscale value in the histogram of the airport grayscale image of the previous frame is traversed from the low grayscale value to the high grayscale value to find the grayscale value where the number of pixels exceeds the preset grayscale threshold for the first time, and the grayscale value is traversed from the high grayscale value to the low grayscale value to find the grayscale value where the number of pixels exceeds the preset grayscale threshold for the first time.

[0013] In an optional example, the DSP includes a first core and a second core; while executing step S101 on the second core, the first core determines the minimum threshold and maximum threshold corresponding to the next frame of the airport grayscale image based on the histogram of the airport grayscale image of the previous frame, so that the second core can perform grayscale stretching for the next frame.

[0014] In an optional example, step S104 specifically includes:

[0015] In the airport target tracking process, the position of the aperture area obtained in advance and the positions of multiple neighboring pixels of each aperture pixel in the aperture area stored in advance are combined to first obtain the pixel values ​​of multiple neighboring pixels corresponding to the aperture pixel on the outermost layer of the aperture area, calculate the replacement pixel value corresponding to the aperture pixel on the outermost layer, and then replace the pixel value of the aperture pixel on the outermost layer of the airport target image, and so on, the pixel value replacement is performed layer by layer from the outermost layer to the innermost layer of the aperture area until the pixel value of each aperture pixel in the aperture area is replaced.

[0016] In an optional example, if any aperture pixel is on a horizontal line or a vertical line passing through the center of the aperture area, then the positions of the multiple neighboring pixels adjacent to the any aperture pixel are specifically obtained by sequentially searching for the multiple neighboring pixels along the horizontal line or the vertical line outward for the any aperture pixel; otherwise, the positions of the multiple neighboring pixels adjacent to the any aperture pixel are specifically obtained by sequentially searching for the multiple diagonally adjacent pixels outward for the any aperture pixel.

[0017] In an optional example, step S102 specifically includes:

[0018] The pre-acquired positioning information of both ends of the airport stop line is transformed into a perspective to obtain the pixel positions of both ends of the airport stop line in the airport image, and the target search area in the airport image is determined in combination with the preset airport target search range.

[0019] In a second aspect, the present application provides an embedded airport target acquisition and tracking system for airborne real-time infrared spectrum measurement, the system is applied to a DSP deployed on an airborne platform, and the system includes:

[0020] The airport image acquisition module is used to acquire the airport grayscale image of the current frame obtained based on infrared detection, and to perform grayscale stretching on the airport grayscale image of the current frame in combination with the histogram of the airport grayscale image of the previous frame to obtain the airport grayscale image in a preset format;

[0021] A search area determination module, used to determine a corresponding target search area from the airport grayscale image in the preset format based on a preset airport target search range;

[0022] An airport target capture module is used to capture the airport target from the target search area and obtain the target position of the airport target;

[0023] The airport target tracking module is used to track the airport target based on the target position of the airport target so as to continuously measure the spectrum of the airport target, and in the process of airport target tracking, the position of the aperture area obtained in advance is combined, and the pixel value of the aperture area in the tracked airport target image is replaced according to the pixel information around the aperture area, so as to remove the aperture area in the tracking image in real time and avoid tracking drift.

[0024] In a third aspect, the present application provides an electronic device comprising: at least one memory for storing programs; and at least one processor for executing the programs stored in the memory. When the program stored in the memory is executed, the processor is used to execute the method described in the first aspect or any possible implementation of the first aspect.

[0025] In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the method described in the first aspect or any possible implementation of the first aspect.

[0026] In a fifth aspect, the present application provides a computer program product. When the computer program product runs on a processor, the processor executes the method described in the first aspect or any possible implementation of the first aspect.

[0027] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0028] In general, the above technical solutions conceived by this application have the following beneficial effects compared with the prior art:

[0029] The present application provides an embedded airport target capture and tracking method for airborne real-time infrared spectrum measurement. The grayscale stretching range is determined by combining the histogram of the airport grayscale image of the previous frame, and the grayscale stretching is performed on the airport grayscale image of the current frame, thereby ensuring the real-time performance of the image stretching processing, while enhancing the contrast and details of the airport grayscale image, thereby improving the accuracy of airport target capture and tracking; determining the corresponding target search area based on the preset airport target search range can effectively narrow the matching search area, and then performing template matching can achieve precise matching, thereby achieving real-time and accurate airport target capture and tracking; and replacing the pixel value of the aperture area in the tracked airport target image according to the pixel information around the aperture area, removing the aperture area in the tracking image in real time, avoiding tracking drift, and ensuring the accuracy of airport target tracking and spectrum measurement. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a flowchart of the airport target capture and tracking method provided by an embodiment of the present application;

[0031] Figure 2 It is a block diagram of the architecture of the airborne infrared spectroscopy system provided in the embodiment of the present application;

[0032] Figure 3 This is a specific workflow diagram of the IPC inter-core interrupt provided in the embodiment of the present application;

[0033] Figure 4 is a flow chart of an airport target tracking algorithm provided by an embodiment of the present application;

[0034] Figure 5 This is a comparison chart of the processing results of the image adaptive stretching algorithm provided in the embodiment of the present application;

[0035] Figure 6 is a comparison chart of the results of de-diaphragming provided in the embodiments of the present application;

[0036] Figure 7 It is a schematic diagram of the process of extracting template feature points provided in an embodiment of the present application;

[0037] Figure 8 is a schematic diagram of the process of real-time image preprocessing provided by an embodiment of the present application;

[0038] Fig. 9 is a schematic diagram of a target search area provided in an embodiment of the present application;

[0039] Fig.10 It is a flowchart of a target tracking algorithm provided in an embodiment of the present application;

[0040] Fig.11 is a target capture and tracking result diagram provided by an embodiment of the present application;

[0041] Fig.12 is a flow chart of FFT2D calculation on DSP provided in an embodiment of the present application;

[0042] Fig.13 is an architectural diagram of an airport target capture and tracking system provided by an embodiment of the present application;

[0043] Fig.14 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0045] The terms "first" and "second" in the specification and claims herein are used to distinguish different objects rather than to describe a specific order of objects. For example, a first core and a second core are used to distinguish different cores rather than to describe a specific order of cores.

[0046] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0047] In the description of the embodiments of the present application, unless otherwise specified, the meaning of “plurality” refers to two or more than two. For example, a plurality of adjacent pixels refers to two or more adjacent pixels, etc.

[0048] Next, the technical solutions provided in the embodiments of the present application are introduced.

[0049] The airborne infrared spectrum system of the present application is an embedded image processing system based on a multi-core DSP and FPGA architecture. It is characterized by low power consumption, miniaturization, high computing power for image processing, and is suitable for completing real-time capture and tracking of targets under airborne conditions. Among them, the FPGA used is XC7K410T-2FFG900, which uses the advantages of FPGA bandwidth, processing speed, real-time performance, and scalability to complete real-time acquisition, caching, control, and transmission of infrared images. DSP uses TMS320C6657, which is a dual-core DSP with fixed-point and floating-point computing capabilities based on KeyStone architecture. The C66x core integrates 90 new instructions for floating-point and vector-oriented mathematical operations. At the same time, the C66x core is backward compatible with TI's previous C6000 fixed-point and floating-point DSP cores, ensuring the portability of software algorithms and shortening the software development cycle. The powerful fixed-point and floating-point computing capabilities of DSP are used to complete the real-time capture and tracking of airport targets and collect the spectrum of airport targets at the same time.

[0050] Infrared spectrum measurement and processing technology involves multiple aspects such as image acquisition, image transmission, and image processing. Among them, image processing is the core of the whole process. Its main process is that FPGA transmits the collected real-time image data to the DDR outside the DSP chip through RapidIO, and DSP moves the real-time image data on the DDR to the on-chip L2 through EDMA for image analysis and processing, and captures and tracks the target.

[0051] In the conventional target capture and tracking process, the target may be at any position in the field of view during the tracking phase, so the target may not always be in the center of the field of view. However, the infrared spectrum system needs to transmit the target position of each frame to the servo mechanism during the capture and tracking phase, and provide corresponding feedback and control servo according to the needs, so as to pull the target to the center of the image. Since the image and the spectrum share an optical path, the spectral information data in the middle area of ​​the image can be collected. Only when the target remains in the center area for a long time can the target spectrum be measured. This requires the infrared spectrum measurement system to be real-time and accurate.

[0052] In this regard, the present application provides an embedded airport target acquisition and tracking method based on airborne real-time infrared spectrum measurement, which is applied to a DSP deployed on an airborne platform. Figure 1 FIG. 1 is a flow chart of an airport target capture and tracking method provided in an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0053] Step S101, obtaining a grayscale image of the airport in the current frame obtained based on infrared detection, and performing grayscale stretching on the grayscale image of the airport in the current frame in combination with a histogram of the grayscale image of the airport in the previous frame to obtain a grayscale image of the airport in a preset format;

[0054] Step S102, determining a corresponding target search area from the airport grayscale image in the preset format based on a preset airport target search range;

[0055] Step S103, capturing an airport target from the target search area to obtain a target position of the airport target;

[0056] Step S104, tracking the airport target is performed based on the target position of the airport target to continuously measure the spectrum of the airport target, and in the process of airport target tracking, the position of the aperture area obtained in advance is combined, and the pixel value of the aperture area in the tracked airport target image is replaced according to the pixel information around the aperture area, and the aperture area in the tracking image is removed in real time to avoid tracking drift.

[0057] Here, the airborne platform can specifically be an airborne infrared spectroscopy system. Compared with visible light images, infrared images usually have the characteristics of low contrast, blur and low signal-to-noise ratio. These factors are very unfavorable for subsequent processing such as feature extraction, recognition and tracking. Therefore, in order to improve the quality of infrared images, it is necessary to suppress noise, improve the signal-to-noise ratio, adjust the contrast, enhance edges and lines, etc. For ground targets at normal temperature, the infrared long-wave detector produces a 14-bit grayscale image. In the subsequent image analysis process, the 14-bit grayscale image needs to be converted into an 8-bit grayscale image for image processing algorithm implementation. To this end, the embodiment of the present application needs to provide a stretching processing with small computational complexity and low resource consumption, and implement a simple real-time infrared image system with an adaptive piecewise linear image stretching algorithm.

[0058] Considering the similarity between the airport grayscale image of the previous frame and the airport grayscale image of the current frame, in order to improve the real-time performance of the current frame image stretching, the embodiment of the present application combines the histogram of the airport grayscale image of the previous frame to determine the grayscale stretching range, and then grayscale stretches the airport grayscale image of the current frame to obtain a preset format airport grayscale image, where the preset format airport grayscale image can be, for example, an 8-bit grayscale image. In addition, through grayscale stretching, the contrast and details of the airport grayscale image can be enhanced, thereby improving the accuracy of airport target capture and tracking.

[0059] Considering that the airport grayscale image usually has a large range, low target capture efficiency, and a complex background, resulting in a large target capture error, the embodiment of the present application can pre-determine the approximate location of the airport target based on the flight information or target inertial navigation information of the airport target, set the airport target search range, and then determine the corresponding target search area from the airport grayscale image in a preset format according to the airport target search range, and then capture the target within the target search area. For example, if it is determined that the airport target is taxiing on the taxiway, the airport target search range can be the taxiway range. For another example, if it is determined that the airport target is parked on the apron, the airport target search range can be the apron range.

[0060] Then, the airport target can be captured from the target search area through template matching to obtain the target position of the airport target. The template is slid in the target search area at a fixed step length using the sliding window method, and the similarity between each window position and the template is calculated according to the correlation measurement criterion. The most similar matching position is the target position of the current airport target. After obtaining the target position, the airport target tracking algorithm can be used to track the airport target spectrum for a long time, which can be used for the subsequent construction and analysis of the spectral database. Furthermore, before matching, the image of the target search area can be pre-processed by binary segmentation, filtering, etc.

[0061] Since the image and spectrum in the airborne infrared spectroscopy system share an optical path, there is a circular aperture in the center of the infrared imaging, which is a circular area with an approximate radius of about 25 pixels. During the airport target tracking process, the servo mechanism will pull the target to the center of the field of view, and the middle aperture will cover the target, causing the subsequent tracking to track the aperture, thereby causing tracking drift and affecting the target spectrum measurement. Therefore, the embodiment of the present application provides a method to reduce the impact of the aperture on the tracking algorithm.

[0062] Taking into account that the aperture always remains in the center of the image and its position is relatively fixed, the embodiment of the present application combines the position of the aperture area acquired in advance during the airport target tracking process, and replaces the pixel value of the aperture area in the tracked airport target image according to the pixel information around the aperture area, thereby realizing real-time removal of the aperture area in the tracking image and avoiding tracking drift.

[0063] The method provided in the embodiment of the present application determines the grayscale stretching range by combining the histogram of the airport grayscale image of the previous frame, and performs grayscale stretching on the airport grayscale image of the current frame, thereby ensuring the real-time performance of the image stretching processing, while enhancing the contrast and details of the airport grayscale image, thereby improving the accuracy of airport target capture and tracking; determining the corresponding target search area based on the preset airport target search range can effectively narrow the matching search area, and then performing template matching can achieve precise matching, thereby achieving real-time and accurate airport target capture and tracking; and replacing the pixel value of the aperture area in the tracked airport target image according to the pixel information around the aperture area, removing the aperture area in the tracking image in real time, avoiding tracking drift, and ensuring the accuracy of airport target tracking and spectrum measurement.

[0064] Based on the above embodiment, step S101 specifically includes:

[0065] Obtaining a minimum threshold and a maximum threshold corresponding to the grayscale image of the airport in the previous frame, performing grayscale stretching on the grayscale image of the airport in the current frame based on the minimum threshold and the maximum threshold, and obtaining a grayscale image of the airport in a preset format;

[0066] Among them, the minimum threshold and the maximum threshold are respectively: the grayscale value in the histogram of the airport grayscale image of the previous frame is traversed from the low grayscale value to the high grayscale value to find the grayscale value where the number of pixels exceeds the preset grayscale threshold for the first time, and the grayscale value is traversed from the high grayscale value to the low grayscale value to find the grayscale value where the number of pixels exceeds the preset grayscale threshold for the first time.

[0067] Furthermore, the grayscale stretching formula may be specifically:

[0068]

[0069] Here, min is the minimum threshold, max is the maximum threshold, x is the grayscale value before stretching, and y is the grayscale value after stretching.

[0070] The embodiment of the present application determines the minimum threshold and maximum threshold of grayscale stretching by the distribution of the number of pixels in the histogram of the airport grayscale image. Compared with the traditional grayscale stretching method, it can improve the effect of image grayscale stretching and thus ensure the accuracy of subsequent target capture.

[0071] Based on any of the above embodiments, the DSP includes a first core and a second core; while executing step S101 on the second core, the first core determines the minimum threshold and maximum threshold corresponding to the next frame of the airport grayscale image based on the histogram of the airport grayscale image of the previous frame, so that the second core can perform grayscale stretching for the next frame.

[0072] Furthermore, in order to better utilize the advantages of the parallelization of the DSP dual-core, the register configuration between the IPC cores is used to complete the communication between the two cores, so that core 0 performs the stretching threshold update, data reception, and result output functions in the image preprocessing function, and core 1 performs image adaptive stretching and subsequent detection and tracking algorithm processes. This ensures parallel computing between the two cores. For the case where one core performs preprocessing and detection and tracking functions, the dual-core processing time reduces the time consumption of one image adaptive stretching algorithm, ensures the real-time processing, and avoids frame rate reduction. Here, core 0 is the first core and core 1 is the second core.

[0073] Based on any of the above embodiments, step S104 specifically includes:

[0074] In the airport target tracking process, the position of the aperture area obtained in advance and the positions of multiple neighboring pixels of each aperture pixel in the aperture area stored in advance are combined to first obtain the pixel values ​​of multiple neighboring pixels corresponding to the aperture pixel on the outermost layer of the aperture area, calculate the replacement pixel value corresponding to the aperture pixel on the outermost layer, and then replace the pixel value of the aperture pixel on the outermost layer of the airport target image, and so on, the pixel value replacement is performed layer by layer from the outermost layer to the innermost layer of the aperture area until the pixel value of each aperture pixel in the aperture area is replaced.

[0075] It should be noted that in order to reduce the influence of the aperture on the tracking algorithm while ensuring the authenticity of the tracked airport target image, the embodiment of the present application uses the similarity between adjacent pixels to replace pixel values, and considering that the adjacent pixels of the pixels in the central area of ​​the aperture are also within the aperture, the pixel values ​​are replaced layer by layer from the outermost layer to the innermost layer of the aperture area, and the adjacent pixels of each layer of the aperture pixel are acquired outward.

[0076] It can be understood that the aperture always remains at the center of the image, the position of the aperture pixel is fixed, and the positions of the corresponding multiple neighboring pixels can be stored in advance in the form of a lookup table. On this basis, the positions of the multiple neighboring pixels corresponding to the aperture pixel can be directly obtained through the lookup table without repeatedly looking up the positions of the multiple neighboring pixels, thereby saving image processing time.

[0077] Based on any of the above embodiments, if any aperture pixel is on a horizontal line or a vertical line passing through the center of the aperture area, the positions of multiple neighboring pixels adjacent to the aperture pixel are specifically obtained by sequentially searching for multiple neighboring pixels along the horizontal line or the vertical line toward the aperture pixel; otherwise, the positions of multiple neighboring pixels adjacent to the aperture pixel are specifically obtained by sequentially searching for multiple diagonally adjacent pixels toward the aperture pixel toward the aperture pixel.

[0078] Specifically, the positions of multiple neighboring pixels adjacent to the aperture pixel can be calculated by the following formula:

[0079]

[0080]

[0081] In the above formula, pix edge ( x ), pix edge ( y ) represents the x-coordinate and y-coordinate of the aperture area; pix center ( x ), pix center ( x ) represents the x-coordinate and y-coordinate of the center of the aperture; k is 1, 2, …, n, where n is the total number of neighboring pixels required to be adjacent to the outside.

[0082] In particular, for pix edge ( y )-pix center ( y ) or pix edge ( x )-pix center ( x ) is equal to 0, that is, the aperture pixel is on the horizontal line or vertical line passing through the center of the aperture area, that is, the center of the aperture, then the above formula is not used, and multiple adjacent pixels can be directly searched outwards along the horizontal line or vertical line in sequence.

[0083] For example, the number of neighboring pixels is 4. If a certain aperture pixel is located at the upper left of the aperture center, since the image pixels are distributed in a grid pattern, the diagonally adjacent pixel to the upper left of the aperture pixel is the first neighboring pixel, and the diagonally adjacent pixel to the upper left of the first neighboring pixel is the second neighboring pixel. This process is repeated in this way to obtain the 4 neighboring pixels corresponding to the aperture pixel.

[0084] Furthermore, when calculating the replacement pixel value corresponding to the aperture pixel, the weight value of the neighboring pixel closer to the aperture pixel may be set to be larger, and in order to ensure that the replacement pixel value does not exceed 255, the sum of all weight values ​​may be 1. For example, in the above example, the weight values ​​of the four neighboring pixels from far to near may be respectively and

[0085] Based on any of the above embodiments, step S102 specifically includes:

[0086] The pre-acquired positioning information of both ends of the airport stop line is transformed into a perspective to obtain the pixel positions of both ends of the airport stop line in the airport image, and the target search area in the airport image is determined in combination with the preset airport target search range.

[0087] Here, the positioning information may be, for example, GPS information, Beidou information, etc., and the embodiments of the present application do not specifically limit this.

[0088] It is understandable that in the case where the airport target is parked on the apron, the airport target is usually parked on the airport parking line. The pre-acquired positioning information at both ends of the airport parking line can be perspective transformed to obtain the pixel positions of the two ends of the airport parking line in the airport image, and then a more precise target search area is determined based on the pixel positions of the two ends of the airport parking line in the airport image, so as to further improve the efficiency and accuracy of airport target capture.

[0089] Furthermore, considering that there may be certain errors in the data information, in order to ensure that the target search area can cover the complete airport target, after determining the pixel positions of the two ends of the airport parking line in the airport image, the two pixel positions can be offset up and down to a certain extent, so as to serve as the two vertices of the target search area, i.e., the rectangular area. Here, the number of pixels offset up and down can be specifically set according to the size and posture of the airport target in actual application.

[0090] Based on any of the above embodiments, the present application provides a processing algorithm for real-time capture and tracking of embedded targets under real-time infrared spectrum measurement under airborne conditions. The technical problem solved by the present application is: in view of the problem that the image processing cycle of the traditional image analysis algorithms such as image preprocessing, target detection, and target tracking is long when transplanted into the DSP in the current prior art. Due to the limited internal resources of DSP6657, the L1P and L1D in the internal resources are 32KB each, the L2 is 1024KB, and the MSMC (multi-core shared memory controller) is 1024KB. Compared with the L1P and L1D of DSP 6678, which are 32KB each, the L2 is 512KB, and the MSMC is 4096KB, the memory of the shared area of ​​6657 is smaller, and the overall on-chip memory resources of 6657 are less than those of 6678, which will lead to insufficient memory usage in the algorithm, and the algorithm transplantation is more difficult, and it is difficult to achieve real-time image processing, which cannot meet the demand of 50 frames / second.

[0091] Figure 2 is a block diagram of the airborne infrared spectroscopy system provided in the embodiment of the present application, such as Figure 2 As shown, the details are as follows:

[0092] 1. Image preprocessing infrared image adaptive image enhancement algorithm based on IPC inter-core interruption

[0093] Compared with visible light images, infrared images usually have the characteristics of low contrast, blur and low signal-to-noise ratio. These factors are very unfavorable for subsequent processing such as feature extraction, recognition and tracking. Therefore, in order to improve the quality of infrared images, it is necessary to suppress noise, improve the signal-to-noise ratio, adjust the contrast, enhance edges and lines, etc. For ground targets at normal temperature, the infrared long-wave detector produces a 14-bit grayscale image. In the subsequent image analysis process, the 14-bit grayscale image needs to be converted into an 8-bit grayscale image for image processing algorithm implementation. In this regard, the first point of this application provides a stretching processing with small computational complexity and low resource consumption, and realizes a simple real-time infrared image system with adaptive piecewise linear image stretching algorithm. The specific implementation steps are as follows:

[0094] Step 1: FPGA transmits the image data of the current frame to DSP through RapidIO. DSP obtains the image data at this moment through the doorbell interrupt flag and moves it to the buffer of L2 through DMA as the data source for DSP to process image data. The image data is used to calculate the histogram of 14-bit real-time image.

[0095] Step 2: Use the histogram of the 14-bit real-time image to determine the minimum threshold min and maximum threshold max of the piecewise linear stretch. The histogram describes the number of pixels corresponding to each gray value in the image.

[0096] Taking the preset grayscale threshold of 50 as an example, the method to determine the minimum threshold min and the maximum threshold max is:

[0097] (1) By traversing the histogram from low grayscale values ​​to high grayscale values, we find the grayscale value where the number of pixels exceeds 50 for the first time as the minimum threshold min;

[0098] (2) Traverse from high grayscale value to low grayscale value and find the grayscale value where the number of pixels exceeds 50 for the first time as the maximum threshold max.

[0099] Step 3: Combine the three-segment line function to update the 8-bit grayscale image of the image. Set the grayscale values ​​less than min and greater than max directly to 0 or 255, and linearly map the grayscale values ​​between min and max to between 0 and 255. The specific transformation formula is as follows:

[0100]

[0101] Step 4: The two thresholds of the current image are transmitted to the FPGA through RapidIO. The FPGA uses the two thresholds to perform a three-stage function for stretching and converts it into an 8-bit grayscale image to be sent to the main control for display and storage.

[0102] Furthermore, in order to better utilize the parallel advantages of the DSP 6657 dual-core, the register configuration in the IPC core is used to enable core 0 to perform the stretching threshold update, data reception, and result output functions in the image preprocessing function, and core 1 to perform the detection and tracking algorithm process. This ensures parallel computing between the two cores. For the case where one core performs preprocessing and detection and tracking functions, the dual-core processing time reduces the time consumed by one image adaptive stretching algorithm. Figure 3 This is a specific workflow flowchart of the IPC inter-core interrupt provided in the embodiment of the present application. Figure 4 It is a flow chart of the tracking algorithm for airport targets provided in an embodiment of the present application.

[0103] When performing IPC communication, the cache write-back function CACHE_wbL1d() and the cache invalidation function CACHE_invL1d() are used to maintain data consistency. Specific usage: When the data in the cache space is updated, the data is written back to the memory in time; and when the data in the memory is to be used or changed, the data in the cache space must be invalidated first.

[0104] The reference code for using the function is as follows:

[0105] int C6657CacheWriteBack(void*data_buf1,int write_len_in_bytes);

[0106] int C6657CacheInvalid(void*data_buf1,int invalid_len_in_bytes);

[0107] The comparison diagram of the processing results of the image adaptive stretching algorithm provided in the embodiment of the present application is as follows Figure 5 shown.

[0108] 2. Algorithm for eliminating the influence of aperture on target tracking based on lookup table

[0109] The airborne infrared spectroscopy system is a device that integrates infrared image processing and spectral processing. Since the image and spectrum share an optical pathway, there is a circular aperture in the center of the infrared imaging. The aperture is a circular area with an approximate radius of about 25 pixels. The aperture will cause target tracking errors in the subsequent image tracking algorithm.

[0110] The specific reasons for target tracking errors are as follows: When the target appears in the field of view, the target will be detected, followed by tracking of the next frame, and then the servo mechanism will be controlled to pull the target to the center of the field of view. The middle aperture will cover the target, causing subsequent tracking to track the aperture, resulting in tracking drift.

[0111] In order to prevent the target from being obscured by the aperture area during spectrum measurement, thereby causing tracking drift, this application also proposes a method based on a lookup table to reduce the impact of the aperture on the tracking algorithm. The specific method is as follows:

[0112] Step 1: Since the aperture is always kept at the center of the image, the aperture boundary area is determined according to the four-neighborhood rule, and each pixel point in the aperture area is solved from the outside to the inside. The coordinates (X, Y) of each pixel point are counted.

[0113] Step 2: Based on the coordinates (X, Y) of each pixel in the aperture area counted in step 1, automatically extend 4 pixels from the center of the image to the aperture area and outward diagonally, and count the four adjacent pixels of each aperture pixel. The formula is as follows:

[0114]

[0115]

[0116] In the above formula, pix edge ( x ), pix edge ( y ) represents the x-coordinate and y-coordinate of the aperture area; pix center ( x ), pix center ( x ) represents the x-coordinate and y-coordinate of the center of the aperture; k is 1, 2, 3, 4.

[0117] Step 3: Calculate the new pixel value of the aperture area according to the weights of 1:1:2:4 based on the four adjacent pixel points. Further, with the help of the right shift instruction, shift the pixel of the point right by 3 bits, that is, divide it by 8, as the final pixel value of the point.

[0118] In step one, it is necessary to traverse the aperture area in the image and count each pixel in the aperture area; in step two, it is necessary to traverse the image again and count the four adjacent pixels outside the extension. In step three, it is necessary to traverse the image area again and replace the pixel at the current position with the four adjacent pixel values. For the above steps, a lot of time is consumed in image processing. Based on this problem, the present application proposes an algorithm based on a lookup table to reduce the influence of the aperture area.

[0119] According to the above steps, a lookup table is made, and the above steps 1 and 2 are replaced by the lookup table. The final new image is obtained by traversing the lookup table.

[0120] The comparison diagram of the results of de-diaphragming provided in the embodiment of the present application is as follows Figure 6 shown.

[0121] Table 1 Comparison of the time consumption of the de-aperture algorithm based on the lookup table and the de-aperture algorithm based on the traversal search

[0122]

[0123] 3. Airborne real-time infrared spectrum target acquisition algorithm

[0124] The airport ground background is relatively complex, and the airport targets are three-dimensional, small or clustered, making it difficult to directly distinguish the targets from the complex background. For the capture and tracking of ground targets, this application captures airport targets, and the method takes 5ms. Figure 7 is a schematic diagram of the process of extracting template feature points provided in an embodiment of the present application, Figure 8 is a schematic diagram of the process of real-time image preprocessing provided by the embodiment of the present application, such as Figure 7 and Figure 8 As shown, the specific steps are as follows:

[0125] 1. Extraction of template feature points

[0126] (1) According to different target captures, the corresponding landmark template information is selected, and the real-time servo data and inertial navigation data transmitted by the EMIF interface are combined to perform perspective transformation to obtain the scattered point information of the landmark template.

[0127] (2) The scattered point information is completed and thickened through linear interpolation to obtain complete target contour information.

[0128] 2. Real-time image preprocessing

[0129] (1) The real-time infrared image data transmitted by the Rapid IO interface is moved to the L2 memory resource through EDMA, and the image gradient amplitude is calculated.

[0130] (2) Use OTSU to calculate the segmentation threshold of the current image, perform binary segmentation on the image, and obtain a binary image of the current image. The local edge areas with low contrast will be eliminated due to the low gradient amplitude.

[0131] (3) The binary image is filtered using a median filter algorithm to eliminate some background information of noise gradients and obtain the final binary image after real-time image preprocessing, thereby reducing the false detection rate of matching.

[0132] (4) Perform perspective transformation on the GPS information at both ends of the airport landing line to obtain the pixel positions of the two endpoints of the landing line in the image at the current position of the device, and search and match the rectangular area formed by the vertices obtained by the upper and lower offsets of the two pixel coordinates to determine the final matching result. Fig. 9 is a schematic diagram of a target search area provided in an embodiment of the present application, such as Fig. 9As shown, MHX1 and MHX2 are two end points of the civil aviation parking line. MHX1 can be offset upward by 20 pixels, and MHX2 can be offset downward by 20 pixels, so as to serve as two vertices of the target search area, that is, the rectangular area.

[0133] The matching based on regional correlation uses the information obtained after the image grayscale is binarized to measure the similarity. The template is slid on the target search area with a fixed step size using the sliding window method, and the similarity between each window position and the template is calculated according to the correlation measurement criterion. The window size can be the size of the target's bounding box.

[0134] First, according to the target template information, combined with the real-time inertial navigation data and servo data of the current device, perspective transformation is performed to obtain the attitude of the airport target in real time and obtain a binary template image. The product sum of the pixel values ​​of the template image and the binary image of the real-time image after preprocessing is calculated. The larger the product sum, the higher the degree of matching between the template image and the image to be matched at that position. The position with the largest product sum is the best matching position.

[0135] Rx=∑(T(x',y')*I((x',y')))

[0136] Wherein, T represents the binary image of the template, and I represents the real-time binary image to be searched.

[0137] Table 2 Matching algorithm key variable memory details

[0138]

[0139]

[0140] Table 3 Other important variable storage locations

[0141]

[0142] 4. Airborne real-time infrared spectrum target tracking algorithm

[0143] Under airborne conditions, the target has size changes. To avoid the target being obscured by the aperture area during spectrum measurement, which causes tracking drift, the background area around the target can be added to the tracking template to reduce the proportion of the aperture area contamination to the tracking template, thereby avoiding tracking drift. In the tracking stage, the target's tracking frame is extended to a size of 100*100, so that the aperture area is only blocked by 3 / 16. The final time taken by this method is 11ms. Fig.10 is a flow chart of the target tracking algorithm provided in the embodiment of the present application, such as Fig.10 As shown, the airborne platform will fluctuate up and down, and the target will have changes in scale and position. The DSP needs to train scale filters and position filters. Fig.11 is a target capture and tracking result diagram provided by an embodiment of the present application, such as Fig.11 As shown, the aperture is holding the target to indicate tracking the target.

[0144] Implementation and optimization of DSP platform:

[0145] Optimization 1: Use FFT2D instead of DFT2D. FFT2D is a two-dimensional fast Fourier transform, which is more efficient than DFT2D. However, if the FFT2D operation is purely hand-coded, it is not only complicated, but also time-consuming and cannot achieve real-time processing effects. FFT2D and IFFT2D operations are called multiple times in this application, which is the bottleneck of real-time performance. If hand-coded programs are used, it is impossible to meet real-time requirements. First, optimize FFT2D. The DSP platform has very good built-in support for mathematical transformations such as FFT, but there is only a one-dimensional FFT function API for use. According to the nature of FFT2D, a one-dimensional FFT can be used to calculate the two-dimensional FFT results. The specific algorithm steps are as follows:

[0146] (1) For the input image srcImg to be calculated, determine the corresponding basis radix and rotation factor twi according to the size of the input image. Use the DSPF_sp_fftSPXSP function to perform FFT transformation on each row of the input image, obtain the FFT result in the row direction, and write the calculation result in fftBuffer.

[0147] (2) Use the DSPF_sp_mat_trans_cplx function to transpose the result fftBuffer after row transformation, and write the transposed result into the original input image srcImg.

[0148] (3) Use the DSPF_sp_fftSPXSP function to perform FFT transformation on each row of the transposed matrix srcImg, obtain the FFT result in the column direction, and write the calculation result in fftBuffer.

[0149] (4) Use the DSPF_sp_mat_trans_cplx function to transpose the result fftBuffer after column transformation, and write the transposed result into the original input image srcImg.

[0150] After two transformations, we get the result of FFT2D. For each row or column FFT operation, you can call the DSPF_sp_fftSPxSP function in dsplib to calculate. This is a library function officially provided by TI. It optimizes the FFT operation at the hardware level and makes full use of the computing power of DSP, which can greatly speed up the calculation efficiency. Similarly, IFFT2D can also be calculated in the same way. In this calculation process, the order of row transformation and column transformation does not affect the final result. The FFT2D calculation flow chart on the DSP provided in the embodiment of the present application is as follows: Fig.12 shown.

[0151] Optimization 2: Use inline functions. Inline functions can be directly mapped to the assembly of C6000. The code execution efficiency is equivalent to that of assembly, which is much higher than that of ordinary pure hand-coded code. DSP provides a wealth of auxiliary library functions, such as mathlib, dsplib, and imglib, which provide a large number of commonly used inline function APIs for implementing fixed-point and floating-point operations. There are a large number of matrix dot multiplication, dot division operations, and calculation of vector modulus values, which are time-consuming operations in the program. Inline functions can be used for optimization in C6657. For example, the cossp function is used to calculate the cosine value of a floating-point number for calculating the Hamming window; sqrtsp, divsp, and expsp are used to calculate the Gaussian matrix; DSPF_sp_maxidx and DSPF_sp_maxval are used to quickly obtain the maximum value and subscript in the matrix, etc. For example, for the calculation of the Gaussian function, if a simple standard C function is used to perform an operation, the time is about 8000us. If the inline function is used reasonably, it can be reduced to 1800us, which greatly improves the efficiency.

[0152] Optimization three: data memory reuse and data storage optimization. When running the tracking algorithm on a PC platform, memory allocation and recovery are all handled by the operating system, but the memory in the DSP needs to be allocated by the developer, otherwise it is easy to have problems such as memory overflow. In the DSST tracking algorithm, the calculation, detection process, and training process of FFT2D all require the use of auxiliary matrices. If not optimized, the DSP's memory is far from enough, and the use of off-chip storage will reduce the computing efficiency. After compressing the auxiliary matrix, the on-chip resources of C6657 have met the memory occupancy of the program. In the implementation scheme of this application, the image to be tracked is stored in the MSM (Multicoreshared memory) of the DSP, and the auxiliary data required for the tracking algorithm is allocated in the self-shared memory of the CPU core.

[0153] Table 4. Memory details of key variables in the tracking algorithm

[0154]

[0155] Optimization 4: Compiler optimization. The C6000 compiler provides some compilation options that directly affect or control program optimization. CCS provides powerful compilation optimization instructions to complete the optimization function. By reasonably selecting compilation options, the running efficiency of the code can be improved.

[0156] The optimization levels from low to high are -O0, -O1, -O2, -O3. The optimization functions of each level are as follows:

[0157] (1) Register-level optimization -O0: Includes the following optimization functions: control flow simplification, register allocation for variables, loop rotation, removal of unused code, simplification of expressions and statements, and expansion of calls to inline functions.

[0158] (2) Local-level optimization -O1: includes all -O0 optimizations, and adds: using local copies or constants, removing unused variable assignments, and eliminating local common expressions.

[0159] (3) Function-level optimization -O2: includes all -O1 optimizations, and adds: software pipelining, loop optimization, elimination of global common subexpressions, elimination of global unused variable assignments, conversion of array references in loops into pointer increments, and loop unrolling.

[0160] (4) File-level optimization -O3: includes all -O2 optimizations and adds: removing uncalled functions from all files, simplifying functions with return values ​​that are never used, and performing inline optimization and SIMD (single instruction multiple data) optimization on small functions.

[0161] This application uses -O2 level to optimize the program. -O2 level optimization level is very high. Without using the volatile keyword, when the core reads the status register multiple times, if it finds that the content in the status register has not changed, the core will not read the value of the status register again, but directly use the previously read value as the result of this reading. If the status register is rewritten by other cores at this time, the current access core cannot read the changed value in the status register, which will cause inter-core communication to fail.

[0162] Optimization 5: Some other optimizations at the program level, such as using shift operations to replace integer multiplication and division operations; optimizing loops, and trying to use larger inner loops to improve code execution efficiency; using keywords and global variables reasonably to reduce redundant code and improve execution efficiency.

[0163] Based on any of the above embodiments, the present application provides an embedded airport target acquisition and tracking system for airborne real-time infrared spectrum measurement, wherein the system is applied to a DSP deployed on an airborne platform. Fig.13 is an architecture diagram of the airport target capture and tracking system provided by the embodiment of the present application, such as Fig.13 As shown, the system comprises:

[0164] The airport image acquisition module 1310 is used to acquire the airport grayscale image of the current frame obtained based on infrared detection, and grayscale stretch the airport grayscale image of the current frame in combination with the histogram of the airport grayscale image of the previous frame to obtain the airport grayscale image in a preset format;

[0165] A search area determination module 1320, configured to determine a corresponding target search area from the airport grayscale image in the preset format based on a preset airport target search range;

[0166] An airport target acquisition module 1330 is used to acquire the target position of the airport target from the target search area;

[0167] The airport target tracking module 1340 is used to track the airport target based on the target position of the airport target so as to continuously measure the spectrum of the airport target, and in the process of airport target tracking, the position of the aperture area obtained in advance is combined, and the pixel value of the aperture area in the tracked airport target image is replaced according to the pixel information around the aperture area, so as to remove the aperture area in the tracking image in real time and avoid tracking drift.

[0168] It is understandable that the detailed functional implementation of each of the above modules can be found in the introduction of the aforementioned method embodiment, and will not be repeated here.

[0169] It should be understood that the above-mentioned device is used to execute the method in the above-mentioned embodiment. The implementation principle and technical effect of the corresponding program module in the device are similar to those described in the above-mentioned method. The working process of the device can refer to the corresponding process in the above-mentioned method, which will not be repeated here.

[0170] Based on the method in the above embodiment, an embodiment of the present application provides an electronic device. Fig.14 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Fig.14 As shown, the electronic device may include: a processor 1410, a communication interface 1420, a memory 1430 and a communication bus 1440, wherein the processor 1410, the communication interface 1420 and the memory 1430 communicate with each other through the communication bus 1440. The processor 1410 may call the logic instructions in the memory 1430 to execute the method in the above embodiment.

[0171] In addition, the logic instructions in the above-mentioned memory 1430 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.

[0172] Based on the method in the above embodiment, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the method in the above embodiment.

[0173] Based on the method in the above embodiment, an embodiment of the present application provides a computer program product. When the computer program product runs on a processor, the processor executes the method in the above embodiment.

[0174] It is understandable that the processor in the embodiment of the present application can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor can be a microprocessor or any conventional processor.

[0175] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.

[0176] It should be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application.

[0177] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. An embedded airport target capture and tracking method using airborne real-time infrared spectroscopy measurement, characterized in that: The method is applied to a DSP deployed on an airborne platform, and the method comprises the following steps: Step S101, obtaining a grayscale image of the airport in the current frame obtained based on infrared detection, and performing grayscale stretching on the grayscale image of the airport in the current frame in combination with a histogram of the grayscale image of the airport in the previous frame to obtain a grayscale image of the airport in a preset format; Step S102, determining a corresponding target search area from the airport grayscale image in the preset format based on a preset airport target search range; Step S103, capturing an airport target from the target search area to obtain a target position of the airport target; Step S104, tracking the airport target is performed based on the target position of the airport target to continuously measure the spectrum of the airport target, and in the process of airport target tracking, the position of the aperture area obtained in advance is combined, and the pixel value of the aperture area in the tracked airport target image is replaced according to the pixel information around the aperture area, and the aperture area in the tracking image is removed in real time to avoid tracking drift.

2. The method according to claim 1, characterized in that Step S101 specifically includes: Obtaining a minimum threshold and a maximum threshold corresponding to the grayscale image of the airport in the previous frame, performing grayscale stretching on the grayscale image of the airport in the current frame based on the minimum threshold and the maximum threshold, and obtaining a grayscale image of the airport in a preset format; Among them, the minimum threshold and the maximum threshold are respectively: the grayscale value in the histogram of the airport grayscale image of the previous frame is traversed from the low grayscale value to the high grayscale value to find the grayscale value where the number of pixels exceeds the preset grayscale threshold for the first time, and the grayscale value is traversed from the high grayscale value to the low grayscale value to find the grayscale value where the number of pixels exceeds the preset grayscale threshold for the first time.

3. The method according to claim 2, characterized in that The DSP includes a first core and a second core; while executing step S101 on the second core, the first core determines the minimum threshold and maximum threshold corresponding to the next frame of the airport grayscale image based on the histogram of the airport grayscale image of the previous frame, so that the second core can perform grayscale stretching for the next frame.

4. The method according to claim 1, characterized in that Step S104 specifically includes: In the airport target tracking process, the position of the aperture area obtained in advance and the positions of multiple neighboring pixels of each aperture pixel in the aperture area stored in advance are combined to first obtain the pixel values ​​of multiple neighboring pixels corresponding to the aperture pixel on the outermost layer of the aperture area, calculate the replacement pixel value corresponding to the aperture pixel on the outermost layer, and then replace the pixel value of the aperture pixel on the outermost layer of the airport target image, and so on, the pixel value replacement is performed layer by layer from the outermost layer to the innermost layer of the aperture area until the pixel value of each aperture pixel in the aperture area is replaced.

5. The method according to claim 4, characterized in that If any aperture pixel is on a horizontal line or a vertical line passing through the center of the aperture area, then the positions of the multiple neighboring pixels adjacent to the any aperture pixel are specifically obtained by sequentially searching for multiple neighboring pixels along the horizontal line or the vertical line outward for the any aperture pixel; otherwise, the positions of the multiple neighboring pixels adjacent to the any aperture pixel are specifically obtained by sequentially searching for multiple diagonally adjacent pixels outward for the any aperture pixel.

6. The method according to claim 1, characterized in that Step S102 specifically includes: The pre-acquired positioning information of both ends of the airport stop line is transformed into a perspective to obtain the pixel positions of both ends of the airport stop line in the airport image, and the target search area in the airport image is determined in combination with the preset airport target search range.

7. An embedded airport target acquisition and tracking system with airborne real-time infrared spectrum measurement, characterized in that: The system is applied to a DSP deployed on an airborne platform, and the system includes: The airport image acquisition module is used to acquire the airport grayscale image of the current frame obtained based on infrared detection, and to perform grayscale stretching on the airport grayscale image of the current frame in combination with the histogram of the airport grayscale image of the previous frame to obtain the airport grayscale image in a preset format; A search area determination module, used to determine a corresponding target search area from the airport grayscale image in the preset format based on a preset airport target search range; An airport target capture module is used to capture the airport target from the target search area and obtain the target position of the airport target; The airport target tracking module is used to track the airport target based on the target position of the airport target so as to continuously measure the spectrum of the airport target, and in the process of airport target tracking, the position of the aperture area obtained in advance is combined, and the pixel value of the aperture area in the tracked airport target image is replaced according to the pixel information around the aperture area, so as to remove the aperture area in the tracking image in real time and avoid tracking drift.

8. An electronic device, characterized in that: include: at least one memory for storing a computer program; At least one processor is used to execute the program stored in the memory. When the program stored in the memory is executed, the processor is used to execute the method according to any one of claims 1 to 6.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program runs on a processor, the processor is caused to execute the method according to any one of claims 1 to 6.

10. A computer program product, characterized in that When the computer program product runs on a processor, the processor is caused to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Target detection tracking method in shielding environment

    CN110009665A

  • Method for improving the single target tracking performance of IR-based image tracker

    KR101087592B1

  • Target tracking method and apparatus, electronic device, and storage medium

    WO2021139484A1

  • Target tracking method and apparatus, and computer-readable storage medium and robot

    WO2021227519A1