Image processing method and device
An image processing and image technology, applied in the field of neural networks, can solve the problems that the algorithm cannot define the processing area, the artifact removal effect is difficult to control, and the image is distorted, so as to improve the effect of the artifact removal effect.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] An embodiment of the present invention provides an image processing method, see figure 1 The flow chart of an image processing method shown, the image processing method includes the following steps:
[0031] Step S102, acquiring images of RGB channels.
[0032] RGB channels refer to the channels of three colors of red (Red), green (Green), and blue (Blue), which can be obtained by changing the three color channels of red, green, and blue and superimposing them on each other. Images in various colors.
[0033] Step S104, preprocess the image of the RGB channel to obtain the image of the mask channel.
[0034] The preprocessing in this embodiment may include processing methods such as removing watermarks, transforming coordinates, scrolling on the vertical axis, and removing afterimages. In addition, the preprocessing of this embodiment can also generate a random mask, and perform dot multiplication with the image through the random mask to obtain the image of the mask...
Embodiment 2
[0041] The above method provided by the embodiment of the present invention is another image processing method, which is implemented on the basis of the method provided by the above embodiment. See figure 2 The flow chart of another image processing method shown, the image processing method includes the following steps:
[0042] Step S202, acquiring images of RGB channels.
[0043] Step S204, preprocess the image of the RGB channel to obtain the image of the mask channel.
[0044] Specifically, the images of the RGB channels can be preprocessed by the following steps: removing the watermark of the images of the RGB channels; performing polar coordinate transformation processing on the images of the RGB channels; performing vertical axis scrolling processing on the images of the RGB channels; Afterimage removal processing is performed on the image of the RGB channel; a random mask of the image of the RGB channel is generated, and the image of the mask channel is determined base...
Embodiment 3
[0095] Corresponding to the above method embodiments, the embodiments of the present invention provide an image processing apparatus, such as Figure 4 A schematic structural diagram of an image processing apparatus shown, the image processing apparatus includes:
[0096] The image acquisition module 41 is used for acquiring the image of RGB channel;
[0097] The image preprocessing module 42 is used to preprocess the image of the RGB channel to obtain the image of the mask channel;
[0098] The first sub-model processing module 43 is used to input the image of the RGB channel and the image of the mask channel into the first sub-model of the pre-trained generator, and output the rough patched image;
[0099] The second sub-model processing module 44 is configured to input the rough inpainted image into the second sub-model of the generator to obtain the fine inpainted image.
[0100] An image processing apparatus provided by an embodiment of the present invention obtains an ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


