A digital image matting system combining automatic generation of ternary maps and deep atrous convolutional networks

By automatically generating a digital matting system that combines ternary images with deep atrous convolutional networks, it solves the problems of difficulty in obtaining ternary images and unstable quality in existing systems, achieves a fast and efficient digital matting process, and improves matting. Like resolution and efficiency.

CN113936028BActive Publication Date: 2024-09-06SHENZHEN JINSHI ELECTRONIC TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111212954.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-19
Publication Date
2024-09-06
Estimated Expiration
2041-10-19

AI Technical Summary

Technical Problem

The existing digital keying system based on ternary images has the problems of difficulty in obtaining ternary images, unstable quality, and time-consuming in large quantities. The deep learning system has not yet reached the level of traditional systems in terms of keying effect.

Method used

A digital matting system that combines automatic generation of ternary images with deep atrous convolutional networks is used to generate ternary images through two deep neural networks, and the deep atrous convolutional network is used to improve the matting resolution and achieve multi-stage digital matting. Completed automatically.

Benefits of technology

It realizes the automatic generation of ternary diagrams and the rapid completion of the keying process, improves the keying resolution and efficiency, and reduces manual intervention and time consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113936028B
    Figure CN113936028B
Patent Text Reader

Abstract

The present invention relates to a digital matting system of automatically generating a ternary graph and a deep atrous convolutional network in the field of digital matting systems. The system is related to digital matting, the purpose of which is to capture the foreground of an image and then place it in various backgrounds to produce synthetic images with different special effects. The present invention includes a ternary graph that automatically generates an image, a deep atrous convolutional network that improves matting resolution, and a multi-stage digital matting system that completes the process in one go.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of digital matting systems, and in particular to a digital matting system that automatically generates a ternary graph and a deep hole convolutional network. Background Art

[0002] The digital keying problem can be expressed mathematically as ,in For the input image, and Represents the foreground and background images respectively, and each pixel The value is between 0 and 1, describing the degree to which the pixel is covered by the foreground object. The image formed by the values ​​is called Image. In the above formula, only is known, the rest , and are all unknown, so the digital matting problem is a so-called under-conditioning problem. To solve this type of problem, additional information or conditions need to be introduced. Therefore, the digital matting system is divided into two categories: the system based on grass painting and the system based on ternary graph.

[0003] Obviously, the ternary map can provide much more information than the rough sketch. A ternary map is composed of three areas: white, black and gray areas, which correspond to the foreground, background and uncertain areas in the image respectively. Usually, the matting results of the technology based on the ternary map are better than those based on the rough sketch. The present invention uses the ternary map as the main source of additional information. However, the existing matting system based on the ternary map has the following disadvantages: 1) it is not easy to obtain the ternary map, 2) although the ternary map can be made by hand, the quality is unstable, and 3) it is very time-consuming when the number is large. In view of the above disadvantages, the present invention proposes a system that can automatically generate the ternary map of the image.

[0004] In recent years, deep learning and its applications have been widely discussed in various fields. The biggest advantage of this system based on deep learning over traditional systems is that the former has the ability to self-learn. Whether it is during program design or in the future use of the program, there is no need for too much human intervention, which is quite convenient. In addition, when improving the output quality, it can be achieved by strengthening training without rewriting the program. Currently, the matting system based on deep learning is also being published one after another. Since it is still in the early stages of development, it cannot reach the level of traditional systems in terms of efficiency, and there is still a lot of room for improvement. The system proposed in this invention is based on the concept of deep learning, which brings together two existing well-known deep neural networks and a self-created void convolutional neural network. The purpose of introducing the void convolutional network is that it can enhance the ability to detect features of different resolutions.

[0005] That is, the existing three-dimensional image matting system has the following defects: 1) It is more difficult to obtain the matting result of the three-dimensional image than to obtain the matting result of the grass painting. 2) When the three-dimensional image is manually made, the quality is unstable and it is very time-consuming when the number is large. Summary of the invention

[0006] The purpose of the present invention is to solve the above defects and provide a digital matting system that automatically generates a ternary map and a deep hole convolutional network.

[0007] The object of the present invention is achieved by the following method: a digital matting system combining automatic generation of ternary map and deep hole convolution network, including automatic generation of image ternary map, deep hole convolution network to improve matting resolution and multi-stage digital matting is completed in one go,

[0008] The ternary graph of the automatically generated image T Including input image I , foreground objects, two deep neural networks, and ternary graphs :First, use the input image device to input the input image I , and then use the training data to train two deep neural networks to respectively I The outputs of the two deep neural networks are: and Finally, the calculation formula is Calculate the ternary diagram ;

[0009] The deep hole convolution network improves the resolution of matting, including convolution layer, filter and resolution. The convolution layer includes hole convolution layer and general convolution layer. The main work of the convolution layer is to input the image. I Convolution operation is performed with filters. The filters include hole filters and core filters. The hole filters have different hole rates. The core filters have different receptive fields. The filters with large hole rates cover a large spatial range and detect the high-resolution features of foreground objects. The filters with large receptive fields detect the large-scale features of foreground objects.

[0010] The multi-stage digital matting is completed at one time, including three stages of matting: the first stage is to make the input image I Ternary diagram of The second stage is to cut out the digital image and the third stage is to capture the foreground object.

[0011] The first stage produces an input image I Ternary diagram of Two deep neural networks are used to train the input images IPerform detections of different precisions to locate foreground objects, and then automatically generate a ternary map by combining the detection results ;

[0012] The second stage of matting the digital image is to combine the deep hole convolution network with the neural module to form a matting neural network. The output of the matting neural network is image,

[0013] The third stage of foreground object extraction is Image joint input image I According to the formula , derive the foreground image and background image , the first stage is to create the input image I Ternary diagram of The second stage of digital image matting and the third stage of foreground object extraction do not need to be performed in stages and can be completed at one time, that is, as long as the image is input I , you can quickly output , F and B .

[0014] In the above description, as a preferred solution, the neural module includes an encoding-decoding network and a refining network. The deep hole convolution network is first connected in parallel with the encoding-decoding network and then connected in series with the refining network to form a matting neural network.

[0015] In the above description, as a preferred solution, the deep atrous convolutional network includes three atrous convolutional layers and two general convolutional layers, and the three atrous convolutional layers use six atrous rate filters, twelve atrous rate filters and eighteen atrous rate filters respectively.

[0016] In the above description, as a preferred solution, the hole convolution layer or the general convolution layer is described, each convolution layer uses sixteen filters, and the connection between the hole convolution layer and the general convolution layer is that the output of a general convolution layer is combined with the output of three hole convolution layers, and then input together into another general convolution layer.

[0017] The beneficial effects of the present invention are as follows: A digital matting system combining automatic generation of a ternary map and a deep dilated convolutional network, characterized in that it includes a ternary map for automatically generating an image, a deep dilated convolutional network for improving matting resolution, and multi-stage digital matting is completed in one step.

[0018] The ternary graph of the automatically generated image T Including input image I , foreground objects, two deep neural networks, and ternary graphs :First, use the input image device to input the input image I, and then use the training data to train two deep neural networks to respectively I Different precision detection is performed to locate the foreground object. The output results of the two deep neural networks are images. and Finally, the calculation formula is Calculate the ternary diagram , and then according to the above , we can combine the ternary graph The whole process does not require external intervention and can be achieved completely automatically.

[0019] The deep hole convolution network improves the resolution of matting, including convolution layer, filter and resolution. The convolution layer includes hole convolution layer and general convolution layer. The main work of the convolution layer is to input the image. I Convolution operation is performed with filters. The filters include hole filters and core filters. The hole filters have different hole rates. The core filters have different receptive fields. The filters with large hole rates cover a large spatial range and detect high-resolution features. The filters with large receptive fields detect large-scale features.

[0020] The multi-stage digital matting is completed at one time, including three stages of matting: the first stage is to make the input image I Ternary diagram of The second stage is to cut out the digital image and the third stage is to capture the foreground object.

[0021] The first stage produces an input image I Ternary diagram of Two deep neural networks detect foreground objects with different precision respectively, and then automatically generate a ternary map by combining the detection results. ;

[0022] The second stage of matting the digital image is to combine the deep hole convolution network with the neural module to form a matting neural network. The output of the matting neural network is image,

[0023] The third stage of foreground object extraction is Image joint input image I According to the formula , derive the foreground image and background image , the first stage is to create the input image I Ternary diagram of The second stage of digital image matting and the third stage of foreground object extraction do not need to be performed in stages and can be completed at one time, that is, as long as the image is input I , you can quickly output ,F and B . BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 Schematic diagram of a digital matting example in the present invention, wherein the first image is an input image I , the second picture is a schematic diagram of the scene before cutting out and the third picture is a schematic diagram of inserting it into different backgrounds;

[0025] Figure 2 is a flow chart of the digital matting system of the present invention;

[0026] Figure 3 Schematic diagram of additional information in the present invention, wherein the first figure is the input image I , the second picture is a grass painting, and the third picture is a ternary picture;

[0027] Figure 4 A schematic diagram of the generation process of the ternary graph in the present invention;

[0028] Figure 5 A schematic diagram of a matting neural network flow chart in the present invention;

[0029] Figure 6 Schematic diagram of filters with different reception fields of three times three, five times five and seven times seven in the present invention;

[0030] Figure 7 Schematic diagram of a three-by-three filter with a hollow ratio of one, two, and three in the present invention;

[0031] Figure 8 Schematic diagram of the atrous convolutional network architecture of the present invention;

[0032] Fig. 9 A schematic diagram of the keying neural network architecture of the present invention;

[0033] Fig.10 Schematic diagram of an example of generating a ternary image in the present invention, wherein the first image is an input image I The second picture is The third picture is and the fourth picture is a ternary picture T;

[0034] Fig.11 Schematic diagram of an example of the present invention, wherein the first image is an input image I The second picture is Image, the third image is the foreground image And the fourth picture is the background image . DETAILED DESCRIPTION

[0035] In order to facilitate the understanding of those skilled in the art, the present invention is further described below in conjunction with the embodiments and drawings, and the contents mentioned in the embodiments are not intended to limit the present invention. The present invention is described in detail below in conjunction with the drawings.

[0036] See also Figure 1-11 , which specifically implements the automatic generation of the ternary graph of the image T Including input image I Foreground objects in the image, two deep neural networks and a ternary graph :First, use the input image device to input the input image I , and then use the training data to train two deep neural networks to respectively I The training data required for deep neural network training to detect foreground objects with different degrees of accuracy comes from the following sources: (1) academic institutions, such as the PASCAL VOC database; (2) research websites, such as alphamatting.com; (3) corporate units, such as Adobe Research Center; (4) self-made, using image processing tools and drawing tools. The training data is presented to the neural network in pairs of input data and output results for training. The output results of the two deep neural networks are images and Finally, the calculation formula is Calculate the ternary diagram ;

[0037] The deep hole convolution network improves the resolution of matting, including convolution layer, filter and resolution. The convolution layer includes hole convolution layer and general convolution layer. The main work of the convolution layer is to input the image. I Convolution operation is performed with filters, the filters include hole filters and core filters, the hole filters have different hole rates, the core filters have different receptive fields, the filters with large hole rates cover a large spatial range and detect high-resolution features, the filters with large receptive fields detect large-scale features. The deep hole convolution network contains three hole convolution layers and two general convolution layers. The three hole convolution layers use six hole rate filters, twelve hole rate filters and eighteen hole rate filters respectively. The hole convolution layer is also a general convolution layer, each convolution layer uses sixteen filters, and the connection between the hole convolution layer and the general convolution layer is that the output of a general convolution layer is combined with the output of three hole convolution layers, and then input together into another general convolution layer.

[0038] The multi-stage digital matting is completed at one time, including three stages of matting: the first stage is to make the input image I Ternary diagram of The second stage is to cut out the digital image and the third stage is to capture the foreground object.

[0039] The first stage produces an input image I Ternary diagram of Two deep neural networks detect foreground objects with different precision respectively, and then automatically generate a ternary map by combining the detection results. ;

[0040] The second stage of matting the digital image is to combine the deep hole convolution network with the neural module to form a matting neural network. The output of the matting neural network is The neural module includes the encoding-decoding network and the refining network. The deep atrous convolutional network is first connected in parallel with the encoding-decoding network and then connected in series with the refining network to form the matting neural network. The neural module is a network that the author has trained in advance, and the atrous convolutional network itself has no parameters that need to be learned through training, so the matting neural network does not need to be trained here.

[0041] The third stage of foreground object extraction is Image joint input image I According to the formula , derive the foreground image and background image , the first stage is to create the input image I Ternary diagram of The second stage of digital image matting and the third stage of foreground object extraction do not need to be performed in stages and can be completed at one time, that is, as long as the image is input I , you can quickly output , F and B .

[0042] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as the protection scope of the present invention.

Claims

1. A digital image matting system combining automatic generation of ternary graphs and deep atrous convolutional networks, characterized in that: Including automatic generation of image ternary maps, deep hole convolutional network to improve matting resolution and multi-stage digital matting completed in one go. The ternary graph of the automatically generated image T Including input image I , foreground objects, two deep neural networks, and ternary graphs :First, use the input image device to input the input image I , and then use the training data to train two deep neural networks to respectively I The outputs of the two deep neural networks are: and Finally, the calculation formula is Calculate the ternary diagram ; The deep hole convolution network improves the resolution of matting, including convolution layers, filters and resolution. The convolution layers include hole convolution layers and general convolution layers. The convolution layers are used to input images. I Convolution operation is performed with filters. The filters include hole filters and core filters. The hole filters have different hole rates. The core filters have different receptive fields. The filters with large hole rates cover a large spatial range and detect the high-resolution features of foreground objects. The filters with large receptive fields detect the large-scale features of foreground objects. The multi-stage digital matting is completed at one time, including three stages of matting: the first stage is to make the input image I Ternary diagram of The second stage is to cut out the digital image and the third stage is to capture the foreground object. The first stage produces an input image I Ternary diagram of Two deep neural networks are used to train the input images I Perform detections of different precisions to locate foreground objects, and then automatically generate a ternary map by combining the detection results ; The second stage of matting the digital image is to combine the deep hole convolution network with the neural module to form a matting neural network. The output of the matting neural network is image, The third stage of foreground object extraction is Image joint input image I According to the formula , derive the foreground image and background image , the first stage is to create the input image I Ternary diagram of The second stage of digital image matting and the third stage of foreground object extraction do not need to be performed in stages and can be completed at one time, that is, as long as the image is input I , you can quickly output , F and B .

2. A digital image matting system combining automatic generation of ternary graphs and deep atrous convolutional networks according to claim 1, characterized in that: The neural module includes an encoding-decoding network and a refining network. The deep hole convolution network is first connected in parallel with the encoding-decoding network and then connected in series with the refining network to form a matting neural network.

3. A digital image matting system combining automatic generation of ternary graph and deep atrous convolutional network according to claim 1, characterized in that: The deep atrous convolutional network includes three atrous convolutional layers and two general convolutional layers. The three atrous convolutional layers use six atrous rate filters, twelve atrous rate filters and eighteen atrous rate filters respectively.

4. A digital image matting system combining automatic generation of ternary graphs and deep atrous convolutional networks according to claim 1, characterized in that: The hole convolution layer or the general convolution layer, each convolution layer uses sixteen filters, and the connection between the hole convolution layer and the general convolution layer is that the output of a general convolution layer is combined with the outputs of three hole convolution layers, and then input together into another general convolution layer.

Citation Information

Patent Citations

  • Natural image matting method based on deep learning

    CN111161277A

  • Video automatic image matting method and system

    CN111724400A

  • Processing method for performing process on image and processing device using the processing method

    US20200380665A1

  • Image identification method, identification model training method, related device, and storage medium

    WO2021051520A1