IP Library Granted Patent US 10,560,644
Granted Patent B2
US 10,560,644 · App. 15/511,583 · Granted Feb 11, 2020

Image processing method and apparatus

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 10,560,644
App. No.
15/511,583
Granted
Feb 11, 2020
Kind
B2
Abstract

An image processing method, including: obtaining image data of a photographed original image, and obtaining ambient infrared intensity I that is used when the original image is photographed; obtaining infrared image data corresponding to I according to a preset correspondence between tested infrared intensity and infrared image data; obtaining corrected image data according to the image data of the original image and the infrared image data corresponding to I; and obtaining a corresponding corrected image according to the corrected image data, and outputting the corrected image.

Claims (57)

1. An image processing method, comprising:

photographing, by a terminal, an original image;

obtaining, by the terminal, image data of the original image and a measured ambient infrared intensity I corresponding to the original image;

removing, by the terminal, effects of ambient infrared light on the original image, wherein removing the effects of ambient infrared light on the original image comprises:

obtaining infrared image data which corresponds to the measured ambient infrared intensity I according to a pre-tested correspondence between tested infrared intensities and respective infrared image data;

obtaining corrected image data according to the image data of the original image and the infrared image data corresponding to the measured ambient infrared intensity I; and

obtaining a corrected image according to the corrected image data; and

outputting, by the terminal, the corrected image;

wherein the pre-tested correspondence is a relationship set comprising n groups of tested infrared intensities I x , and infrared image data M x , wherein n is a positive integer greater than 1;

wherein the infrared image data M x is infrared image data obtained corresponding to the tested infrared intensities I x for integer values of x from 1 to n;

wherein obtaining the infrared image data which corresponds to the measured ambient infrared intensity I according to the pre-tested correspondence comprises:

determining, from the pre-tested correspondence, that the measured ambient infrared intensity I is between a tested infrared intensity I m and a tested infrared intensity I m+1 , wherein m is a positive integer less than n; and

determining, according to a preset selection policy, infrared image data M m corresponding to the tested infrared intensity I m or infrared image data M m+1 corresponding to the tested infrared intensity I m+1 as the infrared image data corresponding to the measured ambient infrared intensity I.

2. The method according to claim 1 , wherein determining, according to the preset selection policy, the infrared image data M m corresponding to the tested infrared intensity I m or the infrared image data M m+1 corresponding to the tested infrared intensity I m+1 as the infrared image data corresponding to the measured ambient infrared intensity I comprises:

determining, according to a preset policy of selecting a lower limit, the infrared image data M m corresponding to the tested infrared intensity I m as the infrared image data corresponding to the measured ambient infrared intensity I.

3. The method according to claim 1 , wherein determining, according to the preset selection policy, the infrared image data M m corresponding to the tested infrared intensity I m or the infrared image data M m+1 corresponding to the tested infrared intensity I m+1 as the infrared image data corresponding to the measured ambient infrared intensity I comprises:

according to a proximity selection policy:

determining the infrared image data M m corresponding to the tested infrared intensity I m as the infrared image data corresponding to the measured ambient infrared intensity I if a difference between the measured ambient infrared intensity I and the tested infrared intensity I m is less than or equal to a difference between the tested infrared intensity I m+1 and the measured ambient infrared intensity I; or

determining the infrared image data M m+1 corresponding to the tested infrared intensity I m+1 as the infrared image data corresponding to the measured ambient infrared intensity I if a difference between the measured ambient infrared intensity I and the tested infrared intensity I m is greater than a difference between the tested infrared intensity I m+1 and the measured ambient infrared intensity I.

4. The method according to claim 1 , wherein obtaining the corrected image data according to the image data of the original image and the infrared image data corresponding to the measured ambient infrared intensity I comprises:

obtaining the corrected image data by subtracting the infrared image data corresponding to the measured ambient infrared intensity I from the image data of the original image.

5. The method according to claim 1 , wherein after obtaining the corrected image according to the corrected image data, the method further comprises:

performing, by the terminal, white balance processing on the corrected image, wherein the white balance processing corresponds to proportions of three primary colors being adjusted in different color temperature environments to achieve color balance.

6. A terminal, comprising:

a camera;

an infrared sensor;

a processor;

a memory; and

a display apparatus;

wherein the camera is configured to photograph an original image;

wherein the infrared sensor is configured to obtain a measured ambient infrared intensity I corresponding to the original image;

wherein the memory is configured to store a pre-tested correspondence between tested infrared intensities and respective infrared image data;

wherein the processor is configured to:

obtain image data of the photographed original image, and obtain the measured ambient infrared intensity I;

remove effects of ambient infrared light on the original image, wherein removing the effects of ambient infrared light on the original image comprises: obtaining infrared image data corresponding to the measured ambient infrared intensity I according to the pre-tested correspondence; obtaining corrected image data according to the image data of the original image and the infrared image data corresponding to the measured ambient infrared intensity I; and obtaining a corrected image according to the corrected image data; and

output the corrected image to the display apparatus;

wherein the display apparatus is configured to display the corrected image;

wherein the pre-tested correspondence is a relationship set comprising n groups of tested infrared intensities I x and infrared image data M x , wherein n is a positive integer greater than 1;

wherein the infrared image data M x is infrared image data obtained corresponding to the tested infrared intensities I x for integer values of x from 1 to n;

wherein obtaining the infrared image data corresponding to the measured ambient infrared intensity I according to the pre-tested correspondence comprises:

determining, from the pre-tested correspondence, that the measured ambient infrared intensity I is between a tested infrared intensity I m and a tested infrared intensity I m+1 , wherein m is a positive integer less than n; and

determining, according to a preset selection policy, infrared image data M m corresponding to the tested infrared intensity I m or infrared image data M m+1 corresponding to the tested infrared intensity I m+1 as the infrared image data corresponding to the measured ambient infrared intensity I.

7. The terminal according to claim 6 , wherein determining, according to the preset selection policy, the infrared image data M m corresponding to the tested infrared intensity I m or the infrared image data M m+1 corresponding to the tested infrared intensity I m+1 as the infrared image data corresponding to the measured ambient infrared intensity I comprises:

determining, according to a preset policy of selecting a lower limit, the infrared image data M m corresponding to the tested infrared intensity I m as the infrared image data corresponding to the measured ambient infrared intensity I.

8. The terminal according to claim 6 , wherein determining, according to the preset selection policy, the infrared image data M m corresponding to the tested infrared intensity I m or the infrared image data M m+1 corresponding to the tested infrared intensity I m+1 as the infrared image data corresponding to the measured ambient infrared intensity I comprises:

according to a proximity selection policy:

determining the infrared image data M m corresponding to the tested infrared intensity I m as the infrared image data corresponding to the measured ambient infrared intensity I if a difference between the measured ambient infrared intensity I and the tested infrared intensity I m is less than or equal to a difference between the tested infrared intensity I m+1 and the measured ambient infrared intensity I; or

determining the infrared image data M m+1 corresponding to the tested infrared intensity I m+1 as the infrared image data corresponding to the measured ambient infrared intensity I if a difference between the measured ambient infrared intensity I and the tested infrared intensity I m is greater than a difference between the tested infrared intensity I m+1 and the measured ambient infrared intensity I.

9. The terminal according to claim 6 , wherein obtaining the corrected image data according to the image data of the original image and the infrared image data corresponding to the measured ambient infrared intensity I comprises:

obtaining the corrected image data by subtracting the infrared image data corresponding to the measured ambient infrared intensity I from the image data of the original image.

10. The terminal according to claim 6 , wherein the processor is further configured to: after the corrected image is obtained according to the corrected image data, perform white balance processing on the corrected image, wherein the white balance processing corresponds to proportions of three primary colors being adjusted in different color temperature environments to achieve color balance.

11. The method according to claim 2 , wherein after obtaining the corrected image according to the corrected image data, the method further comprises:

performing, by the terminal, white balance processing on the corrected image, wherein the white balance processing corresponds to proportions of three primary colors being adjusted in different color temperature environments to achieve color balance.

12. The method according to claim 3 , wherein after obtaining the corrected image according to the corrected image data, the method further comprises:

performing, by the terminal, white balance processing on the corrected image, wherein the white balance processing corresponds to proportions of three primary colors being adjusted in different color temperature environments to achieve color balance.

13. The terminal according to claim 7 , wherein the processor is further configured to: after the corrected image is obtained according to the corrected image data, perform white balance processing on the corrected image, wherein the white balance processing corresponds to proportions of three primary colors being adjusted in different color temperature environments to achieve color balance.

14. The terminal according to claim 8 , wherein the processor is further configured to: after the corrected image is obtained according to the corrected image data, perform white balance processing on the corrected image, wherein the white balance processing corresponds to proportions of three primary colors being adjusted in different color temperature environments to achieve color balance.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 13, 2021
From: HUAWEI TECHNOLOGIES CO., LTD.
To: HONOR DEVICE CO., LTD.
Reel/Frame 055919/0344 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 4, 2017
From: GE, FANGYONG; WANG, YALI
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 041850/0442 →