IP Library › Granted Patent US 11,403,740
Granted Patent B2
US 11,403,740 · App. 16/834,030 · Granted Aug 2, 2022

Method and apparatus for image capturing and processing

Inventor: Quanyou Lin (Guangdong, CN)
Assignee: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD.
G06T5/007G06T1/0007G06T5/50H04N5/2355G06T2207/20081G06T2207/20084
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,403,740
App. No.
16/834,030
Granted
Aug 2, 2022
Kind
B2
Abstract

A method and an apparatus for image processing are provided. An original image is captured. At least one reference image is generated by adjusting brightness of the original image. Multiple denoised images are generated by performing artificial intelligence based denoising on the original image and the at least one reference image respectively. A target image is generated by performing HDR synthesis on the multiple denoised images.

Claims (90)

1. A method for image processing, comprising:

capturing an original image;

generating at least one reference image by adjusting brightness of the original image;

generating a plurality of denoised images by performing artificial intelligence-based (AI-based) denoising on the original image and the at least one reference image respectively; and

generating a target image by performing high dynamic range (HDR) synthesis on the plurality of denoised images,

wherein generating the at least one reference image by adjusting the brightness of the original image comprises:

dividing the original image into a plurality of sub-regions and obtaining average pixel brightness of each of the sub-regions;

calculating a brightness difference between average pixel brightness of every two sub-regions;

determining to generate one reference image by adjusting the brightness of the original image, when brightness differences are all within a preset range; and

determining to generate a plurality of reference images by adjusting brightness of different regions in the original image to different degrees, when not all the brightness differences are within the preset range.

2. The method of claim 1 , wherein capturing the original image comprises:

obtaining an ambient light intensity;

determining an initial exposure according to the ambient light intensity; and

capturing the original image according to the initial exposure.

3. The method of claim 2 , wherein determining the initial exposure according to the ambient light intensity comprises:

determining the initial exposure as a first exposure when the ambient light intensity is lower than or equal to a first threshold intensity;

determining the initial exposure as a second exposure when the ambient light intensity is higher than the first threshold intensity and lower than or equal to a second threshold intensity; and

determining the initial exposure as a third exposure when the ambient light intensity is higher than the second threshold intensity,

wherein the first exposure is smaller than the second exposure, and the second exposure is smaller than the third exposure.

4. The method of claim 2 , wherein determining the initial exposure according to the ambient light intensity comprises:

capturing a preview image;

detecting whether the preview image contains a face region;

determining a portrait mode according to the ambient light intensity upon detecting that the preview image contains the face region; and

determining a value of exposure adjustment according to the portrait mode and adjusting the initial exposure according to the value of exposure adjustment.

5. The method of claim 1 , wherein generating the at least one reference image by adjusting the brightness of the original image comprises:

obtaining average pixel brightness of the original image;

determining at least one exposure compensation amount according to the average pixel brightness; and

generating the at least one reference image by adjusting the brightness of the original image according to the at least one exposure compensation amount respectively.

6. The method of claim 5 , wherein generating the at least one reference image by adjusting the brightness of the original image according to the at least one exposure compensation amount respectively comprises:

generating the at least one reference image by inputting the original image into a plurality of brightening models respectively, wherein each of the plurality of brightening models corresponds to each of the at least one exposure compensation amount and is configured to adjust the brightness of the original image according to pixel brightness of the original image and the exposure compensation amount.

7. The method of claim 1 , wherein generating the at least one reference image by adjusting the brightness of the original image comprises:

detecting whether the original image contains a target region according to an image semantic recognition algorithm;

determining a first exposure compensation amount according to pixel brightness of the target region upon detecting that the original image contains the target region;

determining a second exposure compensation amount according to pixel brightness of a non-target region;

generating a corresponding reference image by adjusting brightness of the target region in the original image according to the first exposure compensation amount; and

generating another corresponding reference image by adjusting brightness of the non-target region in the original image according to the second exposure compensation amount.

8. The method of claim 7 , wherein the target region comprises a plurality of face regions, and wherein:

determining the first exposure compensation amount according to the pixel brightness of the target region comprises:

for each of the plurality of face regions, determining a first exposure compensation amount corresponding to the face region according to average pixel brightness of the face region; and

generating the corresponding reference image by adjusting the brightness of the target region in the original image according to the first exposure compensation amount comprises:

for each of the plurality of face regions, generating the reference image corresponding to the face region by adjusting brightness of the face region in the original image according to the first exposure compensation amount corresponding to the face region.

9. The method of claim 7 , further comprising:

generating the at least one reference image by adjusting the brightness of the original image as a whole upon detecting that the original image does not contain the target region.

10. The method of claim 1 , wherein generating the plurality of denoised images by performing the AI-based denoising on the original image and the at least one reference image respectively comprises:

performing, with a neural network model, noise characteristic recognition on the original image and the at least one reference image respectively, wherein the neural network model has learned a mapping relationship between sensitivity and noise characteristic of the original image and the at least one reference image; and

obtaining the plurality of denoised images by performing denoising on the original image and the at least one reference image respectively according to a recognized noise characteristic.

11. The method of claim 10 , wherein the neural network model is trained using sample images corresponding to different sensitivity until a noise characteristic recognized by the neural network model matches a noise characteristic identified in a corresponding sample image.

12. The method of claim 11 , further comprising:

determining a plurality of reference pixels in the target image;

calculating a difference of pixel grayscale between the plurality of reference pixels according to a preset gradient function; and

modifying a corresponding parameter of the neural network model when the difference of pixel grayscale is greater than a preset threshold.

13. The method of claim 1 , wherein generating the target image by performing the HDR synthesis on the plurality of denoised images comprises:

inputting the plurality of denoised images into an HDR synthesis model and obtaining synthesis weights for respective regions of the original image, wherein the HDR synthesis model has learned a mapping relationship between characteristics of the respective regions and the synthesis weights, and wherein the characteristic is indicative of exposure and brightness of corresponding image regions; and

generating the target image by performing the HDR synthesis on the plurality of denoised images per region according to the synthesis weights.

14. An electronic device, comprising

an image sensor;

a processor comprising an image signal processing (ISP) processor and a graphic processing unit (GPU) coupled with the ISP; processor; and

a memory configured to store computer programs which, when executed by the processor, are operable to:

capture, with the image sensor under control of the ISP processor, an original image;

generate, with the GPU, at least one reference image by adjusting brightness of the original image;

generate, with the GPU, a plurality of denoised images by performing artificial intelligence-based (AI-based) denoising on the original image and the at least one reference image respectively; and

generate, with the ISP processor, a target image by performing high dynamic range (HDR) synthesis on the plurality of denoised images,

wherein to generate the at least one reference image by adjusting the brightness of the original image comprises to:

divide the original image into a plurality of sub-regions and obtain average pixel brightness of each of the sub-regions;

calculate a brightness difference between average pixel brightness of every two sub-regions;

determine to generate one reference image by adjusting the brightness of the original image, when brightness differences are all within a preset range; and

determine to generate a plurality of reference images by adjusting brightness of different regions in the original image to different degrees, when not all the brightness differences are within the preset range.

15. The electronic device of claim 14 , wherein the GPU configured to generate the at least one reference image by adjusting brightness of the original image is configured to:

obtain average pixel brightness of the original image;

determine at least one exposure compensation amount according to the average pixel brightness; and

generate the at least one reference image by adjusting the brightness of the original image according to the at least one exposure compensation amount respectively.

16. The electronic device of claim 14 , wherein the GPU configured to generate the at least one reference image by adjusting brightness of the original image is configured to:

detect whether the original image contains a target region according to an image semantic recognition algorithm;

determine a first exposure compensation amount according to pixel brightness of the target region upon detecting that the original image contains the target region;

determine a second exposure compensation amount according to pixel brightness of a non-target region;

generate a corresponding reference image by adjusting brightness of the target region in the original image according to the first exposure compensation amount; and

generate another corresponding reference image by adjusting brightness of the non-target region in the original image according to the second exposure compensation amount.

17. The electronic device of claim 16 , wherein the target region comprises a plurality of face regions, and wherein:

the GPU configured to determine the first exposure compensation amount according to the pixel brightness of the target region is configured to:

for each of the plurality of face regions, determining a first exposure compensation amount corresponding to the face region according to average pixel brightness of the face region; and

the GPU configured to generate the corresponding reference image by adjusting the brightness of the target region in the original image according to the first exposure compensation amount is configured to:

for each of the plurality of face regions, generating the reference image corresponding to the face region by adjusting brightness of the face region in the original image according to the first exposure compensation amount corresponding to the face region.

18. An image processing circuit, comprising

an image signal processing (ISP) processor electrically coupled with an image sensor and configured to control the image sensor to capture an original image and generate a target image by performing high dynamic range (HDR) synthesis on a plurality of denoised images corresponding to the original image and at least one reference image; and

a graphic processing unit (GPU) electrically coupled with the ISP processor and configured to generate the plurality of denoised images by performing artificial intelligence-based (AI-based) denoising on the original image and the at least one reference image respectively,

wherein the GPU is further configured to:

divide the original image into a plurality of sub-regions and obtain average pixel brightness of each of the sub-regions;

calculate a brightness difference between average pixel brightness of every two sub-regions;

determine to generate one reference image by adjusting the brightness of the original image, when brightness differences are all within a preset range; and

determine to generate a plurality of reference images by adjusting brightness of different regions in the original image to different degrees, when not all the brightness differences are within the preset range.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 30, 2020
From: LIN, QUANYOU
To: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD.
Reel/Frame 052259/0967 →
Priority Claims (1)
CN 201910280175.5 · Apr 9, 2019 · national
Continuity (1)
Related Publication 20200327648A1 · Oct 15, 2020