Performing detail enhancement on a target in a denoised image
AssigneeBeijing Kuangshi Technology Co., Ltd.
InventorsHaibin Huang, Chi-Hao Wu
Life of this patent
Estimating the term…
Abstract
This disclosure provides an image processing method, an electronic device and a non-transitory computer-readable storage medium, and relates to the field of image processing technique. The image processing method and apparatus and the electronic device provided by this application perform denoising on the to-be-processed image to obtain a denoised image, and then perform detail enhancement on the target area image extracted from the denoised image to obtain a detail enhanced image, thereafter fuse the denoised image with the detail enhanced image to obtain an output image. Since detail enhancement has been performed on the target area image, the obtained output image is sharper and the display effect is better.
Claims17
An image processing method, comprising:
- obtaining a training image sample set, the training image sample set including a plurality of groups of paired training images;
- training a noise reduction network, a target extraction network, or a detail enhancement network by using the training image sample set;
- wherein each group of paired training images comprises:
- a first image and a second image respectively acquired in the same shooting environment, and wherein the first image is captured according to a set first exposure time and a set first sensitivity parameter;
- the second image is captured according to a set second exposure time and a set second sensitivity parameter;
- the second exposure time is greater than the first exposure time;
- the second sensitivity parameter is smaller than the first sensitivity parameter;
- determining whether a light brightness in a current shooting environment is less than a set brightness threshold;
- and
- if yes, using a captured image as a to-be-processed image;
- performing, by the noise reduction network, denoising on the to-be-processed image to generate a denoised image;
- extracting, by the target extraction network, a target area image corresponding to a shooting target from the denoised image;
- performing, by the detail enhancement network, detail enhancement on the target area image to generate a detail enhanced image;
- and
- fusing the denoised image with the detail enhanced image to obtain an output image.
An electronic device, comprising:
- an image acquisition assembly;
- a memory;
- and
- a processor;
- wherein the image acquisition assembly is configured to acquire image data;
- wherein the memory stores thereon a computer program capable of being executed on the processor, wherein steps of an image processing method are carried out when the computer program is executed by the processor, the image processing method comprises:
- obtaining a training image sample set, the training image sample set including a plurality of groups of paired training images;
- training a noise reduction network, a target extraction network, or a detail enhancement network by using the training image sample set;
- wherein each group of paired training images comprises:
- a first image and a second image respectively acquired in the same shooting environment, and wherein the first image is captured according to a set first exposure time and a set first sensitivity parameter;
- the second image is captured according to a set second exposure time and a set second sensitivity parameter;
- the second exposure time is greater than the first exposure time;
- the second sensitivity parameter is smaller than the first sensitivity parameter;
- determining whether a light brightness in a current shooting environment is less than a set brightness threshold;
- and
- if yes, using a captured image as a to-be-processed image;
- performing, by the noise reduction network, denoising on the to-be-processed image to generate a denoised image,
- extracting, by the target extraction network, a target area image corresponding to a shooting target from the denoised image,
- performing, by the detail enhancement network, detail enhancement on the target area image to generate a detail enhanced image, and
- fusing the denoised image with the detail enhanced image to obtain an output image.
A non-transitory computer-readable storage medium having stored thereon a computer program, wherein steps of an image processing method are carried out when the computer program is executed by a processor, the image processing method comprising:
- obtaining a training image sample set, the training image sample set including a plurality of groups of paired training images;
- training a noise reduction network, a target extraction network, or a detail enhancement network by using the training image sample set;
- wherein each group of paired training images comprises:
- a first image and a second image respectively acquired in the same shooting environment, and wherein the first image is captured according to a set first exposure time and a set first sensitivity parameter;
- the second image is captured according to a set second exposure time and a set second sensitivity parameter;
- the second exposure time is greater than the first exposure time;
- the second sensitivity parameter is smaller than the first sensitivity parameter;
- determining whether a light brightness in a current shooting environment is less than a set brightness threshold;
- and
- if yes, using a captured image as a to-be-processed image;
- performing, by the noise reduction network, denoising on the to-be-processed image to generate a denoised image;
- extracting, by the target extraction network, a target area image corresponding to a shooting target from the denoised image;
- performing, by the detail enhancement network, detail enhancement on the target area image to generate a detail enhanced image;
- and
- fusing the denoised image with the detail enhanced image to obtain an output image.
Dependencies are inferred from the claim text.