# US 2017/0289466 A1 · Image processing method and apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0289466 A1
- Document ID: US20170289466A1
- Status: Published application
- Kind: A1
- Application number: 15/511,583
- Filed: 2014-09-16
- Published: 2017-10-05
- Earliest claimed: 2014-09-16
- Assignees: Huawei Technolgies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Fangyong GE; Yali WANG
- Web page: https://patentgrep.com/patent/US20170289466A1

## CPC

- H04N 17/002: {for television cameras}
- H04N 23/11: for generating image signals from visible and infrared light wavelengths
- H04N 23/20: for generating image signals from infrared radiation only
- H04N 23/88: for colour balance, e.g. white-balance circuits or colour temperature control
- G06T 5/50: using two or more images, e.g. averaging or subtraction
- H04N 23/70: Circuitry for compensating brightness variation in the scene
- H04N 23/95: Computational photography systems, e.g. light-field imaging systems
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## 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

### Claim 1

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

### Claim 2 (depends on 1)

The method according to claim 1, wherein:
the preset correspondence is a relationship set comprising n groups of tested infrared intensity Ix and infrared image data Mx;
the infrared image data Mx is infrared image data obtained when the tested infrared intensity Ix participates in imaging, wherein a value of x is 1, 2, . . ., n−1, n, and n is a positive integer greater than 1;
obtaining the infrared image data corresponding to the ambient infrared intensity I according to the preset correspondence comprises:
determining, from the correspondence, that the ambient infrared intensity I is between tested infrared intensity Im and tested infrared intensity Im+1, wherein m is a positive integer less than n; and
determining, according to a preset selection policy, infrared image data Mm corresponding to the tested infrared intensity Im or infrared image data Mm+1 corresponding to the tested infrared intensity Im+1 as the infrared image data corresponding to the ambient infrared intensity I.

### Claim 3 (depends on 2)

The method according to claim 2, wherein determining, according to a preset selection policy, the infrared image data Mm corresponding to the tested infrared intensity Im or the infrared image data Mm+1 corresponding to the tested infrared intensity Im+1 as the infrared image data corresponding to the ambient infrared intensity I comprises:
determining, according to a preset policy of selecting a lower limit, the infrared image data Mm corresponding to the tested infrared intensity Im as the infrared image data corresponding to the ambient infrared intensity I.

### Claim 4 (depends on 2)

The method according to claim 2, wherein determining, according to a preset selection policy, the infrared image data Mm corresponding to the tested infrared intensity Im or the infrared image data Mm+1 corresponding to the tested infrared intensity Im+1 as the infrared image data corresponding to the ambient infrared intensity I comprises:
according to a proximity selection policy, determining the infrared image data Mm corresponding to the tested infrared intensity Im as the infrared image data corresponding to the ambient infrared intensity I if a difference between the ambient infrared intensity I and the tested infrared intensity Im is less than or equal to a difference between the tested infrared intensity Im+1 and the ambient infrared intensity I; or determining the infrared image data Mm+1 corresponding to the tested infrared intensity Im+1 as the infrared image data corresponding to the ambient infrared intensity I if a difference between the ambient infrared intensity I and the tested infrared intensity Im is greater than a difference between the tested infrared intensity Im+1 and the ambient infrared intensity I.

### Claim 5 (depends on 1)

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 ambient infrared intensity I comprises:
obtaining the corrected image data by subtracting the infrared image data corresponding to the ambient infrared intensity I from the image data of the original image.

### Claim 6 (depends on 1)

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 a proportion of three primary colors being adjusted in different color temperature environments to achieve color balance.

### Claim at position 7

7-12. (canceled)

### Claim 13

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;
the infrared sensor is configured to: when the camera photographs the original image, collect an ambient infrared ray and obtain ambient infrared intensity I;
the memory is configured to store a preset correspondence between tested infrared intensity and infrared image data;
the processor is configured to:
obtain image data of the photographed original image, and obtain the ambient infrared intensity I that is used when the original image is photographed;
obtain infrared image data corresponding to the ambient infrared intensity I according to the preset correspondence;
obtain corrected image data according to the image data of the original image and the infrared image data corresponding to the ambient infrared intensity I; and
obtain a corrected image according to the corrected image data,
and output the corrected image to the display apparatus; and
the display apparatus is configured to display the corrected image.

### Claim 14 (depends on 13)

The terminal according to claim 13, wherein
the correspondence is a relationship set comprising n groups of tested infrared intensity Ix and infrared image data Mx; the infrared image data Mx is infrared image data obtained when the tested infrared intensity Ix participates in imaging, wherein a value of x is 1, 2, . . . , n−1, n, and n is a positive integer greater than 1;
obtaining the infrared image data corresponding to the ambient infrared intensity I according to the preset correspondence comprises: determining, from the preset correspondence, that the ambient infrared intensity I is between tested infrared intensity Im and tested infrared intensity Im+1, wherein m is a positive integer less than n; and determining, according to a preset selection policy, infrared image data Mm corresponding to the tested infrared intensity Im or infrared image data Mm+1 corresponding to the tested infrared intensity Im+1 as the infrared image data corresponding to the ambient infrared intensity I.

### Claim 15 (depends on 14)

The terminal according to claim 14, wherein determining, according to a preset selection policy, the infrared image data Mm corresponding to the tested infrared intensity I or the infrared image data Mm+1 corresponding to the tested infrared intensity Im+1 as the infrared image data corresponding to the ambient infrared intensity I comprises:
determining, according to a preset policy of selecting a lower limit, the infrared image data Mm corresponding to the tested infrared intensity Im as the infrared image data corresponding to the ambient infrared intensity I.

### Claim 16 (depends on 14)

The terminal according to claim 14, wherein determining, according to a preset selection policy, the infrared image data Mm corresponding to the tested infrared intensity Im or the infrared image data Mm+1 corresponding to the tested infrared intensity Im+1 as the infrared image data corresponding to the ambient infrared intensity I comprises:
the processor is specifically configured to: according to a proximity selection policy, determining the infrared image data Mm corresponding to the tested infrared intensity Im as the infrared image data corresponding to the ambient infrared intensity I if a difference between the ambient infrared intensity I and the tested infrared intensity Im is less than or equal to a difference between the tested infrared intensity Im+1 and the ambient infrared intensity I; or determine the infrared image data Mm+1 corresponding to the tested infrared intensity Im+1 as the infrared image data corresponding to the ambient infrared intensity I if a difference between the ambient infrared intensity I and the tested infrared intensity Im is greater than a difference between the tested infrared intensity Im+1 and the ambient infrared intensity I.

### Claim 17 (depends on 13)

The terminal according to claim 13, wherein obtaining the corrected image data according to the image data of the original image and the infrared image data corresponding to the ambient infrared intensity I comprises:
obtaining the corrected image data by subtracting the infrared image data corresponding to the ambient infrared intensity I from the image data of the original image.

### Claim 18 (depends on 13)

The terminal according to claim 13, 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 a proportion of three primary colors being adjusted in different color temperature environments to achieve color balance.

### Claim 19 (depends on 2)

The method according to claim 2, wherein obtaining the corrected image data according to the image data of the original image and the infrared image data corresponding to the ambient infrared intensity I comprises:
obtaining the corrected image data by subtracting the infrared image data corresponding to the ambient infrared intensity I from the image data of the original image.

### Claim 20 (depends on 2)

The method according to claim 2, wherein after obtaining the corrected image according to the corrected image data, method further comprises:
performing, by the terminal, white balance processing on the corrected image, wherein the white balance processing corresponds to a proportion of three primary colors being adjusted in different color temperature environments to achieve color balance.

### Claim 21 (depends on 3)

The method according to claim 3, wherein after the 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 a proportion of three primary colors being adjusted in different color temperature environments to achieve color balance.

### Claim 22 (depends on 4)

The method according to claim 4, 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 a proportion of three primary colors being adjusted in different color temperature environments to achieve color balance.

### Claim 23 (depends on 14)

The terminal according to claim 14, wherein obtaining the corrected image data according to the image data of the original image and the infrared image data corresponding to the ambient infrared intensity I comprises:
obtaining the corrected image data by subtracting the infrared image data corresponding to the ambient infrared intensity I from the image data of the original image.

### Claim 24 (depends on 14)

The terminal according to claim 14, 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 a proportion of three primary color being adjusted in different color temperature environments to achieve color balance.

### Claim 25 (depends on 15)

The terminal according to claim 15, 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 a proportion of three primary colors being adjusted in different color temperature environments to achieve color balance.

### Claim 26 (depends on 16)

The terminal according to claim 16, 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 a proportion of three primary colors being adjusted in different color temperature environments to achieve color balance.
