Image super-resolution method, device, storage medium, and program product

By adopting two types of model division processing and fusion technology in super-resolution processing, the problem of poor text image processing effects in the existing technology is solved, and a more natural and efficient image super-resolution effect is achieved.

WO2024198952A1PCT designated stage expired Publication Date: 2024-10-03BEIJING ZITIAO NETWORK TECH CO LTD

Patent Information

Application Number
PCT/CN2024/081634
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-31
Filing Date
2024-03-14
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Existing super-resolution models are prone to produce unnatural artifacts when processing images containing text, resulting in poor super-resolution effects in the text part, especially in user-generated content where the text and background have complex distribution and structures. Below, there will be severe discoloration of the text.

Method used

Two super-resolution models are used to divide the work: the first super-resolution model processes the overall image, and the second super-resolution model specifically processes the text area, and fuses the two to obtain the target super-resolution image. Through detection and overlay super-resolution images of text areas to optimize the effects of text and non-text areas.

Benefits of technology

Through this method, the effect of super-resolution processing of images containing text is significantly improved, so that both text areas and non-text areas get better processing results, the overall super-resolution effect of the image is improved, and artifacts are reduced and discoloration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024081634_03102024_PF_FP_ABST
    Figure CN2024081634_03102024_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present invention provide an image super-resolution method, a device, a storage medium, and a program product. The method comprises: acquiring an image to be processed, wherein display content of the image to be processed comprises text; according to a first super-resolution model, processing the image to be processed to obtain a first super-resolution image corresponding to the image to be processed; according to a second super-resolution model, processing the image to be processed to obtain a second super-resolution image corresponding to a text area of the image to be processed, wherein a super-resolution effect of the second super-resolution model on the text area is superior to that of the first super-resolution model; and fusing the first super-resolution image and the second super-resolution image to obtain a target super-resolution image corresponding to the image to be processed.
Need to check novelty before this filing date? Find Prior Art

Description

Image super-resolution method, device, storage medium and program product

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on and claims priority to an application filed in China with application number 202310345195.2 and filing date March 31, 2023. The disclosed content of the Chinese application is hereby introduced as a whole into this application. Technical Field

[0003] The embodiments of the present disclosure relate to the field of computer and network communication technology, and in particular to an image super-resolution method, device, storage medium, and program product. Background Art

[0004] Super-resolution is the process of improving the resolution of the original image, aiming to enhance the resolution and restore details of the image.

[0005] In a related technology, a super-resolution model is used to perform super-resolution processing on images. However, since images often contain a large amount of different content and different images have different distributions and structures, especially images containing text, the text structure and the distribution of natural images are quite different. When a general super-resolution model is used to perform super-resolution processing on images containing text, unnatural artifacts are easily generated, and the super-resolution effect on the text part is poor.

[0006] Summary of the Invention

[0007] The embodiments of the present disclosure provide an image super-resolution method, device, storage medium, and program product to improve the super-resolution effect of images containing text.

[0008] In a first aspect, an embodiment of the present disclosure provides an image super-resolution method, comprising:

[0009] Acquire an image to be processed, wherein the display content of the image to be processed includes text;

[0010] Processing the image to be processed according to a first super-resolution model to obtain a first super-resolution image corresponding to the image to be processed;

[0011] Processing the image to be processed according to a second super-resolution model to obtain a second super-resolution image corresponding to the text area of ​​the image to be processed; wherein the second super-resolution model has a better super-resolution effect on the text area than the first super-resolution model;

[0012] The first super-resolution image and the second super-resolution image are fused to obtain a target super-resolution image corresponding to the image to be processed.

[0013] In a second aspect, an embodiment of the present disclosure provides an image super-resolution device, comprising:

[0014] an acquiring unit, configured to acquire an image to be processed, wherein the display content of the image to be processed includes text;

[0015] A first super-resolution unit is configured to process the image to be processed according to a first super-resolution model to obtain a first super-resolution image corresponding to the image to be processed;

[0016] a second super-resolution unit, configured to process the image to be processed according to a second super-resolution model to obtain a second super-resolution image corresponding to the text region of the image to be processed, wherein the second super-resolution model has a better super-resolution effect on the text region than the first super-resolution model;

[0017] A fusion unit is used to fuse the first super-resolution image and the second super-resolution image to obtain a target super-resolution image corresponding to the image to be processed.

[0018] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor and a memory;

[0019] The memory stores computer-executable instructions;

[0020] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the image super-resolution method described in the first aspect and various possible designs of the first aspect.

[0021] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the image super-resolution method described in the first aspect and various possible designs of the first aspect is implemented.

[0022] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, comprising computer-executable instructions. When a processor executes the computer-executable instructions, the image super-resolution method as described in the first aspect and various possible designs of the first aspect is implemented.

[0023] The image super-resolution method, device, storage medium, and program product provided by the embodiments of the present disclosure are as follows: obtaining an image to be processed, wherein the display content of the image to be processed includes text; processing the image to be processed according to a first super-resolution model to obtain a first super-resolution image corresponding to the image to be processed; processing the image to be processed according to a second super-resolution model to obtain a second super-resolution image corresponding to the text area of ​​the image to be processed; wherein the second super-resolution model has a better super-resolution effect on the text area than the first super-resolution model; and fusing the first super-resolution image and the second super-resolution image to obtain a target super-resolution image corresponding to the image to be processed. By dividing the work of processing the image containing text with the two super-resolution models, both the text area and the non-text area obtain better super-resolution effects, thereby improving the overall super-resolution effect of the image containing text. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or related technologies, the following is a brief introduction to the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0025] FIG1 is an example diagram of an application scenario of an image super-resolution method provided by an embodiment of the present disclosure;

[0026] FIG2 is a flow chart of an image super-resolution method according to an embodiment of the present disclosure;

[0027] FIG3a is a schematic flow chart of an image super-resolution method provided by another embodiment of the present disclosure;

[0028] FIG3 b is a schematic flow chart of an image super-resolution method provided by another embodiment of the present disclosure;

[0029] FIG4a is a schematic flow chart of an image super-resolution method provided by another embodiment of the present disclosure;

[0030] FIG4 b is a schematic flow chart of an image super-resolution method provided by another embodiment of the present disclosure;

[0031] FIG5 is a structural block diagram of an image super-resolution device provided by an embodiment of the present disclosure;

[0032] FIG6 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0033] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.

[0034] In a related technology, a super-resolution model is used to perform super-resolution processing on images. However, since images often contain a large amount of different content, and different images have different distributions and structures, especially images containing text, the text structure and natural image distribution are quite different.

[0035] When using a general super-resolution model to perform super-resolution processing on images containing text, since the training data sets of the general super-resolution model are mostly natural scenes with less text, and the text structure and natural image distribution are quite different, the super-resolution model is more suitable for super-resolution processing of natural scene images, but is not good at super-resolution processing of images containing text, which makes it easy for unnatural artifacts to be generated in the text part, and the super-resolution effect of the text part is poor.

[0036] In order to improve the super-resolution effect of the text part, a dedicated text super-resolution model can be used for processing. However, a dedicated text super-resolution model usually only focuses on processing the text part, and the training data set is monotonous, with only images of the text part. When processing text in real images, especially UGC (User Generated Content) images, the distribution and structure of text and background may be more complex. Since non-text areas (such as background) are not taken into account, the text part will exhibit more serious discoloration (color cast).

[0037] In order to solve the above technical problems, the embodiment of the present disclosure provides an image super-resolution method, which comprises obtaining an image to be processed, wherein the display content of the image to be processed includes text; processing the image to be processed according to a first super-resolution model to obtain a first super-resolution image corresponding to the image to be processed; processing the image to be processed according to a second super-resolution model to obtain a second super-resolution image corresponding to the text area of ​​the image to be processed; wherein the second super-resolution model has a better super-resolution effect on the text area than the first super-resolution model; and fusing the first super-resolution image and the second super-resolution image to obtain a target super-resolution image corresponding to the image to be processed. By dividing the work of processing the image containing text with the two super-resolution models, both the text area and the non-text area obtain better super-resolution effects, thereby improving the overall super-resolution effect of the image containing text.

[0038] The application scenario of the image super-resolution method provided by the present invention is shown in Figure 1. Its execution subject can be a processing device such as a server or a terminal device. The image to be processed is input into the processing device. In the processing device, the image to be processed is processed by two super-resolution models. The image to be processed is processed according to the first super-resolution model to obtain a first super-resolution image corresponding to the image to be processed; the image to be processed is processed according to the second super-resolution model to obtain a second super-resolution image corresponding to the text area of ​​the image to be processed; and the first super-resolution image and the second super-resolution image are fused to obtain a target super-resolution image corresponding to the image to be processed, and output or display it.

[0039] The image super-resolution method disclosed herein will be described in detail below with reference to specific embodiments.

[0040] 2 is a flowchart of an image super-resolution method according to an embodiment of the present disclosure. The method of this embodiment can be applied in a terminal device or a server, and the image super-resolution method includes steps S201-S204.

[0041] S201: Acquire an image to be processed, wherein the display content of the image to be processed includes text.

[0042] In this embodiment, when a certain processed image containing text needs to be super-resolution processed, the image to be processed is first acquired. The specific process of processing the image to be processed is not limited in this embodiment.

[0043] S202: Process the image to be processed according to a first super-resolution model to obtain a first super-resolution image corresponding to the image to be processed.

[0044] In this embodiment, the first super-resolution model is a general model for super-resolution processing of images and can be pre-trained. Its training data can be any high-resolution image and its corresponding degraded image, where the degraded image has a lower resolution than the high-resolution image. The degraded image serves as the input to the first super-resolution model, and the corresponding high-resolution image serves as the ground truth for training the first super-resolution model. In some embodiments, the high-resolution images in the training data for the first super-resolution model can include both images containing text and images without text. Therefore, the trained first super-resolution model can perform super-resolution processing on both images containing text and images without text. However, due to the lack of targeted training, the first super-resolution model performs poorly on images containing text. Alternatively, the first super-resolution model training data can include only high-resolution images without text, allowing the first super-resolution model to be trained in a targeted manner, resulting in better performance on images without text. It should be noted that this embodiment does not limit the specific model of the first super-resolution model and can be any machine learning model or other model.

[0045] In this embodiment, based on the first super-resolution model obtained by the above training, super-resolution processing is performed on the entire image to be processed, that is, the image to be processed is input into the first super-resolution model, and the first super-resolution model performs super-resolution processing and outputs a first super-resolution image corresponding to the image to be processed. Since the first super-resolution model has not been specifically trained for super-resolution processing of text, the first super-resolution model has a relatively good super-resolution effect on non-text areas in the image, but a relatively poor super-resolution effect on text areas.

[0046] S203. Process the image to be processed according to a second super-resolution model to obtain a second super-resolution image corresponding to the text area of ​​the image to be processed; wherein the second super-resolution model has a better super-resolution effect on the text area than the first super-resolution model.

[0047] In this embodiment, the second super-resolution model is pre-trained specifically for images containing text, resulting in better super-resolution results for text regions. In particular, the second super-resolution model achieves better super-resolution results for text regions than the first super-resolution model. Its training data can be any high-resolution image containing text and its corresponding degraded image, where the degraded image has a lower resolution than the high-resolution image. The degraded image serves as input for the second super-resolution model, and the corresponding high-resolution image serves as the ground truth for training the second super-resolution model. It should be noted that this embodiment does not limit the specific model of the second super-resolution model; it can be any machine learning model or other model.

[0048] In this embodiment, based on the second super-resolution model obtained by the above training, super-resolution processing is performed on the image to be processed. Super-resolution processing can be performed only on the text area of ​​the image to be processed, or super-resolution processing can be performed on the entire image to be processed, and finally a second super-resolution image corresponding to the text area of ​​the image to be processed is obtained.

[0049] It should be noted that there is no restriction on the order in which S203 and S204 are executed.

[0050] S204: Fusing the first super-resolution image and the second super-resolution image to obtain a target super-resolution image corresponding to the image to be processed.

[0051] In this embodiment, since the first super-resolution image is a super-resolution image corresponding to the entire image to be processed, and the second super-resolution image is only a super-resolution image corresponding to the text area in the image to be processed, and the super-resolution effect of the text area in the second super-resolution image is better than that of the text area in the first super-resolution image, the second super-resolution image can be fused with the first super-resolution image, and the text area in the first super-resolution image is replaced by the text area in the second super-resolution image to obtain the target super-resolution image corresponding to the image to be processed, so that the super-resolution effect of both the text area and the non-text area is relatively good.

[0052] Among them, when performing fusion, the second super-resolution image can be superimposed on the first super-resolution image according to the position of the text area in the image to be processed. Through image superposition, the text area in the second super-resolution image can cover the text area in the first super-resolution image, thereby realizing the replacement of the text area.

[0053] Furthermore, considering that the first super-resolution image and the second super-resolution image are generated by different models and there may be certain differences between them, if the second super-resolution image is directly superimposed on the first super-resolution image, the boundary between the second super-resolution image and the first super-resolution image may be more obvious. Therefore, in this embodiment, after the second super-resolution image is superimposed on the first super-resolution image, the boundary between the second super-resolution image and the first super-resolution image can be smoothed to make the boundary transition smoothly, so that the second super-resolution image and the first super-resolution image are better fused, and the boundary between the second super-resolution image and the first super-resolution image is not obvious.

[0054] The image super-resolution method provided in this embodiment obtains an image to be processed, wherein the display content of the image to be processed includes text; processes the image to be processed according to a first super-resolution model to obtain a first super-resolution image corresponding to the image to be processed; processes the image to be processed according to a second super-resolution model to obtain a second super-resolution image corresponding to the text area of ​​the image to be processed; wherein the second super-resolution model has a better super-resolution effect on the text area than the first super-resolution model; and fuses the first super-resolution image and the second super-resolution image to obtain a target super-resolution image corresponding to the image to be processed. By dividing the work of processing the image containing text with the two super-resolution models, both the text area and the non-text area achieve better super-resolution effects, thereby improving the overall super-resolution effect of images containing text.

[0055] In an optional embodiment, the processing of the image to be processed according to the second super-resolution model in S203 to obtain a second super-resolution image corresponding to the text area of ​​the image to be processed may include:

[0056] S301, detecting a text area from the image to be processed, and capturing an image of the text area;

[0057] S302: Input the text region image into the second super-resolution model, and use the second super-resolution model to perform a super-resolution operation on the text region image to obtain the second super-resolution image.

[0058] In this embodiment, referring to FIG3b, when obtaining the second super-resolution image, the text region of the image to be processed can be first detected by the text detection model, and one or more low-quality text region images can be cut out based on the detection results (text detection boxes). The text region images are separately input into the second super-resolution model, so that the second super-resolution model performs super-resolution operation only on the text region images to obtain a second super-resolution image corresponding to the text region, which is then fused with the first super-resolution image obtained by the first super-resolution model to obtain the target super-resolution image. In this embodiment, the second super-resolution model does not need to perform super-resolution processing on the entire image to be processed, but only performs super-resolution processing on the text region images, avoiding redundant calculations, greatly improving the processing efficiency of the second super-resolution model, and reducing resource utilization.

[0059] In another optional embodiment, the processing of the image to be processed according to the second super-resolution model in S203 to obtain a second super-resolution image corresponding to the text area of ​​the image to be processed, as shown in FIG4a , may include:

[0060] S401: Input the image to be processed into the second super-resolution model, and perform a super-resolution operation on the image to be processed using the second super-resolution model to obtain a third super-resolution image corresponding to the image to be processed;

[0061] S402: Detect a text area from the third super-resolution image, and capture an image of the text area as the second super-resolution image.

[0062] In this embodiment, although redundant computation is minimal during S301-S302, text detection may fail when dealing with extremely low-quality (low-definition) text images. This means that the extremely low-quality text in the processed image cannot be accurately detected, resulting in an inability to obtain a corresponding second super-resolution image. Therefore, in this embodiment, referring to FIG4b , when obtaining the second super-resolution image, the second super-resolution model is preferentially used to perform super-resolution processing on the entire processed image. Specifically, the processed image is input to the second super-resolution model for super-resolution processing, resulting in a third super-resolution image corresponding to the processed image. The clarity of the text region in the third super-resolution image is significantly improved, allowing the text detection model to accurately detect the text region, resulting in a more accurate text detection frame. The text region image is then captured as the second super-resolution image, which is then fused with the first super-resolution image obtained by the first super-resolution model to obtain the target super-resolution image. Although this embodiment involves redundant computation and a relatively large amount of computation, it ensures that corresponding second super-resolution images can be stably obtained even for images containing relatively low-definition text, avoiding the problem of low-definition text failing to be detected by the text detection model and, therefore, unable to be processed by the second super-resolution model.

[0063] Based on the above embodiment, the first super-resolution model can be trained using a conventional training method, and its training data can be any high-resolution image and a corresponding degraded image. The resolution of the degraded image is lower than that of the high-resolution image, where the high-resolution image can include images containing text and images without text, or the high-resolution image can only include images without text. During the training process, the degraded image is used as the input of the first super-resolution model, and the corresponding high-resolution image is used as the true value. The specific training process will not be repeated here.

[0064] Based on the above embodiment, the second super-resolution model can also be trained using a conventional training method. Multiple high-resolution original images containing text and degraded images corresponding to the original images can be obtained, where the resolution of the degraded images is lower than that of the corresponding original images. Each group of original images and the corresponding degraded images are used as training data. During the training process, the degraded images are used as input to the second super-resolution model, and the corresponding high-resolution original images are used as ground truth to train the second super-resolution model. The specific training process is not repeated here. In this embodiment, since each image in the training data includes a text area and a background (non-text area), the text and its background are included in the training together. Compared with other text super-resolution data sets (only the pure text portion of the image is used for training), the second super-resolution model can better perform super-resolution processing on text of different colors and reduce color cast.

[0065] In some embodiments, when obtaining multiple original images containing text and degraded images corresponding to the original images, multiple original images containing text can be obtained, for example, a large number of high-resolution original images containing more text are collected from professional data sets and UGC scenarios, and each of the original images is degraded by simulating the degradation process to obtain the corresponding degraded image.

[0066] In some embodiments, the actual image super-resolution process involves many screenshots from videos. These screenshots, when compressed and stored, contain not only noise from image compression but also noise from video compression. Therefore, the second super-resolution model obtained by training only with image datasets cannot effectively handle artifacts in video screenshots. Text, in particular, has a strong structural nature, and artifacts generated by video compression and image compression can differ significantly. Therefore, this embodiment introduces video screenshots containing text as training data.

[0067] Specifically, a video file containing text can be obtained, and an original video frame containing text can be obtained as the original image; the video file is compressed, thereby increasing video compression noise, that is, the video frame obtained from the compressed video file has video compression noise; based on the original video frame, a corresponding target video frame is obtained from the compressed video file; the target video frame is degraded, that is, image compression noise is increased, and a degraded image corresponding to the original image is obtained, which has both video compression noise and image compression noise. A second super-resolution image is trained based on such original image and degraded image, and the second super-resolution image can achieve better super-resolution effect on the text in the video screenshot.

[0068] Corresponding to the image super-resolution method described in the preceding embodiment, FIG5 is a block diagram of the image super-resolution apparatus provided in the present embodiment. For ease of illustration, only the portions relevant to the present embodiment are shown. Referring to FIG5 , the image super-resolution apparatus 500 includes an acquisition unit 501, a first super-resolution unit 502, a second super-resolution unit 503, and a fusion unit 504.

[0069] The acquiring unit 501 is configured to acquire an image to be processed, wherein the display content of the image to be processed includes text;

[0070] A first super-resolution unit 502 is configured to process the image to be processed according to a first super-resolution model to obtain a first super-resolution image corresponding to the image to be processed;

[0071] A second super-resolution unit 503 is configured to process the image to be processed according to a second super-resolution model to obtain a second super-resolution image corresponding to the text region of the image to be processed; wherein the second super-resolution model has a better super-resolution effect on the text region than the first super-resolution model;

[0072] The fusion unit 504 is configured to fuse the first super-resolution image and the second super-resolution image to obtain a target super-resolution image corresponding to the image to be processed.

[0073] In one or more embodiments of the present disclosure, when the second super-resolution unit 503 processes the image to be processed according to the second super-resolution model to obtain the second super-resolution image corresponding to the text area of ​​the image to be processed, it is configured to:

[0074] Detecting a text area from the image to be processed and capturing an image of the text area;

[0075] The text area image is input into the second super-resolution model, and the second super-resolution model is used to perform a super-resolution operation on the text area image to obtain the second super-resolution image.

[0076] In one or more embodiments of the present disclosure, when the second super-resolution unit 503 processes the image to be processed according to the second super-resolution model to obtain the second super-resolution image corresponding to the text area of ​​the image to be processed, it is configured to:

[0077] Inputting the image to be processed into the second super-resolution model, and performing a super-resolution operation on the image to be processed using the second super-resolution model to obtain a third super-resolution image corresponding to the image to be processed;

[0078] A text area is detected from the third super-resolution image, and an image of the text area is captured as the second super-resolution image.

[0079] In one or more embodiments of the present disclosure, when fusing the first super-resolution image and the second super-resolution image, the fusion unit 504 is configured to:

[0080] The second super-resolution image is superimposed on the first super-resolution image according to the position of the text area in the image to be processed.

[0081] In one or more embodiments of the present disclosure, after superimposing the second super-resolution image on the first super-resolution image, the fusion unit 504 is further configured to:

[0082] A smoothing process is performed on a boundary position between the second super-resolution image and the first super-resolution image.

[0083] In one or more embodiments of the present disclosure, the device further includes a training unit configured to:

[0084] Acquire a plurality of original images containing text and degraded images corresponding to the original images, wherein the resolution of the degraded images is lower than that of the corresponding original images;

[0085] Each group of original images and the corresponding degraded images are used as training data, and the second super-resolution model is trained according to the training data.

[0086] In one or more embodiments of the present disclosure, when acquiring a plurality of original images containing text and degraded images corresponding to the original images, the training unit is configured to:

[0087] A plurality of original images containing text are obtained, and each of the original images is degraded to obtain a corresponding degraded image.

[0088] In one or more embodiments of the present disclosure, when acquiring a plurality of original images containing text and degraded images corresponding to the original images, the training unit is configured to:

[0089] Obtaining a video file containing text, and obtaining an original video frame containing text as the original image;

[0090] compressing the video file to increase video compression noise;

[0091] According to the original video frame, obtaining a corresponding target video frame from the compressed video file;

[0092] The target video frame is degraded to obtain a degraded image corresponding to the original image.

[0093] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail in this embodiment.

[0094] Referring to FIG6 , a schematic diagram of the structure of an electronic device 600 suitable for implementing an embodiment of the present disclosure is shown. The electronic device 600 may be a terminal device or a server. The terminal device may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG6 is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.

[0095] As shown in Figure 6, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. Various programs and data required for the operation of the electronic device 600 are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0096] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although FIG. 6 shows an electronic device 600 having various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.

[0097] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

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

[0099] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0100] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0101] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider).

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

[0103] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."

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

[0105] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0106] In a first aspect, according to one or more embodiments of the present disclosure, a method for image super-resolution is provided, comprising:

[0107] Acquire an image to be processed, wherein the display content of the image to be processed includes text;

[0108] Processing the image to be processed according to a first super-resolution model to obtain a first super-resolution image corresponding to the image to be processed;

[0109] Processing the image to be processed according to a second super-resolution model to obtain a second super-resolution image corresponding to the text area of ​​the image to be processed; wherein the second super-resolution model has a better super-resolution effect on the text area than the first super-resolution model;

[0110] The first super-resolution image and the second super-resolution image are fused to obtain a target super-resolution image corresponding to the image to be processed.

[0111] According to one or more embodiments of the present disclosure, processing the image to be processed according to the second super-resolution model to obtain a second super-resolution image corresponding to the text area of ​​the image to be processed includes:

[0112] Detecting a text area from the image to be processed and capturing an image of the text area;

[0113] The text area image is input into the second super-resolution model, and the second super-resolution model is used to perform a super-resolution operation on the text area image to obtain the second super-resolution image.

[0114] According to one or more embodiments of the present disclosure, processing the image to be processed according to the second super-resolution model to obtain a second super-resolution image corresponding to the text area of ​​the image to be processed includes:

[0115] Inputting the image to be processed into the second super-resolution model, and performing a super-resolution operation on the image to be processed using the second super-resolution model to obtain a third super-resolution image corresponding to the image to be processed;

[0116] A text area is detected from the third super-resolution image, and an image of the text area is captured as the second super-resolution image.

[0117] According to one or more embodiments of the present disclosure, fusing the first super-resolution image and the second super-resolution image includes:

[0118] The second super-resolution image is superimposed on the first super-resolution image according to the position of the text area in the image to be processed.

[0119] According to one or more embodiments of the present disclosure, after superimposing the second super-resolution image on the first super-resolution image, the method further includes:

[0120] A smoothing process is performed on a boundary position between the second super-resolution image and the first super-resolution image.

[0121] According to one or more embodiments of the present disclosure, the method further includes:

[0122] Acquire a plurality of original images containing text and degraded images corresponding to the original images, wherein the resolution of the degraded images is lower than that of the corresponding original images;

[0123] Each group of original images and the corresponding degraded images are used as training data, and the second super-resolution model is trained according to the training data.

[0124] According to one or more embodiments of the present disclosure, obtaining a plurality of original images containing text and degraded images corresponding to the original images includes:

[0125] A plurality of original images containing text are obtained, and each of the original images is degraded to obtain a corresponding degraded image.

[0126] According to one or more embodiments of the present disclosure, obtaining a plurality of original images containing text and degraded images corresponding to the original images includes:

[0127] Obtaining a video file containing text, and obtaining an original video frame containing text as the original image;

[0128] compressing the video file to increase video compression noise;

[0129] According to the original video frame, obtaining a corresponding target video frame from the compressed video file;

[0130] The target video frame is degraded to obtain a degraded image corresponding to the original image.

[0131] In a second aspect, according to one or more embodiments of the present disclosure, there is provided an image super-resolution device, comprising:

[0132] an acquiring unit, configured to acquire an image to be processed, wherein the display content of the image to be processed includes text;

[0133] A first super-resolution unit is configured to process the image to be processed according to a first super-resolution model to obtain a first super-resolution image corresponding to the image to be processed;

[0134] a second super-resolution unit, configured to process the image to be processed according to a second super-resolution model to obtain a second super-resolution image corresponding to the text region of the image to be processed, wherein the second super-resolution model has a better super-resolution effect on the text region than the first super-resolution model;

[0135] A fusion unit is used to fuse the first super-resolution image and the second super-resolution image to obtain a target super-resolution image corresponding to the image to be processed.

[0136] According to one or more embodiments of the present disclosure, when the second super-resolution unit processes the image to be processed according to the second super-resolution model to obtain the second super-resolution image corresponding to the text area of ​​the image to be processed, it is configured to:

[0137] Detecting a text area from the image to be processed and capturing an image of the text area;

[0138] The text area image is input into the second super-resolution model, and the second super-resolution model is used to perform a super-resolution operation on the text area image to obtain the second super-resolution image.

[0139] According to one or more embodiments of the present disclosure, when the second super-resolution unit processes the image to be processed according to the second super-resolution model to obtain the second super-resolution image corresponding to the text area of ​​the image to be processed, it is configured to:

[0140] Inputting the image to be processed into the second super-resolution model, and performing a super-resolution operation on the image to be processed using the second super-resolution model to obtain a third super-resolution image corresponding to the image to be processed;

[0141] A text area is detected from the third super-resolution image, and an image of the text area is captured as the second super-resolution image.

[0142] According to one or more embodiments of the present disclosure, when fusing the first super-resolution image and the second super-resolution image, the fusion unit is configured to:

[0143] The second super-resolution image is superimposed on the first super-resolution image according to the position of the text area in the image to be processed.

[0144] According to one or more embodiments of the present disclosure, after superimposing the second super-resolution image on the first super-resolution image, the fusion unit is further configured to:

[0145] A smoothing process is performed on a boundary position between the second super-resolution image and the first super-resolution image.

[0146] According to one or more embodiments of the present disclosure, the device further includes a training unit configured to:

[0147] Acquire a plurality of original images containing text and degraded images corresponding to the original images, wherein the resolution of the degraded images is lower than that of the corresponding original images;

[0148] Each group of original images and the corresponding degraded images are used as training data, and the second super-resolution model is trained according to the training data.

[0149] According to one or more embodiments of the present disclosure, when acquiring a plurality of original images containing text and degraded images corresponding to the original images, the training unit is configured to:

[0150] A plurality of original images containing text are obtained, and each of the original images is degraded to obtain a corresponding degraded image.

[0151] According to one or more embodiments of the present disclosure, when acquiring a plurality of original images containing text and degraded images corresponding to the original images, the training unit is configured to:

[0152] Obtaining a video file containing text, and obtaining an original video frame containing text as the original image;

[0153] compressing the video file to increase video compression noise;

[0154] According to the original video frame, obtaining a corresponding target video frame from the compressed video file;

[0155] The target video frame is degraded to obtain a degraded image corresponding to the original image.

[0156] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;

[0157] The memory stores computer-executable instructions;

[0158] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the image super-resolution method described in the first aspect and various possible designs of the first aspect.

[0159] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the image super-resolution method described in the first aspect and various possible designs of the first aspect is implemented.

[0160] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, comprising computer-executable instructions. When a processor executes the computer-executable instructions, the image super-resolution method as described in the first aspect and various possible designs of the first aspect is implemented.

[0161] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0162] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0163] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. An image super-resolution method, include: Acquire an image to be processed, wherein the display content of the image to be processed includes text; Processing the image to be processed according to a first super-resolution model to obtain a first super-resolution image corresponding to the image to be processed; Processing the image to be processed according to a second super-resolution model to obtain a second super-resolution image corresponding to a text region of the image to be processed, wherein the second super-resolution model has a better super-resolution effect on the text region than the first super-resolution model; The first super-resolution image and the second super-resolution image are fused to obtain a target super-resolution image corresponding to the image to be processed.

2. The image super-resolution method according to claim 1, in, The step of processing the image to be processed according to the second super-resolution model to obtain a second super-resolution image corresponding to a text area of ​​the image to be processed includes: Detecting a text area from the image to be processed and capturing an image of the text area; The text area image is input into the second super-resolution model, and the second super-resolution model is used to perform a super-resolution operation on the text area image to obtain the second super-resolution image.

3. The square image super-resolution method according to claim 1 or 2, in, The step of processing the image to be processed according to the second super-resolution model to obtain a second super-resolution image corresponding to a text area of ​​the image to be processed includes: Inputting the image to be processed into the second super-resolution model, and performing a super-resolution operation on the image to be processed using the second super-resolution model to obtain a third super-resolution image corresponding to the image to be processed; A text area is detected from the third super-resolution image, and an image of the text area is captured as the second super-resolution image.

4. The image super-resolution method according to any one of claims 1 to 3, in, The fusing the first super-resolution image and the second super-resolution image comprises: The second super-resolution image is superimposed on the first super-resolution image according to the position of the text area in the image to be processed.

5. The image super-resolution method according to claim 4, in, After superimposing the second super-resolution image onto the first super-resolution image, the method further comprises: A smoothing process is performed on a boundary position between the second super-resolution image and the first super-resolution image.

6. The image super-resolution method according to any one of claims 1 to 3, in, The fusing the first super-resolution image and the second super-resolution image comprises: The text region in the first super-resolution image is replaced by the text region in the second super-resolution image.

7. The image super-resolution method according to any one of claims 1 to 6, further comprising: include: Acquire a plurality of original images containing text and degraded images corresponding to the original images, wherein the resolution of the degraded images is lower than the corresponding original images; Each group of original images and the corresponding degraded images are used as training data, and the second super-resolution model is trained according to the training data.

8. The image super-resolution method according to claim 7, in, The obtaining of a plurality of original images containing text and degraded images corresponding to the original images includes: A plurality of original images containing text are obtained, and each of the original images is degraded to obtain a corresponding degraded image.

9. The image super-resolution method according to claim 7, in, The obtaining of a plurality of original images containing text and degraded images corresponding to the original images includes: Acquire a video file containing text, and acquire an original video frame containing text as the original image; compressing the video file to increase video compression noise; According to the original video frame, obtaining a corresponding target video frame from a compressed video file; The target video frame is degraded to obtain a degraded image corresponding to the original image.

10. The image super-resolution method according to any one of claims 1 to 9, in, The first super-resolution model has a better super-resolution effect on non-text areas than on text areas.

11. An image super-resolution device, include: An acquisition unit, used for acquiring an image to be processed, wherein the display content of the image to be processed includes text; A first super-resolution unit, configured to process the image to be processed according to a first super-resolution model to obtain a first super-resolution image corresponding to the image to be processed; A second super-resolution unit is used to process the image to be processed according to a second super-resolution model to obtain a second super-resolution image corresponding to the text area of ​​the image to be processed; wherein the second super-resolution model has a better super-resolution effect on the text area than the first super-resolution model; A fusion unit is used to fuse the first super-resolution image and the second super-resolution image to obtain a target super-resolution image corresponding to the image to be processed.

12. An electronic device, include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the image super-resolution method according to any one of claims 1 to 10.

13. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the image super-resolution method according to any one of claims 1 to 10 is implemented.

14. A computer program product, comprising computer-executable instructions, wherein when a processor executes the computer-executable instructions, the image super-resolution method according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • Calligraphy background reconstruction method based on image super resolution

    CN106340027A

  • Text image super-resolution method

    CN110415176A

  • Character image processing method and device, equipment and storage medium

    CN112785501A

  • Image processing method and device, storage medium and electronic equipment

    CN114972020A

Cited By

  • Super-resolution method and system of video, electronic equipment and storage medium

    CN120852166A