Digital domain infrared visual pattern generation method, apparatus and device, and memory
By establishing an image data set and fine-tuning the visual target detection model, Fourier transform and filtering technology are used to generate digital domain infrared visual patterns, which solves the problem of limited visual disturbance effects in the existing technology and improves the robustness and accuracy of visual recognition. sex.
Patent Information
- Application Number
- CN202410861300.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-28
AI Technical Summary
Existing technologies have limited effects and are not robust when generating digital domain perturbations used to interfere with artificial intelligence visual systems, especially under different viewing angles, distances, resolutions and weather conditions, and are difficult to accurately implement in physical space.
By establishing an image data set based on predetermined tasks, multiple pre-trained visual target detection models are selected for fine-tuning, and two-dimensional Fourier transform, filtering and edge labels are used to remove features to generate digital domain infrared visual patterns to improve the accuracy of visual recognition. robustness.
The detection rate and robustness in the AI vision model are improved, making the generated visual patterns easier to copy and implement in the physical domain, and enhancing the accuracy and stability of visual recognition.
Smart Images

Figure CN118799676A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a method, device, equipment and memory for generating infrared vision patterns in a digital domain. Background Art
[0002] In recent years, artificial intelligence (AI) has revolutionized computer vision, demonstrating capabilities far beyond those of humans, which has stimulated interest in exploring the vulnerabilities of AI vision systems. To achieve this goal, researchers have proposed various algorithms in the digital domain to expose AI vulnerabilities. Typically, subtle, high-dimensional, physically unexplainable perturbations are added to images to change the output of visual models, including the fast gradient sign method (FGSM), the Carlini-Wagner method, and the projected gradient descent (PGD). These algorithms also combine simple physical means to achieve real-world visual output errors, such as interfering with classification algorithms by printing some specific images or patches, misleading human facial recognition systems by using specific eyeglass frames, hats, or makeup, and evading object detectors by creating specific 3D objects, textures, or optical illusions.
[0003] However, the perturbations generated by these algorithms have limited effects in black box scenarios and rarely take into account the difficulty of manufacturing in the real world. Specifically: (1) These subtle perturbations may be captured by sensors at different perspectives, different distances, different resolutions, and different weather conditions, and these objective physical factors may affect the imaging quality and thus the effects that these perturbations should present. (2) In digital space, these subtle perturbations can be added to any part of the image, including the background. However, for targets in physical space, there is usually no fixed background, so the perturbations designed in the background are generally not robust. (3) When making theoretically feasible perturbations, each pixel should be able to be printed out using existing equipment. However, modern printing equipment is limited by the color gamut and changes in ambient light, and the theoretical colors may not be accurately restored, resulting in poor results. Summary of the invention
[0004] Based on this, it is necessary to provide a digital domain infrared vision pattern generation method, device, equipment and memory to address the above technical problems.
[0005] A digital domain infrared vision pattern generation method, the method comprising:
[0006] Create image datasets based on predefined tasks.
[0007] Select multiple pre-trained visual object detection models and fine-tune all of them using the image dataset.
[0008] The image samples are processed by two-dimensional Fourier transform, filtering, and two-dimensional Fourier inverse transform, and the edge labels are used to remove the features other than the object edge labels to obtain the preprocessing results.
[0009] Based on the preprocessing results, the segmentation and recognition output results obtained after processing with all fine-tuned visual target detection models, as well as the information entropy values of the image samples, a comprehensive evaluation is performed on the image samples to screen out candidate visual samples.
[0010] The candidate visual samples are binarized according to the preset optimal binary threshold to obtain the digital domain infrared visual pattern.
[0011] In one embodiment, establishing an image dataset based on a predetermined task includes:
[0012] A large number of target images are collected based on a variety of open source data sets using target keyword search methods; the targets include non-salient targets, infrared targets, and satellite targets.
[0013] The bounding boxes, categories, object instances, and edge labels of each image are finely annotated to obtain an image dataset.
[0014] In one embodiment, the pre-trained proxy vision model is a computer vision target detection model based on deep learning.
[0015] In one embodiment, after the image samples are processed by two-dimensional Fourier transform, filtering, and two-dimensional Fourier inverse transform, the edge labels are used to remove features other than the object edge labels to obtain preprocessing results, including:
[0016] The image samples are transformed into the frequency domain using two-dimensional Fourier transform to obtain the image features in the frequency domain.
[0017] The image features in the frequency domain are filtered using a circular Butterworth filter, and the filtered image spectrum features are subjected to a two-dimensional inverse Fourier transform to obtain the image features in the spatial domain.
[0018] The edge labels are used to remove the features other than the object edge labels from the image features in the spatial domain to obtain the preprocessing results.
[0019] In one embodiment, based on the segmentation and recognition output results obtained after processing with all fine-tuned visual target detection models according to the preprocessing results and the information entropy value of the image samples, the image samples are comprehensively evaluated to screen out candidate visual samples, including:
[0020] The preprocessing results are input into all fine-tuned visual object detection models to obtain the segmentation and recognition output results of the visual object detection models.
[0021] Based on the segmentation and recognition output results of all fine-tuned visual object detection models and the information entropy values of image samples, a comprehensive evaluation is performed on the image samples to screen out candidate visual samples.
[0022] In one embodiment, the candidate visual samples are binarized according to a preset optimal binary threshold to obtain a digital domain infrared visual pattern, and the step of determining the preset optimal binary threshold includes:
[0023] Perform histogram analysis on the image samples, explore the pixel grayscale value range of the image samples at intervals of a preset number, and determine the pre-selected binary threshold.
[0024] The optimal binary threshold is determined based on the pre-selected binary threshold, the segmentation and recognition output results obtained after processing all the visual target detection models after fine-tuning, and the information entropy value of the image sample.
[0025] In one embodiment, binarization is performed on the candidate visual samples according to a preset optimal binary threshold to obtain a digital domain infrared visual pattern, including:
[0026] The pixel values in the image samples that are greater than or equal to the preset optimal binary threshold are set to 255, and the pixel values in the image samples that are less than the preset optimal binary threshold are set to 0, so as to obtain a digital domain infrared vision pattern.
[0027] A digital domain infrared visual pattern generating device, the device comprising:
[0028] The image dataset building module is used to build an image dataset based on a predetermined task.
[0029] The visual target detection model fine-tuning module is used to select multiple pre-trained visual target detection models and fine-tune all pre-trained visual target detection models using image datasets.
[0030] The image sample preprocessing module is used to process the image samples using two-dimensional Fourier transform, filtering, and two-dimensional Fourier inverse transform, and use edge labels to remove features other than object edge labels to obtain preprocessing results.
[0031] The digital domain infrared vision pattern generation module is used to comprehensively evaluate the image samples and screen out candidate visual samples based on the segmentation, recognition output results and information entropy values of the image samples obtained after processing with all the fine-tuned visual target detection models according to the preprocessing results; the candidate visual samples are binarized according to the preset optimal binary threshold to obtain the digital domain infrared vision pattern.
[0032] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any of the above methods when executing the computer program.
[0033] A computer readable memory stores a computer program, which implements the steps of any of the above methods when executed by a processor.
[0034] The above-mentioned digital domain infrared visual pattern generation method, device, equipment and memory, the method includes: establishing an image data set based on a predetermined task; selecting multiple pre-trained visual target detection models, and using the image data set to fine-tune all pre-trained visual target detection models; performing two-dimensional Fourier transform, filtering, and two-dimensional Fourier inverse transform on the image sample, and using the edge label to remove the features other than the edge label of the object to obtain the pre-processing result, and using the pre-processing result to process the segmentation and recognition output results obtained by all the fine-tuned visual target detection models and the information entropy value of the image sample, and comprehensively evaluating the image sample to screen out candidate visual samples; binarizing the candidate visual samples according to the preset binary threshold, screening out better visual patterns, and obtaining digital domain infrared visual patterns. The digital domain visual samples generated by this method using the key features of the object have a high detection rate in the AI visual model, which can improve the robustness of vision; because the relevant features are highly compressed, simplified and enhanced, the complexity of the object features is significantly reduced, making it easier to be copied and implemented in the physical domain. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 Schematic diagram of a flow chart of a method for generating a digital domain infrared vision pattern in one embodiment;
[0036] Figure 2 is a labeling condition of an image data set in another embodiment;
[0037] Figure 3 Schematic diagram of training of a pre-trained visual target detection model in another embodiment, wherein (a) is a bird, (b) is a person, (c) is a car, (d) is a person and a car, and (e) is an airplane;
[0038] Figure 4 A schematic diagram of a target key feature extraction process in another embodiment;
[0039] Figure 5 A schematic diagram of a target key feature enhancement process in another embodiment;
[0040] Figure 6 is a structural block diagram of a digital domain infrared visual pattern generating device in one embodiment;
[0041] Figure 7FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0042] 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.
[0043] In one embodiment, Figure 1 As shown, a method for generating a digital domain infrared vision pattern is provided, the method comprising the following steps:
[0044] Step 100: Create an image dataset based on a predetermined task.
[0045] Specifically, in order to establish a benchmark for visual evaluation, a small image dataset is built and used to fine-tune a pre-trained visual object detection model.
[0046] The image dataset should include various images of the target to be imitated, including optical and infrared images of different perspectives, different background environments, different resolutions, and different target sizes. The images in the image dataset should be annotated, including target bounding boxes, target categories, instance labels, and target edge labels.
[0047] Step 102: Select multiple pre-trained visual object detection models, and use the image dataset to fine-tune all the pre-trained visual object detection models.
[0048] Specifically, first, select a representative pre-trained visual target detection model, which can be but not limited to SINet-V2 and YOLOv7 models; second, load the default hyperparameters and pre-trained weights of the selected model; then, use the PyTorch framework to train and evaluate the selected pre-trained visual target detection model. Fine-tune all selected pre-trained visual target detection models.
[0049] The training process diagram of the pre-trained visual target detection model is as follows Figure 2 shown.
[0050] Step 104: After processing the image sample using two-dimensional Fourier transform, filtering, and two-dimensional Fourier inverse transform, the edge label is used to remove features other than the object edge label to obtain a preprocessing result.
[0051] Specifically, step 104 mainly realizes the extraction of key features of the target.
[0052] The learning and generalization process of neural networks enables artificial intelligence visual models to learn and understand highly compressed but most critical features on objects. These features always show high sensitivity in the model. For example, pixels extracted from class activation maps can obtain spatial positions and fine-grained details, and then generate accurate class-specific regions; in addition, image samples usually represent edges and details, which are generally high-frequency features of images and have more significant gradients. They are closely related to the generalization of neural networks and therefore play a vital role in the recognition and classification of visual target detection models; in addition, stick figures of target objects contain highly abstract visual clues, such as the edges, contours, and skeletons of target objects. These features can improve the accuracy and robustness of multiple visual tasks.
[0053] Using key features of the target object instead of pixel-level perturbations for feature design can improve the robustness of visual recognition and, due to the high simplification of features, make them easier to physically manufacture.
[0054] The filtering parameters are not fixed values and need to be screened and optimized based on the comprehensive evaluation results given by the pre-trained model established in advance.
[0055] Step 106: Based on the preprocessing results, the segmentation and recognition output results obtained after processing with all the fine-tuned visual target detection models, as well as the information entropy values of the image samples, the image samples are comprehensively evaluated to screen out candidate visual samples.
[0056] Specifically, for candidate visual samples, if the detection rate is higher and the information entropy is lower in the visual target detection model, their simulation efficiency will be higher.
[0057] The preprocessing results are calculated by processing all fine-tuned visual target detection models to obtain the average output confidence of the segmentation and recognition output results and the information entropy value of the image samples, and the samples with lower information entropy values and higher segmentation / recognition confidence are selected as candidate visual samples.
[0058] Step 108: Binarize the candidate visual samples according to a preset optimal binary threshold to obtain a digital domain infrared visual pattern.
[0059] Specifically, the candidate visual samples are binarized, and the binary threshold is adjusted according to the segmentation and recognition output results obtained by the visual target detection model and the information entropy value of the image sample to screen out better visual digital samples.
[0060] Specifically, step 108 is to enhance the key features of the target.
[0061] The image is histogram analyzed to determine the optimal binary threshold, the pixel value of the selected candidate visual sample is compared with the preset optimal binary threshold, the selected candidate visual sample is binarized to obtain the binarized image sample, i.e., the digital domain infrared visual pattern.
[0062] In the above-mentioned digital domain infrared visual pattern generation method, the method includes: establishing an image data set based on a predetermined task; selecting multiple pre-trained visual target detection models, and using the image data set to fine-tune all pre-trained visual target detection models; performing two-dimensional Fourier transform, filtering, and two-dimensional Fourier inverse transform on the image samples, and using edge labels to remove features other than the edge labels of the object to obtain preprocessing results, and using the preprocessing results to process all fine-tuned visual target detection models to obtain segmentation and recognition output results and information entropy values of the image samples to screen out candidate visual samples; binarizing the candidate visual samples according to a preset binary threshold, screening out better visual patterns, and obtaining digital domain infrared visual patterns. The digital domain visual samples generated by this method using the key features of the object have a high detection rate in the AI visual model, which can improve the robustness of visual recognition; because the relevant features are highly compressed, simplified and enhanced, the complexity of the object features is significantly reduced, making it easier to be replicated and implemented in the physical domain.
[0063] In one embodiment, step 100 includes: collecting images of targets using a target keyword search method based on multiple open source datasets; the targets include non-salient targets, infrared targets, and satellite targets; and finely annotating the bounding box, category, object instance, and edge label of each image to obtain an image dataset. The annotation of the image dataset is as follows: Figure 3 As shown, (a) is a bird, (b) is a person, (c) is a car, (d) is a person and a car, and (e) is an airplane.
[0064] In one embodiment, the pre-trained proxy vision model in step 102 is a deep learning-based computer vision target detection model SINet-V2 model or YOLOv7 model.
[0065] Specifically, the computer vision target detection model based on deep learning is a computer vision target detection model with target segmentation, target classification, and target tracking functional images; it can be but is not limited to a SINet-V2 model and a YOLOv7 model.
[0066] In one embodiment, step 104 includes: transforming the image samples into the frequency domain using a two-dimensional Fourier transform to obtain image features in the frequency domain; filtering the image features in the frequency domain using a circular Butterworth filter, and performing a two-dimensional inverse Fourier transform on the filtered image spectrum features to obtain image features in the spatial domain; and removing features other than object edge labels from the image features in the spatial domain using edge labels to obtain preprocessing results.
[0067] Specifically, first, the image is transformed into the frequency domain using a two-dimensional Fourier transform. Secondly, a circular Butterworth filter template is constructed based on the center frequency and cutoff frequency of the image, and it is multiplied with the spectrum of the image. Then, the filtered spectrum is inversely transformed into the spatial domain using a two-dimensional Fourier transform, and the features other than the edge labels of the object are removed using edge labels.
[0068] In one embodiment, step 106 includes: inputting the preprocessing results into all fine-tuned visual target detection models to obtain segmentation and recognition output results of the visual target detection models; performing a comprehensive evaluation of the image samples based on the segmentation and recognition output results output by all fine-tuned visual target detection models and the information entropy values of the image samples to screen out candidate visual samples.
[0069] Specifically, the segmentation and recognition output results of the visual target detection model include F1 value, IoU value, and mAP value.
[0070] The schematic diagram of the target key feature extraction process is as follows Figure 4 shown.
[0071] In one embodiment, the step of determining the preset optimal binary threshold in step 106 includes: performing a histogram analysis on the image samples, exploring within the pixel grayscale value range of the image samples at intervals of a preset number, and determining a preselected binary threshold; determining the optimal binary threshold based on the preselected binary threshold, the segmentation and recognition output results obtained after processing all the visual target detection models after fine-tuning, and the information entropy value of the image samples.
[0072] Specifically, first, a histogram analysis is performed on the image samples to determine the optimal binary threshold. For the image samples after frequency domain filtering, the pre-selected binary threshold is explored at intervals of a preset number (preferably, the preferred number can be 5, or other integers) within the range of its pixel grayscale value. The selection of the optimal binary threshold also depends on the output results of the segmentation and recognition of the visual target detection model (such as F1 value, IoU value and mAP value, etc.), as well as the information entropy value of the image sample.
[0073] In one embodiment, step 108 includes: setting the pixel values in the image sample that are greater than or equal to the preset optimal binary threshold to 255, and setting the pixel values in the image sample that are less than the preset optimal binary threshold to 0, to obtain a digital domain infrared vision pattern. Figure 5 shown.
[0074] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0075] In one embodiment, Figure 6 As shown, a digital domain infrared vision pattern generation device is provided, comprising: an image data set construction module, a visual target detection model fine-tuning module, an image sample preprocessing module and a digital domain infrared vision pattern generation module, wherein:
[0076] The image dataset building module is used to build an image dataset based on a predetermined task.
[0077] The visual target detection model fine-tuning module is used to select multiple pre-trained visual target detection models and fine-tune all pre-trained visual target detection models using image datasets.
[0078] The image sample preprocessing module is used to process the image samples using two-dimensional Fourier transform, filtering, and two-dimensional Fourier inverse transform, and use edge labels to remove features other than object edge labels to obtain preprocessing results.
[0079] The digital domain infrared vision pattern generation module is used to comprehensively evaluate the image samples and screen out candidate visual samples based on the segmentation, recognition output results and information entropy values of the image samples obtained after processing with all the fine-tuned visual target detection models according to the preprocessing results; the candidate visual samples are binarized according to the preset optimal binary threshold to obtain the digital domain infrared vision pattern.
[0080] In one of the embodiments, the image dataset construction module is also used to collect images of targets using a target keyword search method based on multiple open source datasets; the targets include non-salient targets, infrared targets, and satellite targets; the bounding box, category, object instance, and edge label of each image are finely annotated to obtain an image dataset.
[0081] In one embodiment, the pre-trained proxy visual model in the visual target detection model fine-tuning module is a computer vision target detection model based on deep learning.
[0082] In one of the embodiments, the image sample preprocessing module is further used to transform the image samples into the frequency domain using a two-dimensional Fourier transform to obtain image features in the frequency domain; filter the image features in the frequency domain using a circular Butterworth filter, and perform a two-dimensional inverse Fourier transform on the filtered image spectrum features to obtain image features in the spatial domain; and use edge labels to remove features other than object edge labels from the image features in the spatial domain to obtain preprocessing results.
[0083] In one of the embodiments, the digital domain infrared vision pattern generation module is also used to input the preprocessing results into all fine-tuned visual target detection models to obtain the segmentation and recognition output results of the visual target detection models; based on the segmentation and recognition output results output by all fine-tuned visual target detection models and the information entropy values of the image samples, the image samples are comprehensively evaluated to screen out candidate visual samples.
[0084] In one of the embodiments, the step of determining the optimal binary threshold preset in the digital domain infrared vision pattern generation module includes: performing a histogram analysis on the image samples, exploring within the pixel grayscale value range of the image samples at intervals of a preset number to determine a preselected binary threshold; determining the optimal binary threshold based on the preselected binary threshold, the segmentation and recognition output results obtained after processing all fine-tuned visual target detection models, and the information entropy value of the image samples.
[0085] In one of the embodiments, the digital domain infrared vision pattern generation module is also used to set the pixel values in the image sample that are greater than or equal to the preset optimal binary threshold to 255, and set the pixel values in the image sample that are less than the preset optimal binary threshold to 0, so as to obtain the digital domain infrared vision pattern.
[0086] For the specific definition of the digital domain infrared visual pattern generation device, please refer to the definition of the digital domain infrared visual pattern generation method above, which will not be repeated here. Each module in the above-mentioned digital domain infrared visual pattern generation device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0087] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a digital domain infrared visual pattern generation method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0088] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0089] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps in the above method embodiment when executing the computer program.
[0090] In one embodiment, a computer readable memory is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiment are implemented.
[0091] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable memory. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0092] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0093] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for generating infrared visual patterns in digital domain, characterized in that: The method comprises: Establish image datasets based on predetermined tasks; Selecting a plurality of pre-trained visual object detection models, and fine-tuning all of the pre-trained visual object detection models using the image dataset; After processing the image samples by two-dimensional Fourier transform, filtering, and two-dimensional Fourier inverse transform, the edge labels are used to remove features other than the object edge labels to obtain the preprocessing results; Comprehensively evaluate the image samples to screen out candidate visual samples based on the segmentation and recognition output results obtained after processing the preprocessing results using all the fine-tuned visual target detection models and the information entropy values of the image samples; The candidate visual samples are binarized according to a preset optimal binary threshold to obtain a digital domain infrared visual pattern.
2. The method according to claim 1, characterized in that Create image datasets based on predefined tasks, including: Using target keyword search methods based on multiple open source data sets, a large number of target images are collected; the targets include non-salient targets, infrared targets, and satellite targets; The bounding boxes, categories, object instances, and edge labels of each image are finely annotated to obtain an image dataset.
3. The method according to claim 1, characterized in that The pre-trained proxy vision model is a computer vision object detection model based on deep learning.
4. The method according to claim 1, characterized in that After processing the image samples using two-dimensional Fourier transform, filtering, and two-dimensional Fourier inverse transform, and using edge labels to remove features other than object edge labels, the preprocessing results are obtained, including: The image samples are transformed into the frequency domain using two-dimensional Fourier transform to obtain the image features in the frequency domain; The image features in the frequency domain are filtered using a circular Butterworth filter, and the filtered image spectrum features are subjected to a two-dimensional inverse Fourier transform to obtain the image features in the spatial domain; The edge labels are used to remove the features other than the object edge labels from the image features in the spatial domain to obtain the preprocessing results.
5. The method according to claim 1, characterized in that Based on the segmentation and recognition output results obtained after processing the preprocessing results using all the fine-tuned visual target detection models and the information entropy values of the image samples, a comprehensive evaluation is performed on the image samples to screen out candidate visual samples, including: Inputting the preprocessing result into the fine-tuned visual target detection model to obtain segmentation and recognition output results of the visual target detection model; Based on the segmentation and recognition output results of all fine-tuned visual object detection models and the information entropy values of image samples, a comprehensive evaluation is performed on the image samples to screen out candidate visual samples.
6. The method according to claim 1, characterized in that The candidate visual sample is binarized according to a preset optimal binary threshold to obtain a digital domain infrared visual pattern. The step of determining the preset optimal binary threshold includes: Performing histogram analysis on the image samples, exploring the pixel grayscale value range of the image samples at intervals of a preset number to determine a pre-selected binary threshold; The optimal binary threshold is determined based on the pre-selected binary threshold, the segmentation and recognition output results obtained after processing all the visual target detection models after fine-tuning, and the information entropy value of the image sample.
7. The method according to claim 1, characterized in that Binarization processing is performed on the candidate visual sample according to a preset optimal binary threshold to obtain a digital domain infrared visual pattern, including: The pixel values in the image samples that are greater than or equal to the preset optimal binary threshold are set to 255, and the pixel values in the image samples that are less than the preset optimal binary threshold are set to 0, so as to obtain a digital domain infrared vision pattern.
8. A digital domain infrared visual pattern generating device, characterized in that: The device comprises: An image dataset building module, used to build an image dataset based on a predetermined task; A visual target detection model fine-tuning module, for selecting a plurality of pre-trained visual target detection models, and fine-tuning all the pre-trained visual target detection models using the image dataset; The image sample preprocessing module is used to process the image samples by two-dimensional Fourier transform, filtering, and two-dimensional Fourier inverse transform, and use edge labels to remove features other than object edge labels to obtain preprocessing results; The digital domain infrared visual pattern generation module is used to comprehensively evaluate the image samples and screen out candidate visual samples based on the segmentation, recognition output results and information entropy values of the image samples obtained after processing the preprocessing results using all the visual target detection models after fine-tuning; and to binarize the candidate visual samples according to a preset optimal binary threshold to obtain a digital domain infrared visual pattern.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer readable memory having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Method and device for extracting potential area of mechanical equipment fault in infrared image
CN108665443A
Powder bed defect detection method based on image processing
CN112819812A
