# US 2022/0291042 A1 · Method for determining light-source information, electronic device, and non-transitory storage medium

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

- Number: US 2022/0291042 A1
- Document ID: US20220291042A1
- Status: Published application
- Kind: A1
- Application number: 17/738,220
- Filed: 2022-05-06
- Published: 2022-09-15
- Earliest claimed: 2019-11-26
- Assignees: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Applicants: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Inventors: Haiting Gu
- Web page: https://patentgrep.com/patent/US20220291042A1

## CPC

- G01J 3/108: {for measurement in the infrared range}
- G01J 3/2823: {Imaging spectrometer}
- G01J 3/027: {Control of working procedures of a spectrometer; Failure detection; Bandwidth calculation}
- G01J 3/0275: {making use of sensor-related data, e.g. for identification of sensor parts or optical elements}
- G06T 7/90: Determination of colour characteristics
- H04N 9/73: Colour balance circuits, e.g. white balance circuits or colour temperature control (camera processing pipelines for colour balance H04N23/88)
- H04N 23/88: for colour balance, e.g. white-balance circuits or colour temperature control
- G01J 2003/2806: {Array and filter array}
- G06T 2207/10024: Color image
- G01J: MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY (light sources F21, H01J, H01K, H05B; investigating properties of materials by optical means G01N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method for determining light-source information, an electronic device, and a non-transitory storage medium are provided. The method includes acquiring a first infrared-band parameter under a current environment output by an image sensor, wherein the first infrared-band parameter is configured to represent a proportion of all infrared bands in the current environment to a full spectrum; and determining a light-source type and a light-source scenario of a light source in the current environment based on the first infrared-band parameter.

## Claims

### Claim 1

A method for determining light-source information, comprising:
acquiring a first infrared-band parameter under a current environment output by an image sensor, wherein the first infrared-band parameter is configured to represent a proportion of all infrared bands in the current environment to a full spectrum; and
determining a light-source type and a light-source scenario of a light source in the current environment based on the first infrared-band parameter.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the determining a light-source type and a light-source scenario of a light source in the current environment based on the first infrared-band parameter, comprises:
in response to the first infrared-band parameter being less than a first threshold, determining the light-source type is a single light-source type and the light-source scenario is an indoor medium-and-high color-temperature light-source scenario.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the determining a light-source type and a light-source scenario of a light source in the current environment based on the first infrared-band parameter, comprises:
in response to the first infrared-band parameter being greater than or equal to a first threshold, acquiring a first correlated color temperature (CCT) parameter under the current environment output by the image sensor; and
determining the light-source type and the light-source scenario based on the first infrared-band parameter and the first CCT parameter.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the determining the light-source type and the light-source scenario based on the first infrared-band parameter and the first CCT parameter, comprises:
acquiring a second CCT parameter under a sunlight light source corresponding to the first infrared-band parameter; and
determining the light-source type and the light-source scenario based on the first CCT parameter and the second CCT parameter.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the acquiring a second CCT parameter under a sunlight light source corresponding to the first infrared-band parameter, comprises:
acquiring a linear look-up table, wherein the linear look-up table comprises a plurality of preset infrared-band parameters and a plurality of preset CCT parameters under the sunlight light source, and each of the preset infrared-band parameters has a unique corresponding preset CCT parameter; and
determining a preset CCT parameter corresponding to the first infrared-band parameter is the second CCT parameter, in response to the plurality of preset infrared-band parameters comprising the first infrared-band parameter.

### Claim 6 (depends on 5)

The method according to claim 5, further comprising:
in response to the plurality of preset infrared-band parameters not comprising the first infrared-band parameter, selecting a first preset infrared-band parameter and a second preset infrared-band parameter from the plurality of preset infrared-band parameters based on a linear difference algorithm;
determining a first preset CCT parameter corresponding to the first preset infrared-band parameter;
determining a second preset CCT parameter corresponding to the second preset infrared-band parameter; and
generating the second CCT parameter based on the first infrared-band parameter, the first preset infrared-band parameter, the second preset infrared-band parameter, the first preset CCT parameter, and the second preset CCT parameter.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the generating the second CCT parameter based on the first infrared-band parameter, the first preset infrared-band parameter, the second preset infrared-band parameter, the first preset CCT parameter, and the second preset CCT parameter, comprises:
acquiring a value of subtracting the first preset CCT parameter from the second preset CCT parameter and obtaining a first difference value;
acquiring a value of subtracting the second preset infrared-band parameter from the first preset infrared-band parameter and obtaining a second difference value, wherein the second preset infrared-band parameter is less than the first preset infrared-band parameter;
acquiring a value of subtracting the second preset infrared-band parameter from a first parameter and obtaining a third difference value, wherein the first parameter is obtained by multiplying the first infrared-band parameter by one hundred;
acquiring a product of the first difference and the third difference and obtaining a second parameter;
acquiring a value of dividing the second parameter by the second difference and obtaining a third parameter; and
acquiring a value of subtracting the third parameter from the second preset CCT parameter and obtaining the second CCT parameter.

### Claim 8 (depends on 4)

The method according to claim 4, wherein the determining the light-source type and the light-source scenario based on the first CCT parameter and the second CCT parameter, comprises:
acquiring an absolute value of a difference between the first CCT parameter and the second CCT parameter;
determining a relationship between the absolute value and a second threshold; and
determining the light-source type and the light-source scenario based on the relationship.

### Claim 9 (depends on 8)

The method according to claim 8, wherein the determining the light-source type and the light-source scenario based on the relationship, comprises:
in response to the relationship representing the absolute value is greater than or equal to the second threshold, determining the light-source type is a mixed light-source type and the light-source scenario is an indoor light-source scenario or an indoor-and-outdoor light-source scenario.

### Claim 10 (depends on 8)

The method according to claim 8, wherein the determining the light-source type and the light-source scenario based on the relationship, comprises:
in response to the relationship representing the absolute value is less than the second threshold, determining the light-source type is a single light-source type;
acquiring a minimum value of the first CCT parameter and the second CCT parameter; and
determining the light-source scenario based on the minimum value and a third threshold.

### Claim 11 (depends on 10)

The method according to claim 10, wherein the determining the light-source scenario based on the minimum value and a third threshold, comprises:
in response to the minimum value being greater than or equal to the third threshold, determining the light-source scenario is an outdoor medium-and-high color-temperature light-source scenario.

### Claim 12 (depends on 10)

The method according to claim 10, further comprising:
in response to the minimum value being less than the third threshold, determining the light-source scenario is an indoor low color-temperature light-source scenario or an outdoor low color-temperature light-source scenario.

### Claim 13 (depends on 10)

The method according to claim 10, further comprising:
in response to the minimum value being less than the third threshold, acquiring a second infrared-band parameter and a third infrared-band parameter under the current environment output by the image sensor, wherein the second infrared-band parameter represents a proportion of a first part of the infrared bands under the current environment to the full spectrum, the third infrared-band parameter represents a proportion of a second part of the infrared bands under the current environment to the full spectrum, the first part of the infrared bands is different from the second part of the infrared bands, and the second part of the infrared bands comprises waves having wavelengths greater than a wavelength of a maximum wavelength in the first part of the infrared bands;
in response to the second infrared-band parameter being less than the third infrared-band parameter, determining the light-source scenario is an indoor low color-temperature light-source scenario; and
in response to the second infrared-band parameter being greater than the third infrared-band parameter, determining the light-source scenario is an outdoor low color-temperature light-source scenario.

### Claim 14 (depends on 13)

The method according to claim 13, wherein the first part of the infrared bands and the second part of the infrared bands constitute a part of the whole infrared bands; or the first part of the infrared bands and the second part of the infrared bands constitute a whole of the whole infrared bands.

### Claim 15

An electronic device, comprising a processor, a memory, and a communication bus, wherein the communication bus is configured to connect the memory and the processor, when a determined program of light-source information is executed by the processor, the processor is caused to perform:
acquiring a first infrared-band parameter under a current environment output by an image sensor, wherein the first infrared-band parameter is configured to represent a proportion of all infrared bands in the current environment to a full spectrum; and
determining a light-source type and a light-source scenario of a light source in the current environment based on the first infrared-band parameter.

### Claim 16 (depends on 15)

The electronic device according to claim 15, wherein the processor is further caused to perform:
in response to the first infrared-band parameter being less than a first threshold, determining the light-source type is a single light-source type and the light-source scenario is an indoor medium-and-high color-temperature light-source scenario.

### Claim 17 (depends on 15)

The electronic device according to claim 15, wherein the processor is further caused to perform:
in response to the first infrared-band parameter being greater than or equal to a first threshold, acquiring a first CCT parameter under the current environment output by the image sensor; and
determining the light-source type and the light-source scenario based on the first infrared-band parameter and the first CCT parameter.

### Claim 18 (depends on 17)

The electronic device according to claim 17, wherein the processor is further caused to perform:
acquiring a second CCT parameter under a sunlight light source corresponding to the first infrared-band parameter; and
determining the light-source type and the light-source scenario based on the first CCT parameter and the second CCT parameter.

### Claim 19 (depends on 18)

The electronic device according to claim 18, wherein the processor is further caused to perform:
acquiring a linear look-up table, wherein the linear look-up table comprises a plurality of preset infrared-band parameters and a plurality of preset CCT parameters under the sunlight light source, and each of the preset infrared-band parameters has a unique corresponding preset CCT parameter; and
determining a preset CCT parameter corresponding to the first infrared-band parameter is the second CCT parameter, in response to the plurality of preset infrared-band parameters comprising the first infrared-band parameter.

### Claim 20

A non-transitory storage medium, storing one or more programs, wherein the one or more programs are configured to be executed by one or more processors, when the one or more programs are executed by the one or more processors, the one or more processors are caused to perform:
acquiring a first infrared-band parameter under a current environment output by an image sensor, wherein the first infrared-band parameter is configured to represent a proportion of all infrared bands in the current environment to a full spectrum; and
determining a light-source type and a light-source scenario of a light source in the current environment based on the first infrared-band parameter.
