# US 2022/0036588 A1 · Parameter obtaining method and terminal device

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

- Number: US 2022/0036588 A1
- Document ID: US20220036588A1
- Status: Published application
- Kind: A1
- Application number: 17/503,545
- Filed: 2021-10-18
- Published: 2022-02-03
- Earliest claimed: 2019-04-26
- Assignees: Vivo Mobile Communication Co., Ltd.
- Applicants: Vivo Mobile Communication Co.,Ltd.
- Inventors: Conghua FU
- Web page: https://patentgrep.com/patent/US20220036588A1

## CPC

- G06T 7/80: Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
- H04N 17/002: {for television cameras}
- H04N 23/635: {Region indicators; Field of view indicators}
- H04N 23/64: {Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image}
- H04N 23/67: Focus control based on electronic image sensor signals
- H04N 23/671: {in combination with active ranging signals, e.g. using light or sound signals emitted toward objects}
- G06T 2200/24: involving graphical user interfaces [GUIs]
- G06T 2207/10016: Video; Image sequence
- H04N 23/62: Control of parameters via user interfaces
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

This disclosure provides a parameter obtaining method and a terminal device, and relates to the field of communications technologies, to resolve a problem that calibration of a distance sensor is relatively complex. The method includes: obtaining a preview image of a target object in a shooting preview screen; obtaining a first measurement value of a distance sensor when a degree of coincidence between the preview image and a calibration area in the shooting preview screen exceeds a threshold; and obtaining a calibration offset corresponding to the target object based on the first measurement value and the calibration distance.

## Claims

### Claim 1

A parameter obtaining method, applied to a terminal device and comprising:
obtaining a preview image of a target object in a shooting preview screen;
obtaining a first measurement value of a distance sensor when a degree of coincidence between the preview image and a calibration area in the shooting preview screen exceeds a threshold;
obtaining a calibration distance between the target object and the terminal device; and
obtaining a calibration offset corresponding to the target object based on the first measurement value and the calibration distance.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the obtaining a calibration offset corresponding to the target object based on the first measurement value and the calibration distance comprises:
using a difference between the first measurement value and the calibration distance as the calibration offset.

### Claim 3 (depends on 1)

The method according to claim 1, wherein after the obtaining a calibration offset corresponding to the target object, the method further comprises:
obtaining a second measurement value of the distance sensor; and
obtaining a calibrated second measurement value based on the second measurement value and the calibration offset.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the obtaining a calibrated second measurement value based on the second measurement value and the calibration offset comprises:
using a difference between the second measurement value and the calibration offset as the calibrated second measurement value.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the obtaining a calibration distance between the target object and the terminal device comprises:
identifying the target object; and
obtaining the calibration distance between the target object and the terminal device based on a correspondence between objects and calibration distances.

### Claim 6 (depends on 1)

The method according to claim 1, wherein before the obtaining a preview image of a target object, the method further comprises:
identifying the target object; and
displaying, in the shooting preview screen, the calibration area that matches a shape of the target object.

### Claim 7 (depends on 1)

The method according to claim 1, wherein after the obtaining a preview image of a target object, the method further comprises at least one of the following:
displaying first prompt information, wherein the first prompt information is used to prompt a user to move the target object so that the preview image coincides with the calibration area; and
displaying second prompt information, wherein the second prompt information is used to prompt the user to select a target object with preset characteristics.

### Claim 8

A terminal device, comprising a memory, a processor, and a computer program stored on the memory and capable of running on the processor, wherein when the computer program is executed by the processor, following steps are implemented:
obtaining a preview image of a target object in a shooting preview screen;
obtaining a first measurement value of a distance sensor when a degree of coincidence between the preview image and a calibration area in the shooting preview screen exceeds a threshold;
obtaining a calibration distance between the target object and the terminal device; and
obtaining a calibration offset corresponding to the target object based on the first measurement value and the calibration distance.

### Claim 9 (depends on 8)

The terminal device according to claim 8, wherein the obtaining a calibration offset corresponding to the target object based on the first measurement value and the calibration distance comprises:
using a difference between the first measurement value and the calibration distance as the calibration offset.

### Claim 10 (depends on 8)

The terminal device according to claim 8, wherein when the computer program is executed by the processor, following steps are further implemented: after the obtaining a calibration offset corresponding to the target object,
obtaining a second measurement value of the distance sensor; and
obtaining a calibrated second measurement value based on the second measurement value and the calibration offset.

### Claim 11 (depends on 10)

The terminal device according to claim 10, wherein the obtaining a calibrated second measurement value based on the second measurement value and the calibration offset comprises:
using a difference between the second measurement value and the calibration offset as the calibrated second measurement value.

### Claim 12 (depends on 8)

The terminal device according to claim 8, wherein the obtaining a calibration distance between the target object and the terminal device comprises:
identifying the target object; and
obtaining the calibration distance between the target object and the terminal device based on a correspondence between objects and calibration distances.

### Claim 13 (depends on 8)

The terminal device according to claim 8, wherein when the computer program is executed by the processor, following steps are further implemented: before the obtaining a preview image of a target object,
identifying the target object; and
displaying, in the shooting preview screen, the calibration area that matches a shape of the target object.

### Claim 14 (depends on 8)

The terminal device according to claim 8, wherein when the computer program is executed by the processor, at least one of following steps are further implemented: after the obtaining a preview image of a target object,
displaying first prompt information, wherein the first prompt information is used to prompt a user to move the target object so that the preview image coincides with the calibration area; and
displaying second prompt information, wherein the second prompt information is used to prompt the user to select a target object with preset characteristics.

### Claim 15

A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, following steps are implemented:
obtaining a preview image of a target object in a shooting preview screen;
obtaining a first measurement value of a distance sensor when a degree of coincidence between the preview image and a calibration area in the shooting preview screen exceeds a threshold;
obtaining a calibration distance between the target object and the terminal device; and
obtaining a calibration offset corresponding to the target object based on the first measurement value and the calibration distance.

### Claim 16 (depends on 15)

The computer-readable storage medium according to claim 15, wherein the obtaining a calibration offset corresponding to the target object based on the first measurement value and the calibration distance comprises:
using a difference between the first measurement value and the calibration distance as the calibration offset.

### Claim 17 (depends on 15)

The computer-readable storage medium according to claim 15, wherein when the computer program is executed by the processor, following steps are further implemented: after the obtaining a calibration offset corresponding to the target object,
obtaining a second measurement value of the distance sensor; and
obtaining a calibrated second measurement value based on the second measurement value and the calibration offset.

### Claim 18 (depends on 17)

The computer-readable storage medium according to claim 17, wherein the obtaining a calibrated second measurement value based on the second measurement value and the calibration offset comprises:
using a difference between the second measurement value and the calibration offset as the calibrated second measurement value.

### Claim 19 (depends on 15)

The computer-readable storage medium according to claim 15, wherein the obtaining a calibration distance between the target object and the terminal device comprises:
identifying the target object; and
obtaining the calibration distance between the target object and the terminal device based on a correspondence between objects and calibration distances.

### Claim 20 (depends on 15)

The computer-readable storage medium according to claim 15, wherein when the computer program is executed by the processor, following steps are further implemented: before the obtaining a preview image of a target object,
identifying the target object; and
displaying, in the shooting preview screen, the calibration area that matches a shape of the target object.
