A hybrid scene text image super-resolution method and system

By combining single image super-resolution, text box recognition and text image super-resolution models, the problem of insufficient accuracy in super-resolution of large-scene text images in the existing technology is solved, and efficient super-resolution of large-scene text images is achieved. Resolution processing improves text readability.

CN118505510BActive Publication Date: 2024-09-27UNIV OF SCI & TECH OF CHINA +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410951088.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-09-27
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

Existing scene text image super-resolution methods have limitations on the input text length and are only suitable for short lines of text. Moreover, single-image super-resolution algorithms have room for improvement in text readability, making it difficult to achieve efficient super-resolution of large scene text images. resolution.

Method used

Using a hybrid scene text image super-resolution method, a training set is constructed to train the image network model by combining a single image super-resolution model, a text box recognition model, and a text image super-resolution model, and utilizes shallow and deep feature extraction Modules, text prior processing and fusion models gradually improve the super-resolution results of low-resolution images.

Benefits of technology

The accuracy of super-resolution of text images in large scenes has been improved, able to handle a large number of scenes and improve the super-resolution effect of the overall image, especially in the readability of text parts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118505510B
    Figure CN118505510B
Patent Text Reader

Abstract

The present invention discloses a scene text image super-resolution method and system based on mixing, which relates to the field of image reconstruction technology. A low-resolution image is transmitted to a trained image network model to output a super-resolution result of the image. The training of the image network model is as follows: a training set is constructed, and image reconstruction is performed on the low-resolution scene text image to obtain a general super-resolution image; text frames are extracted from the low-resolution scene text image and the general super-resolution image respectively, and then corresponding text line images are obtained through scaling processing; for each low-resolution text line image, a corresponding reconstructed super-resolution text line image is generated; each reconstructed super-resolution text line image is integrated into the super-resolution text line image position to obtain a super-resolution result of the low-resolution scene text image; the scene text image super-resolution method and system improve the accuracy of large scene text image super-resolution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image reconstruction, and in particular to a method and system for super-resolution of scene text images based on mixing. Background Art

[0002] Image super-resolution is a core issue in the field of computer vision and artificial intelligence. Its core lies in processing low-resolution images through optics and related knowledge to restore the corresponding high-resolution images. At present, this technology has been successfully applied in many fields such as satellite remote sensing images, medical imaging, video surveillance and industrial inspection.

[0003] In recent years, with the breakthrough of deep learning in automatic learning features, image super-resolution technology has been significantly enhanced and has become a key tool in the field of computer vision and image processing. Its research directions mainly include single image super-resolution and scene text image super-resolution. Single image super-resolution aims to infer the output of high-resolution images by processing the input of low-resolution images. Scene text image super-resolution focuses on recovering high-resolution scene text images with visually readable text content from given low-resolution inputs.

[0004] However, current scene text image super-resolution methods usually have restrictions on the length of the input text and are only applicable to short lines of text. At the same time, the results of single image super-resolution algorithms still have room for improvement in terms of text readability. Therefore, achieving efficient super-resolution of large scene text images remains an urgent problem to be solved. Summary of the invention

[0005] Based on the technical problems existing in the background technology, the present invention proposes a hybrid-based scene text image super-resolution method and system, which improves the accuracy of large scene text image super-resolution.

[0006] The present invention proposes a hybrid-based scene text image super-resolution method, which transmits a low-resolution image to a trained image network model to output a super-resolution result of the low-resolution image;

[0007] The training process of the image network model is as follows:

[0008] S1. Constructing a training set, wherein the training set includes a low-resolution scene text image and a real high-resolution image corresponding to the low-resolution scene text image, and inputting the training set into an image network model;

[0009] S2: Reconstruct the low-resolution scene text image through the single image super-resolution model to obtain a universal super-resolution image, and construct a loss function based on the universal super-resolution image , to train a single image super-resolution model;

[0010] S3. Based on the pre-trained text box recognition model, extract text boxes from the low-resolution scene text image and the general super-resolution image respectively to obtain low-resolution text boxes and super-resolution text boxes, reduce the super-resolution text box to the position of the low-resolution scene text image to form an overlapping area, expand the low-resolution text box with the largest overlap in the overlapping area to cover the current corresponding super-resolution text box, and for each low-resolution text box, cut out the corresponding text line image from the low-resolution scene text image, the real high-resolution image, and the general super-resolution image to obtain a low-resolution text line image, a real high-resolution text line image, and a super-resolution text line image;

[0011] S4. Perform text prior processing on the input low-resolution text line image through the text image super-resolution model to obtain the text prior of the low-resolution image, and convert the text prior of the low-resolution image into the text features of the low-resolution image. At the same time, embed the text features of the low-resolution image into the super-resolution process of the low-resolution text line image to obtain the reconstructed super-resolution text line image, and construct the loss function To train a text image super-resolution model;

[0012] S5. Based on the fusion model, the reconstructed super-resolution text line image replaces the super-resolution text line image in the general super-resolution image to obtain a complete new super-resolution image. The general super-resolution image and the complete new super-resolution image are then fused into a super-resolution image with doubled channels. Feature extraction is performed on the super-resolution image with doubled channels to obtain a super-resolution result of the low-resolution scene text image. A loss function is constructed based on the super-resolution result. To train the fusion model.

[0013] Further, in step S2, the single image super-resolution model includes a shallow feature extraction module, a deep feature extraction module and a high-quality image reconstruction module, the shallow feature extraction module includes a convolution layer, the deep feature extraction module includes multiple layers of feature extraction layers connected in sequence, the output of the previous feature extraction layer is used as the input of the next feature extraction layer, and the output of the last feature extraction layer is used as the output of the deep feature extraction module. The single image super-resolution model performs an image reconstruction process on a low-resolution scene text image as follows:

[0014] Given a low-resolution scene text image , obtain shallow features through the shallow feature extraction module ;

[0015] Use deep feature extraction module to extract shallow features Extract deep features again ;

[0016] Use high-quality image reconstruction module to take advantage of shallow features and deep features Reconstructing a universal super-resolution image , where the shallow features contains low-frequency information, while deep features contains the recovered high-frequency information.

[0017] Furthermore, the loss function Generates the following:

[0018]

[0019] in, represents a general super-resolution image, Represents a real high-resolution image.

[0020] Further, in step S3, the super-resolution text box is reduced to the position of the low-resolution scene text image to form an overlap area, and a low-resolution text box with the largest overlap in the overlap area is enlarged to cover all super-resolution text boxes, specifically:

[0021] S31, according to the scaling ratio between the low-resolution scene text image and the general super-resolution image, scaling down the super-resolution text frame mapping to a corresponding position on the low-resolution scene text image;

[0022] S32, calculating the overlapping area of ​​each reduced super-resolution text box with all low-resolution text boxes, dividing the overlapping area of ​​each text box by the larger area of ​​the corresponding super-resolution text box and the low-resolution text box, obtaining the overlapping degree of the text boxes and arranging them in descending order;

[0023] S33, if the overlap degree of the first-ranked text box is less than the set overlap degree, a low-resolution text box is added to the low-resolution scene text image, and the process returns to step S32;

[0024] S34, if the overlap degree of the first-ranked text box is greater than or equal to the set overlap degree, the upper coordinate and left coordinate of the low-resolution text box corresponding to the overlap degree of the first-ranked text box are set to the minimum value of the upper coordinate and left coordinate of the corresponding super-resolution text box, and the lower coordinate and right coordinate of the low-resolution text box are set to the maximum value of the lower coordinate and right coordinate of the corresponding super-resolution text box, so as to cover all super-resolution text boxes;

[0025] S35, multiplying the four coordinates of all low-resolution text boxes by the scaling ratio to obtain the corresponding super-resolution text box position, which is used as the high-resolution text box position corresponding to the real high-resolution image.

[0026] Further, in step S4, the text image super-resolution model includes a text prior generation module, a text prior interpretation module and a super-resolution module, the text prior interpretation module includes an encoder and a decoder, the encoder and the decoder are both composed of a multi-head self-attention layer and a feedforward neural network layer, the super-resolution module is composed of multiple text prior guidance layers connected in sequence, and the loss function Including identification loss function And the reconstruction loss function ;

[0027] The text prior generation module is used to generate a low-resolution text line image Perform text prior processing to obtain text prior of low-resolution images , the text prior generation module recognizes the loss function Perform parameter optimization;

[0028] The text prior interpretation module is used to interpret the text prior of the low-resolution image. Text features converted to low-resolution images ;

[0029] The super-resolution module is used to embed the text features of the low-resolution image into the super-resolution process of the low-resolution text line image to obtain a reconstructed super-resolution text line image. .

[0030] Furthermore, the recognition loss function The formula is as follows:

[0031]

[0032] The reconstruction loss function The formula is as follows:

[0033]

[0034] in, represents the text prior generation module, represents the KL divergence, and Represent two hyperparameters, represents the super-resolution text line image in the general super-resolution image, Represents real high-resolution text line images in real high-resolution images.

[0035] Further, in step S5: replacing the super-resolution text line image in the universal super-resolution image with the reconstructed super-resolution text line image, if there is overlap between the obtained new super-resolution text line images, each channel of each overlapping pixel is replaced by the mean value corresponding to the value at this channel of all reconstructed super-resolution text line images containing this pixel.

[0036] Furthermore, in step S5, the loss function The details are as follows:

[0037]

[0038] in, represents the super-resolution result, Represents a real high-resolution image.

[0039] Based on the hybrid scene text image super-resolution system, the low-resolution image is fed into the trained image network model to output the super-resolution result of the low-resolution image;

[0040] The image network model includes a single image super-resolution model, a pre-trained text box recognition model, a text image super-resolution model and a fusion model. The training process of the image network model is as follows:

[0041] Constructing a training set, wherein the training set includes a low-resolution scene text image and a real high-resolution image corresponding to the low-resolution scene text image;

[0042] The single image super-resolution model is used to reconstruct low-resolution scene text images to obtain a universal super-resolution image, and a loss function is constructed based on the universal super-resolution image. , to train a single image super-resolution model;

[0043] The pre-trained text box recognition model is used to extract text boxes from the low-resolution scene text image and the general super-resolution image, respectively, to obtain low-resolution text boxes and super-resolution text boxes, to reduce the super-resolution text box to the position of the low-resolution scene text image to form an overlapping area, to expand a low-resolution text box with the largest overlap in the overlapping area to cover the current corresponding super-resolution text box, and for each low-resolution text box, to cut out the corresponding text line image from the low-resolution scene text image, the true high-resolution image, and the general super-resolution image, to obtain a low-resolution text line image, a true high-resolution text line image, and a super-resolution text line image;

[0044] The text image super-resolution model is used to perform text prior processing on the input low-resolution text line image to obtain the text prior of the low-resolution image, and convert the text prior of the low-resolution image into the text features of the low-resolution image. At the same time, the text features of the low-resolution image are embedded into the super-resolution process of the low-resolution text line image to obtain the reconstructed super-resolution text line image and construct the loss function. To train a text image super-resolution model;

[0045] The fusion model is used to replace the super-resolution text line image in the general super-resolution image with the reconstructed super-resolution text line image to obtain a reconstructed super-resolution image, and then fuse the general super-resolution image and the reconstructed super-resolution image into a super-resolution image with doubled channels. Feature extraction is performed on the super-resolution image with doubled channels to obtain a super-resolution result of the low-resolution scene text image, and a loss function is constructed based on the super-resolution result. To train the fusion model.

[0046] The advantages of the hybrid scene text image super-resolution method and system provided by the present invention are: the hybrid scene text image super-resolution method and system provided in the structure of the present invention first uses a single image super-resolution model to process the low-resolution scene text image to obtain a universal super-resolution image. This processing can solve the super-resolution problem of a large number of scenes in the entire picture. Afterwards, the text box recognition model is used to extract text boxes from both the low-resolution scene text image and the universal super-resolution image, and the low-resolution text line image position to be optimized and the super-resolution text line image position to be replaced are obtained, and they are made to correspond one to one. Secondly, the text image super-resolution model is used to generate a corresponding reconstructed super-resolution text line image for each low-resolution text line image, thereby ensuring the accuracy of the super-resolution of the large scene text image. Finally, the two super-resolution results (reconstructed super-resolution text line image and super-resolution text line image in the super-resolution image) are fused and adapted to obtain the super-resolution result of the large scene text image, which ultimately improves the accuracy of the super-resolution of the large scene text image. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is a structural schematic diagram of the present invention;

[0048] Figure 2 This is the training flow chart of the image network model. DETAILED DESCRIPTION

[0049] Below, the technical solution of the present invention is described in detail through specific embodiments. Many specific details are set forth in the following description to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific implementation disclosed below.

[0050] like Figure 1 and 2 As shown, the present invention proposes a hybrid-based scene text image super-resolution method, which transmits a low-resolution image to a trained image network model to output a super-resolution result of the low-resolution image;

[0051] The training process of the image network model is as follows:

[0052] S1. Construct a training set, wherein the training set includes a low-resolution scene text image and a real high-resolution image corresponding to the low-resolution scene text image, and input the training set into an image network model; the training set also includes the text content and position of the low-resolution scene text image.

[0053] S2: Reconstruct the low-resolution scene text image through the single image super-resolution model to obtain a universal super-resolution image, and construct a loss function based on the universal super-resolution image , to train a single image super-resolution model;

[0054] The single image super-resolution model includes a shallow feature extraction module, a deep feature extraction module and a high-quality image reconstruction module. The shallow feature extraction module includes a convolution layer, and the deep feature extraction module includes multiple layers of feature extraction layers connected in sequence. The output of the previous feature extraction layer is used as the input of the next feature extraction layer, and the output of the last feature extraction layer is used as the output of the deep feature extraction module. The single image super-resolution model performs image reconstruction on the low-resolution scene text image as follows:

[0055] S21. Given a low-resolution scene text image , through the shallow feature extraction module Obtaining shallow features , Represents the height of the input image, which corresponds to the height of the low-resolution scene text image. Represents the width of the input image, which corresponds to the width of the low-resolution scene text image. Indicates the number of channels of the image, The number of channels representing the features, where this embodiment uses one The convolutional layer is used as a shallow feature extraction module;

[0056]

[0057] S22, use the deep feature extraction module to extract shallow features Extract deep features again , thereby recovering the high-frequency information lost in the low-resolution scene text image;

[0058] The deep feature extraction module is based on the feature extraction layer. The feature extraction layer can be formed by superposition of a shifted convolution layer, an activation layer, and a multi-layer self-attention layer. That is, the feature extraction layer can directly use the existing feature extraction layer that can be used to extract deep features of the image.

[0059]

[0060] in, Represents the deep feature extraction module.

[0061] S23, using high-quality image reconstruction module , using shallow features and deep features Reconstructing a universal super-resolution image , where the shallow features contains low-frequency information, while deep features contains the recovered high-frequency information.

[0062]

[0063] The high-quality image reconstruction module of this embodiment adopts a The convolution layer is composed of a pixel shuffle operation, which uses shallow features containing low-frequency information and deep features containing high-frequency information to reconstruct a general super-resolution image. and use Optimizer and The loss function is used for optimization. They represent the height and width of the output image of the single image super-resolution model, which corresponds to the height and width of the universal super-resolution image.

[0064] Loss Function Generates the following:

[0065]

[0066] in, represents a general super-resolution image, Represents a real high-resolution image.

[0067] Through steps S21 to S23, super-resolution results can be obtained from any low-resolution scene text image, laying the foundation for subsequent processing. After the above processing steps, a universal super-resolution image is successfully constructed. Although there is no special processing of text information, resulting in a general effect of the text part, the rest of the scene environment is effectively processed, and it is convenient for subsequent further processing.

[0068] S3. Based on the pre-trained text box recognition model, extract text boxes from the low-resolution scene text image and the general super-resolution image respectively to obtain low-resolution text boxes and super-resolution text boxes, reduce the super-resolution text box to the position of the low-resolution scene text image to form an overlapping area, expand the low-resolution text box with the largest overlap in the overlapping area to cover the current corresponding super-resolution text box, and for each low-resolution text box, cut out the corresponding text line image from the low-resolution scene text image, the real high-resolution image, and the general super-resolution image to obtain a low-resolution text line image, a real high-resolution text line image, and a super-resolution text line image;

[0069] As a further preferred solution, in step S3, the super-resolution text box is reduced to the position of the low-resolution scene text image to form an overlap area, and a low-resolution text box with the largest overlap in the overlap area is expanded to cover the current corresponding super-resolution text box, specifically:

[0070] S31. According to the low-resolution scene text image and general super-resolution images The super-resolution text box is mapped down to the corresponding position on the low-resolution scene text image according to the scaling ratio between the top, bottom, left and right coordinates of the super-resolution text box, and the top two coordinates and the left two coordinates are rounded down, and the bottom two coordinates and the right two coordinates are rounded up;

[0071] S32, calculating the overlapping area of ​​each reduced super-resolution text box with all low-resolution text boxes, dividing the overlapping area of ​​each text box by the larger area of ​​the corresponding super-resolution text box and the low-resolution text box, obtaining the overlapping degree of the text boxes and arranging them in descending order;

[0072] S33, if the overlap degree of the first-ranked text box is less than the set overlap degree, a low-resolution text box is added to the low-resolution scene text image, and the process returns to step S32;

[0073] S34, if the overlap degree of the first-ranked text box is greater than or equal to the set overlap degree, the upper coordinate and left coordinate of the low-resolution text box corresponding to the overlap degree of the first-ranked text box are set to the minimum value of the upper coordinate and left coordinate of the corresponding super-resolution text box, and the lower coordinate and right coordinate of the low-resolution text box are set to the maximum value of the lower coordinate and right coordinate of the corresponding super-resolution text box, so as to cover all super-resolution text boxes;

[0074] S35, multiplying the four coordinates of all low-resolution text boxes by the scaling ratio to obtain the corresponding super-resolution text box position, which is used as the high-resolution text box position corresponding to the real high-resolution image.

[0075] Through steps S31 to S35, the positions of all text boxes corresponding to each other on the low-resolution scene text image, the general super-resolution image and the real high-resolution image are obtained. The images in these text boxes contain a large amount of text information and are constructed into the data set required for the text image super-resolution model.

[0076] S4. The text image super-resolution model performs text prior processing on the low-resolution text line image input to obtain the text prior of the low-resolution image, and converts the text prior of the low-resolution image into the text features of the low-resolution image. At the same time, the text features of the low-resolution image are embedded into the super-resolution process of the low-resolution text line image to obtain the reconstructed super-resolution text line image and construct the loss function To train a text image super-resolution model;

[0077] The text image super-resolution model includes a text prior generation module, a text prior interpretation module and a super-resolution module. The text prior interpretation module includes an encoder and a decoder. The encoder and the decoder are both composed of a multi-head self-attention layer and a feedforward neural network layer. The super-resolution module is composed of multiple text prior guidance layers connected in sequence. The loss function Including identification loss function And the reconstruction loss function ;

[0078] S41, a text priori generation module is used to generate a low-resolution text line image input Perform text prior processing to obtain text prior of low-resolution images The text prior processing of the text prior generation module has the same structure as the part of the text recognition model predicting the text classification probability. The text recognition model corresponds to the existing structure and will not be elaborated here. Therefore, the text recognition model has a great influence on the results. The recognition loss function is used. To optimize the text prior generation module.

[0079]

[0080] in, represents the text prior generation module, Represents the height and width of the low-resolution text line image, Indicates the number of characters in a text line. Indicates the number of characters in the character set used by the text prior generation module during training;

[0081] Identify the loss function The formula is as follows:

[0082]

[0083] in, represents the text prior generation module, represents the KL divergence, and Represent two hyperparameters, It represents a real high-resolution text line image in a real high-resolution image, and the position of the high-resolution text box corresponding to the real high-resolution image is determined in advance.

[0084] S42, the text prior interpretation module is used to interpret the text prior of the low-resolution image Text features converted to low-resolution images ;

[0085] S43, the super-resolution module is used to embed the text features of the low-resolution image into the super-resolution process of the low-resolution text line image to obtain a reconstructed super-resolution text line image , Respectively represent the height and width of the output reconstructed super-resolution text line image.

[0086] Reconstruction loss function The formula is as follows:

[0087]

[0088] in, Represents real high-resolution text line images in real high-resolution images.

[0089] Through steps S41 to S43, all text lines have been regenerated into super-resolution images guided by text information (corresponding to reconstructed super-resolution text line images). However, these super-resolution images are optimal when taken separately, and how to combine them is a problem. There may be duplication between them, and direct splicing will result in obvious splicing marks. This is the problem that step S5 needs to deal with.

[0090] S5. Based on the fusion model, the reconstructed super-resolution text line image replaces the super-resolution text line image in the general super-resolution image to obtain a reconstructed super-resolution image. The general super-resolution image and the reconstructed super-resolution image are then fused into a super-resolution image with doubled channels. Feature extraction is performed on the super-resolution image with doubled channels to obtain a super-resolution result of the low-resolution scene text image. A loss function is constructed based on the super-resolution result. To train the fusion model, specifically including steps S51 to S52.

[0091] S51: In general super-resolution images For each super-resolution text line image , using the corresponding reconstructed super-resolution text line image Replace it. If the new super-resolution text line images overlap each other, then for each channel of each pixel, use the mean value of the values ​​of all super-resolution text line images containing this pixel at this channel to replace it, that is, overlap and take the mean value, so as to obtain a complete new super-resolution image. ;

[0092] S62: Combining a convolutional neural network and a pixel adaptation module into an image fusion module , the general super-resolution image and a complete new super-resolution image The images are fused into an image with double the number of channels. The fusion features are extracted using a convolutional neural network. The pixel adaptation module is used to fine-tune the feature map by referring to the surrounding neighbor pixels. Finally, the super-resolution result of the low-resolution scene text image is output. , using the loss function Constrain the fusion model;

[0093]

[0094] in, represents the super-resolution result, Represents a real high-resolution image.

[0095] It can be understood that the loss function of this embodiment is , reconstruction loss function And the loss function All are adopted Loss realized.

[0096] Through steps S1 to S5, this embodiment designs a scene text image super-resolution method and system based on mixing. The scene text image super-resolution method and system perform special processing on the text content in the large scene text image. First, the low-resolution scene text image is processed using a single image super-resolution model to obtain a general super-resolution image. This processing can solve the super-resolution problem of a large number of scenes in the entire picture. Afterwards, the text box recognition model is used to extract text boxes from both the low-resolution scene text image and the general super-resolution image, and the low-resolution text line image position to be optimized and the super-resolution text line image position to be replaced are obtained, and they are made to correspond one to one. Secondly, the text image super-resolution model is used to generate a corresponding reconstructed super-resolution text line image for each low-resolution text line image, thereby ensuring the accuracy of the super-resolution of the large scene text image. Finally, the two super-resolution results (reconstructed super-resolution text line image and super-resolution text line image in the super-resolution image) are fused and adapted to obtain the super-resolution result of the large scene text image, which ultimately improves the accuracy of the super-resolution of the large scene text image.

[0097] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A hybrid-based scene text image super-resolution method, characterized in that: The low-resolution image is fed into the trained image network model to output the super-resolution result of the low-resolution image; The training process of the image network model is as follows: S1. Constructing a training set, wherein the training set includes a low-resolution scene text image and a real high-resolution image corresponding to the low-resolution scene text image, and inputting the training set into an image network model; S2: Reconstruct the low-resolution scene text image through the single image super-resolution model to obtain a universal super-resolution image, and construct a loss function based on the universal super-resolution image , to train a single image super-resolution model; S3. Based on the pre-trained text box recognition model, extract text boxes from the low-resolution scene text image and the general super-resolution image respectively to obtain low-resolution text boxes and super-resolution text boxes, reduce the super-resolution text box to the position of the low-resolution scene text image to form an overlapping area, expand the low-resolution text box with the largest overlap in the overlapping area to cover the current corresponding super-resolution text box, and for each low-resolution text box, cut out the corresponding text line image from the low-resolution scene text image, the real high-resolution image, and the general super-resolution image to obtain a low-resolution text line image, a real high-resolution text line image, and a super-resolution text line image; S4. Perform text prior processing on the input low-resolution text line image through the text image super-resolution model to obtain the text prior of the low-resolution image, and convert the text prior of the low-resolution image into the text features of the low-resolution image. At the same time, embed the text features of the low-resolution image into the super-resolution process of the low-resolution text line image to obtain the reconstructed super-resolution text line image, and construct the loss function To train a text image super-resolution model; S5. Based on the fusion model, the reconstructed super-resolution text line image replaces the super-resolution text line image in the general super-resolution image to obtain a complete new super-resolution image. The general super-resolution image and the complete new super-resolution image are then fused into a super-resolution image with doubled channels. Feature extraction is performed on the super-resolution image with doubled channels to obtain a super-resolution result of the low-resolution scene text image. A loss function is constructed based on the super-resolution result. To train the fusion model.

2. The hybrid scene text image super-resolution method according to claim 1, characterized in that: In step S2, the single image super-resolution model includes a shallow feature extraction module, a deep feature extraction module and a high-quality image reconstruction module, wherein the shallow feature extraction module includes a convolution layer, and the deep feature extraction module includes multiple layers of feature extraction layers connected in sequence, wherein the output of the previous feature extraction layer is used as the input of the next feature extraction layer, and the output of the last feature extraction layer is used as the output of the deep feature extraction module, and the single image super-resolution model performs image reconstruction on the low-resolution scene text image as follows: Given a low-resolution scene text image , obtain shallow features through the shallow feature extraction module ; Use deep feature extraction module to extract shallow features Extract deep features again ; Use high-quality image reconstruction module to take advantage of shallow features and deep features Reconstructing a universal super-resolution image , where the shallow features contains low-frequency information, while deep features contains the recovered high-frequency information.

3. The hybrid scene text image super-resolution method according to claim 2, characterized in that: Loss Function Generates the following: in, represents a general super-resolution image, Represents a real high-resolution image.

4. The hybrid-based scene text image super-resolution method according to claim 1, characterized in that: In step S3, the super-resolution text box is reduced to the position of the low-resolution scene text image to form an overlapped area, and the low-resolution text box with the largest overlap in the overlapped area is enlarged to cover all super-resolution text boxes, specifically: S31, according to the scaling ratio between the low-resolution scene text image and the general super-resolution image, scaling down the super-resolution text frame mapping to a corresponding position on the low-resolution scene text image; S32, calculating the overlapping area of ​​each reduced super-resolution text box with all low-resolution text boxes, dividing the overlapping area of ​​each text box by the larger area of ​​the corresponding super-resolution text box and the low-resolution text box, obtaining the overlapping degree of the text boxes and arranging them in descending order; S33, if the overlap degree of the first-ranked text box is less than the set overlap degree, a low-resolution text box is added to the low-resolution scene text image, and the process returns to step S32; S34, if the overlap degree of the first-ranked text box is greater than or equal to the set overlap degree, the upper coordinate and left coordinate of the low-resolution text box corresponding to the overlap degree of the first-ranked text box are set to the minimum value of the upper coordinate and left coordinate of the corresponding super-resolution text box, and the lower coordinate and right coordinate of the low-resolution text box are set to the maximum value of the lower coordinate and right coordinate of the corresponding super-resolution text box, so as to cover all super-resolution text boxes; S35, multiplying the four coordinates of all low-resolution text boxes by the scaling ratio to obtain the corresponding super-resolution text box position, which is used as the high-resolution text box position corresponding to the real high-resolution image.

5. The hybrid-based scene text image super-resolution method according to claim 1, characterized in that: In step S4, the text image super-resolution model includes a text prior generation module, a text prior interpretation module and a super-resolution module, wherein the text prior interpretation module includes an encoder and a decoder, both of which are composed of a multi-head self-attention layer and a feedforward neural network layer, and the super-resolution module is composed of multiple text prior guidance layers connected in sequence, and the loss function Including identification loss function And the reconstruction loss function ; The text prior generation module is used to generate a low-resolution text line image Perform text prior processing to obtain text prior of low-resolution images , the text prior generation module recognizes the loss function Perform parameter optimization; The text prior interpretation module is used to interpret the text prior of the low-resolution image. Text features converted to low-resolution images ; The super-resolution module is used to embed the text features of the low-resolution image into the super-resolution process of the low-resolution text line image to obtain a reconstructed super-resolution text line image. .

6. The hybrid-based scene text image super-resolution method according to claim 5, characterized in that: The recognition loss function The formula is as follows: The reconstruction loss function The formula is as follows: in, represents the text prior generation module, represents the KL divergence, and Represent two hyperparameters, represents the super-resolution text line image in the general super-resolution image, Represents real high-resolution text line images in real high-resolution images.

7. The hybrid-based scene text image super-resolution method according to claim 1, characterized in that: In step S5: replacing the super-resolution text line image in the universal super-resolution image with the reconstructed super-resolution text line image, if there is overlap between the obtained new super-resolution text line images, each channel of each overlapping pixel is replaced by the mean value corresponding to the value at this channel of all the reconstructed super-resolution text line images containing this pixel.

8. The hybrid-based scene text image super-resolution method according to claim 1, characterized in that: In step S5, the loss function The details are as follows: in, represents the super-resolution result, Represents a real high-resolution image.

9. A hybrid scene text image super-resolution system, characterized in that: The low-resolution image is fed into the trained image network model to output the super-resolution result of the low-resolution image; The image network model includes a single image super-resolution model, a pre-trained text box recognition model, a text image super-resolution model and a fusion model. The training process of the image network model is as follows: Constructing a training set, wherein the training set includes a low-resolution scene text image and a real high-resolution image corresponding to the low-resolution scene text image; The single image super-resolution model is used to reconstruct low-resolution scene text images to obtain a universal super-resolution image, and a loss function is constructed based on the universal super-resolution image. , to train a single image super-resolution model; The pre-trained text box recognition model is used to extract text boxes from the low-resolution scene text image and the general super-resolution image, respectively, to obtain low-resolution text boxes and super-resolution text boxes, to reduce the super-resolution text box to the position of the low-resolution scene text image to form an overlapping area, to expand a low-resolution text box with the largest overlap in the overlapping area to cover the current corresponding super-resolution text box, and for each low-resolution text box, to cut out the corresponding text line image from the low-resolution scene text image, the true high-resolution image, and the general super-resolution image, to obtain a low-resolution text line image, a true high-resolution text line image, and a super-resolution text line image; The text image super-resolution model is used to perform text prior processing on the input low-resolution text line image to obtain the text prior of the low-resolution image, and convert the text prior of the low-resolution image into the text features of the low-resolution image. At the same time, the text features of the low-resolution image are embedded into the super-resolution process of the low-resolution text line image to obtain the reconstructed super-resolution text line image and construct the loss function. To train a text image super-resolution model; The fusion model is used to replace the super-resolution text line image in the general super-resolution image with the reconstructed super-resolution text line image to obtain a reconstructed super-resolution image, and then fuse the general super-resolution image and the reconstructed super-resolution image into a super-resolution image with doubled channels. Feature extraction is performed on the super-resolution image with doubled channels to obtain a super-resolution result of the low-resolution scene text image, and a loss function is constructed based on the super-resolution result. To train the fusion model.