# US 2020/0007778 A1 · Phase-detection auto focus method and device therefor

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

- Number: US 2020/0007778 A1
- Document ID: US20200007778A1
- Status: Published application
- Kind: A1
- Application number: 16/478,323
- Filed: 2017-06-21
- Published: 2020-01-02
- Earliest claimed: 2017-01-17
- Assignees: Zte Corporation
- Applicants: Zte Corporation
- Inventors: Liguo LI
- Web page: https://patentgrep.com/patent/US20200007778A1

## CPC

- G03B 13/36: Autofocus systems
- H04N 23/672: {based on the phase difference signals}
- G02B 7/34: using different areas in a pupil plane
- H04N 23/663: for controlling interchangeable camera parts based on electronic image sensor signals
- G03B: APPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR (optical parts of such apparatus G02B; photosensitive materials or processes for photographic purposes G03C; apparatus for processing exposed photographic materials G03D)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G02B: OPTICAL ELEMENTS, SYSTEMS OR APPARATUS

## Abstract

A phase-detection auto focus method includes: dividing a focus region into a plurality of sub-regions, and respectively calculating a phase difference and a confidence level of each sub-region; performing dynamic matching in a corresponding weight table according to the phase difference and the confidence level of each sub-region, and performing a table lookup to obtain a corresponding weight value; calculating a phase difference and a confidence level of the focus area region in conjunction with the weight value; and performing auto focusing according to the phase difference and the confidence level of the focus region.

## Claims

### Claim 1

A phase-detection auto focus method, comprising:
dividing a focus region into a plurality of sub-regions, and respectively calculating a phase difference and a confidence level of each sub-region in the plurality of sub-regions;
performing dynamic matching in a corresponding weight table according to the phase difference and the confidence level of the each sub-region, and performing a table lookup to obtain a corresponding weight value;
calculating a phase difference and a confidence level of the focus region in conjunction with the weight value; and
performing auto focus according to the phase difference and the confidence level of the focus region.

### Claim 2 (depends on 1)

The phase-detection auto focus method of claim 1, wherein the performing dynamic matching in the corresponding weight table according to the phase difference and the confidence level of the each sub-region, and performing a table lookup to obtain the corresponding weight value comprises:
performing a one-dimensional table lookup in a pre-stored correspondence table of confidence levels and weight values according to the confidence level of the each sub-region to respectively obtain a first weight value corresponding to the each sub-region; and
performing a two-dimensional table lookup in a pre-stored correspondence table of depths of field and weight values according to the phase difference of the each sub-region to respectively obtain a second weight value corresponding to the each sub-region.

### Claim 3 (depends on 2)

The phase-detection auto focus method of claim 2, wherein the calculating the phase difference and the confidence level of the focus region in conjunction with the weight value comprises:
performing weighted summation on phase differences of the plurality of the sub-regions and performing weighted summation on confidence levels of the sub-regions according to the second weight value and the first weight value to obtain the phase difference and the confidence level of the focus region.

### Claim 4 (depends on 2)

The phase-detection auto focus method of claim 2, wherein the performing a two-dimensional table lookup in the pre-stored correspondence table of depths of field and weight values according to the phase difference of the each sub-region to respectively obtain a second weight value corresponding to the each sub-region comprises:
calculating an absolute difference corresponding to the phase difference of the each sub-region according to the phase difference of the each sub-region, determining whether the absolute difference corresponding to the each sub-region is greater than a preset depth of field threshold, and in condition that the absolute difference corresponding to the sub-region is greater than the preset depth of field threshold, determining that the depth of field of the sub-region is different from depths of field of other sub-regions in the focus region, matching a correspondence table of depths of field and weights according to the depth of field of the each sub-region, and performing the two-dimensional table lookup in the correspondence table of depths of field and weights to obtain the second weight value corresponding to the each sub-region; and
in condition that the absolute difference corresponding to the sub-region is less than or equal to the preset depth of field threshold, determining that the depth of field of the sub-region is a same as the depth of field of the other sub-regions in the focus region, automatically matching a preset default weight table, and performing the two-dimensional table look-up in the default weight table to obtain the second weight value corresponding to the sub-region.

### Claim 5 (depends on 4)

The phase-detection auto focus method of claim 4, wherein in second weight values respectively corresponding to the plurality of sub-regions obtained through the two-dimensional table lookup, a second weight value corresponding to a sub-region in a center of the focus region is greater than a second weight value corresponding to a sub-region around the sub-region in the center of the focus region.

### Claim 6

A phase-detection auto focus device, comprising:
a data processing module, which is configured to divide a focus region into a plurality of sub-regions, and respectively calculate a phase difference and a confidence level of each sub-region in the plurality of sub-regions;
a matching module, which is configured to perform dynamic matching in a corresponding weight table according to the phase difference and the confidence level of the each sub-region, and perform a table lookup to obtain a corresponding weight value; and
a controlling module, which is configured to calculate a phase difference and a confidence level of the focus region in conjunction with the weight value, and control auto focus according to the phase difference and the confidence level of the focus region.

### Claim 7 (depends on 6)

The phase-detection auto focus device of claim 6, wherein the matching module comprises:
a database, which is configured to pre-store a correspondence table of confidence levels and weight values and a correspondence table of depths of field and weight values;
a first matching submodule, which is configured to perform a one-dimensional table lookup in the pre-stored correspondence table of confidence levels and weight values according to the confidence level of the each sub-region to respectively obtain a first weight value corresponding to the each sub-region; and
a second matching submodule, which is configured to perform a two-dimensional table lookup in the pre-stored correspondence table of depths of field and weight values according to the phase difference of the each sub-region to respectively obtain a second weight value corresponding to the each sub-region.

### Claim 8 (depends on 7)

The phase-detection auto focus device of claim 7, wherein the second matching submodule comprises:
a depth-of-field determining unit, which is configured to determine whether depths of field of the plurality of sub-regions are a same according to the phase difference of the each sub-region; and
a weight matching unit, which is configured to: in response to determining by the depth-of-field determining unit that depths of field of the plurality of sub-regions are different, match a corresponding correspondence table of depths of field and weight values according to the depth of field corresponding to the each sub-region, and perform the two-dimensional table lookup in the correspondence table of depths of field and weight values to obtain the second weight value corresponding to the each sub-region, wherein a second weight value corresponding to a sub-region in a center of the focus region is greater than a second weight value corresponding to a sub-region around the sub-region in the center of the focus region; and in response to determining by the depth-of-field determining unit that depths of field of the plurality of sub-regions are the same, automatically match a preset default weight table, and perform the two-dimensional table look-up in the default weight table to obtain the second weight value corresponding to the each sub-region.

### Claim 9 (depends on 7)

The phase-detection auto focus device of claim 7, wherein the controlling module comprises:
a calculating submodule, which is configured to perform weighted summation on phase differences of the plurality of the sub-regions and perform weighted summation on confidence levels of the sub-regions according to the second weight value and the first weight value to obtain the phase difference and the confidence level of the focus region; and
a focusing submodule, which is configured to control a motor to automatically focus according to the phase difference and the confidence level of the focus area calculated by the calculating submodule.

### Claim 10 (depends on 8)

The phase-detection auto focus device of claim 8, wherein the depth-of-field determining unit comprises:
an absolute value calculating subunit, which is configured to calculate an absolute difference corresponding to the phase difference of the each sub-region according to the phase difference of the each sub-region; and
a comparing subunit, which is configured to: compare the absolute difference and a preset depth of field threshold and determine whether the absolute difference is greater than the preset depth of field threshold, and in condition that at least one absolute difference is greater than the preset depth of field threshold, determine that depths of field of the plurality of sub-regions are different; and in condition that the absolute difference value is less than or equal to the preset depth threshold, determine that sub-regions with different depths of field do not exist.

### Claim 11 (depends on 1)

A non-transitory storage medium, comprising stored programs which, when executed, perform the phase-detection auto focus method of claim 1.
