Night image coloring method and device, medium and equipment
An image coloring and image technology, applied in the field of image processing, can solve the problems of inconsistent coloring effect and great subjectivity, and achieve the effect of improving the coloring quality
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0084] This embodiment discloses a nighttime image coloring method, based on which the coloring of nighttime images without reference can be realized, such as figure 1 As shown, the specific steps include:
[0085] Step 1), construct a coloring network. In this example, if figure 2 As shown, the coloring network includes an encoder, a decoder, a fully connected layer and a softmax layer. The encoder is used to extract features from the fusion image; the decoder is used to obtain the color distribution from the features extracted by the encoder. in:
[0086] The encoder includes a first embedding module and a first self-attention module. The first embedding module inputs the fused image, and performs an embedding operation on the fused image; the image after the embedding operation of the first embedding module is input to the first self-attention module, and the feature extraction is performed by the first self-attention module, and the extracted features are used as codes...
Embodiment 2
[0142] This embodiment discloses a nighttime image coloring device, which includes a network building module, a training module, an image acquisition module, a fusion module and a coloring module, and the functions of the above-mentioned modules are as follows:
[0143] Network building blocks for building shading networks. In this example, if figure 2 As shown, the coloring network in this embodiment includes an encoder, a decoder, a fully connected layer and a softmax layer. The encoder is used to extract features from the fused image; the decoder is used to obtain the color distribution from the features extracted by the encoder, and the coloring network The specific structure is as described in Example 1.
[0144] The training module is used to train the shading network to obtain a shading model.
[0145] The image acquisition module is used to acquire visible light images and infrared images taken from the same angle of view at night.
[0146] The fusion module is con...
Embodiment 3
[0150] This embodiment discloses a storage medium, which stores a program. When the program is executed by a processor, the nighttime image coloring method described in Embodiment 1 is realized, as follows:
[0151] Build a shading network, and train the shading network to obtain a shading model;
[0152] Obtain visible light images and infrared images taken at the same angle of view at night;
[0153] According to the preset fusion rules, image fusion processing is performed on nighttime visible light images and infrared images to obtain a fusion image to be colored;
[0154] The fused image to be colored is input into a shading model for feature extraction and no-reference shading.
[0155] In this embodiment, reference may be made to the above-mentioned Embodiment 1 for specific implementation of the above-mentioned processes, and details are not repeated here.
[0156] In this embodiment, the storage medium may be a magnetic disk, an optical disk, a computer memory, a re...
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