# US 11,994,429 B2 · Method for calibrating optical sensor, optical sensor and related electronic device

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

- Number: US 11,994,429 B2
- Document ID: US11994429B2
- Status: Granted
- Kind: B2
- Application number: 17/385,436
- Filed: 2021-07-26
- Published: 2022-09-22
- Granted: 2024-05-28
- Earliest claimed: 2021-03-22
- Assignees: Beijing Xiaomi Mobile Software Co., Ltd.
- Applicants: Beijing Xiaomi Mobile Software Co., Ltd.
- Inventors: Chaoxi Chen
- Web page: https://patentgrep.com/patent/US11994429B2

## CPC

- G01J 3/30: Measuring the intensity of spectral lines directly on the spectrum itself (G01J3/42, G01J3/44 take precedence)
- G01J 1/4204: {with determination of ambient light (solar light G01J2001/4266)}
- G01J 5/025: {Interfacing a pyrometer to an external device or network; User interface}
- G01J 5/60: using determination of colour temperature
- G01J 5/80: Calibration (using comparison with reference sources G01J5/52)
- G01J 2003/283: {computer-interfaced}
- 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)

## Abstract

The present disclosure relates to a method for calibrating an optical sensor, an optical sensor and a related electronic device. The method includes: acquiring a plurality of spectral detection values of ambient light collected by the optical sensor; acquiring a plurality of first parameter detection values of the ambient light and the corresponding plurality of second parameter detection values according to the plurality of spectral detection values, a type of the first parameter detection values being different from a type of the second parameter detection values; determining at least one effective detection value from the plurality of first parameter detection values according to the plurality of second parameter detection values; and calibrating the optical sensor according to the at least one effective detection value.

## Claims

### Claim 1

A method for calibrating an optical sensor, comprising:
acquiring a plurality of spectral detection values of ambient light collected by the optical sensor;
acquiring a plurality of first parameter detection values of the ambient light and a plurality of second parameter detection values of the ambient light according to the plurality of spectral detection values, a type of the first parameter detection values being different from a type of the second parameter detection values;
determining at least one effective detection value from the plurality of first parameter detection values according to the plurality of second parameter detection values; and
calibrating the optical sensor according to the at least one effective detection value.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining the at least one effective detection value from the plurality of first parameter detection values according to the plurality of second parameter detection values comprises:
when any second parameter detection value satisfies a preset interval, determining the first parameter detection value corresponding to the second parameter detection value as the effective detection value.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
determining whether any first parameter detection value and a corresponding second parameter detection value satisfy a function relationship;
when determining to satisfy the function relationship, determining the first parameter detection value corresponding to the second parameter detection value as the effective detection value.

### Claim 4 (depends on 1)

The method of claim 1, wherein, the first parameter detection value is one of an illumination intensity detection value, a color temperature detection value, a stroboscopic detection value, and a spectral detection value, and the second parameter detection value is one of an illumination intensity detection value, a color temperature detection value, a stroboscopic detection value, and a spectral detection value.

### Claim 5 (depends on 2)

The method of claim 2, further comprising:
acquiring a numerical fluctuation value of any second parameter detection value within a preset first time range;
when the numerical fluctuation value of the second parameter detection value is less than or equal to a preset first threshold, determining the first parameter detection value corresponding to the second parameter detection value as the effective detection value.

### Claim 6 (depends on 3)

The method of claim 3, wherein, the function relationship is obtained by:
acquiring a standard value of any first parameter detection value;
obtaining a function relationship between the first parameter detection value and the standard value according to the standard value.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
when the second parameter detection value of the ambient light less than a preset second threshold, collecting and detecting one or more values of an illumination intensity value, a color temperature value and a stroboscopic value of the ambient light through an illuminometer, and replacing the standard value according to the one or more values.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
determining whether a current illumination intensity detection value of the ambient light is stable, wherein, when illumination intensity detection values are stabilized within a third threshold during a preset second time range, or collected illumination intensity detection values are linearly changed, determining that the current illumination intensity detection value is stable.

### Claim 9 (depends on 1)

The method of claim 1, wherein,
the corresponding relationship of the parameters is:
when the first parameter detection value is a color temperature detection value, the second parameter detection value is an illumination intensity detection value;
or,
when the first parameter detection value is an illumination intensity detection value, the second parameter detection value is a spectral detection value.

### Claim 10

An optical sensor comprising a processor, wherein,
optical parameters of the optical sensor are calibrated by the processor when a method for calibrating an optical sensor is performed by the processor, and the method comprises:
acquiring a plurality of spectral detection values of ambient light collected by the optical sensor;
acquiring a plurality of first parameter detection values of the ambient light and a plurality of second parameter detection values of the ambient light according to the plurality of spectral detection values, a type of the first parameter detection values being different from a type of the second parameter detection values;
determining at least one effective detection value from the plurality of first parameter detection values according to the plurality of second parameter detection values; and
calibrating the optical sensor according to the at least one effective detection value.

### Claim 11 (depends on 10)

The optical sensor of claim 10, wherein determining the at least one effective detection value from the plurality of first parameter detection values according to the plurality of second parameter detection values comprises:
when any second parameter detection value satisfies a preset interval, determining the first parameter detection value corresponding to the second parameter detection value as the effective detection value.

### Claim 12 (depends on 11)

The optical sensor of claim 11, wherein the method further comprises:
determining whether any first parameter detection value and a corresponding second parameter detection value satisfy a function relationship;
when determining to satisfy the function relationship, determining the first parameter detection value corresponding to the second parameter detection value as the effective detection value.

### Claim 13 (depends on 10)

The optical sensor of claim 10, wherein, the first parameter detection value is one of an illumination intensity detection value, a color temperature detection value, a stroboscopic detection value, and a spectral detection value, and the second parameter detection value is one of an illumination intensity detection value, a color temperature detection value, a stroboscopic detection value, and a spectral detection value.

### Claim 14 (depends on 11)

The optical sensor of claim 11, wherein the method further comprises:
acquiring a numerical fluctuation value of any second parameter detection value within a preset first time range;
when the numerical fluctuation value of the second parameter detection value is less than or equal to a preset first threshold, determining the first parameter detection value corresponding to the second parameter detection value as the effective detection value.

### Claim 15 (depends on 12)

The optical sensor of claim 12, wherein, the function relationship is obtained by:
acquiring a standard value of any first parameter detection value;
obtaining a function relationship between the first parameter detection value and the standard value according to the standard value.

### Claim 16 (depends on 15)

The optical sensor of claim 15, wherein, the method further comprises:
when the second parameter detection value of the ambient light less than a preset second threshold, collecting and detecting one or more values of an illumination intensity value, a color temperature value and a stroboscopic value of the ambient light through an illuminometer, and replacing the standard value according to the one or more values.

### Claim 17 (depends on 10)

The optical sensor of claim 10, wherein, the method further comprises:
determining whether a current illumination intensity detection value of the ambient light is stable, wherein, when illumination intensity detection values are stabilized within a third threshold during a preset second time range, or collected illumination intensity detection values are linearly changed, determining that the current illumination intensity detection value is stable.

### Claim 18 (depends on 10)

The optical sensor of claim 10, wherein,
the corresponding relationship of the parameters is:
when the first parameter detection value is a color temperature detection value, the second parameter detection value is an illumination intensity detection value;
or,
when the first parameter detection value is an illumination intensity detection value, the second parameter detection value is a spectral detection value.

### Claim 19

An electronic device, comprising an optical sensor and a processor, wherein optical parameters of the optical sensor are calibrated by the processor when according to a method for calibrating an optical sensor is performed by the processor, and the method comprises:
acquiring a plurality of spectral detection values of ambient light collected by the optical sensor;
acquiring a plurality of first parameter detection values of the ambient light and a plurality of second parameter detection values of the ambient light according to the plurality of spectral detection values, a type of the first parameter detection values being different from a type of the second parameter detection values;
determining at least one effective detection value from the plurality of first parameter detection values according to the plurality of second parameter detection values; and
calibrating the optical sensor according to the at least one effective detection value.

### Claim 20 (depends on 19)

The electronic device of claim 19, wherein determining the at least one effective detection value from the plurality of first parameter detection values according to the plurality of second parameter detection values comprises:
when any second parameter detection value satisfies a preset interval, determining the first parameter detection value corresponding to the second parameter detection value as the effective detection value.
