The invention discloses a method for removing
station captions and subtitles in an
image based on a deep neural network, and relates to the technical field of
image restoration, and the method comprises the following steps: S1, building an
image restoration model; S2, preprocessing images of the
training set; S3,
processing training data: taking the training image as a
real image Pt; Setting a pixel point RGB value in a
Mask1 region in the training image as 0, and taking the pixel point RGB value as a training image P1; Setting a pixel point RGB value in a
Mask2 region in the training image as0, and taking the pixel point RGB value as a training image P2; S4, training the
image restoration model to obtain a trained image restoration model; S5, image restoration; The method comprises the following steps of: preprocessing an image or a video needing to remove
station captions and subtitles; According to the image
restoration method, based on the
deep learning idea,
station captions andsubtitles in the image are automatically and rapidly removed, the
processing process is clear and clear, restoration real-time performance is high, and the application range is wide.