Image colorization method and system and computer readable storage medium
A storage medium and colorization technology, applied in the field of computer vision, can solve the problems of gradient disappearance and overfitting of learning models, and achieve the effect of great practical application value, good coloring effect, and high image definition.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0054] see Figure 4 The architecture of the colorization method, this embodiment discloses an image colorization method based on a deep convolutional autoencoder and multiple layer skipping, which includes the following steps:
[0055] A. Convert the image from RGB color space to YUV color space, and separate the Y channel data.
[0056] B. Copy the Y-channel data, and construct two-channel data together with the Y-channel data. to keep the same size as the UV channel that will be predicted.
[0057] C. Use two-channel data as the input of the deep convolutional self-encoder to predict the UV channel respectively; wherein, the deep convolutional self-encoder is composed of several re-skip layer connections.
[0058] D. Combining the Y channel data with the UV channel data learned in step C to construct a complete YUV color space image.
[0059] E. Converting the YUV color space image into an RGB color space image to obtain the final colorized image.
Embodiment 2
[0061] see Figure 4 The architecture of the colorization method, this embodiment discloses an image colorization method based on a deep convolutional autoencoder and multiple layer skipping, which includes the following steps:
[0062] A. Convert the image from RGB color space to YUV color space, and separate the Y channel as a grayscale image. The method of converting RGB color space to YUV color space is as follows:
[0063] Y=0.299R+0.587G+0.114B;
[0064] U=-0.147R-0.289G+0.436B;
[0065] V=0.615R-0.515G+0.100B.
[0066] Where R is the red channel, G is the green channel, and B is the blue channel. Y, U, and V are the three channels of the YUV color space, respectively.
[0067] B. Copy the Y channel data to obtain the Y' channel, and construct the two-channel data YY' together with the Y channel data. Thus the data size remains the same size as the output.
[0068] By duplicating the Y channel separated in step A, the Y' channel is obtained, and two channels YY' a...
Embodiment 3
[0112] Such as Figure 1~3 As shown, this embodiment discloses an image colorization method based on a deep convolutional autoencoder and multiple layer skipping, including the following steps:
[0113] S101: Acquiring a grayscale image:
[0114] Get the prepared grayscale image and convert the image into Numpy data format.
[0115] S102: convert the image from RGB color space to YUV color space:
[0116] The conversion from RGB color space to YUV color space can be described as:
[0117] Y=0.299R+0.587G+0.114B
[0118] U=-0.147R-0.289G+0.436B
[0119] V=0.615R-0.515G+0.100B
[0120] Where R is the red channel, G is the green channel, and B is the blue channel. Y, U, V are the three channels of the YUV color space.
[0121] S103: Separate the Y channel data:
[0122] First, the YUV data information of the grayscale image is separated into three channels, namely Y, U, and V channels, and the data of the Y channel is taken for operation.
[0123] S104: copy the Y channe...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com