Scene character image super-resolution method based on enhanced edge prior
By introducing the Canny operator and pixel attention module for multi-scale feature extraction and sequence reconstruction, the problem of insufficient text prior guidance in existing technologies is solved, achieving more efficient scene text image super-resolution and improving recognition accuracy and image quality.
Patent Information
- Application Number
- CN202411010612.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-15
AI Technical Summary
Existing scene text image super-resolution methods struggle to effectively utilize text priors to guide image reconstruction when processing low-resolution images, resulting in insufficient recognition accuracy and fidelity. In particular, text edge features are difficult to extract in complex backgrounds, and redundant information can cause serious misleading results.
We employ a scene text image super-resolution method based on enhanced edge priors. We extract edge feature maps using the Canny operator and combine dilated convolution and pixel attention modules for multi-scale feature extraction and sequence reconstruction. This enhances text prior guidance, reduces the impact of redundant information, and generates high-resolution images.
It significantly improves the accuracy of scene text recognition and image fidelity, enhancing text recognition precision and image reconstruction quality, especially performing exceptionally well in complex scenes.
Smart Images

Figure CN118967443A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of image processing, and in particular relates to a scene text image super-resolution method based on enhanced edge prior. Background Art
[0002] With the rapid growth of text-related application demands in daily life, scene text recognition (STR) has become a research focus in the field of computer vision due to its wide applications in areas such as document retrieval and intelligent surveillance. Although modern text recognition models have achieved impressive results on clear text images, low-resolution text images commonly seen in real scenes usually exhibit various degradation patterns due to reasons such as long-distance transmission, image compression, or the use of low-quality cameras, making it particularly difficult to obtain clear text images suitable for text recognizers. Therefore, scene text image super-resolution (STISR) has attracted widespread attention in the academic community as a technique to improve the accuracy and fidelity of low-resolution (LR) text images. The development of this technology is expected to greatly promote the performance of downstream recognition tasks.
[0003] Early scene text image super-resolution (STISR) methods mainly applied the traditional super-resolution (SR) framework directly to text images. Scene text image super-resolution (STISR) aims to use super-resolution technology to improve the clarity and resolution of images containing text and recognize semantically correct text. The scene text recognition task mainly involves recognizing text information from natural scenes, which is significantly more difficult than recognizing text from standard document images. Text recognition involves the conversion from image to sequence, in which CRNN first combined convolutional neural network (CNN) with recurrent neural network (RNN) to capture sequence features and model text semantics. The subsequent SAR model consists of a 31-layer ResNet and an LSTM-based encoder-decoder architecture, with a two-dimensional attention module added, which performs well on irregular text recognition benchmarks. In recent years, end-to-end scene text recognition has attracted widespread attention due to its synergy in scene text detection and recognition. Despite these advances, low-resolution blurry images remain a challenge for scene text recognition tasks, and it is still of great significance to explore methods to improve recognition accuracy.
[0004] The problem of the text edge and complex background in the image is difficult to solve completely. Similarly, most of the existing STISR networks that rely on text priors only extract features from LR text images at a single scale, which leads to the characteristics of the input image. Previous studies have used sequential residual blocks modified from them to achieve SR image reconstruction. Under the guidance of the text prior generated by the pre-trained recognizer, a large number of degradation factors inherent in the LR image will greatly affect the guidance of the text prior for image reconstruction. The above problems have severely limited the guiding role of the text prior in the image reconstruction process. Summary of the invention
[0005] To overcome the above challenges, based on the TATT model, this paper proposes a new enhanced text prior-guided STISR model network framework, called EEP, which aims to enhance image edge features, promote multi-scale feature extraction, cross-resolution information interaction and multi-scale feature fusion, thereby avoiding misleading redundant information.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions:
[0007] The scene text image super-resolution method based on enhanced edge prior includes the following steps:
[0008] Collect scene text images;
[0009] Construct a scene text image super-resolution framework EEP based on edge-enhanced pixel attention prior, where the super-resolution framework EEP includes: edge enhancement module, multi-scale feature extraction module, text prior module and image reconstruction module;
[0010] The collected scene text images are input into the EEP framework to generate high-resolution images.
[0011] Furthermore, the edge enhancement module uses the Canny detection operator to process the low-resolution image LR to obtain an edge feature map, and the edge feature map is spliced with the original input low-resolution image to form an edge enhancement feature map;
[0012] Among them, the edge enhanced feature map is used as the input of the pre-trained text recognizer, and the subsequent sequence output and the edge enhanced feature map input through the spatial transformer network STN are used as the input of the text prior module; the output text prior will be added to the image reconstruction module to guide the image reconstruction process.
[0013] Furthermore, the multi-scale feature extraction module consists of a dilated convolution branch, a 1×1 convolution branch and a pooling branch, wherein the dilated convolution branch includes three 3×3 dilated convolution modules and pixel attention, and the dilation rates of the three 3×3 dilated convolution modules are 1, 2, and 5, respectively; the input passes through the pixel attention module again after three dilated convolutions; the pooling branch undergoes 1×1 pooling, 1×1 convolution and upsampling; all branch results are concatenated and 1×1 convolved to obtain a multi-scale enhanced feature map as the output of the multi-scale feature extraction module.
[0014] Furthermore, the specific formula of the dilated convolution is:
[0015] Y[i,j]=∑ m,n X(i·s+m·d,j·s+n·d)·W[m,n] (1)
[0016] Where Y represents the input feature map, X represents the output feature map, W represents the convolution kernel, d represents the dilation rate, Y[i,j] represents the value at position (i,j) in the output feature map, X(i·s+m·d,j·s+n·d) represents the value at position (i·s+m·d,j·s+n·d) in the input feature map, and W m,n represents the weight at position (m,n) in the convolution kernel, and s represents the step size;
[0017] The output formula of pixel attention is:
[0018] x k =f PA ·x k-1 (2)
[0019] Among them, x k-1 With x k represents pixel attention input and output, f PA (·) represents the combination of a 1×1 convolutional layer and a sigmoid function.
[0020] Furthermore, the text processing module includes a pre-trained text recognizer and a text prior processing module; the edge enhanced feature map is input into the trained text recognizer to obtain the basic prior of the text content, and the output of the multi-scale feature extraction module is input into the text prior processing module to obtain further text prior as the input of the image reconstruction module.
[0021] Furthermore, the image reconstruction module includes two parts: novel sequence reconstruction blocks SP-SRBs and Pixel Shuffle module;
[0022] Among them, in the new sequence reconstruction block SP-SRBs, five reconstruction blocks are densely connected, and each reconstruction block receives the output of all the reconstruction blocks in its previous part as the additional input of the current reconstruction block;
[0023] Among them, each reconstruction block includes: selective convolution kernel convolution SKN, pixel attention PA, gated recurrent unit GRU, convolution layer CONV and ReLU activation function;
[0024] Among them, the multi-scale enhanced feature map is input into the new sequence reconstruction block SP-SRBs, and the output result is input into the PixelShuffle module to obtain a high-resolution image.
[0025] Furthermore, the selective convolution kernel convolution SKN consists of three operations: Split, Fuse and Select;
[0026] Among them, the Split operation generates multiple paths with various convolution kernel sizes. For a given feature map X∈R H×W×C , perform two transformations with convolution sizes equal to 3 and 5:
[0027]
[0028] in, and Represents two conversion results with convolution sizes equal to 3 and 5 respectively;
[0029] The Fuse operation combines and aggregates information from multiple paths to obtain a global and comprehensive representation of selectivity weights, including:
[0030] The results of multiple branches are fused through Slement-Wise Summation:
[0031]
[0032] in, and They represent the results of different branches with convolution sizes of 3 and 5 respectively;
[0033] The cth element of the global average pooling operation s is calculated by shrinking U by spatial size H×W:
[0034]
[0035] Among them, U c (i, j) indicates that the number of channels is c, the (i, j)th element in the spatial size H×W, F gp represents global average pooling;
[0036] Improve efficiency by reducing the dimension through a fully connected layer:
[0037] z=F fc (s) = δ(B(W S )) (7)
[0038] Among them, δ represents the ReLU function, F fc represents a fully connected operation, B represents batch normalization, and W S Represents the weight matrix, W∈R d×C , z represents the output of the fully connected layer;
[0039] The Select operation aggregates the feature maps of convolution kernels of different sizes according to the selection weights, using two weight matrices a and b to and Perform weighted operations and then sum them up to get the final output vector V.
[0040] According to one aspect of the present invention, a storage medium is provided, wherein instructions are stored in the storage medium, and when a computer reads the instructions, the computer is caused to execute any of the above-mentioned scene text image super-resolution methods based on enhanced edge prior.
[0041] According to another aspect of the present invention, there is provided an electronic device, comprising a processor and the above-mentioned storage medium, wherein the processor executes instructions in the storage medium.
[0042] Compared with the prior art, the present invention has the following beneficial effects:
[0043] 1. The EEP proposed in the present invention first introduces the Canny operator and obtains the edge enhancement feature map based on the pixel attention module, and further obtains the edge feature enhanced text prior.
[0044] 2. The present invention combines the pixel attention module for multi-scale information exchange and feature aggregation, and proposes a new sequence reconstruction block based on edge-enhanced pixel attention prior to reduce the impact of redundant information on the image reconstruction process and achieve better SR effect.
[0045] 3. The PA module of the present invention can help with text prior processing and improve the accuracy of the prior, and then the text prior will be fed back to the super-resolution reconstruction module to enhance the reconstruction effect of STISR. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0047] Figure 1 The overall framework diagram of the enhanced prior network of the present invention;
[0048] Figure 2 This is a diagram of the multi-scale feature extraction network architecture of the present invention;
[0049] Figure 3 This is a diagram of the sequence residual block network architecture of the present invention;
[0050] Figure 4 This is a visualization image comparison diagram of the TextZoom dataset according to an embodiment of the present invention. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0052] The present invention provides a scene text image super-resolution method based on enhanced edge prior, comprising the following steps:
[0053] The present invention is a scene text image super-resolution method that combines multi-scale feature extraction and pixel attention network with enhanced edge prior. The invention is to enhance the ability to use text prior to guide image super-resolution reconstruction in scene text image super-resolution to obtain better fidelity and clarity. The proposed framework is a scene text image super-resolution architecture with enhanced edge prior. First, in order to solve the problem of mixing text and background, the present invention introduces the Canny operator to obtain the edge feature map. Then, in view of the problem that the scene text image super-resolution reconstruction cannot give full play to the guiding role of text prior, the text prior branch is enhanced, and a multi-scale feature extraction module is proposed by introducing void convolution and pixel attention to learn the favorable co-occurrence features between pixels. Secondly, the pixel attention module is combined for multi-scale information exchange and feature aggregation, and a new sequence reconstruction residual block is proposed to reduce the misleading of redundant information to the image reconstruction process.
[0054] The scene text image super-resolution network of the present invention includes two main branches, the text prior branch and the super-resolution branch. The specific process is as follows: Figure 1As shown. For the text prior branch, the input LR text image is first passed through a pre-trained text recognizer to obtain the basic prior of the text content. For the SR branch, the present invention first feeds the LR text image into the spatial transformation network to deal with the situation where individual text images are not aligned. The processed image is then sent to the multi-scale feature extraction module. It consists of dilated convolution and pixel attention. The dilation rates of the dilated convolution are 1, 2, and 5, respectively, and different hyperparameters represent the spacing of each value when the convolution kernel processes data. The image can increase the receptive field while not changing the size of the output feature map after dilated convolution, while extracting detailed texture information, high-level abstract information, and contextual information. Then, a 3D attention map is generated through the PA module, aiming to reduce additional parameters and produce better SR results. Secondly, further text priors are extracted through the text prior processing module. The text image after multiple processing is input into a reconstruction module consisting of a cascade module containing a new sequence reconstruction block and a Pixel Shuffle to generate the final HR image. In the above process, the PA module can help with text prior processing and improve the accuracy of the prior, and then the text prior will be fed back to the super-resolution reconstruction module to enhance the reconstruction effect of STISR.
[0055] like Figure 2 As shown in the figure, the details of the multi-scale feature extraction model: ASPP-PA, the input is a dilated convolution with different expansion rates, and the multi-scale feature extraction is performed on the text image. The formula of the dilated convolution is as follows:
[0056] Y[i,j]=∑ m,n X(i·s+m·d,j·s+n·d)·W[m,n] (1)
[0057] Where Y represents the input feature map, X represents the output feature map, W represents the convolution kernel, d represents the dilation rate, Y[i,j] represents the value at position (i,j) in the output feature map, X(i·s+m·d,j·s+n·d) represents the value at position (i·s+m·d,j·s+n·d) in the input feature map, and W m,n represents the weight at position (m,n) in the convolution kernel, and s represents the step size.
[0058] The present invention can increase the receptive field without increasing parameters, thereby better capturing the contextual information of the input image. Adding a pixel attention module after the dilated convolution can generate 3D (C×H×W) Characteristic matrix. The present invention gives the input and output of the PA block as x k-1 With x k , the formula is as follows:
[0059] x k =f PA ·x k-1 (2)
[0060] where f PA (·) is a combination of a 1×1 convolutional layer and a sigmoid function. It enables the model to focus more on the important details and structures of the image. The feature map extracted in this way can not only provide more accurate detail texture information, helping to solve problems such as cross-section distortion and breakage, but also extract context information to help with text recognition, producing better SR results.
[0061] At present, the STISR models guided by text priors are all based on pre-trained recognizers. In the LR image reconstruction process, redundant calculations will be performed to propagate incorrect semantic guidance and produce semantically inaccurate text images. Therefore, the present invention combines the pixel attention module to form a new sequence reconstruction block to reduce the interference of redundant information on the model. Figure 3 As shown in Figure 1, the building block of the selective convolution kernel convolution fuses multiple branches of convolution kernels of different sizes according to the input information, thereby adaptively obtaining effective receptive fields of different sizes. It consists of three operations: Split, Fuse, and Select. The Split operation generates multiple paths with various convolution kernel sizes. For a given feature map X∈R H×W×C , the present invention first performs two conversions with convolution sizes equal to 3 and 5
[0062]
[0063] The Fuse operation combines and aggregates information from multiple paths to obtain a global and comprehensive representation of the selectivity weights. The present invention fuses the results of multiple branches through Slement-Wise Summation:
[0064]
[0065] GAP is a global average pooling operation. Specifically, the cth element of s is calculated by shrinking U by the spatial size H×W:
[0066]
[0067] where F gp represents global average pooling;
[0068] In addition, a fully connected layer is used to reduce the dimension and improve efficiency:
[0069] z=F fc (s) = δ(B(W S )) (7)
[0070] Where δ is the ReLU function, B represents batch normalization, and W∈R d×CThe Select operation aggregates the feature maps of convolution kernels of different sizes according to the selection weights. and A weighted operation is performed, and then the sum is obtained to obtain the final output vector V. For reconstruction tasks with relatively complex networks, the SP-SRBs of the present invention performs better.
[0071] Furthermore, simulation experiments are performed to verify the effectiveness of the method proposed in the present invention.
[0072] Table 1 Accuracy of different methods on the TATT benchmark model
[0073]
[0074] Implementation details: EEP is trained and tested on the Pytorch1.8 deep learning library based on NVIDIA RTX 4060ti GPU. Based on the practice established in past research papers, we keep the convention of configuring the size of LR text images at 16×64 and HR text images at 32×128. We use the Adam optimizer to train the model with a batch size of 64 and a learning rate of 10 -3 , trained 500 times. In order to facilitate consistent comparison, the present invention still uses the standard configuration of the baseline model. The TextZoom benchmark dataset is specially introduced for the STISR task, which includes 21,740 pairs of low-resolution (LR) and high-resolution (HR) text images. Of these pairs, 17,367 are used for training, and the remaining datasets are divided into three subsets for testing, classified by difficulty level: easy (1,619 samples), medium (1,411 samples) and difficult (1,343 samples). Quantitative analysis is provided for the ASTER, MORAN and CRNN recognizers combined with the STISR model (see Tables 1 and 2), while the visualization results of the present invention provide qualitative insights.
[0075] Effectiveness of Canny edge detector: As can be seen from Table 1, the Canny edge detector of the present invention can effectively capture the text structure while excluding background information. By splicing the edge map with the low-resolution (LR) input image, the model of the present invention achieves higher accuracy. Experiments show that the STISR model significantly improves the ability to recognize text structure after solving the problem of mixed text and background. This enhancement enables EEP to perform refined text structure learning, resulting in better reconstruction results.
[0076] Effectiveness of ASPP-PA: After integrating the Atrous Spatial Pyramid Pooling (ASPP) module at the 9×9 convolution kernel and ReLU activation function position of the original TATT model, the results in Table 1 show that the recognition accuracy is significantly improved, with an average increase of 0.5%. The ASPP module enhances the model's ability to capture features of different scales by utilizing convolution kernels with different dilation rates, which is particularly important when dealing with text images with complex textures and details. After introducing the pixel attention mechanism, the accuracy is further improved by 1.1%. These results show that by integrating the pixel attention mechanism, the EEP model is able to effectively extract detailed texture information, high-level abstract information, and contextual information to optimize the feature extraction process from LR text images. This comprehensive feature extraction strategy significantly improves the performance of the model, making its text recognition ability in complex scenes more outstanding.
[0077] Table 2 Accuracy of different sequence residual blocks on multiple models
[0078]
[0079] Effectiveness of SP-SRB: In order to verify the effectiveness of the sequence reconstruction block proposed in the present invention, the present invention first compares it with the SRB in the baseline TATT model. In the main architecture of the model, all SRBs are replaced by the SP-SRB of the present invention. Similarly, the present invention also replaces the original SRB with SP-SRB in the main architecture of TRSN and TPGSR. The present invention uses the recognition accuracy of the CRNN model to measure the recognition performance of each model. As shown in the table, when SP-SRB is used as the building block of the main architecture, all models have achieved significant performance improvements in recognition accuracy and fidelity. This result not only reflects the effect of the SP-SRB module of the present invention in reducing the impact of redundant information, but also demonstrates its excellent performance in high-quality text image reconstruction and improving model robustness.
[0080] Results on TextZoom: We conduct extensive experiments on the TextZoom dataset, a real STISR benchmark, to compare the performance of the proposed EEP model with a series of state-of-the-art STISR models, including TSRN, STT, PCAN, Text-Gestalt, DPMN(+TATT), TextDiff, TPGSR, TATT, and PerMR. For the baseline TATT, we retain the processing of their TP branches and apply the ASPP-PA and SP-SRB modules proposed in this paper to their SR branches. The evaluation indicators include text recognition accuracy and SSIM / PSNR, and the comparison results are shown in the tables respectively.
[0081] Text recognition accuracy evaluation: The experiments of the present invention verified that the improvements made to the baseline model brought significant improvements in detection accuracy and fidelity, thereby confirming the effectiveness of these improvements. Specifically, based on the TATT baseline model, the EEP model introduced by the present invention showed excellent performance improvements on different text recognizers. On the three recognition systems of ASTER, MORAN and CRNN, the average accuracy of the model of the present invention was improved by 1.2%, 2.0% and 1.6%, respectively. These results show that the model has obtained significant performance advantages after adopting the method of the present invention. In addition, for the latest PerMR model, the EEP model of the present invention has also achieved an improvement of 0.6%, 0.9% and 0.2% in recognition accuracy compared with the previous results, further proving the effectiveness of the improvement measures proposed in the present invention. These improvements not only demonstrate the accuracy of the EEP model, but also demonstrate its adaptability in dealing with highly challenging scenarios.
[0082] Table 3 Accuracy of different models on the TextZoom dataset
[0083]
[0084]
[0085] Image fidelity evaluation: As can be seen in the table, the model of the present invention has also made significant progress in fidelity compared to the baseline model. The PSNR and SSIM values have been significantly improved, and are slightly enhanced compared to the latest PerMR model. In general, compared with text recognition accuracy, fidelity indicators show more inconsistency in evaluating text images. Whether a significant advantage is shown in text recognition accuracy is not directly related to the fidelity indicators of the image. Compared with LR images, the improvement in the fidelity indicators PSNR / SSIM of the SR images generated by the STISR model fails to capture the substantial progress that the STISR model brings to the downstream tasks of text recognition.
[0086] Table 4 Fidelity of different models on the TextZoom dataset
[0087]
[0088] Qualitative comparison with baseline: Figure 4In the figure, the present invention provides a visual comparison, intuitively explaining the significant improvement of EEP in quantitative research. For example, the TATT model incorrectly reconstructs "Excellent" as "Excellont", and both "A" and "S" in "CLASSICS" have clearer texture details, replacing the blurred images in TATT. It can be clearly seen that the SR image quality generated by the method of the present invention is higher than that of existing methods, especially in restoring correct text content and convincing texture details, which further proves the good performance of the EEP proposed in the present invention. With the help of edge feature maps, the method of the present invention extracts image edge features at more scales, obtains image edge enhanced text prior to guide reconstruction, performs cross-resolution information interaction and feature fusion, and improves their reconstruction effects.
[0089] The examples described in the present invention are merely descriptions of the preferred implementation modes of the present invention, and are not intended to limit the concept and scope of the present invention. Without departing from the design concept of the present invention, various modifications and improvements made to the technical solutions of the present invention by engineers and technicians in this field should all fall within the protection scope of the present invention.
Claims
1. A scene text image super-resolution method based on enhanced edge prior, characterized in that: The steps include: Collect scene text images; Construct a scene text image super-resolution framework EEP based on edge-enhanced pixel attention prior, where the super-resolution framework EEP includes: edge enhancement module, multi-scale feature extraction module, text prior module and image reconstruction module; The collected scene text images are input into the EEP framework to generate high-resolution images.
2. The method according to claim 1, characterized in that The edge enhancement module uses the Canny detection operator to process the low-resolution image LR to obtain an edge feature map, and then concatenates the edge feature map with the original input low-resolution image to form an edge enhancement feature map; Among them, the edge enhanced feature map is used as the input of the pre-trained text recognizer, and the subsequent sequence output and the edge enhanced feature map input through the spatial transformer network STN are used as the input of the text prior module; the output text prior will be added to the image reconstruction module to guide the image reconstruction process.
3. The method according to claim 1, characterized in that The multi-scale feature extraction module consists of a dilated convolution branch, a 1×1 convolution branch and a pooling branch. The dilated convolution branch includes three 3×3 dilated convolution modules and pixel attention. The dilation rates of the three 3×3 dilated convolution modules are 1, 2, and 5, respectively. The input passes through the pixel attention module again after three dilated convolutions. The pooling branch undergoes 1×1 pooling, 1×1 convolution and upsampling. All branch results are concatenated and 1×1 convolved to obtain a multi-scale enhanced feature map as the output of the multi-scale feature extraction module.
4. The method according to claim 3, characterized in that The specific formula of the dilated convolution is: Y[i,j]=∑ m,n X(i·s+m·d,j·s+n·d)·W[m,n] (1) Where Y represents the input feature map, X represents the output feature map, W represents the convolution kernel, d represents the dilation rate, Y[i,j] represents the value at position (i,j) in the output feature map, X(i·s+m·d,j·s+n·d) represents the value at position (i·s+m·d,j·s+n·d) in the input feature map, and W m,n represents the weight at position (m,n) in the convolution kernel, and s represents the step size; The output formula of pixel attention is: x k =f PA ·x k-1 (2) Among them, x k-1 With x k represents pixel attention input and output, f PA (·) represents the combination of a 1×1 convolutional layer and a sigmoid function.
5. The method according to claim 1, characterized in that The text processing module includes a pre-trained text recognizer and a text prior processing module; the edge enhanced feature map is input into the trained text recognizer to obtain the basic prior of the text content, and the output of the multi-scale feature extraction module is input into the text prior processing module to obtain further text prior as the input of the image reconstruction module.
6. The method according to claim 4, characterized in that The image reconstruction module consists of two parts: the new sequence reconstruction block SP-SRBs and the Pixel Shuffle module; Among them, in the new sequence reconstruction block SP-SRBs, five reconstruction blocks are densely connected, and each reconstruction block receives the output of all the reconstruction blocks in its previous part as the additional input of the current reconstruction block; Among them, each reconstruction block includes: selective convolution kernel convolution SKN, pixel attention PA, gated recurrent unit GRU, convolution layer CONV and ReLU activation function; Among them, the multi-scale enhanced feature map is input into the new sequence reconstruction block SP-SRBs, and the output result is input into the PixelShuffle module to obtain a high-resolution image.
7. The method according to claim 6, characterized in that Selective convolution kernel convolution SKN consists of three operations: Split, Fuse and Select; Among them, the Split operation generates multiple paths with various convolution kernel sizes. For a given feature map X∈R H ×W×C , perform two transformations with convolution sizes equal to 3 and 5: in, and Represents two conversion results with convolution sizes equal to 3 and 5 respectively; The Fuse operation combines and aggregates information from multiple paths to obtain a global and comprehensive representation of selectivity weights, including: The results of multiple branches are fused through Slement-Wise Summation: in, and They represent the results of different branches with convolution sizes of 3 and 5 respectively; The cth element of the global average pooling operation s is calculated by shrinking U by spatial size H×W: Among them, U c (i, j) indicates that the number of channels is c, the (i, j)th element in the spatial size H×W, F gp represents global average pooling; Improve efficiency by reducing the dimension through a fully connected layer: z=F fc (s)=δ(B(W S )) (7) Among them, δ represents the ReLU function, F fc represents a fully connected operation, B represents batch normalization, and W S Represents the weight matrix, W∈R d ×C , z represents the output of the fully connected layer; The Select operation aggregates the feature maps of convolution kernels of different sizes according to the selection weights, using two weight matrices a and b to and Perform weighted operations and then sum them up to get the final output vector V.
8. A storage medium, characterized in that: The storage medium stores instructions, and when a computer reads the instructions, the computer is enabled to execute the scene text image super-resolution method based on enhanced edge prior as described in any one of claims 1 to 7.
9. An electronic device, characterized in that: The invention comprises a processor and the storage medium as claimed in claim 9, wherein the processor executes instructions in the storage medium.
Citation Information
Cited By
Side-scan sonar image denoising method based on improved ISTA-Net + + network
CN119251090A
Side scan sonar image denoising method based on improved ISTA-Net++ network
CN119251090B
Priori information enhanced image deblurring method
CN120047350A
Image deblurring method with prior information enhancement
CN120047350B
