# US 10,313,577 B2 · Focus detection apparatus, focus detection method, and image capturing apparatus

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

- Number: US 10,313,577 B2
- Document ID: US10313577B2
- Status: Granted
- Kind: B2
- Application number: 15/410,027
- Filed: 2017-01-19
- Published: 2017-07-27
- Granted: 2019-06-04
- Earliest claimed: 2016-01-21
- Assignees: Canon Kabushiki Kaisha
- Applicants: Canon Kabushiki Kaisha
- Inventors: Naoyuki Ohara
- Web page: https://patentgrep.com/patent/US10313577B2

## CPC

- H04N 23/672: {based on the phase difference signals}
- G06T 7/0002: {Inspection of images, e.g. flaw detection}
- H04N 23/61: based on recognised objects
- H04N 23/675: {comprising setting of focusing regions}
- H04N 25/134: {based on three different wavelength filter elements}
- H04N 25/704: Pixels specially adapted for focusing, e.g. phase difference pixel sets
- G06T 2207/20021: Dividing image into blocks, subimages or windows
- G06T 2207/30196: Human being; Person
- H04N 23/634: {Warning indications}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A focus detection apparatus that performs phase difference focus detection using signals output from focus detection pixels each having first and second photoelectric portions that share one microlens, comprises: a setting unit that sets a focus detection area; a detection unit that detects whether a position and/or a size of a subject in an image has changed; a division unit that divides the focus detection area into a plurality of divisional areas by a divisor that is smaller when the detection result yields true than when it yields false; and a focus detection unit that adds signals respectively for the first and second photoelectric portions included in each divisional area in the divisional direction and obtains correlation amounts between the added signals, and adds the obtained correlation amounts for each focus detection area, then performs the focus detection.

## Claims

### Claim 1

A focus detection apparatus that performs focus detection based on a phase difference method using signals output from an image sensor including a plurality of focus detection pixels, each focus detection pixel having a first photoelectric portion and a second photoelectric portion that share one microlens and receive light beams passing through different pupil regions of an imaging optical system, the focus detection apparatus comprising:
a setting unit that sets one or more focus detection areas in which the focus detection is performed, such that a subject in an image formed on the image sensor is included therein;
a detection unit that detects whether at least one of a position and a size of the subject has changed;
a division unit that divides each of the one or more focus detection areas into a plurality of divisional areas in a preset first direction in accordance with a result of the detection by the detection unit; and
a focus detection unit that
for each divisional area, adds signals output from the first photoelectric portions included in the divisional area in the first direction, adds signals output from the second photoelectric portions included in the divisional area in the first direction, and obtains correlation amounts while shifting a pair of signals obtained through the addition relative to each other, and
adds the obtained correlation amounts of the divisional areas for each focus detection area, and performs the focus detection based on a result of adding the obtained correlation amounts,
wherein the division unit makes a divisor used in obtaining the divisional areas smaller when at least one of the position and the size of the subject has changed than when there is no change in the position and the size of the subject.

### Claim 2 (depends on 1)

The focus detection apparatus according to claim 1, wherein the focus detection unit detects whether the size of the subject is larger than a preset first threshold, and if the size of the subject is larger than the first threshold, thins or adds signals output from the focus detection pixels in a second direction perpendicular to the first direction.

### Claim 3 (depends on 1)

The focus detection apparatus according to claim 1, wherein if the position of the subject has changed, the setting unit makes the number of the focus detection areas to be set smaller when a movement amount of the position of the subject is smaller than a preset second threshold than when the movement amount is equal to or larger than the second threshold.

### Claim 4 (depends on 1)

The focus detection apparatus according to claim 1, wherein the focus detection unit sets a range of the shifting to be smaller when a change amount of the size of the subject detected by the detection unit is smaller than a preset third threshold than when the change amount is equal to or larger than the third threshold.

### Claim 5 (depends on 1)

The focus detection apparatus according to claim 1, further comprising
a conversion unit that converts a result of the focus detection by the focus detection unit into a driving amount for driving a focus lens,
wherein the conversion unit is capable of executing correction processing for correcting the driving amount using information of the imaging optical system including the focus lens, and if at least one of the position and the size of the subject has changed, does not execute the correction processing.

### Claim 6

A focus detection apparatus that performs focus detection based on a phase difference method using signals output from an image sensor including a plurality of focus detection pixels, each focus detection pixel having a plurality of photoelectric portions that share one microlens and receive light beams passing through different pupil regions of an imaging optical system, the focus detection apparatus comprising:
a setting unit that sets one or more focus detection areas in which the focus detection is performed, such that a subject in an image formed on the image sensor is included therein;
a detection unit that, if a position of the subject has changed, detects a movement amount of the position of the subject; and
a focus detection unit that performs the focus detection in each focus detection area based on signals output from the focus detection pixels included in the focus detection area,
wherein the setting unit makes the number of the focus detection areas to be set smaller when the movement amount of the position of the subject is smaller than a preset first threshold than when the movement amount is equal to or larger than the first threshold.

### Claim 7 (depends on 6)

The focus detection apparatus according to claim 6, wherein
the focus detection unit performs the focus detection by obtaining correlation amounts while shifting signals output from the plurality of photoelectric portions relative to each other,
the detection unit further detects whether a size of the subject has changed, and
a range of the shifting is set to be smaller when a change amount of the size of the subject detected by the detection unit is smaller than a preset second threshold than when the change amount is equal to or larger than the second threshold.

### Claim 8 (depends on 6)

The focus detection apparatus according to claim 6, further comprising
a conversion unit that converts a result of the focus detection by the focus detection unit into a driving amount for driving a focus lens,
wherein the conversion unit is capable of executing correction processing for correcting the driving amount using information of the imaging optical system including the focus lens, and if at least one of the position and the size of the subject has changed, does not execute the correction processing.

### Claim 9

A focus detection apparatus that performs focus detection based on a phase difference method using signals output from an image sensor including a plurality of focus detection pixels, each focus detection pixel having a plurality of photoelectric portions that share one microlens and receive light beams passing through different pupil regions of an imaging optical system, the focus detection apparatus comprising:
a setting unit that sets one or more focus detection areas in which the focus detection is performed, such that a subject in an image formed on the image sensor is included therein;
a detection unit that detects whether a size of the subject has changed; and
a focus detection unit that performs the focus detection in each focus detection area by obtaining correlation amounts while shifting signals output from the plurality of photoelectric portions relative to each other,
wherein the focus detection unit sets a range of the shifting to be smaller when a change amount of the size of the subject detected by the detection unit is smaller than a preset threshold than when the change amount is equal to or larger than the threshold.

### Claim 10

An image capturing apparatus, comprising:
an image sensor including a plurality of focus detection pixels, each focus detection pixel having a first photoelectric portion and a second photoelectric portion that share one microlens and receive light beams passing through different pupil regions of an imaging optical system; and
a focus detection apparatus that performs focus detection based on a phase difference method using signals output from the image sensor, the focus detection apparatus comprising:
a setting unit that sets one or more focus detection areas in which the focus detection is performed, such that a subject in an image formed on the image sensor is included therein;
a detection unit that detects whether at least one of a position and a size of the subject has changed;
a division unit that divides each of the one or more focus detection areas into a plurality of divisional areas in a preset first direction in accordance with a result of the detection by the detection unit; and
a focus detection unit that
for each divisional area, adds signals output from the first photoelectric portions included in the divisional area in the first direction, adds signals output from the second photoelectric portions included in the divisional area in the first direction, and obtains correlation amounts while shifting a pair of signals obtained through the addition relative to each other, and
adds the obtained correlation amounts of the divisional areas for each focus detection area, and performs the focus detection based on a result of adding the obtained correlation amounts,
wherein the division unit makes a divisor used in obtaining the divisional areas smaller when at least one of the position and the size of the subject has changed than when there is no change in the position and the size of the subject.

### Claim 11

An image capturing apparatus, comprising:
an image sensor including a plurality of focus detection pixels, each focus detection pixel having a plurality of photoelectric portions that share one microlens and receive light beams passing through different pupil regions of an imaging optical system; and
a focus detection apparatus that performs focus detection based on a phase difference method using signals output from the image sensor, the focus detection apparatus comprising:
a setting unit that sets one or more focus detection areas in which the focus detection is performed, such that a subject in an image formed on the image sensor is included therein;
a detection unit that, if a position of the subject has changed, detects a movement amount of the position of the subject; and
a focus detection unit that performs the focus detection in each focus detection area based on signals output from the focus detection pixels included in the focus detection area,
wherein the setting unit makes the number of the focus detection areas to be set smaller when the movement amount of the position of the subject is smaller than a preset first threshold than when the movement amount is equal to or larger than the first threshold.

### Claim 12

An image capturing apparatus, comprising:
the image sensor including a plurality of focus detection pixels, each focus detection pixel having a plurality of photoelectric portions that share one microlens and receive light beams passing through different pupil regions of an imaging optical system; and
a focus detection apparatus that performs focus detection based on a phase difference method using signals output from an image sensor, the focus detection apparatus comprising:
a setting unit that sets one or more focus detection areas in which the focus detection is performed, such that a subject in an image formed on the image sensor is included therein;
a detection unit that detects whether a size of the subject has changed; and
a focus detection unit that performs the focus detection in each focus detection area by obtaining correlation amounts while shifting signals output from the plurality of photoelectric portions relative to each other,
wherein the focus detection unit sets a range of the shifting to be smaller when a change amount of the size of the subject detected by the detection unit is smaller than a preset threshold than when the change amount is equal to or larger than the threshold.

### Claim 13

A focus detection method for performing focus detection based on a phase difference method using signals output from an image sensor including a plurality of focus detection pixels, each focus detection pixel having a first photoelectric portion and a second photoelectric portion that share one microlens and receive light beams passing through different pupil regions of an imaging optical system, the focus detection method comprising:
setting one or more focus detection areas in which the focus detection is performed, such that a subject in an image formed on the image sensor is included therein;
detecting whether at least one of a position and a size of the subject has changed;
dividing each of the one or more focus detection areas into a plurality of divisional areas in a preset first direction in accordance with a result of the detection;
for each divisional area, adding signals output from the first photoelectric portions included in the divisional area in the first direction, and adding signals output from the second photoelectric portions included in the divisional area in the first direction;
for each divisional area, obtaining correlation amounts while shifting a pair of signals obtained through the addition relative to each other;
for each focus detection area, adding the obtained correlation amounts of the divisional areas; and
performing the focus detection based on a result of adding the obtained correlation amounts, wherein
in the dividing, a divisor used in obtaining the divisional areas is made smaller when at least one of the position and the size of the subject has changed than when there is no change in the position and the size of the subject.

### Claim 14

A focus detection method for performing focus detection based on a phase difference method using signals output from an image sensor including a plurality of focus detection pixels, each focus detection pixel having a plurality of photoelectric portions that share one microlens and receive light beams passing through different pupil regions of an imaging optical system, the focus detection method comprising:
setting one or more focus detection areas in which the focus detection is performed, such that a subject in an image formed on the image sensor is included therein;
if a position of the subject has changed, detecting a movement amount of the position of the subject; and
performing the focus detection in each focus detection area based on signals output from the focus detection pixels included in the focus detection area, wherein
in the setting, the number of the focus detection areas to be set is made smaller when the movement amount of the position of the subject is smaller than a preset first threshold than when the movement amount is equal to or larger than the first threshold.

### Claim 15

A focus detection method for performing focus detection based on a phase difference method using signals output from an image sensor including a plurality of focus detection pixels, each focus detection pixel having a plurality of photoelectric portions that share one microlens and receive light beams passing through different pupil regions of an imaging optical system, the focus detection method comprising:
setting one or more focus detection areas in which the focus detection is performed, such that a subject in an image formed on the image sensor is included therein;
detecting whether a size of the subject has changed; and
performing the focus detection in each focus detection area by obtaining correlation amounts while shifting signals output from the plurality of photoelectric portions relative to each other, wherein
in the performing of the focus detection, a range of the shifting is set to be smaller when a change amount of the size of the subject detected is smaller than a preset threshold than when the change amount is equal to or larger than the threshold.
