Antenna image segmentation method and device, storage medium and computer program product
Through multi-angle image feature fusion and decoding processing, the accuracy of antenna image segmentation is improved, the problem of poor segmentation accuracy caused by single-angle analysis is solved, the antenna inspection task is simplified, and safety hazards and work burdens are reduced.
Patent Information
- Application Number
- CN202410773379.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-01
AI Technical Summary
The existing technology only analyzes the characteristics of a single angle in antenna image segmentation, resulting in poor segmentation accuracy and unable to effectively solve the safety hazards and work burden in antenna signal coverage problems.
By acquiring multi-angle antenna images, the pre-trained target segmentation model is used to fuse the features of the image to be segmented and the auxiliary segmentation image, obtain multi-scale features, and perform decoding processing to achieve semantic segmentation of the antenna.
It improves the accuracy of antenna image segmentation and optimizes model performance, solves the problem of poor segmentation accuracy caused by single-angle analysis, simplifies antenna inspection tasks, and reduces safety hazards and work burdens.
Smart Images

Figure CN118736217A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image recognition technology, and in particular to a method, device, storage medium and computer program product for segmenting an antenna image. Background Art
[0002] The antenna device is the last layer of equipment in the wireless network system and is also a very important part. The antenna device completes the signal coverage of the area by sending and receiving electromagnetic waves, thereby performing real-time wireless communication. Since the antenna is exposed to the outside world for a long time, when it is affected by harsh and uncontrollable external forces, the antenna posture will shift, thereby affecting the signal coverage of the antenna. Therefore, most of the problems of poor signal can be solved by adjusting the antenna parameters in the background. Considering that the installation environment of the antenna equipment is relatively complex, such as high-altitude locations such as iron towers and street light poles, when there is a problem with the signal coverage of the antenna, the construction personnel need to climb to the height on site to check the antenna equipment, which will have a large workload and safety hazards. Therefore, a method that can simplify this task through artificial intelligence is needed.
[0003] At present, relevant technicians have proposed some related antenna detection technology solutions based on image processing technology, but most of these solutions use existing models to analyze antenna images at a single angle to identify antenna targets, resulting in fewer features and image semantic knowledge learned by the model, and the final antenna target segmentation accuracy is poor.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present application provide a method, device, storage medium and computer program product for segmenting an antenna image, so as to at least solve the technical problem that related image segmentation technologies only analyze antenna image features at a single angle to perform antenna target segmentation, resulting in poor segmentation accuracy.
[0006] According to one aspect of an embodiment of the present application, a method for segmenting an antenna image is provided, comprising: obtaining a first image to be segmented of a first antenna at a first angle and a first auxiliary segmented image of the first antenna at other angles, wherein the other angles are any angles except the first angle; using a pre-trained target segmentation model to fuse image features of the first image to be segmented and the first auxiliary segmented image to obtain a first fused feature map, and obtaining multi-scale features of the first fused feature map to obtain a first multi-scale feature map, and then decoding the first multi-scale feature map to obtain a first semantic segmentation map of the first image to be segmented; and segmenting the first antenna in the first image to be segmented based on the first semantic segmentation map of the first image to be segmented.
[0007] Optionally, the training process of the target segmentation model includes: using the improved DeepLabv3+ to construct an initial segmentation model, wherein the encoder of the improved DeepLabv3+ contains an enhancement path for fusing the image features of the image to be segmented and the auxiliary segmentation image; obtaining multiple groups of sample data, wherein each group of sample data includes: using an image acquisition device to acquire a second image to be segmented at a second angle of the second antenna and a second auxiliary segmentation image of the second antenna at other angles, as well as a second semantic segmentation map of the second image to be segmented; using a bilateral filtering algorithm to preprocess the multiple groups of sample data; and inputting the preprocessed multiple groups of sample data into the initial segmentation model in turn for iterative training to obtain a target segmentation model.
[0008] Optionally, the preprocessed multiple groups of sample data are sequentially input into the initial segmentation model for iterative training, including: randomly dividing the multiple groups of sample data into multiple sample sets of equal size; sequentially selecting the target sample set within the multiple sample sets, and performing the following steps: using the target sample set as a test set, and using other sample sets as training sets, wherein the other sample sets are all sample sets in the multiple sample sets except the target sample set; using the training set to iteratively train the initial segmentation model, adjusting the model parameters of the initial segmentation model, and performing performance evaluation on the initial segmentation model after adjusting the model parameters based on the test set; and taking the average of the performance evaluation results of the initial segmentation model based on multiple test sets as the performance evaluation result of the target segmentation model.
[0009] Optionally, the initial segmentation model includes an encoder and a decoder, wherein the initial segmentation model is iteratively trained using a training set, and the model parameters of the initial segmentation model are adjusted, including: for each group of sample data in the training set, the following steps are executed in a loop: using the encoder to perform feature extraction and feature fusion on the second image to be segmented and the second auxiliary segmentation image to obtain a second multi-scale feature map; using the decoder to decode the second multi-scale feature map to obtain a corresponding segmentation result; constructing a target loss function based on the second semantic segmentation map of the second image to be segmented in each group of sample data and the segmentation result of the second image to be segmented; and adjusting the model parameters of the initial segmentation model based on the target loss function.
[0010] Optionally, the encoder includes: a backbone network, an enhancement path and a dilated space pyramid pooling module, wherein the encoder is used to encode and fuse the second image to be segmented and the second auxiliary segmented image to obtain a multi-scale feature map, including: using the enhancement path to extract features from the second auxiliary segmented image to obtain multiple intermediate feature maps, and using the backbone network to extract features from the second image to be segmented to obtain multiple high-level feature maps, wherein the enhancement path is composed of multiple lightweight convolutional layers, the backbone network is a pre-trained deep convolutional neural network, and the convolutional layer of the backbone network adopts dilated convolution; multiple intermediate feature maps are superimposed on high-level feature maps of the same resolution in the feature channel dimension, and the convolutional layer and the normalization layer are coupled to fuse the features to obtain a second fused feature map; the dilated space pyramid pooling module is used to obtain the multi-scale features of the second fused feature map to obtain a second multi-scale feature map.
[0011] Optionally, the second multi-scale feature map is decoded by a decoder to obtain a corresponding segmentation result, including: using the decoder to gradually upsample the second multi-scale feature map, and using the decoder to convolve the low-level feature map obtained by extracting the second image to be segmented by the intermediate convolution layer of the backbone network; superimposing the obtained sampling result and the obtained convolution result in the feature channel dimension, and using the decoder to gradually upsample the obtained superposition result to obtain the segmentation result.
[0012] Optionally, the method also includes: obtaining dual-path model parameters obtained by training the initial segmentation model using the training set, fusing the dual-path model parameters, and using the fused model parameters as the model parameters of one of the paths; obtaining a new training set, and using the new training set to train the other path to adjust the model parameters of the other path until the model is fitted; wherein the model parameters include at least: convolution weight value, convolution bias value.
[0013] According to another aspect of an embodiment of the present application, a device for segmenting an antenna image is also provided, including: an acquisition module, used to acquire a first image to be segmented of a first antenna at a first angle and a first auxiliary segmented image of the first antenna at other angles, wherein the other angles are any angles except the first angle; a determination module, used to use a pre-trained target segmentation model to fuse the image features of the first image to be segmented and the first auxiliary segmented image to obtain a first fused feature map, and obtain multi-scale features of the first fused feature map to obtain a first multi-scale feature map, and then decode the first multi-scale feature map to obtain a first semantic segmentation map of the first image to be segmented; a segmentation module, used to segment the first antenna in the first image to be segmented based on the first semantic segmentation map of the first image to be segmented.
[0014] According to another aspect of an embodiment of the present application, a non-volatile storage medium is further provided, the non-volatile storage medium including a stored computer program, wherein the device where the non-volatile storage medium is located executes the above-mentioned antenna image segmentation method by running the computer program.
[0015] According to another aspect of an embodiment of the present application, a computer program product is further provided. The computer program product includes a stored computer program, wherein when the computer program is executed by a processor, the above-mentioned antenna image segmentation method is implemented.
[0016] In an embodiment of the present application, a pre-trained target segmentation model is used to extract features and fuse features of the first image to be segmented at the first angle of the first antenna and the first auxiliary segmented image of the first antenna at other angles to obtain a first fused feature map, and the multi-scale features of the first fused feature map are obtained to obtain a first multi-scale feature map, and then the first multi-scale feature map is decoded to obtain a first semantic segmentation map of the first image to be segmented, and finally the first antenna is quickly and accurately segmented from the first image to be segmented according to the first semantic segmentation map. Compared with antenna images at a single angle, antenna images at multiple angles can provide richer input features, thereby improving the optimization model performance and segmentation accuracy, thereby solving the technical problem that related image segmentation technologies only analyze antenna image features at a single angle to perform antenna target segmentation, resulting in poor segmentation accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0018] Figure 1 It is a hardware structure block diagram of a computer terminal for implementing an antenna image segmentation method according to an optional embodiment of the present application;
[0019] Figure 2 is a flow chart of an optional antenna image segmentation method according to an embodiment of the present application;
[0020] Figure 3 is a schematic diagram of a first to-be-segmented image and a first auxiliary segmented image of an optional antenna according to an embodiment of the present application;
[0021] Figure 4 This is a schematic diagram of the network structure of an optional DeepLabv3+ in the prior art;
[0022] Figure 5 is a schematic structural diagram of an optional encoder with an enhancement path according to an embodiment of the present application;
[0023] Figure 6 is a schematic diagram of the structure of an optional backbone network Xception according to an embodiment of the present application;
[0024] Figure 7 is a schematic diagram of the structure of an optional decoder according to an embodiment of the present application;
[0025] Figure 8 It is a schematic diagram of an optional process of fusing high-level feature graphs extracted by a backbone network and intermediate feature graphs extracted by an enhanced path according to an embodiment of the present application;
[0026] Fig. 9 is a schematic diagram of a dual-path structure of an optional decoder according to an embodiment of the present application;
[0027] Fig.10 is a schematic structural diagram of an optional antenna image segmentation device according to an embodiment of the present application;
[0028] Fig.11 is a schematic structural diagram of an optional electronic device according to an embodiment of the present application; DETAILED DESCRIPTION
[0029] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0031] In addition, the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. For example, an interface is set up between this system and the relevant user or organization. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.
[0032] In order to better understand the embodiments of the present application, the technical terms involved in the embodiments of the present application are explained as follows:
[0033] Depthwise Separable Convolution is an efficient convolution operation, which decomposes the standard convolution into the following two steps: deep convolution and pointwise convolution. In deep convolution, each input channel is convolved with its own independent filter to generate the same number of feature maps, each feature map corresponding to an input channel; while pointwise convolution uses a 1*1 convolution kernel to combine the output of deep convolution to generate the final feature map. This process can be regarded as a linear transformation of the feature map output by deep convolution.
[0034] Dilated Convolution can also be called Atrous Deconvolution. It is a new convolution idea proposed to solve the problem of reduced image resolution and information loss caused by downsampling in image semantic segmentation. Dilated Convolution introduces the parameter of dilation rate to make the convolution kernel of the same size obtain a larger receptive field. Correspondingly, under the premise of the same receptive field size, the parameters of dilated convolution are smaller than those of ordinary convolution.
[0035] Bilateral filtering is a nonlinear filtering method that calculates the weighted average of neighboring pixels. It is simple, non-iterative, and local. It is suitable for both grayscale and color images. Bilateral filtering smoothes low-frequency fluctuation signals while retaining large-value signal fluctuations, thereby retaining edge information in the image. The bilateral filtering algorithm can not only smooth and denoise the image, but also retain the edge information of the image. This is because: in the flat area and low-frequency area of the image, considering that the brightness values of the center point and the surrounding pixels are close, the value range weight in the window is close to 1, and the filtering result is mainly dominated by the spatial domain filter and weight, which is equivalent to directly performing Gaussian blur on this area. Therefore, the flat area is equivalent to performing Gaussian blur; in the edge area of the image, since the gap between the center point and some surrounding pixels is relatively large, the weight of the part with a large gap is small. Since the kernel function is obtained by multiplying the spatial domain weight and the value range weight, the kernel function here decreases, and the current pixel is less affected, thereby maintaining the edge detail information of the original image.
[0036] Example 1
[0037] According to an embodiment of the present application, a method embodiment of a method for segmenting an antenna image is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0038] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computer terminal (or mobile device) for implementing an antenna image segmentation method. Figure 1 As shown, the computer terminal 10 (or mobile device 10) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0039] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0040] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the antenna image segmentation method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the antenna image segmentation method of the above-mentioned application is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0041] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0042] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).
[0043] In the above operating environment, Figure 2 is a flow chart of an optional antenna image segmentation method according to an embodiment of the present application, such as Figure 2 As shown, the method at least includes steps S202-S206, wherein:
[0044] Step S202: obtaining a first to-be-segmented image at a first angle of the first antenna and a first auxiliary segmented image at other angles of the first antenna.
[0045] In the technical solution provided in step S202, the processing system may first obtain a first image to be segmented, wherein the first image to be segmented includes at least the first antenna at a first angle. Considering that an image at a single angle provides less image semantic information, the embodiment of the present application further obtains a first auxiliary segmented image, wherein the first auxiliary segmented image also includes at least the first antenna at other angles except the first angle.
[0046] Step S204, using the pre-trained target segmentation model to fuse the image features of the first image to be segmented and the first auxiliary segmented image to obtain a first fused feature map, and obtain multi-scale features of the first fused feature map to obtain a first multi-scale feature map, and then decode the first multi-scale feature map to obtain a first semantic segmentation map of the first image to be segmented.
[0047] In the technical solution provided in step S204, the target segmentation model of the embodiment of the present application is based on DeepLabv3+ as the basic architecture, and an additional path is added to the network structure, so that the network can extract and fuse features of the first image to be segmented and the first auxiliary segmented image to obtain a first fused feature map, wherein the first fused feature map contains more image semantic knowledge, which helps the backbone network to segment the target antenna in the image to be segmented; then capture the features of the first fused feature map at different scales to obtain a first multi-scale feature map, and finally perform feature fusion on the obtained first multi-scale feature map to obtain a first semantic segmentation map of the first image to be segmented, wherein the first semantic segmentation map is an image, and each pixel in the image is assigned a label, which is used to identify the category or object to which the pixel belongs.
[0048] It should be noted that the environment where the antenna target is located is relatively complex. For example, the antenna is generally installed on the indoor ceiling, in the corner, or installed on the outdoor roof, tower, billboard road, so the antenna image may be affected by some interference factors such as lighting, shadow and weather. For this reason, before using the target segmentation model to fuse the image features of the first image to be segmented and the first auxiliary segmented image, the first image to be segmented and the first auxiliary segmented image can be preprocessed, thereby improving the antenna target segmentation performance of the model without increasing too much computation.
[0049] Step S206: segmenting the first antenna in the first image to be segmented based on the first semantic segmentation map of the first image to be segmented.
[0050] In the technical solution provided in step S206, the processing system can directly, quickly and accurately segment the first image to be segmented through the obtained first semantic segmentation map to obtain the first antenna.
[0051] The above method of this embodiment is further introduced below.
[0052] As an optional implementation, in the technical solution provided in the above step S202, the method may include: using an imaging device to collect a first image to be segmented at a first angle of the first antenna and a first auxiliary segmented image at other angles of the first antenna. The types of imaging devices include but are not limited to: mobile phone cameras, scanners, industrial cameras, etc., and each of the images collected is a three-channel color image.
[0053] Figure 3 is a schematic diagram of a first image to be segmented (also called an input image) and a first auxiliary segmented image (also called a multi-angle image) of an optional antenna according to an embodiment of the present application, such as Figure 3 The angles of the antennas in the first image to be segmented and the first auxiliary segmented image are different.
[0054] As an optional implementation, in the technical solution provided in the above step S204, the training process of the above target segmentation model includes the following steps S1-S4, wherein:
[0055] Step S1, constructing an initial segmentation model using the improved DeepLabv3+, wherein the encoder of the improved DeepLabv3+ includes an enhancement path for fusing the image features of the image to be segmented and the auxiliary segmented image;
[0056] Step S2, obtaining multiple groups of sample data, wherein each group of sample data includes: using an image acquisition device to acquire a second image to be segmented at a second angle of the second antenna and a second auxiliary segmented image at other angles of the second antenna, and a second semantic segmentation map of the second image to be segmented;
[0057] Step S3, preprocessing multiple groups of sample data using a bilateral filtering algorithm;
[0058] Step S4, inputting the preprocessed multiple groups of sample data into the initial segmentation model in sequence for iterative training to obtain a target segmentation model.
[0059] Specifically, the network structure of DeepLabv3+ is as follows Figure 4 As shown, it is mainly an Encoder-Decoder structure, in which:
[0060] (1) The Encoder part mainly includes two parts: backbone (Deep Convolutional Neural Network) and ASPP (Atrous Spatial Pyramid Pooling), among which:
[0061] (1.1) The backbone consists of two network structures: one is the Resnet series with Layer 4 changed to dilated convolution, and the other is the improved Xception. The Feature Maps from the backbone are divided into two parts: one is the Feature Maps output by the last convolution layer, and the other is the Feature Maps of the intermediate low-level features; the Feature Maps output by the last convolution layer of the backbone are input to ASPP, while the Feature Maps of the intermediate low-level features are input to the Decoder.
[0062] (1.2) The ASPP module receives the Feature Maps output by the last convolution layer of the backbone, and uses four hole convolution blocks with different expansion rates (including convolution layer, batch normalization layer, activation layer) and a global average pooling block (including pooling layer, convolution layer, batch normalization layer, activation layer) to obtain a total of five sets of Feature Maps. After splicing them together, they pass through a 1*1 convolution block (including convolution, batch normalization layer, activation, Dropout layer) and finally input into the Decoder.
[0063] (2) The Decoder receives the Feature Maps of low-level features from the backbone intermediate convolutional layer and the output from the ASPP module. It first uses 1*1 convolution to reduce the channel dimension of the Feature Maps of low-level features from 256 to 48 (the reason for downsampling to 48 is that too many channels will mask the importance of the Feature Maps output by ASPP); then, it interpolates and upsamples the Feature Maps from the ASPP module to obtain Feature Maps of the same size as the Feature Maps of low-level features; then, it concatenates the Feature Maps of low-level features obtained by channel dimension reduction and the Feature Maps obtained by linear sampling and sends them to a set of 3*3 convolution blocks for processing; finally, it performs linear interpolation and upsampling again to obtain a predicted image with the same resolution as the original image.
[0064] Since DeepLabv3+ adopts deep learning methods and uses the Encoder-Decoder structure, as an end-to-end model, it can complete the segmentation task through a single neural network without setting intermediate steps and complicated processing stages, reducing the complexity of task engineering.
[0065] Therefore, in the above embodiment, the present application embodiment uses the pre-trained parameters of the DeepLabv3+ model to reduce the training cost. Figure 4 The DeepLabv3+ shown is modified to adapt to antenna segmentation tasks in different complex environments and improve the accuracy of antenna segmentation results. Among them, the improvements of DeepLabv3+ in the embodiment of the present application include the following points:
[0066] First: In the Encoder part, an enhancement path is added to fuse the image features of the segmented image and the auxiliary segmented image. Figure 5 Schematic diagram of the structure of the encoder with enhanced path shown.
[0067] Second: Change the convolution mode of Xception in the Encoder part from depthwise separable convolution to dilated convolution, and we get the following: Figure 6 The structural diagram of Xception of the backbone network is shown in Figure 1. The advantages of using dilated convolution in Xception are as follows:
[0068] (1) Atrous convolution can increase the receptive field of the model, allowing the model to capture a wider range of contextual information;
[0069] (2) Compared with traditional convolution, dilated convolution increases the receptive field while maintaining the same number of parameters, which means that the complexity of the model does not increase;
[0070] (3) Since the atrous convolution does not require additional parameters, it can reduce the amount of computation while maintaining the same receptive field compared to the traditional convolution that enlarges the convolution kernel size;
[0071] (4) The atrous convolution can adapt to different tasks and datasets by adjusting the atrous rate. Therefore, it is more flexible in adjusting the receptive field of the model.
[0072] Third: A dual-path structure is used in the decoder part to obtain the following Figure 7 Schematic diagram of the decoder structure shown, which facilitates the later optimization and retraining of the segmentation model.
[0073] Therefore, the embodiment of the present application can first construct an initial segmentation model based on the above-mentioned improved DeepLabv3+ model.
[0074] Furthermore, the processing system can use the imaging device to collect multiple second images to be segmented of the second antenna at a second angle and second auxiliary segmented images of the second antenna at other angles, as well as a second semantic segmentation map of the second image to be segmented, to obtain multiple sets of sample data.
[0075] Furthermore, the embodiment of the present application can use a bilateral filtering algorithm to pre-process multiple groups of sample data. Among them, the bilateral filtering algorithm combines the spatial proximity and pixel value similarity of the image, calculates the spatial information and range information of the image, and can achieve noise removal and smoothing of local edges on the basis of retaining regional information. Because the algorithm considers both spatial information and grayscale similarity, while being able to filter and denoise the image, it retains the obvious gradient features and high-frequency details of the image, does not affect the edge information of the image, and avoids affecting the segmentation performance after smoothing the image edge.
[0076] In order to retain the edges of the image during the smoothing process, two two-dimensional filters are used in the bilateral filtering algorithm, namely the spatial domain filter and the range filter. The spatial domain kernel and the range kernel are used to perform convolution operations on the image. Finally, the spatial domain weight and the range weight are multiplied at the output pixel.
[0077] Among them, the spatial domain filter adopts the common Gaussian filter. Therefore, the calculation formula of the convolution kernel weight of the spatial domain filter can be written as:
[0078]
[0079] Where p(k,j) represents the center pixel coordinate of the convolution kernel template, q(i,j) represents the other pixel coefficient coordinates of the convolution kernel template window, σ d Represents the standard deviation of the Gaussian kernel function in the spatial domain to control the weight of the pixel position. The spatial domain coefficient w can be calculated from the above formula d , where the spatial domain coefficient w d It is used to measure the distance between two points. The farther the distance, the lower the weight.
[0080] In addition, the range kernel weight is judged by the pixel value difference. Therefore, the convolution kernel weight calculation formula of the range filter can be written as:
[0081]
[0082] Where p(k,j) represents the coordinates of the center pixel of the convolution kernel template, q(i,j) represents the coordinates of other pixel coefficients of the convolution kernel template window, f(k,l) represents the pixel value corresponding to the center pixel of the template, and f(i,j) represents the pixel value corresponding to the corresponding pixel of the template. rRepresents the standard deviation of the Gaussian kernel function over the range. The range coefficient w can be calculated using the above calculation formula r The value of is between [0,1]. The closer the pixel values in the convolution kernel template window are, the smaller the gradient of the image area is, and the corresponding range coefficient w is r The closer to 1.
[0083] It should be noted that the bilateral filtering algorithm used in the present embodiment of the present invention for preprocessing the collected image involves some fixed hyperparameters, such as window size, standard deviation of the spatial domain kernel function σ d and the range kernel function standard deviation σ r , through theoretical analysis and experimental results, σ d The larger the value, the more obvious the denoising effect. r The larger the value, the blurrier the denoising result.
[0084] In the embodiment of the present application, the acquired image pair (composed of the image to be segmented and the auxiliary segmented image) can be preprocessed using a bilateral filtering algorithm according to the following process:
[0085] Step 1: Input a pair of three-channel color images containing antenna targets (consisting of the image to be segmented and the auxiliary segmentation image);
[0086] Step 2: Set the window size to 15, σ d Set to 5.0, σ r Set to 0.1;
[0087] Step 3: Normalize the pixel values within the three-channel color image pair;
[0088] Step 4: Calculate the spatial domain weight using the following formula:
[0089]
[0090] Step 5: Calculate the range weight using the following formula:
[0091]
[0092] Step 6: Based on the above spatial domain weight w d and range weight w r , the bilateral filter weight is calculated by the following formula:
[0093]
[0094] Step 7: Calculate the output pixel weight based on the bilateral filtering weight:
[0095]
[0096] Step 8: Repeat steps 3 to 7 above until the pixel weight of the last pixel in the three-channel color image pair is output.
[0097] Finally, the preprocessed groups of sample data are sequentially input into the initial segmentation model for iterative training to obtain the target segmentation model.
[0098] As an optional implementation, in the technical solution provided in the above step S4, the method may further include the following steps S41-S43:
[0099] Step S41, randomly dividing multiple groups of sample data into multiple sample sets of equal size;
[0100] Step S42, sequentially selecting a target sample set from the multiple sample sets, and executing the following steps: using the target sample set as a test set, and using other sample sets as training sets, wherein the other sample sets are all sample sets except the target sample set from the multiple sample sets; iteratively training the initial segmentation model using the training set, adjusting the model parameters of the initial segmentation model, and performing performance evaluation on the initial segmentation model after adjusting the model parameters based on the test set;
[0101] Step S43: taking the average of the performance evaluation results of the initial segmentation model evaluated based on multiple test sets as the performance evaluation result of the target segmentation model.
[0102] In the above embodiment, it can be understood that the processed multiple groups of sample data are divided. For example, the multiple groups of sample data are randomly divided into 5 sample sets of equal size, and a five-fold cross-validation data set is constructed, one of which is used as a test set in turn, and the remaining four are used as training sets, wherein the initial segmentation model is iteratively trained using the training set to adjust the model parameters of the initial segmentation model.
[0103] Optionally, the initial segmentation model can be iteratively trained using the training set according to the following process:
[0104] Step 1: For each set of sample data in the training set, the following steps are executed in a loop: the encoder is used to extract and fuse features of the second image to be segmented and the second auxiliary segmented image to obtain a second multi-scale feature map; the decoder is used to decode the second multi-scale feature map to obtain the corresponding segmentation result.
[0105] Specifically, the encoder includes: a backbone network (DCNN), an enhancement path, and an atrous spatial pyramid pooling module (ASPP). Figure 5 The encoder shown can obtain the second multi-scale feature map as follows:
[0106] First, the enhancement path is used to extract features from the second auxiliary segmented image to obtain a plurality of intermediate feature maps, and the backbone network is used to extract features from the second image to be segmented to obtain a plurality of high-level feature maps.
[0107] The backbone network is a pre-trained deep convolutional neural network, and the convolutional layer of the backbone network uses dilated convolution. Considering that a too large model may affect the operation speed and computing resources, the enhancement path only uses the simplest convolutional structure (i.e., composed of lightweight convolutional layers), which is much smaller than the backbone network, greatly reducing the size of the model and the model parameters.
[0108] Then, multiple intermediate feature maps are superimposed with high-level feature maps of the same resolution in the feature channel dimension, and the convolutional layer and normalization layer are coupled to fuse the features to obtain the second fused feature map.
[0109] Specifically, for the high-level feature graph extracted by the backbone network and the intermediate feature graph extracted by the enhanced path, the following can be used: Figure 8 Compared with the traditional feature fusion method (adding the final feature maps output by the two paths and then performing feature fusion through a convolutional layer, which often ignores some feature information and position information), this fusion method can simultaneously fuse deep features and low-level features, taking into account both the global and local features of the image.
[0110] Finally, the atrous spatial pyramid pooling module is used to obtain the multi-scale features of the second fused feature map to obtain the second multi-scale feature map.
[0111] It should be noted that the embodiments of the present application are as follows Figure 5 The encoder shown is only used as an example. In actual applications, it can be replaced by ResNet50, Res2Net architecture, etc.
[0112] also, Figure 7 The decoder shown can process the input second multi-scale feature as follows to obtain a segmentation result: first, the second multi-scale feature map is gradually upsampled by the decoder, and the low-level feature map obtained by extracting the second image to be segmented by the intermediate convolutional layer of the backbone network is convolved by the decoder, wherein the low-level feature map output by the intermediate convolutional layer of the backbone network is jump-connected and fused into the decoder; then, the obtained sampling result and the obtained convolution result are superimposed on the feature channel dimension, and the obtained superimposed result is gradually upsampled by the decoder to obtain a segmentation result.
[0113] Step 2: Construct a target loss function based on the second semantic segmentation map of the second image to be segmented in each group of sample data and the segmentation result of the second image to be segmented.
[0114] Specifically, considering the complexity of the image and the generalization ability of the model, the embodiment of the present application adopts a supervised adaptive method. That is, a fine-tuning strategy is used, based on feature adaptation and model parameter adaptation, and a contrast semantic alignment loss is introduced to make the antenna targets in different domain images similarly mapped in the feature space, and the antenna targets of the image can be aligned in the feature space samples. At the same time, the model parameters are fine-tuned so that the model can achieve Robust segmentation performance results on antenna images in multiple domains.
[0115] Therefore, during the training process, the embodiment of the present application can use the cross entropy loss function to construct the target loss function, and its expression can be written as:
[0116]
[0117] Where N is the number of sample data in each training set, y i Represents the label value of each pixel in the second semantic segmentation map, p i Represents the predicted label value of each pixel in the second image to be segmented. Use Xavier initialization to initialize the network parameters and train with the Adam optimizer.
[0118] Step 3: Adjust the model parameters of the initial segmentation model based on the target loss function.
[0119] The embodiment of the present application is based on the back propagation algorithm, and the error gradient is transmitted backward from the output layer to the input layer through the chain rule. According to the calculated gradient and the pre-set learning rate, the model parameters of the initial segmentation model are updated, wherein the direction of the update is the negative direction of the gradient, and the purpose is to reduce the value of the loss function. The above steps are repeated until the preset number of iterations is reached or the model converges.
[0120] The above training process can be executed for each training set. After each training, the test set can be used to evaluate the performance of the initial segmentation model after adjusting the model parameters. If the performance of the model does not meet the preset performance requirements, the next training set is used to train the model again.
[0121] Finally, the average of the performance evaluation results of the segmentation models evaluated on all test sets is taken as the performance evaluation result of the final target segmentation model.
[0122] In addition, considering that the model will encounter the problem of data update and iteration in actual application, the traditional method uses all sample data for retraining. Therefore, this method not only increases computing resources and training time, but also requires that old sample data cannot be lost. Therefore, subsequent model optimization and retraining are not easy to implement.
[0123] In order to solve the above problems, the embodiment of the present application adopts the following method in the decoder part: Fig. 9 The symmetric dual-path structure shown in the figure. When a new data set and training task need to be expanded, the model parameters of the two-path model can be fused to be equivalent to the model parameters of one model, and then the model parameters of one path are fixed, and the expanded new training set is used to train the other model until the other model is fitted. This not only allows the target segmentation model to not forget the features of the old data set, but also allows it to learn the image knowledge in the new data set.
[0124] Specifically, the algorithm flow of the above embodiment is as follows:
[0125] Step 1: Obtain the model parameters of the two-path structure trained on the old dataset, where the convolution weight values of the two paths are denoted as w1 and w2, and the convolution bias values are denoted as b1 and b2.
[0126] Step 2: Get a new training set and fuse the two-way structure into the model parameters of the left side, which are derived as follows:
[0127]
[0128] Therefore, the convolution weight value of the left path after fusion is The convolution bias value of the left path after fusion is
[0129]
[0130] Step 3: Use the new training set to train the other path, fix the model parameters of the fused left path, and iterate the model parameters of the right path through reverse gradient update until the model is fitted.
[0131] It should be noted that when a new training set is obtained, the first to third steps above can be repeated. In addition, for images with large segmentation errors, users can count all images with poor segmentation performance in the later stage, analyze the reasons and situations in a unified manner, count the common scenes of images with segmentation errors in the images, and supplement images of similar scenes as needed to improve the model, so as to achieve a closed-loop optimization feedback effect, enhance the robustness of the model, and cyclically optimize the antenna target segmentation model.
[0132] Through the above introduction to the embodiments of the present application, it is not difficult to see that the embodiments of the present application have the following advantages compared with the prior art:
[0133] (1) The embodiment of the present application uses a deep learning algorithm to complete the antenna image segmentation task, and the entire algorithm can implement the segmentation function end-to-end, so there is no need to specially design additional modules to extract features and intermediate steps, and it is easy to reproduce, use and deploy;
[0134] (2) The embodiment of the present application uses the DeepLabv3+ model as the basic framework and uses the pre-trained parameters of DeeoLabv3+ to reduce the training cost; at the same time, the DeepLabv3+ model is improved to adapt to the antenna segmentation task, thereby improving the performance of antenna segmentation;
[0135] (3) The embodiment of the present application uses multi-angle antenna images as model input and fuses the features of the multi-angle antenna images through the channel dimension, so that the neural network can obtain more image semantic knowledge, thereby facilitating the network to segment the target in the antenna image;
[0136] (4) The present application embodiment takes into account the complexity of the antenna environment and the different imaging devices and terminals for acquiring images, resulting in differences in the quality and color characteristics of the acquired antenna images. Therefore, in order to take into account various types of antenna images, we use domain adaptation technology so that the model can have good performance on images distributed in different domains;
[0137] (5) The embodiment of the present application adopts a two-way structure in the decoder (segmentation head), so that in practical applications, when the training set is expanded, clever mathematical operations are used to integrate the model parameter information of the two paths, so that the algorithm can adapt to new image tasks without losing or forgetting the previous image training results.
[0138] Example 2
[0139] Based on Embodiment 1 of the present application, an embodiment of an antenna image segmentation device is also provided, and when the device is running, the antenna image segmentation method of the above embodiment is executed. Fig.10 is a schematic structural diagram of an optional antenna image segmentation device according to an embodiment of the present application, such as Fig.10 As shown, the antenna image segmentation device at least includes an acquisition module 11, a determination module 12 and a segmentation module 13, wherein:
[0140] An acquisition module 11 is used to acquire a first to-be-segmented image of the first antenna at a first angle and a first auxiliary segmented image of the first antenna at other angles, wherein the other angles are any angles except the first angle;
[0141] A determination module 12 is used to fuse the image features of the first image to be segmented and the first auxiliary segmented image using a pre-trained target segmentation model to obtain a first fused feature map, obtain multi-scale features of the first fused feature map to obtain a first multi-scale feature map, and then decode the first multi-scale feature map to obtain a first semantic segmentation map of the first image to be segmented;
[0142] The segmentation module 13 is configured to segment the first antenna in the first image to be segmented based on the first semantic segmentation map of the first image to be segmented.
[0143] It should be noted that the various modules in the above-mentioned antenna image segmentation device can be program modules (for example, a set of program instructions that implement a certain specific function) or hardware modules. For the latter, it can be expressed in the following forms, but is not limited to this: the expression form of each of the above-mentioned modules is a processor, or the functions of each of the above-mentioned modules are implemented by a processor.
[0144] Example 3
[0145] According to an embodiment of the present application, a non-volatile storage medium is further provided, in which a program is stored, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the antenna image segmentation method in Example 1.
[0146] Optionally, the device where the non-volatile storage medium is located implements the following steps by running the program: obtaining a first image to be segmented of the first antenna at a first angle and a first auxiliary segmented image of the first antenna at other angles, wherein the other angles are any angles except the first angle; using a pre-trained target segmentation model to fuse the image features of the first image to be segmented and the first auxiliary segmented image to obtain a first fused feature map, and obtaining multi-scale features of the first fused feature map to obtain a first multi-scale feature map, and then decoding the first multi-scale feature map to obtain a first semantic segmentation map of the first image to be segmented; and segmenting the first antenna in the first image to be segmented based on the first semantic segmentation map of the first image to be segmented.
[0147] According to an embodiment of the present application, a computer program product is further provided. The computer program product includes a stored computer program, wherein when the computer program is executed by a processor, the antenna image segmentation method in Embodiment 1 is implemented.
[0148] Optionally, the computer program executes the following steps: obtaining a first image to be segmented of the first antenna at a first angle and a first auxiliary segmented image of the first antenna at other angles, wherein the other angles are any angles except the first angle; using a pre-trained target segmentation model to fuse the image features of the first image to be segmented and the first auxiliary segmented image to obtain a first fused feature map, and obtaining multi-scale features of the first fused feature map to obtain a first multi-scale feature map, and then decoding the first multi-scale feature map to obtain a first semantic segmentation map of the first image to be segmented; and segmenting the first antenna in the first image to be segmented based on the first semantic segmentation map of the first image to be segmented.
[0149] According to an embodiment of the present application, a processor is further provided, and the processor is used to run a program, wherein the antenna image segmentation method in Embodiment 1 is executed when the program is run.
[0150] Optionally, when the program is running, the following steps are executed: obtaining a first image to be segmented of the first antenna at a first angle and a first auxiliary segmented image of the first antenna at other angles, wherein the other angles are any angles except the first angle; using a pre-trained target segmentation model to fuse the image features of the first image to be segmented and the first auxiliary segmented image to obtain a first fused feature map, and obtaining multi-scale features of the first fused feature map to obtain a first multi-scale feature map, and then decoding the first multi-scale feature map to obtain a first semantic segmentation map of the first image to be segmented; and segmenting the first antenna in the first image to be segmented based on the first semantic segmentation map of the first image to be segmented.
[0151] According to an embodiment of the present application, an electronic device is also provided, wherein: Fig.11 is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application, such as Fig.11 As shown, the electronic device includes one or more processors; a memory for storing one or more programs, which, when the one or more programs are executed by the one or more processors, enables the one or more processors to run the programs, wherein the programs are configured to execute the antenna image segmentation method in the above-mentioned embodiment 1 when running.
[0152] Optionally, the processor is configured to execute the following steps through a computer program: obtaining a first image to be segmented of the first antenna at a first angle and a first auxiliary segmented image of the first antenna at other angles, wherein the other angles are any angles except the first angle; using a pre-trained target segmentation model to fuse the image features of the first image to be segmented and the first auxiliary segmented image to obtain a first fused feature map, and obtaining multi-scale features of the first fused feature map to obtain a first multi-scale feature map, and then decoding the first multi-scale feature map to obtain a first semantic segmentation map of the first image to be segmented; and segmenting the first antenna in the first image to be segmented based on the first semantic segmentation map of the first image to be segmented.
[0153] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0154] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0155] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0156] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0157] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0158] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the relevant technology or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.
[0159] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for segmenting an antenna image, characterized in that: include: Acquire a first to-be-segmented image of a first antenna at a first angle and a first auxiliary segmented image of the first antenna at other angles, wherein the other angles are any angles except the first angle; Using a pre-trained target segmentation model, the image features of the first image to be segmented and the first auxiliary segmented image are fused to obtain a first fused feature map, and multi-scale features of the first fused feature map are obtained to obtain a first multi-scale feature map, and the first multi-scale feature map is decoded to obtain a first semantic segmentation map of the first image to be segmented; A first antenna in the first image to be segmented is segmented based on a first semantic segmentation map of the first image to be segmented.
2. The method according to claim 1, characterized in that The training process of the target segmentation model includes: Using the improved DeepLabv3+ to construct an initial segmentation model, wherein the encoder of the improved DeepLabv3+ includes an enhancement path for fusing image features of the image to be segmented and the auxiliary segmented image; Acquire multiple groups of sample data, wherein each group of sample data includes: using an image acquisition device to acquire a second image to be segmented at a second angle of the second antenna and a second auxiliary segmented image of the second antenna at other angles, and a second semantic segmentation map of the second image to be segmented; Preprocessing the multiple groups of sample data using a bilateral filtering algorithm; The preprocessed groups of sample data are sequentially input into the initial segmentation model for iterative training to obtain the target segmentation model.
3. The method according to claim 2, characterized in that The preprocessed multiple groups of sample data are sequentially input into the initial segmentation model for iterative training, including: Randomly dividing the multiple groups of sample data into multiple sample sets of equal size; Selecting a target sample set from the multiple sample sets in sequence, and performing the following steps: using the target sample set as a test set, and using other sample sets as training sets, wherein the other sample sets are all sample sets from the multiple sample sets except the target sample set; iteratively training the initial segmentation model using the training set, adjusting the model parameters of the initial segmentation model, and performing performance evaluation on the initial segmentation model after adjusting the model parameters based on the test set; An average of the performance evaluation results of the initial segmentation model evaluated based on the multiple test sets is used as the performance evaluation result of the target segmentation model.
4. The method according to claim 3, characterized in that The initial segmentation model includes an encoder and a decoder, wherein the initial segmentation model is iteratively trained using the training set to adjust the model parameters of the initial segmentation model, including: For each set of sample data in the training set, the following steps are executed cyclically: using an encoder to extract features and fuse features on the second image to be segmented and the second auxiliary segmented image to obtain a second multi-scale feature map; using the decoder to decode the second multi-scale feature map to obtain a corresponding segmentation result; Constructing a target loss function based on the second semantic segmentation map of the second image to be segmented in each group of the sample data and the segmentation result of the second image to be segmented; Model parameters of the initial segmentation model are adjusted based on the objective loss function.
5. The method according to claim 4, characterized in that The encoder includes: a backbone network, an enhancement path and a dilated space pyramid pooling module, wherein the encoder is used to encode and fuse the second image to be segmented and the second auxiliary segmented image to obtain a multi-scale feature map, including: Using the enhancement path to extract features from the second auxiliary segmented image to obtain a plurality of intermediate feature maps, and using the backbone network to extract features from the second image to be segmented to obtain a plurality of high-level feature maps, wherein the enhancement path is composed of a plurality of lightweight convolutional layers, the backbone network is a pre-trained deep convolutional neural network, and the convolutional layer of the backbone network adopts dilated convolution; Superimposing the plurality of intermediate feature maps with high-level feature maps of the same resolution in the feature channel dimension, and coupling and fusing features using a convolutional layer and a normalization layer to obtain a second fused feature map; The multi-scale features of the second fused feature map are acquired by using the atrous spatial pyramid pooling module to obtain the second multi-scale feature map.
6. The method according to claim 4, characterized in that Using the decoder to decode the second multi-scale feature map to obtain a corresponding segmentation result, including: Using the decoder to gradually upsample the second multi-scale feature map, and using the decoder to perform convolution processing on the low-level feature map obtained by extracting the second image to be segmented by the intermediate convolution layer of the backbone network; The obtained sampling result and the obtained convolution result are superimposed on the feature channel dimension, and the obtained superposition result is gradually upsampled by using the decoder to obtain the segmentation result.
7. The method according to claim 3, characterized in that The method further comprises Acquire dual-path model parameters obtained by training the initial segmentation model using the training set, fuse the dual-path model parameters, and use the fused model parameters as the model parameters of one of the paths; Obtain a new training set, and use the new training set to train another path, so as to adjust the model parameters of the other path until the model is fitted; The model parameters include at least: a convolution weight value and a convolution bias value.
8. An antenna image segmentation device, characterized in that: include: an acquisition module, configured to acquire a first to-be-segmented image of a first antenna at a first angle and a first auxiliary segmented image of the first antenna at other angles, wherein the other angles are any angles except the first angle; a determination module, configured to fuse the image features of the first image to be segmented and the first auxiliary segmented image using a pre-trained target segmentation model to obtain a first fused feature map, obtain multi-scale features of the first fused feature map to obtain a first multi-scale feature map, and then decode the first multi-scale feature map to obtain a first semantic segmentation map of the first image to be segmented; A segmentation module is used to segment a first antenna in the first image to be segmented based on a first semantic segmentation map of the first image to be segmented.
9. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, wherein the device where the non-volatile storage medium is located executes the antenna image segmentation method according to any one of claims 1 to 7 by running the computer program.
10. A computer program product, characterized in that include: A computer program, wherein when the computer program is executed by a processor, the antenna image segmentation method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Honeycomb lung segmentation method based on class imbalance and multistage downsampling feature fusion
CN116883660A
Station track detection method based on improved segmentation network
CN117876673A
Cited By
Image segmentation method suitable for underground coal mine railway track image
CN119919435A
