Infrared target saliency detection method, device, electronic device and medium

Through the multi-scale feature extraction of gray level co-occurrence matrix algorithm and sliding window, combined with adaptive threshold segmentation, the problem of difficulty in distinguishing targets and backgrounds and low detection efficiency in sea surface backlight scenes is solved, and high-accuracy and high-efficiency infrared targets are achieved. Significance testing.

CN113610839BActive Publication Date: 2024-10-01北京中星天视科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110989930.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-26
Publication Date
2024-10-01
Estimated Expiration
2041-08-26

AI Technical Summary

Technical Problem

In sea surface backlight scenes, deep learning methods are difficult to correctly distinguish between targets and backgrounds in images, resulting in high missed detection and false detection rates. However, traditional detection algorithms based on Gaussian pyramid have low detection efficiency and slow response speed in complex scenes.

Method used

The gray level co-occurrence matrix algorithm and sliding window are used to extract multi-scale features, generate a normalized multi-scale image, and determine the target frame through adaptive threshold segmentation to improve the image texture discrimination ability and detection speed.

Benefits of technology

It reduces the missed detection rate and false detection rate of targets, and improves the accuracy and efficiency of infrared target saliency detection in sea surface backlight scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113610839B_ABST
    Figure CN113610839B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose a method, device, electronic device and medium for detecting saliency of infrared targets. A specific implementation of the method includes: acquiring an infrared image; performing grayscale conversion on the infrared image to obtain a grayscale image; generating image texture features based on the grayscale image and the grayscale co-occurrence matrix algorithm; determining whether the image texture features meet preset conditions; in response to the second-order moment value and entropy value included in the image texture features meeting the preset conditions, generating a grayscale pyramid image based on the grayscale image; performing multi-scale feature extraction processing on the grayscale pyramid image using the grayscale co-occurrence matrix algorithm and the sliding window to obtain a multi-scale feature image; generating a normalized multi-scale image based on the multi-scale feature image; performing adaptive threshold segmentation on the normalized multi-scale image to obtain a multi-scale binary response map; determining the target frame based on the multi-scale binary response map. This implementation can reduce the missed detection rate and false detection rate of the target.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a method, device, electronic device, and medium for detecting infrared target significance. Background Art

[0002] Visual saliency detection is a technology that uses intelligent algorithms to simulate human visual characteristics and extract salient areas in images. For saliency detection of infrared targets in backlit scenes on the sea surface, deep learning methods or traditional detection algorithms based on Gaussian pyramids are usually used for detection.

[0003] However, when the above method is adopted, the following technical problems often occur:

[0004] First, deep learning methods are too dependent on scenes and big data, and have a weak ability to extract and distinguish image textures. As a result, in backlit scenes on the sea surface, it is difficult to correctly distinguish between targets and backgrounds in the image, resulting in high missed detection and false detection rates.

[0005] Second, the traditional detection algorithm based on Gaussian pyramid is suitable for simple scenes, but is less efficient in detecting salient targets in complex scenes, resulting in a slow response speed of the detection results. Summary of the invention

[0006] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0007] Some embodiments of the present disclosure propose infrared target saliency detection methods, devices, electronic devices and computer-readable media to solve one or more of the technical problems mentioned in the above background technology section.

[0008] In a first aspect, some embodiments of the present disclosure provide a method for detecting infrared target saliency, the method comprising: acquiring an infrared image of a backlit sea scene sent by a shooting terminal, wherein the infrared image comprises a target image; performing grayscale conversion on the infrared image to obtain a grayscale image; generating image texture features based on the grayscale image and a grayscale co-occurrence matrix algorithm, wherein the image texture features comprise second-order moment values ​​and entropy values; determining whether the image texture features meet preset conditions; in response to the second-order moment values ​​and entropy values ​​included in the image texture features meeting the preset conditions, generating a grayscale pyramid image based on the grayscale image; performing multi-scale feature extraction processing on the grayscale pyramid image using the grayscale co-occurrence matrix algorithm and a sliding window to obtain a multi-scale feature image; generating a normalized multi-scale image based on the multi-scale feature image; performing adaptive threshold segmentation on the normalized multi-scale image to obtain a multi-scale binary response map, wherein the multi-scale binary response map comprises at least one sub-response image, and the sub-response image in the at least one sub-response image is an image of black with a predetermined number of white dots; determining a target frame based on the multi-scale binary response map.

[0009] In a second aspect, some embodiments of the present disclosure provide an infrared target saliency detection device, the device comprising: an acquisition unit, configured to acquire an infrared image of a sea surface backlit scene sent by a shooting terminal, wherein the infrared image includes a target image; a grayscale conversion unit, configured to perform grayscale conversion on the infrared image to obtain a grayscale image; a first generation unit, configured to generate image texture features based on the grayscale image and a grayscale co-occurrence matrix algorithm, wherein the image texture features include second-order moment values ​​and entropy values; a first determination unit, configured to determine whether the image texture features meet a preset condition; and a second generation unit, configured to generate a grayscale image based on the second-order moment value and entropy value included in the image texture features meeting the preset condition. A grayscale image is generated to generate a grayscale pyramid image; a multi-scale feature extraction processing unit is configured to use the grayscale co-occurrence matrix algorithm and the sliding window to perform multi-scale feature extraction processing on the grayscale pyramid image to obtain a multi-scale feature image; a third generating unit is configured to generate a normalized multi-scale image based on the multi-scale feature image; an adaptive threshold segmentation unit is configured to perform adaptive threshold segmentation on the normalized multi-scale image to obtain a multi-scale binary response map, wherein the multi-scale binary response map includes at least one sub-response image, and the sub-response image in the at least one sub-response image is a black image with a predetermined number of white dots; a second determining unit is configured to determine a target frame based on the multi-scale binary response map.

[0010] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.

[0011] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.

[0012] The above-mentioned embodiments of the present disclosure have the following beneficial effects: the target image is detected by the infrared target saliency detection method of some embodiments of the present disclosure, and the missed detection rate and false detection rate of the target are reduced. Specifically, the reason for the high missed detection rate and false detection rate of the target is that the deep learning method is too dependent on the scene and big data, and the ability to extract and distinguish image texture is weak, so that in the sea surface backlight scene, it is difficult to correctly distinguish the target and background in the image. Based on this, the infrared target saliency detection method of some embodiments of the present disclosure, first, can obtain the infrared image of the sea surface backlight scene sent by the shooting terminal, wherein the above infrared image includes the target image. Thus, it can provide a data basis for subsequent infrared target saliency detection. Secondly, the above infrared image can be gray-scale converted to obtain a gray image. And based on the above gray image and gray co-occurrence matrix algorithm, the image texture feature is generated, wherein the above image texture feature includes a second-order moment value and an entropy value. Since the image texture distinction ability of the gray co-occurrence matrix is ​​strong and is not interfered by other factors, the accuracy of image texture distinction can be improved. Then, it can be determined whether the above-mentioned image texture features meet the preset conditions; in response to the second-order moment value and entropy value included in the above-mentioned image texture features meeting the above-mentioned preset conditions, a grayscale pyramid image is generated based on the above-mentioned grayscale image. The image corresponding to the image texture features whose second-order moment value and entropy value meet the above-mentioned preset conditions can be a complex image. For complex images, the pyramid image is used for analysis, so that the scale problem of image analysis can be solved. Then, the grayscale co-occurrence matrix algorithm and the sliding window can be used to perform multi-scale feature extraction processing on the above-mentioned grayscale pyramid image to obtain a multi-scale feature image. Therefore, by using the sliding window, the amount of calculation of the computer processing data at a single time is reduced, thereby improving the calculation speed of the computer. Afterwards, a normalized multi-scale image can be generated based on the above-mentioned multi-scale feature image. Therefore, by normalizing the multi-scale features, the influence of the illumination intensity can be avoided. Then, the above-mentioned normalized multi-scale image can be adaptively thresholded to obtain a multi-scale binary response map, wherein the above-mentioned multi-scale binary response map includes at least one sub-response image, and the sub-response image in the at least one sub-response image is an image with a predetermined number of white dots in black. Thus, the general outline of the target image can be determined. Based on the above multi-scale binary response map, the target frame is determined. Thus, the more accurate position information of the target image can be determined according to the above target frame. Since the gray level co-occurrence matrix has a strong ability to extract the texture features of the image, the texture features of the image can be extracted by the gray level co-occurrence matrix, so that the target and the background in the image can be correctly distinguished, thereby reducing the missed detection rate and the false detection rate of the target. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0014] Figure 1 is a schematic diagram of an application scenario of an infrared target saliency detection method according to some embodiments of the present disclosure;

[0015] Figure 2 is a flow chart of some embodiments of the infrared target saliency detection method according to the present disclosure;

[0016] Figure 3 is a schematic structural diagram of some embodiments of the infrared target saliency detection device according to the present disclosure;

[0017] Figure 4 It is a schematic diagram of the structure of an electronic device according to the infrared target saliency detection method disclosed in the present invention. DETAILED DESCRIPTION

[0018] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0019] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0020] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0021] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0022] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0023] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0024] Figure 1 100 is a schematic diagram of an application scenario of an infrared target saliency detection method according to some embodiments of the present disclosure.

[0025] exist Figure 1 In the application scenario, first, the computing device 101 can obtain an infrared image 102 of a backlit sea scene sent by a shooting terminal, wherein the infrared image 102 includes a target image. Afterwards, the computing device 101 can perform grayscale conversion on the infrared image 102 to obtain a grayscale image 103. Then, the computing device 101 can generate an image texture feature 105 based on the grayscale image 103 and the grayscale co-occurrence matrix algorithm 104, wherein the image texture feature includes a second-order moment value and an entropy value. Then, the computing device 101 can determine whether the image texture feature 105 meets a preset condition. Afterwards, the computing device 101 can generate a grayscale pyramid image 106 based on the grayscale image 103 in response to the second-order moment value and the entropy value included in the image texture feature 105 meeting the preset condition. Then, the computing device 101 can perform multi-scale feature extraction processing on the grayscale pyramid image 106 using the grayscale co-occurrence matrix algorithm 104 and the sliding window 107 to obtain a multi-scale feature image 108. Then, the computing device 101 can generate a normalized multiscale image 109 based on the multiscale feature image 108; perform adaptive threshold segmentation on the normalized multiscale image 109 to obtain a multiscale binary response map 110, wherein the multiscale binary response map 110 includes at least one sub-response image, and the sub-response image in the at least one sub-response image is a black image with a predetermined number of white dots. Finally, the computing device 101 can determine a target frame 111 based on the multiscale binary response map 110.

[0026] It should be noted that the computing device 101 can be hardware or software. When the computing device is hardware, it can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device. When the computing device is embodied as software, it can be installed in the hardware devices listed above. It can be implemented as multiple software or software modules for providing distributed services, or as a single software or software module. No specific limitation is made here.

[0027] It should be understood that Figure 1 The number of computing devices in the embodiment is only illustrative. Any number of computing devices may be provided according to implementation requirements.

[0028] Continue to refer Figure 2, shows a process 200 of some embodiments of the infrared target saliency detection method according to the present disclosure. The infrared target saliency detection method comprises the following steps:

[0029] Step 201, obtaining an infrared image of a backlit sea scene sent by a shooting terminal.

[0030] In some embodiments, the execution subject of the infrared target saliency detection method (such as Figure 1 The computing device 101 shown in the figure can obtain the infrared image of the sea surface backlight scene sent by the shooting terminal through a wired connection method or a wireless connection method. The above infrared image includes a target image. The above shooting terminal can be an unmanned aerial photography device. The above sea surface backlight scene can be a scene in which the target image is between the unmanned aerial photography device and the light source. The target image can be a ship image or an island image in the image captured by the unmanned aerial photography device, etc.

[0031] Step 202, performing grayscale conversion on the infrared image to obtain a grayscale image.

[0032] In some embodiments, the execution subject may convert the infrared image into a grayscale image using an averaging method, a maximum and minimum averaging method, or a weighted averaging method. The infrared image may be an RGB (Red Green Blue) image. An RGB image is an image including three color channels of red, green, and blue. The grayscale image is an image including one color channel. The execution subject may perform data processing on the channel values ​​of the three channels of red, green, and blue. The data processing may be a process of averaging the three channel values, averaging the maximum and minimum channel values, or averaging the values ​​by adding a weight coefficient.

[0033] Step 203: Generate image texture features based on the grayscale image and grayscale co-occurrence matrix algorithm.

[0034] In some embodiments, the execution subject may generate image texture features based on the grayscale image and grayscale co-occurrence matrix algorithm. The image texture features may include second-order moment values ​​and entropy values. The grayscale co-occurrence matrix algorithm is an algorithm that determines the probability that a pixel with a certain grayscale value in an image leaves a fixed position and moves to the position of other pixels in the image, and performs statistics on the obtained probability value in the form of a matrix. The second-order moment value may characterize the uniformity of the grayscale distribution of the image and the coarseness of the texture. When the second-order moment value is greater than the first predetermined threshold, it indicates that the texture is fine; when the second-order moment value is less than or equal to the first predetermined threshold, it indicates that the texture is coarse. The entropy value may characterize the complexity of the grayscale distribution of the image. When the entropy value is greater than the second predetermined threshold, it indicates that the grayscale distribution of the image is more complex; when the entropy value is less than or equal to the second predetermined threshold, it indicates that the grayscale distribution of the image is simpler.

[0035] As an example, the execution subject may perform statistics of the gray-level co-occurrence matrix on the gray-level image through a sliding window, calculate the gray-level co-occurrence matrix obtained by statistics, and determine the second-order moment value and entropy value of the infrared image.

[0036] Step 204: determine whether the image texture feature meets a preset condition.

[0037] In some embodiments, the execution subject may determine whether the image texture feature satisfies a preset condition. The preset condition may be that the second-order moment value is greater than a first predetermined threshold and the entropy value is greater than a second predetermined threshold. The first predetermined threshold and the second predetermined threshold may be reference data obtained by performing big data analysis on the sea surface backlight scene.

[0038] Step 205 : in response to the second-order moment value and entropy value included in the image texture feature satisfying a preset condition, a grayscale pyramid image is generated based on the grayscale image.

[0039] In some embodiments, the execution subject may generate a grayscale pyramid image based on the grayscale image in response to the second-order moment value and entropy value included in the image texture feature satisfying the preset condition. The grayscale pyramid image may be a set of images arranged in a pyramid shape with gradually decreasing resolutions and derived from the same original image.

[0040] As an example, when the second-order moment value is greater than a first predetermined threshold value and the entropy value is greater than a second predetermined threshold value, the execution subject may perform image upsampling or image downsampling on the grayscale image to obtain a grayscale pyramid image. The pyrUp and pyrDown functions in OpenCV may be called to implement image upsampling or downsampling. OpenCV is an open source, cross-platform computer vision and machine learning software library. pyrUp is an upsampling function. pyrDown is a downsampling function.

[0041] In some optional implementations of some embodiments, the step of generating a grayscale pyramid image based on the grayscale image may include the following steps:

[0042] The first step is to perform multi-scale pixel sampling on the grayscale image to obtain multiple sampled images. The multiple sampled images are images with different resolutions. The multi-scale pixel sampling can be performed by enlarging or reducing the image and performing image extraction.

[0043] In the second step, the above-mentioned multiple sampling images are arranged in a pyramid shape to obtain a grayscale pyramid image.

[0044] Optionally, before generating a grayscale pyramid image based on the grayscale image in response to the second-order moment value and the entropy value included in the image texture feature satisfying the preset condition, the method may further include the following steps:

[0045] In the first step, in response to the second-order moment value and entropy value included in the above-mentioned image texture features not satisfying the above-mentioned preset conditions, a saliency detection is performed on the above-mentioned grayscale image to obtain a detection image, wherein the above-mentioned detection image includes an image of a region of interest box.

[0046] As an example, when the second-order moment value is less than or equal to a first predetermined threshold, and the entropy value is less than or equal to a second predetermined threshold, the execution entity may perform saliency detection on the grayscale image to obtain a detection image.

[0047] The second step is to determine the area selected by the above region of interest frame as the target area, wherein the above target area includes the target image.

[0048] The third step is to perform adaptive threshold segmentation on the target area to obtain the contour coordinates of the target image.

[0049] In some embodiments, the execution entity may perform adaptive threshold segmentation on the target area, thereby extracting the contour coordinates of the target image.

[0050] The fourth step is to determine the above-mentioned contour coordinates as the position information of the above-mentioned target image.

[0051] Step 206 , using a gray level co-occurrence matrix algorithm and a sliding window, multi-scale feature extraction processing is performed on the gray level pyramid image to obtain a multi-scale feature image.

[0052] In some embodiments, the execution subject may use the gray level co-occurrence matrix algorithm and the sliding window to perform multi-scale feature extraction on the gray level pyramid image to obtain a multi-scale feature image. The sliding window may be a window that can be moved on the image and process the data in the window during the movement.

[0053] In some optional implementations of some embodiments, the gray-level co-occurrence matrix algorithm and the sliding window are used to perform multi-scale feature extraction on the gray-level pyramid image to obtain a multi-scale feature image, which may include the following steps:

[0054] The first step is to control the sliding window to move on the grayscale pyramid image with a fixed step size.

[0055] In the second step, for each position of the sliding window during the moving process, the multi-scale features corresponding to the position are determined according to the gray level co-occurrence matrix corresponding to the position.

[0056] As an example, when the sliding window moves to a fixed position, the sliding window can be used to determine the gray level co-occurrence matrix of the position. The execution subject determines the multi-scale features corresponding to the position through the gray level co-occurrence matrix of the position.

[0057] In the third step, the grayscale pyramid image including the determined multi-scale features is determined as a multi-scale feature image.

[0058] As an inventive point of an embodiment of the present disclosure, the above steps 205 and 206 solve the technical problem 2 mentioned in the background technology, "the traditional method is applicable to simple scenes, and the efficiency of detecting significant targets in complex scenes is low, thus resulting in a slow response speed of the detection result". The reasons for the slow response speed of the detection result are often as follows: the traditional detection algorithm based on the Gaussian pyramid is applicable to simple scenes, and the efficiency of detecting significant targets in complex scenes is low. If the above reasons are solved, the effect of improving the response speed of the detection result can be achieved. In order to achieve this effect, first, multi-scale pixel sampling can be performed on the grayscale image to obtain multiple sampled images. Thus, data support can be provided for generating a grayscale pyramid image. Then, the multiple sampled images can be arranged in a pyramid shape to obtain a grayscale pyramid image. Thus, a multi-scale image can be obtained, which is convenient for multi-scale analysis of the image. Afterwards, the sliding window can be controlled to move on the grayscale pyramid image with a fixed step size. Thus, data processing can be performed on the multi-scale image by moving the sliding window. For each position of the sliding window during the movement process, the multi-scale features corresponding to the position are determined according to the gray level co-occurrence matrix corresponding to the position. Thus, multiple multi-scale features corresponding to each scale image in the multi-scale image can be obtained. Finally, the gray pyramid image including the determined multi-scale features is determined as the multi-scale feature image. Thus, by using the sliding window to extract multi-scale image features from the multi-scale image, the amount of calculation of the computer processing data at a single time is reduced, so that the efficiency of detecting significant targets in complex scenes is improved, thereby improving the response speed of the detection results.

[0059] Step 207: Generate a normalized multi-scale image based on the multi-scale feature image.

[0060] In some embodiments, the execution entity may generate a normalized multi-scale image based on the multi-scale feature image.

[0061] In some optional implementations of some embodiments, based on the multi-scale feature image, a normalized multi-scale image may be generated by the following steps:

[0062] Each multiscale feature included in each sub-feature image included in the multiscale feature image is normalized based on adjacent multiscale features to obtain a normalized multiscale image. The multiscale feature image includes at least one sub-feature image.

[0063] As an example, when the sliding window moves on the grayscale pyramid image, since the grayscale pyramid image is a multi-scale image, that is, the grayscale pyramid image may include multiple layers of sub-images with different resolutions. When the sliding window moves at a fixed step size and direction in each layer of sub-images, the multi-scale features of the position are determined at each position of the moving process. Thus, each layer of sub-images includes a predetermined number of multi-scale features. Since the size of the sliding window used for each layer of sub-images with multiple layers of different resolutions is different. Therefore, each multi-scale feature of each layer is unified in numerical magnitude based on the multi-scale features of the adjacent layers, so that multiple multi-scale features of each layer are normalized to obtain a normalized multi-scale image.

[0064] Step 208: Perform adaptive threshold segmentation on the normalized multi-scale image to obtain a multi-scale binary response map.

[0065] In some embodiments, the execution subject may perform adaptive threshold segmentation on the normalized multi-scale image to obtain a multi-scale binary response map. The multi-scale binary response map includes at least one sub-response image. The sub-response image in the at least one sub-response image is a black image with a predetermined number of white dots. The position of the white dots corresponds to the position of the target image. The black part may represent the image background.

[0066] Step 209: determine the target frame based on the multi-scale binary response map.

[0067] In some embodiments, the execution subject may determine a target frame based on the multi-scale binary response map, wherein the target frame may be a response point corresponding to a target frame of the selected target image.

[0068] In some optional implementations of some embodiments, the above-mentioned determining the target frame based on the multi-scale binary response map may include the following steps:

[0069] The first step is to determine the multi-scale texture features of the sliding window at each position in the multi-scale binary response map to obtain a multi-scale texture feature set. The multi-scale texture features in the multi-scale texture feature set include at least one of the following: a second-order moment value and an entropy value. The sliding window can be a window that can be moved on the image and process the data in the window during the movement.

[0070] In the second step, the multi-scale texture feature with the largest value is selected from the above multi-scale texture feature set as the target multi-scale texture feature.

[0071] As an example, if the multi-scale texture features in the above multi-scale texture feature set are all second-order moment values ​​or entropy values, the multi-scale texture feature with the largest second-order moment value or entropy value can be used as the target multi-scale texture feature. If the multi-scale texture features in the above multi-scale texture feature set are second-order moment values ​​and entropy values, the multi-scale texture feature with the largest average value of the second-order moment value and the entropy value can be used as the target multi-scale texture feature.

[0072] In the third step, the border of the area where the sliding window corresponding to the target multi-scale texture feature is located is determined as the target frame.

[0073] Optionally, the multi-scale binary response map may be subjected to corner detection to obtain at least one response point. The corner detection may be Harris corner detection or SUSA corner detection. Harris corner detection determines whether there is a corner point based on whether the grayscale change in the area within the window exceeds a certain value. SUSA corner detection is an efficient edge and corner detection operator with a structure-preserving denoising function.

[0074] Then, non-maximum suppression is performed on the at least one response point to obtain at least one target response point, the at least one target response point of multiple scales is scaled uniformly, and a border of an area enclosed by the at least one target response point after the uniform scale is determined as a target frame.

[0075] Optionally, the execution subject may also determine the position information of the target image according to the target frame, and send the position information to the display device for display by the display device. The target frame corresponds to the target frame of the selected target image. Thus, the execution subject may also determine the position information of the target frame of the selected target image according to the target frame, and determine the position information of the target frame as the position information of the target image, thereby obtaining the position information of the target image.

[0076] The above-mentioned embodiments of the present disclosure have the following beneficial effects: the target image is detected by the infrared target saliency detection method of some embodiments of the present disclosure, and the missed detection rate and false detection rate of the target are reduced. Specifically, the reason for the high missed detection rate and false detection rate of the target is that the deep learning method is too dependent on the scene and big data, and the ability to extract and distinguish image texture is weak, so that in the sea surface backlight scene, it is difficult to correctly distinguish the target and background in the image. Based on this, the infrared target saliency detection method of some embodiments of the present disclosure, first, can obtain the infrared image of the sea surface backlight scene sent by the shooting terminal, wherein the above infrared image includes the target image. Thus, it can provide a data basis for subsequent infrared target saliency detection. Secondly, the above infrared image can be gray-scale converted to obtain a gray image. And based on the above gray image and gray co-occurrence matrix algorithm, the image texture feature is generated, wherein the above image texture feature includes a second-order moment value and an entropy value. Since the image texture distinction ability of the gray co-occurrence matrix is ​​strong and is not interfered by other factors, the accuracy of image texture distinction can be improved. Then, it can be determined whether the above-mentioned image texture features meet the preset conditions; in response to the second-order moment value and entropy value included in the above-mentioned image texture features meeting the above-mentioned preset conditions, a grayscale pyramid image is generated based on the above-mentioned grayscale image. The image corresponding to the image texture features whose second-order moment value and entropy value meet the above-mentioned preset conditions can be a complex image. For complex images, the pyramid image is used for analysis, so that the scale problem of image analysis can be solved. Then, the grayscale co-occurrence matrix algorithm and the sliding window can be used to perform multi-scale feature extraction processing on the above-mentioned grayscale pyramid image to obtain a multi-scale feature image. Therefore, by using the sliding window, the amount of calculation of the computer processing data at a single time is reduced, thereby improving the calculation speed of the computer. Afterwards, a normalized multi-scale image can be generated based on the above-mentioned multi-scale feature image. Therefore, by normalizing the multi-scale features, the influence of the illumination intensity can be avoided. Then, the above-mentioned normalized multi-scale image can be adaptively thresholded to obtain a multi-scale binary response map, wherein the above-mentioned multi-scale binary response map includes at least one sub-response image, and the sub-response image in the at least one sub-response image is an image with a predetermined number of white dots in black. Thus, the general outline of the target image can be determined. Based on the above multi-scale binary response map, the target frame is determined. Thus, the more accurate position information of the target image can be determined according to the above target frame. Since the gray level co-occurrence matrix has a strong ability to extract the texture features of the image, the texture features of the image can be extracted by the gray level co-occurrence matrix, so that the target and the background in the image can be correctly distinguished, thereby reducing the missed detection rate and the false detection rate of the target.

[0077] Further references Figure 3As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of an infrared target saliency detection device. These device embodiments are similar to Figure 2 Corresponding to the above method embodiments, the device can be specifically applied to various electronic devices.

[0078] like Figure 3 As shown, the infrared target saliency detection device 300 of some embodiments includes: an acquisition unit 301, a grayscale conversion unit 302, a first generation unit 303, a first determination unit 304, a second generation unit 305, a multi-scale feature extraction processing unit 306, a third generation unit 307, an adaptive threshold segmentation unit 308 and a second determination unit 309. The acquisition unit 301 is configured to acquire an infrared image of a backlit sea scene sent by a shooting terminal, wherein the infrared image includes a target image; the grayscale conversion unit 302 is configured to perform grayscale conversion on the infrared image to obtain a grayscale image; the first generation unit 303 is configured to generate image texture features based on the grayscale image and the grayscale co-occurrence matrix algorithm, wherein the image texture features include second-order moment values ​​and entropy values; the first determination unit 304 is configured to determine whether the image texture features meet a preset condition; the second generation unit 305 is configured to generate a grayscale pyramid image based on the grayscale image in response to the second-order moment values ​​and entropy values ​​included in the image texture features meeting the preset condition; The multi-scale feature extraction processing unit 306 is configured to use the gray-level co-occurrence matrix algorithm and the sliding window to perform multi-scale feature extraction processing on the gray-level pyramid image to obtain a multi-scale feature image; the third generation unit 307 is configured to generate a normalized multi-scale image based on the multi-scale feature image; the adaptive threshold segmentation unit 308 is configured to perform adaptive threshold segmentation on the normalized multi-scale image to obtain a multi-scale binary response map, wherein the multi-scale binary response map includes at least one sub-response image, and the sub-response image in the at least one sub-response image is a black image with a predetermined number of white dots; the second determination unit 309 is configured to determine the target frame based on the multi-scale binary response map.

[0079] It is understood that the units described in the device 300 are similar to those described in the reference Figure 2 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 300 and the units contained therein, and will not be described in detail here.

[0080] Reference below Figure 4 , which shows an electronic device suitable for implementing some embodiments of the present disclosure (e.g., Figure 1 Schematic diagram of the structure of the computing device 101)400. Figure 4The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0081] like Figure 4 As shown, the electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0082] Typically, the following devices may be connected to the I / O interface 405: an input device 406 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 408 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 409. The communication device 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The electronic device 400 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 4 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0083] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.

[0084] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0085] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0086] The computer-readable medium may be included in the device; or it may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains an infrared image of the backlit sea scene sent by the shooting terminal, wherein the infrared image includes a target image; performs grayscale conversion on the infrared image to obtain a grayscale image; generates image texture features based on the grayscale image and grayscale co-occurrence matrix algorithm, wherein the image texture features include second-order moment values ​​and entropy values; determines whether the image texture features meet preset conditions; and in response to the second-order moment values ​​and entropy values ​​included in the image texture features meeting the preset conditions, generates an image texture feature. Based on the grayscale image, a grayscale pyramid image is generated; using the grayscale co-occurrence matrix algorithm and the sliding window, multi-scale feature extraction processing is performed on the grayscale pyramid image to obtain a multi-scale feature image; based on the multi-scale feature image, a normalized multi-scale image is generated; adaptive threshold segmentation is performed on the normalized multi-scale image to obtain a multi-scale binary response map, wherein the multi-scale binary response map includes at least one sub-response image, and the sub-response image in the at least one sub-response image is a black image with a predetermined number of white dots; based on the multi-scale binary response map, a target frame is determined.

[0087] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0088] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0089] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor, for example, may be described as: a processor including an acquisition unit, a grayscale conversion unit, a first generation unit, a first determination unit, a second generation unit, a multi-scale feature extraction processing unit, a third generation unit, an adaptive threshold segmentation unit, and a second determination unit. The names of these units do not, in some cases, constitute limitations on the units themselves, for example, the acquisition unit may also be described as a "unit for acquiring an infrared image of a backlit sea scene sent by a shooting terminal".

[0090] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0091] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.

Claims

1. A method for detecting infrared target saliency, comprising: Acquire an infrared image of a sea surface backlit scene sent by a shooting terminal, wherein the infrared image includes a target image; Performing grayscale conversion on the infrared image to obtain a grayscale image; Based on the grayscale image and the grayscale co-occurrence matrix algorithm, an image texture feature is generated, wherein the image texture feature includes a second-order moment value and an entropy value; Determining whether the image texture feature meets a preset condition; In response to the second-order moment value and the entropy value included in the image texture feature satisfying the preset condition, generating a grayscale pyramid image based on the grayscale image; Using the gray-level co-occurrence matrix algorithm and the sliding window, multi-scale feature extraction processing is performed on the gray-level pyramid image to obtain a multi-scale feature image; Based on the multi-scale feature image, generating a normalized multi-scale image; Performing adaptive threshold segmentation on the normalized multi-scale image to obtain a multi-scale binary response image, wherein the multi-scale binary response image includes at least one sub-response image, and a sub-response image in the at least one sub-response image is a black image with a predetermined number of white dots; Determining a target frame based on the multi-scale binary response map; Wherein, generating a grayscale pyramid image based on the grayscale image includes: Performing multi-scale pixel sampling on the grayscale image to obtain a plurality of sampled images, wherein the plurality of sampled images are images with different resolutions; Arranging the multiple sample images in a pyramid shape to obtain a grayscale pyramid image; The gray-level co-occurrence matrix algorithm and the sliding window are used to perform multi-scale feature extraction processing on the gray-level pyramid image to obtain a multi-scale feature image, including: Controlling the sliding window to move on the grayscale pyramid image with a fixed step size; For each position of the sliding window during the movement process, a multi-scale feature corresponding to the position is determined according to a gray-level co-occurrence matrix corresponding to the position, when the sliding window moves on the gray-scale pyramid image, since the gray-scale pyramid image is a multi-scale image, that is, the gray-scale pyramid image includes multiple layers of sub-images with different resolutions, when the sliding window moves in each layer of sub-images with a fixed step size and direction, at each position of the movement process, the multi-scale feature of the position is determined, each layer of sub-images includes a predetermined number of multi-scale features, and the size of the sliding window used by each layer of sub-images with different resolutions is different; determining a grayscale pyramid image including the determined multi-scale features as a multi-scale feature image; The multi-scale feature image includes at least one sub-feature image; and the generating a normalized multi-scale image based on the multi-scale feature image includes: Each multiscale feature included in each sub-feature image included in the multiscale feature image is normalized based on the multiscale features of the adjacent layer to obtain a normalized multiscale image.

2. The method according to claim 1, wherein: The method further comprises: Determining the position information of the target image according to the target frame; The position information is sent to a display device for display by the display device.

3. The method according to claim 2, wherein: The determining of the target frame based on the multi-scale binary response map includes: Determine the multi-scale texture features of the sliding window at each position in the multi-scale binary response map to obtain a multi-scale texture feature set, wherein the multi-scale texture features in the multi-scale texture feature set include at least one of the following: a second-order moment value and an entropy value; Selecting a multi-scale texture feature with the largest value from the multi-scale texture feature set as a target multi-scale texture feature; The border of the area where the sliding window corresponding to the target multi-scale texture feature is located is determined as the target frame.

4. The method according to claim 3, wherein: Before generating a grayscale pyramid image based on the grayscale image in response to the second-order moment value and the entropy value included in the image texture feature satisfying the preset condition, the method further includes: In response to the second-order moment value and the entropy value included in the image texture feature not satisfying the preset condition, performing saliency detection on the grayscale image to obtain a detection image, wherein the detection image includes an image of a region of interest box; Determine the area selected by the region of interest frame as a target area, wherein the target area includes a target image; Performing adaptive threshold segmentation on the target area to obtain contour coordinates of the target image; The contour coordinates are determined as position information of the target image.

5. An infrared target saliency detection device, comprising: an acquisition unit, configured to acquire an infrared image of the sea surface backlit scene sent by the shooting terminal, wherein the infrared image includes a target image; A grayscale conversion unit, configured to perform grayscale conversion on the infrared image to obtain a grayscale image; A first generating unit is configured to generate image texture features based on the grayscale image and a grayscale co-occurrence matrix algorithm, wherein the image texture features include a second-order moment value and an entropy value; A first determining unit is configured to determine whether the image texture feature meets a preset condition; A second generating unit is configured to generate a grayscale pyramid image based on the grayscale image in response to the second-order moment value and the entropy value included in the image texture feature satisfying the preset condition; A multi-scale feature extraction processing unit is configured to perform multi-scale feature extraction processing on the grayscale pyramid image using the gray-level co-occurrence matrix algorithm and a sliding window to obtain a multi-scale feature image; A third generating unit is configured to generate a normalized multi-scale image based on the multi-scale feature image; an adaptive threshold segmentation unit, configured to perform adaptive threshold segmentation on the normalized multi-scale image to obtain a multi-scale binary response map, wherein the multi-scale binary response map includes at least one sub-response image, and a sub-response image in the at least one sub-response image is a black image with a predetermined number of white dots; A second determining unit is configured to determine a target frame based on the multi-scale binary response map; Wherein, generating a grayscale pyramid image based on the grayscale image includes: Performing multi-scale pixel sampling on the grayscale image to obtain a plurality of sampled images, wherein the plurality of sampled images are images with different resolutions; Arranging the multiple sample images in a pyramid shape to obtain a grayscale pyramid image; Wherein, the multi-scale feature extraction processing unit is further configured to: Controlling the sliding window to move on the grayscale pyramid image with a fixed step size; For each position of the sliding window during the movement process, a multi-scale feature corresponding to the position is determined according to a gray-level co-occurrence matrix corresponding to the position, when the sliding window moves on the gray-scale pyramid image, since the gray-scale pyramid image is a multi-scale image, that is, the gray-scale pyramid image includes multiple layers of sub-images with different resolutions, when the sliding window moves in each layer of sub-images with a fixed step size and direction, at each position of the movement process, the multi-scale feature of the position is determined, each layer of sub-images includes a predetermined number of multi-scale features, and the size of the sliding window used by each layer of sub-images with different resolutions is different; determining a grayscale pyramid image including the determined multi-scale features as a multi-scale feature image; The multi-scale feature image includes at least one sub-feature image; and the third generating unit is further configured to: Each multiscale feature included in each sub-feature image included in the multiscale feature image is normalized based on the multiscale features of the adjacent layer to obtain a normalized multiscale image.

6. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.

7. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.