Video subtitle removal method and device and storage medium

The pre-trained neural network model is used to perform semantic segmentation and content-aware filling of video subtitles, which solves the problem of image detail loss in the existing technology, achieves efficient video subtitle removal, and supports multi-language subtitle adaptation under the trend of globalization.

CN118629045APending Publication Date: 2024-09-10SHENZHEN MAIFENG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410663967.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing video subtitle removal technology is based on image repair methods, which results in loss of image details and cannot effectively support multi-language subtitle adaptation under the trend of globalization.

Method used

A pre-trained neural network model is used for semantic segmentation and content-aware filling. By decomposing the video into image frames, semantic segmentation is performed to identify subtitle areas, and image details are restored through content-aware filling, and finally video synthesis is performed to generate the target video.

Benefits of technology

Efficiently process a large number of video frames in a short time, retain the original details of the video, reduce the loss of image details caused by pixel filling, and support rapid multi-language subtitle adaptation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629045A
    Figure CN118629045A
Patent Text Reader

Abstract

The invention relates to the field of image processing, and discloses a video subtitle removal method and device, and a storage medium. The method comprises the following steps: when a to-be-processed video is received, decomposing the to-be-processed video into an image frame set; taking the image frame set as an input parameter of a pre-trained neural network model; performing semantic segmentation operation on the image frame set through a neural network model to obtain a subtitle-free image frame set; performing content-aware filling on the subtitle-free image frame set through a neural network model to obtain a target image frame set; and according to the subtitle-free image frame set, executing a video synthesis operation to obtain a target video. In the embodiment of the invention, the loss of image details caused by simple pixel filling is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing, and in particular to a method, a device and a storage medium for removing video subtitles. Background Art

[0002] With the popularity of various short plays, there is a trend of globalization. Therefore, in order to cope with globalization, the subtitles of the short plays need to be adapted to multiple languages. The original video file has already integrated the subtitles and the video screen together, so video subtitle clearing technology is needed.

[0003] The current removal technology is based on the image restoration method, which removes subtitles from the video by using an image restoration algorithm. For example, the original image is restored by filling the pixels around the subtitle area. However, this method will cause the loss of image details. A new technical means is needed to solve the above technical problems. Summary of the invention

[0004] The main purpose of the present invention is to solve the technical problem that video subtitle removal technology may cause loss of image details.

[0005] A first aspect of the present invention provides a method for removing video subtitles, the method comprising:

[0006] When receiving a video to be processed, decomposing the video to be processed into a set of image frames;

[0007] Using the image frame set as input parameters of a pre-trained neural network model;

[0008] Performing a semantic segmentation operation on the image frame set by using the neural network model to obtain a non-captioned image frame set;

[0009] Performing content-aware filling on the non-captioned image frame set by using the neural network model to obtain a target image frame set;

[0010] A video synthesis operation is performed according to the target image frame set to obtain a target video.

[0011] Optionally, in a first implementation manner of the first aspect of the present invention, before the step of decomposing the video to be processed into a set of image frames when receiving the video to be processed, the method further includes:

[0012] Collect sample data;

[0013] Divide the sample data into a training set, a validation set and a test set;

[0014] A model training operation is performed on a preset neural network model according to the training set, the validation set and the test set to obtain the pre-trained neural network model.

[0015] Optionally, in a second implementation of the first aspect of the present invention, the step of collecting sample data and dividing the sample data into a training set, a validation set, and a test set includes:

[0016] Collecting videos containing subtitles to obtain a first video set, and collecting videos not containing subtitles to obtain a second video set;

[0017] The second video set is used as label data, and the first video set and the second video set are merged to obtain sample data.

[0018] Optionally, in a third implementation manner of the first aspect of the present invention, the step of performing a video synthesis operation according to the target image frame set to obtain a target video includes:

[0019] Performing a video synthesis operation according to the target image frame set to obtain a video to be evaluated;

[0020] Determine whether the video to be evaluated meets the preset indicators;

[0021] If the video to be evaluated does not meet the preset indicator, video quality optimization is performed on the video to be evaluated to obtain a target video.

[0022] Optionally, in a fourth implementation of the first aspect of the present invention, if the video to be evaluated does not meet a preset indicator, performing video quality optimization on the video to be evaluated to obtain a target video comprises:

[0023] If the video to be evaluated does not meet the preset indicator, a super-resolution reconstruction operation is performed on the video to be evaluated to optimize the video quality and obtain a target video.

[0024] Optionally, in a fifth implementation of the first aspect of the present invention, after the step of performing video quality optimization on the video to be evaluated to obtain a target video if the video to be evaluated does not meet a preset indicator, the method further includes:

[0025] Optimizing the neural network model.

[0026] Optionally, in a sixth implementation of the first aspect of the present invention, the step of determining whether the video to be evaluated meets a preset indicator includes:

[0027] Performing a quality assessment operation on each frame of the video to be assessed according to a preset PSNR, a preset SSIM, and a preset VMAF to obtain an overall quality score of the video to be assessed;

[0028] If the overall quality score is lower than a preset score, it is determined that the video to be evaluated meets the preset indicator; otherwise, it is determined that the video to be evaluated does not meet the preset indicator.

[0029] Optionally, in a seventh implementation manner of the first aspect of the present invention, when receiving the video to be processed, the step of decomposing the video to be processed into a set of image frames includes:

[0030] When receiving a video to be processed, parsing frames in the video to be processed into a set of images to be processed;

[0031] A preprocessing operation is performed on the image set to be processed to obtain an image frame set.

[0032] A second aspect of the present invention provides a video subtitle removal device, comprising: a memory and at least one processor, wherein the memory stores instructions, and the memory and the at least one processor are interconnected via a line; the at least one processor calls the instructions in the memory so that the video subtitle removal device executes the above-mentioned video subtitle removal method.

[0033] A third aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned method for removing video subtitles.

[0034] In an embodiment of the present invention, the neural network model can process various types of subtitles, video frames of different backgrounds and complexity. Through the pre-trained neural network model, a large number of video frames can be processed in a short time, thereby achieving efficient subtitle removal. This is particularly important for the globalization trend that requires rapid processing of a large number of short dramas to support multi-language adaptation. Semantic segmentation and content-aware filling through a neural network model can better preserve the original details of the video than traditional image restoration-based methods. The semantic segmentation operation can more accurately identify the subtitle area, while the content-aware filling can restore the area where the subtitles are removed based on the context of the video frame, thereby reducing the loss of image details caused by simple pixel filling. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A schematic diagram of an embodiment of a method for removing video subtitles in an embodiment of the present invention;

[0036] Figure 2 A schematic diagram of a specific embodiment of step 105 of the method for removing video subtitles in an embodiment of the present invention;

[0037] Figure 3 It is a schematic diagram of a specific embodiment before step 101 of the method for removing video subtitles in an embodiment of the present invention;

[0038] Figure 4 1 is a schematic diagram of a specific embodiment of step 106 of the method for removing video subtitles in an embodiment of the present invention;

[0039] Figure 5 The figure is a schematic diagram of an embodiment of a device for removing subtitles from a video according to an embodiment of the present invention. DETAILED DESCRIPTION

[0040] The embodiment of the present invention provides a method, device and storage medium for removing video subtitles.

[0041] The embodiments disclosed in the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments disclosed in the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments disclosed in the present invention are only for exemplary purposes and are not intended to limit the scope of protection disclosed in the present invention.

[0042] In the description of the embodiments disclosed in the present invention, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0043] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 An embodiment of a method for removing video subtitles in an embodiment of the present invention includes:

[0044] 101. When receiving a video to be processed, decompose the video to be processed into a set of image frames;

[0045] Specifically, a video file is read as a video to be processed. A video codec (such as FFmpeg, OpenCV, etc.) is used to decode the video file. The decoder converts the video file into a raw data format that can be processed on a computer. The decoding process is performed according to the encoding method of the video (such as H.264, MPEG-4, etc.), and the raw image data of each frame is extracted. Among them, according to the set frame rate or time interval, the image data of a single frame is extracted from the decoded video data. Each time a frame is extracted, it is saved as an image file (such as JPEG, PNG, etc.). All the extracted frame image files are organized into a set to obtain an image frame set for subsequent batch processing.

[0046] Optionally, when a video to be processed is received, the frames in the video to be processed are parsed into a set of images to be processed; a preprocessing operation is performed on the set of images to be processed to obtain a set of image frames. By decomposing the video into frames, multiple images can be processed in parallel, thereby improving processing efficiency. At the same time, since each image frame is independent, various image processing algorithms and techniques can be more easily applied. Preprocessing operations generally include denoising, contrast enhancement, and edge sharpening, which can improve image quality and make it more suitable for subsequent image processing and analysis tasks.

[0047] 102. Using the image frame set as input parameters of a pre-trained neural network model;

[0048] Specifically, load a collection of image frames. Preprocess the images according to the requirements of the neural network model, such as resizing the image to match the input layer size of the model, normalizing pixel values ​​(such as scaling pixel values ​​to between 0 and 1), changing the image channel order (such as converting from BGR to RGB if the model is based on RGB images), etc.

[0049] Load a pre-trained neural network model. A pre-trained neural network model is a neural network model that has been trained on a large dataset. It usually uses a large amount of labeled data and undergoes long-term training and optimization to achieve high performance on a specific task. Because the model has been trained on a large dataset, it usually has strong generalization capabilities, that is, it can handle unseen data and produce accurate predictions. Pre-trained models can be used as a starting point for subsequent tasks. This means that developers do not need to train models from scratch, but can directly use or fine-tune these models, saving a lot of time and computing resources. Pre-trained models are often used in transfer learning scenarios. Transfer learning is a machine learning method that allows developers to transfer knowledge learned on one task to another task. By using a pre-trained model, developers can transfer the feature representations learned by the model on the original task to the new task, thereby accelerating the training process of the new task and improving performance.

[0050] Pass the constructed image frame set to the neural network model. For example, pass the input data to the input layer of the model.

[0051] After the model receives input data, it performs a forward propagation operation. This involves passing the input data through each layer of the model and calculating the output of each layer.

[0052] After obtaining the set of non-captioned image frames, subsequent processing is performed as needed.

[0053] 103. Performing a semantic segmentation operation on the image frame set by using the neural network model to obtain a non-captioned image frame set;

[0054] Specifically, the semantic segmentation operation divides the pixels in each image frame into different categories, where the subtitle area is assigned a specific category label. The model can then accurately identify the location and range of the subtitles in the image frame. After the subtitle areas are identified, various methods (such as cropping, blurring, replacement, etc.) can be used to remove these areas to obtain a set of image frames without subtitles. Content-aware filling is then used to further process the set of image frames without subtitles to repair image holes or defects caused by removing subtitles.

[0055] 104. Perform content-aware filling on the non-captioned image frame set by using the neural network model to obtain a target image frame set;

[0056] Specifically, Content-Aware Fill is an image and video processing technology that automatically generates new images or video frames to fill the target area by analyzing the content around the target area. It is very useful for removing unnecessary elements in images or videos, filling missing parts, or repairing damaged areas.

[0057] In image processing, content-aware fill can identify and automatically fill deleted or damaged parts of an image, making the image look more natural and complete. For example, in Photoshop software, users can use the content-aware fill tool to easily remove extra objects in an image or repair cracks and scratches in a photo.

[0058] In video processing, content-aware fill technology can be used to automatically remove specific elements in a video, such as microphones, signs, logos, etc., and can even remove people in the picture. This technology is very useful in video production and post-production, helping video producers save tedious manual work time and improve work efficiency.

[0059] The neural network model of this embodiment realizes semantic segmentation and content-aware filling at the same time by designing a suitable neural network structure and training strategy. For example, a multi-task learning framework can be used to train semantic segmentation and content-aware filling tasks at the same time.

[0060] 105. Perform a video synthesis operation according to the target image frame set to obtain a target video.

[0061] Specifically, read all image frames from the set of uncaptioned image frames. Make all image frames have the same size and format for subsequent video synthesis. Set the frame rate of the target video to improve the smoothness of the video. Set the resolution of the target video according to the size of the image frame. Select a video encoding format, such as H.264 (MP4) or HEVC (H.265). Use a video processing library such as OpenCV, FFmpeg, etc. to perform video synthesis operations.

[0062] Optionally, the video synthesis operation can combine a series of static pictures (equivalent to the image frames of this embodiment) in a specific order and rate to create a dynamic video file. In this process, the video editing software allows the specification of parameters such as frame rate (number of frames displayed per second), video encoding format, resolution, etc. to generate a target video that meets the requirements.

[0063] Specifically, refer to Figure 2 , Figure 2 FIG. 1 is a schematic diagram of a specific embodiment of step 105 of the method for removing video subtitles in an embodiment of the present invention. Step 105 also includes the following specific implementation methods:

[0064] 1051. Perform a video synthesis operation according to the target image frame set to obtain a video to be evaluated;

[0065] 1052. Determine whether the video to be evaluated meets preset indicators;

[0066] Optionally, a quality assessment operation is performed on each frame in the video to be evaluated according to a preset PSNR, a preset SSIM and a preset VMAF to obtain an overall quality score of the video to be evaluated; if the overall quality score is lower than a preset score, it is determined that the video to be evaluated meets the preset indicators; otherwise, it is determined that the video to be evaluated does not meet the preset indicators.

[0067] PSNR (Peak Signal-to-Noise Ratio) is one of the indicators for measuring image quality. PSNR is defined based on MSE (mean square error) and is used to compare the quality difference between the original image and the processed or compressed image. The higher the PSNR value, the better the image quality and the smaller the distortion. In the fields of digital image processing, image coding, and modern film and television, PSNR is often used as an important technical indicator for objectively evaluating digital video images.

[0068] SSIM (Structural Similarity Index) is an indicator to measure the similarity between two images. SSIM was first proposed by the Image and Video Engineering Laboratory at the University of Texas at Austin. It evaluates the similarity of images by comparing the brightness, contrast, and structural information of the images. The value of SSIM ranges from -1 to 1. When two images are exactly the same, the SSIM value is 1. Due to the excellent performance of SSIM, it has become a widely used method to measure video quality in broadcasting and cable television, and is widely used in super-resolution, image deblurring and other fields.

[0069] VMAF (Video Multi-Method Assessment Fusion) is a full-reference video quality assessment method that combines multiple video quality assessment indicators, including visual information fidelity (VIF), detail loss index (DLM) and temporal motion index / average relative position pixel difference (TI). VMAF uses a trained SVM (support vector machine) to fuse these features and calculate the total score to evaluate the overall quality of the video. VMAF takes into account the spatial and temporal domain features in the video, so it can evaluate the video quality more comprehensively.

[0070] Combining three different evaluation indicators, PSNR, SSIM and VMAF, can comprehensively evaluate the quality of the target video from multiple angles. PSNR mainly measures the degree of signal distortion, SSIM focuses more on the sensitivity of the human eye to structural information, and VMAF is a comprehensive evaluation indicator based on machine learning. The three complement each other and can more accurately reflect the actual situation of video quality.

[0071] Optionally, if the video to be evaluated does not meet the preset indicators, the neural network model is optimized. By optimizing the model, it can be better adapted to the task requirements and improve its performance on a specific data set. Model optimization can be achieved by adjusting parameters and retraining.

[0072] 1053. If the video to be evaluated does not meet the preset indicator, perform video quality optimization on the video to be evaluated to obtain a target video.

[0073] Optionally, if the video to be evaluated does not meet the preset indicators, a super-resolution reconstruction operation is performed on the video to be evaluated to optimize the video quality and obtain a target video. The principle of super-resolution reconstruction technology is to use computer vision and machine learning algorithms to restore missing high-frequency detail information. Image resolution can be increased by interpolating between pixels.

[0074] In steps 1051-1053, by performing video quality optimization on the videos to be evaluated that do not meet the preset indicators, the clarity, color reproduction, smoothness and other aspects of the video can be effectively improved, thereby improving the overall quality of the video. The preset indicators are formulated according to specific requirements or standards, such as resolution, frame rate, bit rate, etc. By judging whether the video to be evaluated meets these indicators, it can be ensured that the target video finally generated meets the expected requirements in terms of visual effects.

[0075] Specifically, refer to Figure 3 , Figure 3 This is a schematic diagram of a specific embodiment before step 101 of the method for removing video subtitles in an embodiment of the present invention. Before step 101, the following specific implementation methods are also included:

[0076] 106. Collect sample data;

[0077] Specifically, refer to Figure 4 , Figure 4 FIG. 1 is a schematic diagram of a specific embodiment of step 106 of the method for removing video subtitles in an embodiment of the present invention. Step 106 also includes the following specific implementation methods:

[0078] 1061. Collect videos containing subtitles to obtain a first video set, and collect videos not containing subtitles to obtain a second video set;

[0079] 1062. Use the second video set as label data, and merge the first video set and the second video set to obtain sample data.

[0080] Specifically, with the rapid growth of video content, the automatic recognition and processing of video subtitles has become increasingly important. Subtitles not only contain important information about the video, but in some cases may interfere with the understanding or analysis of the video content. Therefore, it is particularly important to develop a technology that can automatically detect and identify whether subtitles exist in a video.

[0081] To achieve this goal, deep learning-based video processing technology can be used. First, a large amount of video data needs to be collected, which includes both videos with subtitles and videos without subtitles. For videos with subtitles, subtitle information can be extracted through various methods (such as OCR technology, image processing technology, etc.) and associated with the video content. For videos without subtitles, they can be used directly as label data because they represent what the video should present without subtitles.

[0082] Next, you can use this collected video data to train a deep learning model. This model needs to be able to learn to distinguish between videos with and without subtitles, and correctly predict whether a given video has subtitles. To achieve this goal, videos with subtitles and videos without subtitles can be trained as positive and negative samples respectively. During the training process, the model will continuously optimize its parameters to improve the accuracy of subtitle recognition.

[0083] After training, the model can be used for actual subtitle recognition tasks. For a new video input, the model will analyze its content and determine whether there are subtitles. If there are subtitles, the model can further extract subtitle information and return it to the user. In this way, the model can help users better understand and analyze video content.

[0084] In order to further improve the performance and generalization ability of the model, videos with subtitles and videos without subtitles can be merged to obtain a sample dataset containing video samples with and without subtitles. This sample dataset can be used to further train and optimize the model to make it have stronger subtitle recognition capabilities.

[0085] In steps 1061-1062, by collecting videos that do not contain subtitles and obtaining a second video set, a labeled data set that does not contain subtitles can be established. These videos can be used as label data to indicate what kind of results the model should output without subtitles. The model can learn to distinguish between videos with subtitles and videos without subtitles, and can correctly predict whether subtitles exist. Finally, the first video set (containing subtitles) and the second video set (excluding subtitles) are merged to obtain a sample data set. The sample data set contains video samples with and without subtitles, which are used to train the model for subtitle recognition tasks. By training the model to use this sample data set, the model can be equipped with the ability to recognize whether subtitles exist in the video.

[0086] 107. Divide the sample data into a training set, a validation set and a test set;

[0087] Optionally, determine the division ratio, such as the training set accounts for 70% of the total data, the validation set accounts for 15%, and the test set accounts for 15%. Randomly shuffle the sample data to eliminate the order of the data. According to the determined ratio, the shuffled data is divided into three parts in order: training set, validation set and test set.

[0088] Optionally, the data is grouped into categories according to the label information in the sample data. Determine the division ratio, such as 70% of the total data for the training set, 15% for the validation set, and 15% for the test set. Randomly select a corresponding number of samples from each category according to the determined ratio and put them into the training set, validation set, and test set respectively.

[0089] 108. Perform a model training operation on a preset neural network model according to the training set, the validation set, and the test set to obtain the pre-trained neural network model.

[0090] Specifically, according to the task type and data characteristics, a suitable neural network structure is selected, such as convolutional neural network (CNN) and generative adversarial network (GAN). Convolutional neural network is a type of feedforward neural network with deep structure that contains convolution calculations. It is one of the representative algorithms of deep learning. It imitates the visual perception mechanism of organisms and can perform supervised learning and unsupervised learning. It has the ability of representation learning and can classify input information according to its hierarchical structure in a translation-invariant manner. The convolution kernel parameter sharing in the hidden layer and the sparsity of the inter-layer connection enable CNN to learn grid features (such as pixels and audio) with a small amount of calculation and have a stable effect. Generative adversarial network is a deep learning model. The basic idea is to learn data distribution through two neural networks, namely generator and discriminator, which compete with each other. The generator is responsible for learning to generate data similar to real data from random noise, while the discriminator tries to distinguish between generated data and real data. The competition between the two promotes the continuous evolution of the model, making the generated data gradually close to the real data distribution. GAN uses adversarial loss as the loss function.

[0091] Set the initial weights and biases of the neural network. Input the data in the training set into the neural network, and calculate the output value and loss value through forward propagation. Calculate the gradient based on the loss value, and use optimization algorithms (such as gradient descent, Adam, etc.) to update the weights and biases of the neural network. After each training cycle (epoch), use the validation set to evaluate the performance of the model. You can adjust the learning rate, hyperparameters, etc. based on the performance on the validation set. If the performance of the model on the validation set does not improve for several consecutive cycles, stop training in advance to avoid overfitting. Record the loss value, accuracy and other indicators during the training process for subsequent analysis. Use labeled data to evaluate the model and obtain the performance indicators of the model on unseen data. Further optimize the model based on the evaluation results, such as adjusting the network structure, hyperparameters, etc. Save the trained model for subsequent calls.

[0092] In steps 106-108, by collecting a large amount of sample data, the neural network model can learn more features and patterns, thereby improving its generalization ability on unseen data.

[0093] In an embodiment of the present invention, the neural network model can process various types of subtitles, video frames of different backgrounds and complexity. Through the pre-trained neural network model, a large number of video frames can be processed in a short time, thereby achieving efficient subtitle removal. It has outstanding beneficial effects on the global trend of needing to quickly process a large number of short dramas to support multi-language adaptation. Semantic segmentation and content-aware filling through a neural network model can better preserve the original details of the video than traditional image restoration-based methods. The semantic segmentation operation can more accurately identify the subtitle area, while the content-aware filling can restore the area after the subtitle is removed based on the context of the video frame, thereby reducing the loss of image details caused by simple pixel filling.

[0094] Figure 5 1 is a schematic diagram of the structure of a video subtitle removal device provided by an embodiment of the present invention. The video subtitle removal device 500 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 510 (for example, one or more processors) and a memory 520, and one or more storage media 530 (for example, one or more mass storage devices) storing application programs 533 or data 532. Among them, the memory 520 and the storage medium 530 may be temporary storage or permanent storage. The program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the video subtitle removal device 500. Furthermore, the processor 510 may be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on the video subtitle removal device 500.

[0095] The video subtitle removal device 500 may further include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input and output interfaces 560, and / or one or more operating systems 531, such as Windows Serve, Mac OS X, Unix, Linux, Free BSD, etc. It will be appreciated by those skilled in the art that Figure 5 The structure of the video subtitle removal device shown does not constitute a limitation on the video subtitle removal device, and may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.

[0096] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the video subtitle removal method.

[0097] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may 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 may 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.

[0098] In addition, although each operation is described in a specific order, this should be understood as requiring such operation to be performed in the specific order shown or in a sequential order, or requiring that all illustrated operations should be performed to obtain desired results. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are 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 implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination mode.

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

Claims

1. A method for removing video subtitles, characterized in that: The video subtitle removal method comprises: When receiving a video to be processed, decomposing the video to be processed into a set of image frames; Using the image frame set as input parameters of a pre-trained neural network model; Performing a semantic segmentation operation on the image frame set by using the neural network model to obtain a non-captioned image frame set; Performing content-aware filling on the non-captioned image frame set by using the neural network model to obtain a target image frame set; A video synthesis operation is performed according to the target image frame set to obtain a target video.

2. The method for removing video subtitles according to claim 1, characterized in that: Before the step of decomposing the video to be processed into a set of image frames when receiving the video to be processed, the method further includes: Collect sample data; Divide the sample data into a training set, a validation set and a test set; A model training operation is performed on a preset neural network model according to the training set, the validation set and the test set to obtain the pre-trained neural network model.

3. The method for removing video subtitles according to claim 2, characterized in that: The step of collecting sample data comprises: Collecting videos containing subtitles to obtain a first video set, and collecting videos not containing subtitles to obtain a second video set; The second video set is used as label data, and the first video set and the second video set are merged to obtain sample data.

4. The method for removing video subtitles according to claim 1, characterized in that: The step of performing a video synthesis operation according to the target image frame set to obtain a target video comprises: Performing a video synthesis operation according to the target image frame set to obtain a video to be evaluated; Determine whether the video to be evaluated meets the preset indicators; If the video to be evaluated does not meet the preset indicator, video quality optimization is performed on the video to be evaluated to obtain a target video.

5. The method for removing video subtitles according to claim 4, characterized in that: If the video to be evaluated does not meet the preset indicator, the step of performing video quality optimization on the video to be evaluated to obtain the target video includes: If the video to be evaluated does not meet the preset indicator, a super-resolution reconstruction operation is performed on the video to be evaluated to optimize the video quality and obtain a target video.

6. The method for removing video subtitles according to claim 4, characterized in that: If the video to be evaluated does not meet the preset indicator, after the step of performing video quality optimization on the video to be evaluated to obtain the target video, the method further includes: Optimizing the neural network model.

7. The method for removing video subtitles according to claim 4, characterized in that: The step of determining whether the video to be evaluated meets the preset indicator includes: Performing a quality assessment operation on each frame of the video to be assessed according to a preset PSNR, a preset SSIM, and a preset VMAF to obtain an overall quality score of the video to be assessed; If the overall quality score is lower than a preset score, it is determined that the video to be evaluated meets the preset indicator; otherwise, it is determined that the video to be evaluated does not meet the preset indicator.

8. The method for removing video subtitles according to claim 1, characterized in that: When receiving the video to be processed, the step of decomposing the video to be processed into a set of image frames comprises: When receiving a video to be processed, parsing frames in the video to be processed into a set of images to be processed; A preprocessing operation is performed on the image set to be processed to obtain an image frame set.

9. A video subtitle removal device, characterized in that: The video subtitle removal device comprises: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor calls the instructions in the memory to enable the video subtitle removal device to perform the video subtitle removal method according to any one of claims 1-8.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the video subtitle removal method according to any one of claims 1 to 8 is implemented.