# US 2019/0320120 A1 · Camera Focusing Method, Apparatus, and Device for Terminal

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

- Number: US 2019/0320120 A1
- Document ID: US20190320120A1
- Status: Published application
- Kind: A1
- Application number: 16/087,926
- Filed: 2016-03-23
- Published: 2019-10-17
- Earliest claimed: 2016-03-23
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Cheng Du; Wei Luo; Xin Guo; Huaiyang Rong; Jin Wu
- Web page: https://patentgrep.com/patent/US20190320120A1

## CPC

- G01B 11/02: for measuring length, width or thickness (G01B11/08 takes precedence)
- H04N 23/671: {in combination with active ranging signals, e.g. using light or sound signals emitted toward objects}
- G01C 3/00: Measuring distances in line of sight; Optical rangefinders (tapes, chains or wheels for measuring length G01B3/00; active triangulation systems, i.e. using the transmission and reflection of electromagnetic waves other than radio waves, G01S17/48)
- G01C 3/08: Use of electric radiation detectors
- G01C 3/14: with binocular observation at a single point, e.g. stereoscopic type (G01C3/20 takes precedence)
- G02B 7/287: {including a sight line detecting device}
- H04N 23/45: for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
- H04N 23/661: Transmitting camera control signals through networks, e.g. control via the Internet
- H04N 23/63: by using electronic viewfinders
- G01B: MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G01C: MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY (measuring liquid level G01F; radio navigation, determining distance or velocity by use of propagation effects, e.g. Doppler effects, propagation time, of radio waves, analogous arrangements using other waves G01S)
- G02B: OPTICAL ELEMENTS, SYSTEMS OR APPARATUS

## Abstract

A camera focusing method, apparatus, and device for a terminal, and relate to the field of electronic device technologies to improve focusing precision of a terminal in a camera focusing process. The method includes obtaining a first confidence and a second confidence, determining a target ranging manner and a target object distance when the first confidence and the second confidence meet a preset condition, and determining a target position in a lens position interval to help a first camera and a second camera complete focusing.

## Claims

### Claim 1

A camera focusing method for a terminal, comprising:
obtaining a first confidence and a second confidence, the first confidence comprising a confidence of an object distance obtained by measurement in a laser ranging manner, the second confidence comprising a confidence of an object distance obtained by measurement in a binocular ranging manner, a confidence indicating accuracy of an object distance obtained by measurement in a ranging manner, the terminal comprising a laser sensor, a first camera, and a second camera, and the first camera and the second camera being disposed side by side;
determining a target ranging manner and a target object distance when the first confidence and the second confidence meet a preset condition, the preset condition comprising that the first confidence is greater than a first confidence threshold or the second confidence is greater than a second confidence threshold, and the target ranging manner comprising the laser ranging manner or the binocular ranging manner;
determining a target position in a lens position interval; and
assisting the first camera and the second camera to complete focusing based on the target position in the lens position interval.

### Claim 2 (depends on 1)

The method of claim 1, wherein before determining the target ranging manner and the target object distance, the method further comprises obtaining a first object distance and a second object distance, the first object distance comprising the object distance obtained by measurement in the laser ranging manner, the second object distance comprising the object distance obtained by measurement in the binocular ranging manner, and determining the target ranging manner and the target object distance comprising:
determining that the ranging manner comprises the binocular ranging manner and the second object distance comprises the target object distance when the first confidence is greater than the first confidence threshold, the second confidence is greater than the second confidence threshold, and an absolute value of a difference between the first object distance and the second object distance is less than an object distance difference threshold;
determining that the ranging manner comprises the binocular ranging manner and the second object distances comprises the target object distance when the first confidence is less than or equal to the first confidence threshold, and the second confidence is greater than the second confidence threshold;
determining that the ranging manner comprises the laser ranging manner and the first object distance comprises the target object distance when the first confidence is greater than the first confidence threshold, the second confidence is greater than the second confidence threshold, and the absolute value of the difference between the first object distance and the second object distance is greater than or equal to the object distance difference threshold; and
determining that the ranging manner comprises the laser ranging manner and the first object distance comprises the target object distance when the first confidence is greater than the first confidence threshold, and the second confidence is less than or equal to the second confidence threshold.

### Claim 3 (depends on 2)

The method of claim 2, wherein the first camera is configured to collect a first image, and send the first image to a display of the terminal to help a user preview the first image, the second camera being configured to collect a second image not used for the user preview, and a speed of collecting the second image by the second camera being greater than a speed of collecting the first image by the first camera.

### Claim 4 (depends on 3)

The method of claim 3, wherein determining that the ranging manner comprises the binocular ranging manner and the second object distance comprises the target object distance comprises determining that the second object distance obtained by ranging according to the first image and the second image comprises the target object distance.

### Claim 5 (depends on 3)

The method of claim 3, wherein the first camera comprises a first lens, the second camera comprising a second lens and a second voice coil motor (VCM) before determining the target position in the lens position interval, the method further comprising determining an initial position corresponding to the target object distance, the initial position comprising a position of the first lens and a position of the second lens determined according to the target object distance, and determining the target position in the lens position interval comprising:
controlling the second VCM to move the second lens in the lens position interval using the initial position as a start point to complete preliminary focusing; and
determining, as the target position, a lens position corresponding to the second image with maximum contrast in all preliminary focusing results.

### Claim 6 (depends on 5)

The method of claim 5, wherein the first camera comprises a first VCM, and after determining the target position in the lens position interval, the method further comprising:
controlling the second VCM to move the second lens to the target position;
obtaining a focusing result of the second camera;
synchronizing the focusing result of the second camera to the first camera; and
controlling the first VCM to move the first lens to the target position according to the focusing result of the second camera.

### Claim at position 7

-12. (canceled)

### Claim 13

A camera focusing device for a terminal, comprising:
an interface circuit configured to obtain a first confidence and a second confidence, the first confidence comprising a confidence of an object distance obtained by measurement in a laser ranging manner, the second confidence comprising a confidence of an object distance obtained by measurement in a binocular ranging manner, a confidence indicating accuracy of an object distance obtained by measurement in a ranging manner, the terminal comprising a laser sensor, a first camera, and a second camera, and the first camera and the second camera being disposed side by side; and
a processor coupled to the interface circuit and configured to:
determine a target ranging manner and a target object distance when the first confidence and the second confidence obtained by the interface circuit meet a preset condition, the preset condition comprising that the first confidence is greater than a first confidence threshold or the second confidence is greater than a second confidence threshold, and the target ranging manner comprising the laser ranging manner or the binocular ranging manner;
determine a target position in a lens position interval; and
assist the first camera and the second camera to complete focusing based on the target position in the lens position interval.

### Claim 14 (depends on 13)

The device of claim 13, wherein before determining the target ranging manner and the target object distance, the interface circuit is further configured to obtain a first object distance and a second object distance, the first object distance comprising the object distance obtained by measurement in the laser ranging manner, the second object distance comprising the object distance obtained by measurement in the binocular ranging manner, and the processor being further configured to:
determine that the ranging manner comprises the binocular ranging manner and the second object distance comprises the target object distance when the first confidence obtained by the interface circuit is greater than the first confidence threshold, the second confidence is greater than the second confidence threshold, and an absolute value of a difference between the first object distance and the second object distance is less than an object distance difference threshold;
determine that the ranging manner comprises the binocular ranging manner and the second object distance comprises the target object distance when the first confidence is less than or equal to the first confidence threshold, and the second confidence is greater than the second confidence threshold;
determine that the ranging manner comprises the laser ranging manner and the first object distance comprises the target object distance when the first confidence is greater than the first confidence threshold, the second confidence is greater than the second confidence threshold, and the absolute value of the difference between the first object distance and the second object distance is greater than or equal to the object distance difference threshold; and
determine that the ranging manner comprises the laser ranging manner and the first object distance comprises the target object distance when the first confidence is greater than the first confidence threshold, and the second confidence is less than or equal to the second confidence threshold.

### Claim 15 (depends on 14)

The device of claim 14, wherein the first camera is configured to collect a first image, and send the first image to a display of the terminal to help a user preview the first image, the second camera being configured to collect a second image not used for the user preview, and a speed of collecting the second image by the second camera is being greater than a speed of collecting the first image by the first camera.

### Claim 16 (depends on 15)

The device of claim 15, wherein in a manner of determining that the ranging manner comprises the binocular ranging manner, the processor is further configured to determine that the second object distance obtained by ranging according to the first image and the second image comprises the target object distance.

### Claim 17 (depends on 15)

The device of claim 15, wherein the first camera comprises a first lens, the second camera comprising a second lens and a second voice coil motor (VCM), and before determining the target position in the lens position interval, the processor being further configured to:
determine an initial position corresponding to the target object distance, the initial position comprising a position of the first lens and a position of the second lens determined according to the target object distance;
control the second VCM to move the second lens in the lens position interval using the initial position as a start point to complete preliminary focusing; and
determine, as the target position, a lens position corresponding to the second image with maximum contrast in all preliminary focusing results.

### Claim 18 (depends on 17)

The device of claim 17, wherein the first camera comprises a first VCM, and after determining the target position in the lens position interval, the processor being further configured to:
control the second VCM to move the second lens to the target position; and
obtain a focusing result of the second camera,
the interface circuit being further configured to synchronize the focusing result of the second camera obtained by the processor to the first camera, and
the processor being further configured to control the first VCM to move the first lens to the target position according to the focusing result of the second camera synchronized by the interface circuit.

### Claim 19

A computer program product comprising a readable storage medium configured to store a computer program code, the computer program code running on a processor, and the computer program code causing the processor to be configured to:
obtain a first confidence and a second confidence, the first confidence comprising a confidence of an object distance obtained by measurement in a laser ranging manner, the second confidence comprising a confidence of an object distance obtained by measurement in a binocular ranging manner, and a confidence indicating accuracy of an object distance obtained by measurement in a ranging manner;
determine a target ranging manner and a target object distance when the first confidence and the second confidence meet a preset condition, the preset condition comprises that the first confidence is greater than a first confidence threshold or the second confidence is greater than a second confidence threshold, and the target ranging manner comprising the laser ranging manner or the binocular ranging manner;
determine a target position in a lens position interval; and
assist a first camera and a second camera to complete focusing based on the target position in the lens position interval, the first camera and the second camera being disposed side by side on a terminal, and the terminal further comprising a laser sensor.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein before determining the target ranging manner and the target object distance, the computer program code further causes the processor to be configured to obtain a first object distance and a second object distance, the first object distance comprising the object distance obtained by measurement in the laser ranging manner, the second object distance comprising the object distance obtained by measurement in the binocular ranging manner, and the computer program code being further causing the processor to be configured to:
determine that the ranging manner comprises the binocular ranging manner and the second object distance comprises the target object distance when the first confidence is greater than the first confidence threshold, the second confidence is greater than the second confidence threshold, and an absolute value of a difference between the first object distance and the second object distance is less than an object distance difference threshold;
determine that the ranging manner comprises the binocular ranging manner and the second object distance comprises the target object distance when the first confidence is less than or equal to the first confidence threshold, and the second confidence is greater than the second confidence threshold;
determine that the ranging manner comprises the laser ranging manner and the first object distance comprises the target object distance when the first confidence is greater than the first confidence threshold, the second confidence is greater than the second confidence threshold, and the absolute value of the difference between the first object distance and the second object distance is greater than or equal to the object distance difference threshold; and
determine that the ranging manner comprises the laser ranging manner and the first object distance comprises the target object distance when the first confidence is greater than the first confidence threshold, and the second confidence is less than or equal to the second confidence threshold.

### Claim 21 (depends on 20)

The computer program product of claim 20, wherein the first camera is configured to collect a first image, and send the first image to a display of the terminal to help a user preview the first image, the second camera being configured to collect a second image not used for the user preview, and a speed of collecting the second image by the second camera being greater than a speed of collecting the first image by the first camera.

### Claim 22 (depends on 21)

The computer program product of claim 21, wherein in a manner of determining that the ranging manner comprises the binocular ranging manner, the computer program code is further causes the processor to be configured to determine that the second object distance obtained by ranging according to the first image and the second image is the target object distance.

### Claim 23 (depends on 21)

The computer program product of claim 21, wherein the first camera comprises a first lens, the second camera comprising a second lens and a second voice coil motor (VCM), before determining the target position in the lens position interval, the computer program code being further causing the processor to be configured to determine an initial position corresponding to the target object distance, the initial position comprising a position of the first lens and a position of the second lens determined according to the target object distance, and the computer program code being further causing the processor to be configured to:
control the second VCM to move the second lens in the lens position interval using the initial position as a start to complete preliminary focusing; and
determine, as the target position, a lens position corresponding to the second image with maximum contrast in all preliminary focusing results.

### Claim 24 (depends on 23)

The computer program product of claim 23, wherein the first camera comprises a first VCM, and after determining the target position in the lens position interval, the computer program code further causing the processor to be configured to:
control the second VCM to move the second lens to the target position;
obtain a focusing result of the second camera;
synchronize the focusing result of the second camera to the first camera; and
control the first VCM to move the first lens to the target position according to the focusing result of the second camera.
