JP2013134403A - Focus adjustment device and imaging apparatus - Google Patents
Focus adjustment device and imaging apparatus Download PDFInfo
- Publication number
- JP2013134403A JP2013134403A JP2011285122A JP2011285122A JP2013134403A JP 2013134403 A JP2013134403 A JP 2013134403A JP 2011285122 A JP2011285122 A JP 2011285122A JP 2011285122 A JP2011285122 A JP 2011285122A JP 2013134403 A JP2013134403 A JP 2013134403A
- Authority
- JP
- Japan
- Prior art keywords
- focus
- area
- subject
- image
- imaging
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は、焦点調節装置及び撮像装置に関する。 The present invention relates to a focus adjustment device and an imaging device.
デジタルカメラに搭載されるオートフォーカス(AF)制御として、位相差検出方式やコントラスト検出方式のフォーカス制御が挙げられる。このようなAF制御を搭載したデジタルカメラにおいて、高速な連続撮影を実行させることも考案されている。 Examples of autofocus (AF) control mounted on a digital camera include phase control and contrast detection focus control. In a digital camera equipped with such AF control, it has been devised to execute high-speed continuous shooting.
高速な連続撮影では撮影間でのAF制御が難しいことから、連続撮影の開始時に調節されたフォーカスポジションを固定した撮影が行われる。しかしながら、連続撮影の開始時に主要被写体に焦点を合わせたフォーカス調節を行っていても、連続撮影の過程で主要被写体に焦点が合わなくなる場合が想定され、その結果、主要被写体に焦点が合わない画像データが取得されてしまう恐れが生じる。 Since it is difficult to perform AF control between shots in high-speed continuous shooting, shooting with a fixed focus position adjusted at the start of continuous shooting is performed. However, even if the focus adjustment is focused on the main subject at the start of continuous shooting, it is assumed that the main subject may not be in focus during the continuous shooting process, resulting in an image that is not focused on the main subject. There is a risk of data being acquired.
本発明は、高速な連続撮影を行う場合に主要被写体に焦点が合う画像データを取得することができるようにした焦点調節装置及び撮像装置を提供することを目的とする。 An object of the present invention is to provide a focus adjustment device and an imaging device that can acquire image data that focuses on a main subject when performing high-speed continuous shooting.
本発明の焦点調節装置は、被写体を検出する被写体検出部と、前記被写体検出部による被写体検出の結果に基づいて、撮像素子から連続して出力される画像のそれぞれから切り出す領域を対象領域として設定する設定部と、前記撮像素子から連続して出力される画像のそれぞれから切り出した前記対象領域の画像に対して圧縮処理を行う圧縮部と、前記圧縮処理された前記対象領域の画像のデータ量の変化に基づいて、前記撮像素子上へ被写体像を形成する撮像光学系のフォーカスポジションを制御する制御部と、を備えたことを特徴とする。 The focus adjustment apparatus according to the present invention sets, as a target region, a subject detection unit that detects a subject and a region that is cut out from each of the images that are continuously output from the image sensor based on the result of subject detection by the subject detection unit. A setting unit that performs compression processing on the image of the target region cut out from each of the images continuously output from the imaging device, and a data amount of the image of the target region that has been compressed And a control unit that controls a focus position of an image pickup optical system that forms a subject image on the image pickup element based on the change in the image pickup element.
また、本発明の撮像装置は、撮像光学系が形成する被写体像を連続して撮像し、画像を順次出力する撮像素子と、前記撮像素子から順次出力される画像に基づいて、前記撮像光学系のフォーカスポジションを制御する焦点調節装置と、を備えたことを特徴とする。 Further, the imaging apparatus of the present invention continuously captures the subject image formed by the imaging optical system, sequentially outputs the image, and the imaging optical system based on the images sequentially output from the imaging element. And a focus adjusting device for controlling the focus position of the camera.
本発明によれば、高速な連続撮影を行う場合に主要被写体に焦点が合う画像データを取得することができる。 According to the present invention, it is possible to acquire image data that focuses on a main subject when performing high-speed continuous shooting.
以下、本発明の実施形態としてデジタルカメラ10を例に説明する。本発明のデジタルカメラ10は、1回の撮像処理により静止画像を取得する静止画撮影の他、撮像処理を連続して行うことにより複数の静止画像を取得する連続撮影を行うことが可能である。この連続撮影は、例えば30コマ/秒、50コマ/秒、60コマ/秒など高速な連続撮影を行うことができる。
Hereinafter, a
図1に示すように、デジタルカメラ10は、撮像光学系15、クイックリターンミラー16、メカニカルシャッタ17、撮像素子18、アナログフロントエンド(AFE)回路19、タイミングジェネレータ(TG)20、レンズ駆動機構21、シャッタ駆動機構22、バッファメモリ25、画像処理回路26、圧縮/伸長回路27、表示制御回路28、表示装置29、接続用I/F30、CPU40、不揮発性メモリ41、ワークメモリ42、焦点検出部43、レリーズボタン44、操作部45などを備えている。AFE回路19、バッファメモリ25、画像処理回路26、圧縮/伸長回路27、表示制御回路28、接続用I/F30、CPU40は、バス46を介して電気的に接続される。
As shown in FIG. 1, the
撮像光学系15は、被写界光束を結像し、撮像素子18の撮像面近傍に被写界像を形成する。図1においては、撮像光学系15として単一のレンズとして記載しているが、実際には、フォーカシングレンズを備えた複数のレンズから構成される。このフォーカシングレンズは、レンズ駆動機構21を介して光軸方向に移動される。フォーカシングレンズを光軸方向に移動させることで、フォーカス制御が実行される。
The imaging
また、撮像光学系15は、不図示の絞りを備えている。この絞りは、CPU40により設定されるAv値に応じて、絞り径が調整される。このAv値は、ユーザが入力した値であってもよいし、自動露出演算により算出された値であってもよい。
The imaging
クイックリターンミラー16は、撮像光学系15と撮像素子18との間の被写界光束の光路上に配置される。このクイックリターンミラー16は、ミラーダウン状態と、ミラーアップ状態との間で切り替えられる。クイックリターンミラー16がミラーダウン状態の場合、被写体光束はクイックリターンミラー16により焦点検出部43及び不図示の測光部へと導かれる。一方、クイックリターンミラー16がミラーアップ状態の場合、被写体光束は、クイックリターンミラー16により撮像素子18へ導かれる。
The
メカニカルシャッタ17は、クイックリターンミラー16と撮像素子18との間の、被写界光束の光路上に配置される。このメカニカルシャッタ17は、TG20からの駆動信号を受けたシャッタ駆動機構22により開閉される。
The
撮像素子18は、CCDイメージセンサ、CMOSイメージセンサなどから構成される。この撮像素子18は、TG20から供給される駆動信号に応じて、信号の蓄積及び信号の読み出しを行う。
The
TG20は、CPU40からの指示に応じて、撮像素子18やシャッタ駆動機構22に対して駆動信号を出力する。また、TG20は、AFE回路19やCPU40に対して同期信号を供給する。ここで、TG20は、撮像素子18へ供給する駆動信号のパターンと、メカニカルシャッタ17へ供給する駆動信号のパターンとの組み合わせにより、1フレーム当たりの露光時間を制御する。この露光時間は、CPU40により指定されたTv値に応じた値に設定される。ここで、Tv値は、ユーザが入力した値であってもよいし、自動露出演算により算出された値であってもよい。ここで、後述する高速連写を行う場合には、メカニカルシャッタ17を開成状態としたまま、撮像素子18の駆動制御(信号の蓄積及び信号の読み出し)を行う。この場合、露光時間は、撮像素子18に供給される駆動信号のみで制御される。つまり、高速連写を行う場合には、メカニカルシャッタ17ではなく、電子シャッタが用いられる。
The
AFE回路19は、CDS回路、ゲイン回路、A/D変換回路などを備えている。CDS回路は、撮像素子18から出力されるアナログ信号のノイズ成分を相関二重サンプリングにより除去する。ゲイン回路は、ノイズが除去されたアナログ信号を増幅する。A/D変換し出力変換回路は、増幅されたアナログ信号をデジタル信号に変換する。
The
ここで、ゲイン回路による信号の増幅時に用いられる信号増幅率(ゲイン)は、CPU40からのSv値に基づいた値である。このSv値は撮影時の感度(ISO感度)であり、このSv値は、ユーザが指定した値であってもよいし、自動露出演算にて算出された値であってもよい。
Here, the signal amplification factor (gain) used when the signal is amplified by the gain circuit is a value based on the Sv value from the
焦点検出部43は、ミラーダウン状態のクイックリターンミラー16から導かれた被写界光束を瞳分割してから再統合することにより、撮像素子18に対する撮像光学系15のデフォーカス信号を生成する位相差検出方式の焦点検出部から構成される。ここで、撮像光学系15のデフォーカス信号は、撮像範囲に対して複数配置される複数のAFエリアのそれぞれで生成される。
The
バッファメモリ25は、AFE回路19から出力されたデジタル信号が書き込まれる。このバッファメモリ25は、AFE回路19から出力されたデジタル信号が書き込まれる他、画像処理回路26から転送された他のデジタル信号が書き込まれる。ここで、バッファメモリ25は、複数フレーム分のデジタル信号を記憶することができる。
In the
画像処理回路26は、ホワイトバランス処理回路、画素補間回路、マトリクス処理回路、非線形変換(γ補正)処理回路及び輪郭強調処理回路などを備え、デジタル信号に対して、ホワイトバランス、画素補間、マトリクス、非線形変換(γ補正)及び輪郭強調などの処理を施す。この画像処理回路26は、トリミング部47を備えている。トリミング部47は、連続撮影により得られた画像データのそれぞれから、後述する比較対象領域に該当する領域をトリミング処理する。なお、トリミング処理された画像データ(対象画像データ)は、バッファメモリ25に記憶される。
The
圧縮/伸長回路27は、画像処理済みの画像データや、対象画像データに対して圧縮処理を施す。圧縮処理が施された画像データは、接続用I/F30に接続を介して記憶媒体48に書き込まれる。ここで、記憶媒体48としては、不揮発性メモリからなるメモリーカード、光学ディスク、磁気ディスクなどが挙げられる。また、圧縮/伸長回路27は、記憶媒体48から読み出した圧縮処理済みの画像データに対して伸長処理を行う。表示制御回路28は、入力された画像データを表示用の所定方式の信号に変換して表示装置29に表示する。
The compression /
CPU40は、不揮発性メモリ41に格納されている制御プログラムに従って、ワークメモリ42を一時記憶作業領域として利用して各部の制御を行う。このCPU40は、連続撮影時に、顔検出部51、領域設定部52、データ比較部53、焦点制御部54の機能が有効となる。
The
顔検出部51は、画像中に含まれる人物の顔を検出する。この顔を検出する処理としては、例えば画像に含まれる肌色の領域を検出し、肌色の領域に含まれる特徴量から、顔であるか否かの判定を行う処理、又は顔形状のテンプレートを複数用意しておき、テンプレートと画像との相関から顔の領域を検出する処理等が挙げられる。顔検出部51は、顔が検出されると、検出された顔を含む矩形の領域を顔領域として抽出し、顔領域の位置データを求める。ここで、顔領域の位置データは、顔領域の四隅の頂点の位置座標を示すアドレスデータである。
The
領域設定部52は、後述するデータ比較部53にて実行されるデータ比較の際に用いる領域(比較対象領域)を設定する。まず、領域設定部52は、連続撮影における1回目の撮像処理により得られる画像を縦m個横n個の計m×n個の領域に分割する。この領域分割に関わるデータは例えばワークメモリ42に記憶される。以下、画像を分割することで得られる領域を分割領域と称して説明する。
The
上述した顔検出部51による顔検出処理において顔が検出された場合には、抽出された顔領域の位置データを用いて、分割された複数の領域のうちのいずれかの領域を、比較対象領域として設定する。一方、顔検出部51による顔検出処理において、顔が検出されない場合には、領域設定部52は、1回目の撮像処理にて実行されるフォーカス調節の結果に基づいて、分割された複数の領域のうちのいずれかの領域を、比較対象領域として設定する。
When a face is detected in the face detection process by the
比較対象領域が設定されると、領域設定部52は、比較対象領域の位置データを求める。求めた比較対象領域の位置データは、比較対象領域の四隅の頂点の位置座標を示すアドレスデータである。なお、この比較対象領域の位置データは、画像処理回路26に出力される。画像処理回路26は、比較対象領域の位置データに基づいて、連続撮影時に得られる各画像データに対してトリミング処理を実行する。
When the comparison target area is set, the
データ比較部53は、上述した圧縮処理が施された対象画像データのデータ量を比較する。例えば同じ被写界を撮影した2つの画像のデータ量は近似する。しかしながら、鮮鋭度が高い画像のデータ量は、鮮鋭度の低い画像のデータ量よりも大きくなる傾向がある。ここで、画像における鮮鋭度が高いほど、ピントがあった画像となる。また、上述した比較対象領域は、主要被写体となる人物の顔領域、又は焦点が合うAFエリアが含まれる領域であることから、圧縮処理済みの対象画像データのデータ量を比較することで、画像において注目すべき領域に対して焦点が合うように、フォーカス制御を行うことができ、他の領域に焦点が合うことを防止することができる。
The
焦点制御部54は、連続撮影における各フォーカス制御を実行する。この連続撮影における1回目の撮像処理のフォーカス制御は、上述した焦点検出部43における検出結果を利用したフォーカス制御である。また、連続撮影における2回目以降のフォーカス制御は、データ比較部53による比較結果に基づいたフォーカス制御である。なお、2回目以降のフォーカス制御は、比較対象領域をトリミングすることで得られる対象画像の鮮鋭度と、対象画像のデータ量との関係を利用したフィードバック制御となる。
The
次に、比較対象領域の設定について説明する。 Next, setting of the comparison target area will be described.
上述したように、比較対象領域は、顔検出部51による顔の検出処理の結果に基づいて設定される。以下、1回目の撮像処理により得られた画像P1を縦4個、横6個計24個の領域A1〜A24に分割した場合について説明する。顔検出部51により顔が検出されている場合には、領域設定部52は、検出された顔が単数(1つ)であるか、複数(2以上)であるかを判定する。
As described above, the comparison target region is set based on the result of the face detection process by the
例えば検出された顔が1つである場合、領域設定部52は、抽出された顔領域が1つの分割領域よりも小さいか否かを判定する。顔領域が分割領域よりも小さいと判定された場合、領域設定部52は、抽出された顔領域が複数の分割領域のいずれかの領域に収まるか、複数の分割領域に跨るかを判定する。
For example, when the number of detected faces is one, the
図2(a)に示すように、抽出された顔領域FR1が1つの分割領域よりも小さく、また顔領域FR1が分割領域A17に収まる場合、領域設定部52は、分割領域A17を比較対象領域として設定する。
As shown in FIG. 2A, when the extracted face area FR 1 is smaller than one divided area and the face area FR 1 fits in the divided area A 17 , the
図2(b)に示すように、抽出された顔領域FR2が1つの分割領域よりも小さい場合であっても、顔領域FR2が複数の分割領域A10、A11、A16、A17に跨るときもある。このような場合には、領域設定部52は、分割領域A10、A11、A16、A17を比較対象領域として設定する。図2(b)においては、顔領域FR2が複数の分割領域A10、A11、A16、A17に跨る場合を説明しているが、顔領域が上下方向又は左右方向に隣り合う2つの分割領域に跨る場合には、顔領域が跨る2つの分割領域を比較対象領域に設定すればよい。
As shown in FIG. 2B, even when the extracted face area FR 2 is smaller than one divided area, the face area FR 2 is divided into a plurality of divided areas A 10 , A 11 , A 16 , A There are times when it straddles 17 . In such a case, the
一方、図2(c)に示すように、顔領域FR3が1つの分割領域よりも大きい場合には、顔領域FR3は複数の分割領域に跨るので、このような場合、領域設定部52は、顔領域FR3が跨る分割領域A10、A11、A12、A16,A17、A18、A22、A23、A24を比較対象領域として設定する。
On the other hand, as shown in FIG. 2C, when the face area FR 3 is larger than one divided area, the face area FR 3 extends over a plurality of divided areas. In such a case, the
また、顔検出部51により検出された顔が複数となる場合、領域設定部52は、まず、検出された複数の顔に基づく顔領域のうち、1つの分割領域よりも大きい顔領域があるか否かを判定する。図3(a)は、3つの顔領域FR4、FR5、FR6が抽出された場合を示す。顔領域FR4、FR5、FR6のうち、顔領域FR6が最も大きい顔領域となる場合には、領域設定部52は顔領域FR6を選択する。そして、領域設定部52は、選択された顔領域FR6が跨る分割領域A16,A17、A22、A23を、比較対象領域として設定する。
When there are a plurality of faces detected by the
一方、図3(b)に示すように、検出された3つの顔領域FR7、FR8、FR9のいずれも、1つの分割領域よりも小さい場合がある。このような場合には、領域設定部52は、顔領域の位置とAFエリアの位置とに基づいて、AFエリアのいずれかに重畳する顔領域があるか否かを判定する。AFエリアのいずれかに重畳する顔領域があれば、領域分割部52は、その顔領域を選択し、選択された顔領域が収まる分割領域、或いは顔領域が跨る分割領域を比較対象領域として設定する。図3(b)においては、顔領域FR8がAFエリアに重畳しているので、領域設定部52は、顔領域FR8を選択する。そして、領域設定部52は、顔領域FR8が収まる分割領域A9を比較対象領域として設定する。なお、検出された顔領域のいずれもがAFエリアに重畳されない場合には、検出された顔領域のうち、最も大きい顔領域が位置する分割領域を比較対象領域としてもよいし、焦点が合うAFエリアが含まれる分割領域を比較対象領域としてもよい。
On the other hand, as shown in FIG. 3B, any of the detected three face regions FR 7 , FR 8 , FR 9 may be smaller than one divided region. In such a case, the
次に、顔検出部51による顔検出処理において顔が検出されない場合について説明する。顔検出部51による顔検出処理において顔が検出されない場合、領域設定部52は、連続撮影が開始されたときに実行されるフォーカス調節の結果に基づいて、複数の分割領域のうちのいずれかの領域を、比較対象領域として設定する。上述した1回目の撮像処理においては、焦点検出部43により求められるAFエリア毎のデフォーカス信号を用いたフォーカス制御が実行される。領域設定部52は、これらAFエリアのうち、焦点が合うAFエリアを用いて、比較対象領域を設定する。
Next, a case where no face is detected in the face detection process by the
図4(a)に示すように、複数のAFエリアのうち、焦点が合うAFエリアとして1つのAFエリアB1が該当する場合、領域設定部52は、焦点が合うAFエリアB1が1つの分割領域に収まるか、複数の分割領域に跨るかを判定する。この場合、AFエリアB1は分割領域A10に収まるので、領域設定部52は、分割領域A10を比較対象領域として設定する。
As shown in FIG. 4 (a), among the plurality of AF areas, if one of the AF area B 1 as the AF area in focus falls, the
例えば複数のAFエリアは、必ずしも分割領域内に収まらずに、隣り合う分割領域に跨る場合もある。図4(b)に示すように、分割領域A9、A10、A15、A16に跨るAFエリアB2が焦点の合うAFエリアとなる場合、領域設定部52は、分割領域A9、A10、A15、A16を比較対象領域として設定する。
For example, a plurality of AF areas may not necessarily fall within the divided areas and may extend over adjacent divided areas. As shown in FIG. 4B, when the AF area B 2 extending over the divided areas A 9 , A 10 , A 15 , A 16 is an in-focus AF area, the
一方、焦点が合うAFエリアが複数ある場合には、領域設定部52は、焦点の合うAFエリアのそれぞれが1つの分割領域に収まるか否かを判定する。図5(a)は、焦点の合うAFエリアが複数、1つの分割領域に収まる場合であり、焦点の合うAFエリアは塗りつぶして示している。この場合、領域設定部52は、焦点が合うAFエリアが収まる分割領域A10を比較対象領域として設定する。
On the other hand, when there are a plurality of in-focus AF areas, the
一方、焦点の合うAFエリアが複数あり、それぞれのAFエリアが複数の分割領域に収まる場合には、領域設定部52は、焦点の合うAFエリアが含まれる分割領域を全て比較対象領域として設定する。図5(b)の場合、塗りつぶしで示すAFエリアが焦点の合うAFエリアである。この場合、領域設定部52は、焦点が合うAFエリアが位置する分割領域A9、A10、A15、A16を比較対象領域として設定する。
On the other hand, when there are a plurality of in-focus AF areas and each AF area fits in a plurality of divided areas, the
なお、図5(c)に示すように、焦点が合うAFエリアが近接して位置せず、離散して位置している場合もある。このような場合には、領域設定部52は、焦点が合うAFエリアが含まれる分割領域A8及び分割領域A10、A11を比較対象領域として設定する。
As shown in FIG. 5C, the focused AF areas may not be located close to each other but may be located discretely. In such a case, the
図6〜図8は、連続撮影を行う場合の処理の流れを示すフローチャートである。 6 to 8 are flowcharts showing the flow of processing when continuous shooting is performed.
ステップS101は、レリーズボタンが半押し操作されたか否かを判定する処理である。レリーズボタン44には、その半押し操作及び全押し操作を検知する検知スイッチが設けられている。レリーズボタン44が半押し操作されると、半押し操作を検知する検知スイッチがオンとなり、その信号(以下、半押し信号)がCPU40に出力される。半押し信号が入力されたことを受けて、CPU40は、ステップS101の判定処理をYesとする。この場合、ステップS102に進む。
Step S101 is processing for determining whether or not the release button has been pressed halfway. The
一方、半押し信号が入力されない場合には、CPU40は、ステップS101の判定処理をNoとする。この場合には、ステップS101の判定処理がYesとなるまで、このステップS101の判定処理が実行される。
On the other hand, when the half-press signal is not input, the
ステップS102は、AE処理及びAF処理を実行する処理である。CPU40は、不図示の測光装置から出力される信号に基づいてAE処理を実行する。CPU40がAE処理を実行することで、Tv値、Av値及びSv値の組み合わせが決定される。また、CPU40は、焦点検出部が出力するデフォーカス信号に基づいてAF処理を実行する。このAF処理において、CPU40は、焦点検出部から入力されるデフォーカス信号のうち、設定されたフォーカスエリアのデフォーカス信号を選択した後、選択したデフォーカス信号からフォーカシングレンズの駆動量を求める。
Step S102 is processing for executing AE processing and AF processing. The
ステップS103は、レリーズボタンの半押し操作が解除されたか否かを判定する処理である。上述したように、レリーズボタン44が半押し操作されると、半押し信号がCPU40に入力される。また、レリーズボタン44の半押し操作が解除されると、CPU40への半押し信号の出力が停止される。すなわち、このステップS103においては、CPU40は、半押し信号の出力が停止されたか否かによって、レリーズボタン44の半押し操作が解除されたか否かを判定する。
Step S103 is processing for determining whether or not the half-press operation of the release button has been released. As described above, when the
例えば半押し信号の出力が継続されている場合には、CPU40は、レリーズボタン44の半押し操作が解除されていないと判定する。この場合、ステップS103の判定処理がNoとなり、ステップS104に進む。一方、半押し信号の出力が停止された場合には、CPU40は、レリーズボタン44の半押し操作が解除されたと判定する。この場合、ステップS103の判定処理がYesとなり、ステップS101に戻る。
For example, when the output of the half-press signal is continued, the
ステップS104は、レリーズボタンの全押し操作されたか否かを判定する処理である。レリーズボタン44が全押し操作されると、全押し操作を検知する検知スイッチがオンとなり、その信号(全押し信号)がCPU40に出力される。全押し信号が入力されたことを受けて、CPU40は、ステップS104の判定処理をYesとする。この場合、ステップS105に進む。一方、全押し信号が入力されない場合には、CPU40は、ステップS104の判定処理をNoとする。この場合、ステップS103戻る。
Step S104 is processing for determining whether or not the release button has been fully pressed. When the
ステップS105は、撮像処理(1回目)である。CPU40は、ステップS102で決定されたTv値、Av値及びSv値を、レンズ駆動機構21、TG20、AFE回路19に対して指定する。同時に、CPU40は、クイックリターンミラー16をミラーアップ状態に切り替える。そして、CPU40は、TG20に撮像開始の信号を出力する。これにより、撮像処理が実行される。
Step S105 is an imaging process (first time). The
この撮像処理を行うことで、撮像素子18から画像信号が出力される。この画像信号はAFE回路19を介してバッファメモリ25に記憶される。そして、画像処理回路26により読み出される。画像処理回路26は、ホワイトバランス調整、色補間、階調変換、色変換などの画像処理を施す。なお、画像処理回路26によって、各種画像処理が施された画像データは、再度バッファメモリ25に記憶される。
By performing this imaging process, an image signal is output from the
ステップS106は、顔検出処理である。CPU40は、バッファメモリ25に記憶された画像処理済みの画像データを読み出し、顔検出処理を実行する。この顔検出処理で顔が検出された場合、CPU40は、検出された顔を含む矩形の領域を顔領域として抽出した後、顔領域の位置データを求める。
Step S106 is face detection processing. The
ステップS107は、顔が検出されたか否かを判定する処理である。ステップS106の顔検出処理で、顔が検出されている場合には、CPU40は、ステップS107の判定処理をYesとする。この場合、ステップS108に進む。一方、ステップS106の判定処理で、顔が検出されない場合には、CPU40は、ステップS107の判定処理をNoとする。この場合、ステップS109に進む。
Step S107 is processing to determine whether or not a face has been detected. If a face is detected in the face detection process in step S106, the
ステップS108は、顔領域の位置データに基づいて比較対象領域を設定する処理である。例えば1つの顔が検出されている場合、CPU40は、顔領域の大きさと分割領域の大きさとを比較する。例えば顔領域の大きさが1つの分割領域の大きさよりも小さいときには、CPU40は、顔領域が1つの分割領域に収まるか、複数の分割領域に跨るかを判定する。顔領域が1つの分割領域に収まる場合には、CPU40は、顔領域が収まる分割領域を比較対象領域として設定する。一方、顔領域が複数の分割領域に跨る場合には、CPU40は、顔領域が跨る分割領域を比較対象領域として設定する。顔領域の大きさが1つの分割領域の大きさよりも大きい場合には、CPU40は、顔領域が跨る複数の分割領域を比較対象領域として設定する。
Step S108 is a process of setting a comparison target area based on the position data of the face area. For example, when one face is detected, the
また、複数の顔が検出される場合には、CPU40は、検出される複数の顔領域のうち、1つの分割領域の大きさよりも大きい顔領域があるか否かを判定する。1つの分割領域の大きさよりも大きい顔領域がある場合には、CPU40は、該顔領域が跨る分割領域を比較対象領域として設定する。
When a plurality of faces are detected, the
一方、検出される顔領域のいずれもが、1つの分割領域の大きさよりも小さい場合には、CPU40は、AFエリアに重畳される顔領域が位置する分割領域を比較対象領域として設定する。ここで、AFエリアに重畳される顔領域が位置する分割領域とは、AFエリアに重畳される顔領域が収まる分割領域、又は、AFエリアに重畳される顔領域が跨る分割領域である。
On the other hand, if any of the detected face areas is smaller than the size of one divided area, the
ステップS109は、AFエリアに基づいて比較対象領域を設定する処理である。 Step S109 is processing for setting a comparison target area based on the AF area.
上述したように、ステップS109の処理は、ステップS106にて顔検出されない場合に実行される。CPU40は、AFエリアのうち、焦点が合うAFエリアを特定する。そして、CPU40は、特定したAFエリアが位置する分割領域、或いは、AFエリアが跨る分割領域を比較対象領域として設定する。
As described above, the process of step S109 is executed when no face is detected in step S106. The
ステップS110は、画像データを保存する処理である。圧縮/伸長回路27は、バッファメモリ25に記憶された画像処理済みの画像データをバッファメモリ25上に複製(コピー)する。そして、複製した画像データに対して圧縮処理を施す。なお、圧縮処理を施した画像データはバッファメモリ25に記憶される。CPU40は、バッファメモリ25に記憶された圧縮処理済みの画像データを接続用I/F30を介して、記憶媒体48に記憶する。このステップS110により、1回目の撮影における画像データが記憶媒体48に記憶される。
Step S110 is processing for saving image data. The compression /
ステップS111は、トリミング処理である。画像処理回路26は、バッファメモリ25に記憶された画像処理済みの画像データを読み出す。そして、画像処理回路26は、比較対象領域に基づいた、トリミング処理を実行する。なお、トリミング処理が行われることで、対象画像データが生成される。このステップS111により、1回目の撮影における対象画像データが生成され、バッファメモリ25に記憶される。
Step S111 is a trimming process. The
ステップS112は、圧縮処理である。圧縮/伸長回路27は、バッファメモリ25に記憶された対象画像データを読み出す。そして、この対象画像データに対して圧縮処理を実行する。CPU40は、圧縮処理が施された対象画像データのデータ量を、撮影コマ数と対応付けて、ワークメモリに記憶する。これにより、1回目の撮影における対象画像データを圧縮処理したときのデータ量が取得される。ここで、圧縮処理された対象画像データは、バッファメモリ25に記憶してもよいし、記憶せずに削除してもよい。
Step S112 is a compression process. The compression /
ステップS113は、レリーズボタンの操作が解除されたか否かを判定する処理である。上述したように、レリーズボタン44が操作されると、レリーズボタン44の操作に基づく信号(半押し信号、全押し信号)がCPU40に入力される。このステップS113においては、レリーズボタン44の操作に基づく信号の出力が停止されたか否かによって、レリーズボタン44の操作が解除されたか否かを判定する。例えば、レリーズボタン44の操作に基づく信号の出力が継続されていれば、CPU40は、レリーズボタン44の操作が解除されていないと判定する。この場合、ステップS113の判定はNoとなり、ステップS114に進む。一方、レリーズボタン44の操作に基づく信号の出力が停止された場合、CPU40は、レリーズボタン44の操作が解除されたと判定する。この場合、ステップS113の判定はYesとなる。この場合には、連続撮影に係る処理が終了する。
Step S113 is processing for determining whether or not the operation of the release button has been released. As described above, when the
ステップS114は、撮像処理(2回目)である。この撮像処理においては、撮像光学系を構成するフォーカシングレンズの位置は、1回目の撮像処理と同位置、つまり、フォーカシングレンズの位置を固定したまま、2回目の撮像処理を実行する。2回目の撮像処理が実行されることで、撮像素子18から出力される画像信号は、AFE回路19を介してバッファメモリ25に記憶される。そして、画像処理回路26により読み出される。画像処理回路26は、ホワイトバランス調整、色補間、階調変換、色変換などの画像処理を施す。なお、画像処理回路26によって、各種画像処理が施された画像データは、再度バッファメモリ25に記憶される。
Step S114 is an imaging process (second time). In this imaging process, the position of the focusing lens constituting the imaging optical system is the same as that of the first imaging process, that is, the second imaging process is executed while the position of the focusing lens is fixed. By executing the second imaging process, the image signal output from the
ステップS115は、画像データを保存する処理である。このステップS115の処理は、ステップS110と同一の処理である。このステップS115の処理により、2回目の撮影における画像データが、記憶媒体48に記憶される。 Step S115 is processing to store image data. The process of step S115 is the same process as step S110. The image data in the second shooting is stored in the storage medium 48 by the processing in step S115.
ステップS116は、トリミング処理である。このステップS116の処理は、ステップS111と同一の処理である。このステップS116の処理により2回目の撮影における対象画像データが生成される。 Step S116 is a trimming process. The process of step S116 is the same process as step S111. The target image data in the second shooting is generated by the processing in step S116.
ステップS117は、圧縮処理である。このステップS117の処理は、ステップS112と同一の処理である。このステップS117の処理により、2回目の撮影における対象画像データを圧縮処理したときのデータ量が取得される。 Step S117 is a compression process. The process of step S117 is the same process as step S112. By the processing in step S117, the data amount when the target image data in the second shooting is compressed is acquired.
ステップS118は、データ量の変化量を算出する処理である。CPU40は、ステップS117にて記憶された2回目の撮像処理に基づく対象画像データのデータ量D2から、ステップS112にて記憶された1回目の撮像処理に基づく対象画像データのデータ量D1を減算することで、比較対象領域におけるデータ量の変化量ΔD12を算出する。ここで、1回目の撮像処理は、被写体に焦点を合わせていることから、1回目の撮像処理に基づく対象画像データが基準の対象画像データとなる。 Step S118 is processing for calculating the amount of change in the data amount. CPU40 from the data amount D 2 of the target image data based on the stored second imaging processing at step S117, the data amount D 1 of the target image data based on the first imaging processing stored at step S112 By subtracting, the change amount ΔD 12 of the data amount in the comparison target region is calculated. Here, since the first imaging process focuses on the subject, the target image data based on the first imaging process becomes the reference target image data.
ステップS119は、データ量の変化量が所定範囲外となるか否かを判定する処理である。CPU40は、ステップS118により求めたデータ量の変化量ΔD12が所定範囲外となる場合、ステップS119の判定処理をYesとし、ステップS120に進む。
Step S119 is processing for determining whether or not the amount of change in the data amount is outside the predetermined range. When the change amount ΔD 12 of the data amount obtained in step S118 is out of the predetermined range, the
一方、ステップS118により求めたデータ量の変化量ΔD12が所定範囲内となる場合、ステップS119の判定処理をNoとする。この場合、ステップS123に進む。ここで、ステップS119に用いられる所定範囲は、予め実験、統計などにより求められる範囲であることが望ましい。 On the other hand, if the data amount of change in the amount [Delta] D 12 determined in step S118 it is within a predetermined range, and No the determination process in step S119. In this case, the process proceeds to step S123. Here, the predetermined range used in step S119 is preferably a range obtained in advance by experiments, statistics, and the like.
つまり、ステップS119の判定処理がNoとなる場合には、データ量の変化量ΔD12が例えば誤差の範囲に含まれると推測できる。このため、フォーカシングレンズは、2回目の撮像処理におけるフォーカシングレンズの位置に固定される。 That is, when the determination processing is No, in step S119, can be presumed that the change amount [Delta] D 12 of data amount is included for example in the range of error. For this reason, the focusing lens is fixed at the position of the focusing lens in the second imaging process.
S120は、データ量が低下したか否かを判定する処理である。ステップS118において、データ量の変化量ΔD12が算出されている。このデータ量ΔD12が負の値となる場合には、CPU40は、データ量が低下したと判定する。この場合、ステップS120の判定処理がYesとなり、ステップS121に進む。
S120 is processing for determining whether or not the data amount has decreased. In step S118, the change amount [Delta] D 12 of data quantity is calculated. If this amount of data [Delta] D 12 is a negative value,
一方、データ量ΔD12が正の値となる場合には、CPU40は、データ量が増加したと判定する。この場合、ステップS120の判定処理がNoとなり、ステップS123に進む。上述したように、画像データのデータ量は、ピントが合わない画像データに比べて、焦点が合う画像データのデータ量は大きくなる。つまり、データ量ΔD12が正の値となる場合には、2回目の撮像処理で得られた画像データは、1回目の撮像処理により得られた画像データよりも主要被写体に焦点が合う画像データであると推定できる。この場合、フォーカシングレンズは、2回目の撮像処理におけるフォーカシングレンズの位置に固定される。
On the other hand, when the data amount [Delta] D 12 becomes a positive value,
ステップS121は、フォーカシングレンズの移動量を算出する処理である。CPU40は、ステップS119により求めたデータ量の変化量ΔD12を用いて、フォーカシングレンズの移動量を算出する。このフォーカシングレンズの算出においては、例えば焦点距離など、撮像光学系15に固有の特性が考慮される。
Step S121 is processing for calculating the amount of movement of the focusing lens. CPU40 uses the data amount of the variation [Delta] D 12 obtained in step S119, calculates the movement amount of the focusing lens. In the calculation of the focusing lens, characteristics unique to the imaging
ステップS122は、フォーカシングレンズを移動させる処理である。CPU40は、ステップS121にて求めた移動量に基づいて、レンズ駆動機構21を介してフォーカシングレンズを移動させる。このとき、フォーカシングレンズの移動方向は、予め至近端方向又は無限端方向のいずれかに設定される。CPU40は、設定された移動方向にフォーカシングレンズを移動させる。
Step S122 is processing to move the focusing lens. The
ステップS123は、レリーズボタンの操作が解除されたか否かを判定する処理である。なお、このステップS123の処理は、ステップS113と同一の処理である。例えば、レリーズボタン44の操作に基づく信号の出力が継続されていれば、CPU40は、レリーズボタン44の操作が解除されていないと判定する。この場合、ステップS123の判定はNoとなり、ステップS124に進む。つまり、2回目の撮像処理が終了し、3回目以降の撮像処理が実行される。
Step S123 is processing for determining whether or not the operation of the release button has been released. Note that the process of step S123 is the same process as step S113. For example, if the output of the signal based on the operation of the
一方、レリーズボタン44の操作に基づく信号の出力が停止された場合、CPU40は、レリーズボタン44の操作が解除されたと判定する。この場合、ステップS123の判定はYesとなる。この場合には、連続撮影に係る処理が終了する。
On the other hand, when the output of the signal based on the operation of the
ステップS124は、撮像処理(3回目)である。この撮像処理により、撮像素子18から出力される画像信号は、AFE回路19を介してバッファメモリ25に記憶される。そして、画像処理回路26により読み出される。画像処理回路26は、ホワイトバランス調整、色補間、階調変換、色変換などの画像処理を施す。なお、画像処理回路26によって、各種画像処理が施された画像データは、再度バッファメモリ25に記憶される。
Step S124 is an imaging process (third time). By this imaging process, the image signal output from the
ステップS125は、画像データを保存する処理である。このステップS125の処理は、S115と同一の処理である。これにより、3回目の撮像処理で得られた画像データが、記憶媒体48に記憶される。 Step S125 is processing to store image data. The process of step S125 is the same process as S115. As a result, the image data obtained by the third imaging process is stored in the storage medium 48.
ステップS126は、トリミング処理である。このステップS126の処理は、ステップS116と同一の処理である。このステップS126の処理により、3回目の撮像処理における対象画像データが生成される。 Step S126 is a trimming process. The process of step S126 is the same process as step S116. By the processing in step S126, target image data in the third imaging process is generated.
ステップS127は、圧縮処理である。このステップS127の処理は、ステップS112と同一の処理である。このステップS127の処理により、3回目の撮影における対象画像データを圧縮処理したときのデータ量が取得される。 Step S127 is a compression process. The process of step S127 is the same process as step S112. By the processing in step S127, the data amount when the target image data in the third shooting is compressed is acquired.
ステップS128は、データ量の変化量を算出する処理である。CPU40は、圧縮処理が施されたときの対象画像データのデータ量を用いて、データ量の変化量を算出する。CPU40は、3回目の撮像処理により得られた圧縮処理済みの対象画像データのデータ量D3から、1回目の撮像処理により得られた圧縮処理済みの対象画像データのデータ量D1を減算し、変化量ΔD13を求める。また、CPU40は、3回目の撮像処理により得られた圧縮処理済みの対象画像データのデータ量D3から2回目の撮像処理により得られた圧縮処理済みの対象画像データのデータ量D2を減算し、変化量ΔD23を求める。
Step S128 is processing for calculating the amount of change in the data amount. The
ステップS129は、データ量の変化量が所定範囲を超過しているか否かを判定する所定である。CPU40は、ステップS128により求めたデータ量の変化量ΔD13が所定範囲外となる場合、ステップS119の判定処理をYesとし、ステップS130に進む。
Step S129 is a predetermined step for determining whether or not the amount of change in the data amount exceeds a predetermined range. When the change amount ΔD 13 of the data amount obtained in step S128 is out of the predetermined range, the
一方、ステップS128により求めたデータ量の変化量ΔD13が所定範囲内となる場合、ステップS129の判定処理をNoとする。この場合、ステップS135に進む。つまり、ステップS129の判定処理がNoとなる場合には、データ量の変化量ΔD13が例えば誤差の範囲に含まれると推測できる。このため、フォーカシングレンズは、3回目の撮像処理におけるフォーカシングレンズの位置に固定される。 On the other hand, if the change amount ΔD 13 of the data amount obtained in step S128 is within the predetermined range, the determination process in step S129 is No. In this case, the process proceeds to step S135. That is, when the determination processing in step S129 is No, can be assumed that the change amount [Delta] D 13 of data amount is included for example in the range of error. For this reason, the focusing lens is fixed at the position of the focusing lens in the third imaging process.
ステップS130は、データ量の変化量が低下したか否かを判定する処理である。CPU40は、ステップS128により求めたデータ量の変化量ΔD13、変化量ΔD12を用いて、データ量の変化量ΔD13がデータ量の変化量ΔD12に対して小さくなるか否かを判断する。例えば、データ量の変化量ΔD13がデータ量の変化量ΔD12以下となる場合には、CPU40は、ステップS130の判定をYesとする。この場合、ステップS131に進む。一方、データ量の変化量ΔD13がデータ量の変化量ΔD23を超過する場合には、CPU40は、ステップS130の判定をNoとする。この場合、ステップS133に進む。
Step S130 is processing to determine whether or not the amount of change in data amount has decreased. The
上述したようにステップS130の判定結果がYesとなる場合、ステップS131に進む。 As described above, when the determination result of step S130 is Yes, the process proceeds to step S131.
ステップS131は、フォーカシングレンズの移動量を算出する処理である。CPU40は、データ量の変化量ΔD23を用いてフォーカシングレンズの移動量を算出する。
Step S131 is processing for calculating the amount of movement of the focusing lens. The
ステップS132は、フォーカシングレンズを同一方向に移動させる処理である。CPU40は、レンズ駆動機構21を介して、ステップS122におけるフォーカシングレンズの移動方向と同一方向にフォーカシングレンズを移動させる。ここで、フォーカシングレンズの移動量は、ステップS131にて求めた移動量である。この処理が実行されると、ステップS135に進む。
Step S132 is a process of moving the focusing lens in the same direction. The
一方、ステップS130の判定結果がNoなる場合、ステップS133に進む。 On the other hand, when the determination result of step S130 is No, the process proceeds to step S133.
ステップS133は、フォーカシングレンズの移動量を算出する処理である。このステップS133の処理は、ステップS131と同一の処理である。 Step S133 is processing for calculating the amount of movement of the focusing lens. The process of step S133 is the same process as step S131.
ステップS134は、フォーカシングレンズを逆方向に移動させる処理である。CPU40は、レンズ駆動機構21を介して、ステップS122におけるフォーカシングレンズの移動方向とは逆方向にフォーカシングレンズを移動させる。ここで、フォーカシングレンズの移動量は、ステップS131にて求めた移動量である。この処理が実行されると、ステップS135に進む。
Step S134 is a process of moving the focusing lens in the reverse direction. The
ステップS135は、レリーズボタンの操作が解除されたか否かを判定する処理である。このステップS135の処理は、ステップS113、ステップS123と同一の処理である。つまり、CPU40がレリーズボタン44の操作が解除されたと判定した場合には、ステップS135の判定処理がYesとなる。この場合、連続撮影に係る一連の処理が終了する。連続撮影に係る一連の処理の終了に基づいて、クイックリターンミラー16がミラーアップ状態から、ミラーダウン状態に切り替えられる。
一方、CPU40がレリーズボタン44の操作が解除されていないと判定した場合には、ステップS135の判定処理がNoとなる。この場合、ステップS124の処理に戻り、4回目の撮像処理が実行される。そして、ステップS124〜ステップS134の処理が実行される。以下、ステップS135の処理がYesとなるまで、ステップS124からステップS134の処理が繰り返し実行される。つまり、4回目以降の撮影が実行される。
Step S135 is processing to determine whether or not the operation of the release button has been released. The process of step S135 is the same process as steps S113 and S123. That is, if the
On the other hand, if the
上述したように、本実施形態のフォーカス制御は、比較対象領域に該当する対象画像データに対する圧縮処理を行うことで得られる圧縮処理済みの対象画像データのデータ量の変化に基づいて実行される。ここで、比較対象領域は、撮影時の主要被写体、或いは、焦点が合う領域を基準とした領域であることから、連続撮影を開始したときに焦点を合わせた領域に対して適切なフォーカス制御を行うことができる。つまり、画像データ全体を圧縮処理したときのデータ量の変化量を比較する場合には、主要被写体に対して焦点が合う画像データではなく、他の被写体に対して焦点が合う画像データも得られる恐れがあるが、本発明の構成とすることで、主要被写体に対して焦点が合う画像データのみを取得することが可能となる。 As described above, the focus control of the present embodiment is executed based on a change in the data amount of the target image data that has been subjected to compression processing that is obtained by performing compression processing on the target image data corresponding to the comparison target region. Here, since the comparison target area is an area based on the main subject at the time of shooting or the focused area, appropriate focus control is performed on the focused area when continuous shooting is started. It can be carried out. That is, when comparing the amount of change in the amount of data when the entire image data is compressed, not the image data focused on the main subject but also the image data focused on other subjects can be obtained. There is a fear, but with the configuration of the present invention, it is possible to acquire only image data that is focused on the main subject.
本実施形態では、連続撮影が開始されたときの1回目の撮像処理により得られた画像データに対して顔検出処理や、比較対象領域を設定する処理を行っているが、これに限定する必要はなく、連続撮影が実行される前に撮像素子から出力される画像(スルー画像)を用いて顔検出処理や比較対象領域を設定する処理を予め行うことも可能である。 In the present embodiment, face detection processing and processing for setting a comparison target region are performed on the image data obtained by the first imaging processing when continuous shooting is started, but it is necessary to limit to this. Rather, it is also possible to perform in advance a face detection process and a process for setting a comparison target region using an image (through image) output from the image sensor before continuous shooting is performed.
本実施形態では、顔検出処理により複数の顔を検出した場合、最も大きい顔やAFエリアに重畳される顔が含まれる分割領域を比較対象領域に設定しているが、これに限定される必要はなく、ユーザによる操作部45を用いた入力操作に基づいて、主要被写体を予め指定しておき、指定された顔が含まれる分割領域を比較対象領域に設定することも可能である。なお、顔検出処理により顔が検出されない場合、ユーザが予め焦点検出に用いるAFエリアを指定していれば、ユーザが指定したAFエリアが含まれる分割領域を比較対象領域に設定すればよい。
In this embodiment, when a plurality of faces are detected by the face detection process, the divided area including the largest face or the face to be superimposed on the AF area is set as the comparison target area. However, the present invention is not limited to this. Instead, it is also possible to designate a main subject in advance based on an input operation using the
本実施形態では、撮像処理の直後に、撮像処理により得られる画像データ保存する処理を行っている(ステップS110、ステップS115、ステップS125)が、これに限定する必要はなく、レリーズボタン44の操作が解除されたことを受けて、連続撮影における各撮像処理により得られた画像データを保存する処理を行ってもよい。
In the present embodiment, immediately after the imaging process, a process for saving image data obtained by the imaging process is performed (step S110, step S115, and step S125). However, the present invention is not limited to this, and the
本実施形態では、各撮像処理により得られた画像データを用いているが、これに限定される必要はなく、デジタルカメラにおいては、得られた画像データを縮小した画像データを用いて顔検出処理を行っている場合もあるので、本実施形態のフォーカス制御を縮小した画像データを用いて行うことも可能である。 In this embodiment, image data obtained by each imaging process is used. However, the present invention is not limited to this, and in a digital camera, face detection processing is performed using image data obtained by reducing the obtained image data. Therefore, the focus control of this embodiment can be performed using reduced image data.
本実施形態では、予め画像を複数の分割領域に分割し、画像に含まれる被写体の顔領域、又は焦点の合うAFエリアが含まれる分割領域を比較対象領域としているが、予め画像を複数の領域に分割する必要はなく、例えば顔検出処理により顔が検出された場合には、検出された顔の領域が含まれる矩形の領域を比較対象領域とし、顔検出処理により顔が検出されない場合には、焦点の合うAFエリアが含まれる所定の大きさの領域を比較対象領域とすることができる。 In this embodiment, the image is divided into a plurality of divided areas in advance, and the face area of the subject included in the image or the divided area including the focused AF area is used as the comparison target area. For example, when a face is detected by the face detection process, a rectangular area including the detected face area is set as a comparison target area, and a face is not detected by the face detection process. A region having a predetermined size including the focused AF area can be set as a comparison target region.
本実施形態では、人物の顔を例に挙げているが、これに限定される必要はなく、人物の他に、動物、自動車、船などの輸送機器や、建物などを被写体としてもよい。 In this embodiment, the face of a person is taken as an example. However, the present invention is not limited to this. In addition to a person, a transport device such as an animal, a car, or a ship, a building, or the like may be used as a subject.
本発明では、デジタルカメラにおけるフォーカス制御を、位相差検出方式のフォーカス制御としているが、これに限定される必要はなく、コントラスト検出方式のフォーカス制御としてもよい。また、連続撮影における1回目の撮像処理の際に、ユーザによる操作に基づくフォーカス制御を行うことも可能である。 In the present invention, the focus control in the digital camera is the phase difference detection type focus control. However, the present invention is not limited to this and may be the contrast detection type focus control. In addition, it is possible to perform focus control based on an operation by a user during the first imaging process in continuous shooting.
本発明のデジタルカメラとして、一眼フレックスカメラを説明しているが、コンパクトカメラ、カメラ機能を備えた携帯電話機、コンピュータに搭載、又は接続されたカメラなどにも、本発明を用いることができる。 Although a single-lens flex camera has been described as the digital camera of the present invention, the present invention can also be used for a compact camera, a mobile phone having a camera function, a camera mounted on or connected to a computer, and the like.
10…デジタルカメラ、18…撮像素子、27…圧縮/伸長回路、36…画像処理回路、40…CPU、41…不揮発性メモリ、42…ワークメモリ、47…トリミング部、51…顔検出部、52…領域設定部、53…データ比較部、54…焦点制御部
DESCRIPTION OF
Claims (10)
前記被写体検出部による被写体検出の結果に基づいて、撮像素子から連続して出力される画像のそれぞれから切り出す領域を対象領域として設定する設定部と、
前記撮像素子から連続して出力される画像のそれぞれから切り出した前記対象領域の画像に対して圧縮処理を行う圧縮部と、
前記圧縮処理された前記対象領域の画像のデータ量の変化に基づいて、前記撮像素子上へ被写体像を形成する撮像光学系のフォーカスポジションを制御する制御部と、
を備えたことを特徴とする焦点調節装置。 A subject detection unit for detecting a subject;
A setting unit that sets a region to be cut out from each of the images continuously output from the image sensor based on the result of subject detection by the subject detection unit;
A compression unit that performs compression processing on the image of the target area cut out from each of the images continuously output from the imaging device;
A control unit that controls a focus position of an imaging optical system that forms a subject image on the imaging device based on a change in the data amount of the compressed image of the target area;
A focus adjustment device comprising:
前記設定部は、前記被写体検出部により複数の被写体が検出されたときに、前記複数の被写体のうち、最も大きい被写体の領域を前記対象領域として設定することを特徴とする焦点調節装置。 The focus adjustment apparatus according to claim 1,
The focus adjustment apparatus, wherein the setting unit sets a region of the largest subject among the plurality of subjects as the target region when the subject detection unit detects a plurality of subjects.
画像取得時の撮像範囲に配置される複数の焦点検出エリアを用いて、前記撮像光学系の焦点状態を検出する焦点検出部を備え、
前記設定部は、前記焦点検出部により複数の被写体が検出されたときに、前記複数の被写体のうち、前記焦点検出エリアに重畳される被写体が含まれる領域を前記対象領域として設定することを特徴とする焦点調節装置。 The focus adjustment apparatus according to claim 1,
A focus detection unit that detects a focus state of the imaging optical system using a plurality of focus detection areas arranged in an imaging range at the time of image acquisition,
The setting unit sets, as the target region, an area including a subject to be superimposed on the focus detection area among the plurality of subjects when the focus detection unit detects a plurality of subjects. Focus adjustment device.
画像取得時の撮像範囲に配置される複数の焦点検出エリアを用いて、前記撮像光学系の焦点状態を検出する焦点検出部を備え、
前記設定部は、前記被写体検出部により被写体が検出されないときに、前記複数の焦点検出エリアのうち、焦点が合う焦点検出エリアが含まれる領域を前記対象領域として設定することを特徴とする焦点調節装置。 The focus adjustment apparatus according to claim 1,
A focus detection unit that detects a focus state of the imaging optical system using a plurality of focus detection areas arranged in an imaging range at the time of image acquisition,
The setting unit is configured to set, as the target region, a region including a focus detection area in focus among the plurality of focus detection areas when no subject is detected by the subject detection unit. apparatus.
前記設定部は、前記撮像素子から連続して出力される画像を複数の領域に分割し、
前記設定部は、前記被写体検出の結果に基づいて、前記複数の領域のいずれかの領域を前記対象領域として設定することを特徴とする焦点調節装置。 The focus adjustment apparatus according to claim 1,
The setting unit divides an image continuously output from the image sensor into a plurality of regions,
The focus adjustment apparatus, wherein the setting unit sets any one of the plurality of regions as the target region based on a result of the subject detection.
前記被写体検出部は、画像に含まれる人物の顔を被写体として検出することを特徴とする焦点調節装置。 The focus adjustment apparatus according to claim 1,
The focus detection apparatus, wherein the subject detection unit detects a human face included in an image as a subject.
前記制御部は、ユーザからの指示に従って前記フォーカスポジションの初期調節を行うことを特徴とする焦点調節装置。 The focus adjustment apparatus according to claim 1,
The focus adjustment apparatus, wherein the control unit performs initial adjustment of the focus position in accordance with an instruction from a user.
前記制御部は、位相差検出方式により前記フォーカスポジションの初期調節を行うことを特徴とする焦点調節装置。 The focus detection apparatus according to claim 7,
The focus adjustment apparatus, wherein the control unit performs initial adjustment of the focus position by a phase difference detection method.
前記制御部は、前記データ量の変化量が基準範囲を超過したときに、前記フォーカスボジションを変位させることを特徴とする焦点調節装置。 The focus detection apparatus according to claim 1,
The focus adjustment apparatus, wherein the control unit displaces the focus position when a change amount of the data amount exceeds a reference range.
前記撮像素子から順次出力される画像に基づいて、前記撮像光学系のフォーカスポジションを制御する、請求項1から請求項9のいずれか1項に記載の焦点調節装置と、
を備えたことを特徴とする撮像装置。 An image sensor that continuously captures the subject image formed by the imaging optical system and sequentially outputs the images;
The focus adjustment apparatus according to any one of claims 1 to 9, wherein a focus position of the imaging optical system is controlled based on images sequentially output from the imaging element.
An imaging apparatus comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011285122A JP2013134403A (en) | 2011-12-27 | 2011-12-27 | Focus adjustment device and imaging apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011285122A JP2013134403A (en) | 2011-12-27 | 2011-12-27 | Focus adjustment device and imaging apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2013134403A true JP2013134403A (en) | 2013-07-08 |
Family
ID=48911116
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011285122A Pending JP2013134403A (en) | 2011-12-27 | 2011-12-27 | Focus adjustment device and imaging apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2013134403A (en) |
-
2011
- 2011-12-27 JP JP2011285122A patent/JP2013134403A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2015004922A (en) | Focus adjustment device and imaging device | |
US8508652B2 (en) | Autofocus method | |
US10264173B2 (en) | Image capturing apparatus and control method thereof, and storage medium | |
TWI360349B (en) | Digital imaging apparatus with camera shake compen | |
US9635280B2 (en) | Image pickup apparatus, method of controlling image pickup apparatus, and non-transitory computer-readable storage medium | |
JP6749791B2 (en) | Imaging device and automatic focusing method | |
JP2007139893A (en) | Focusing detection device | |
JP5635211B2 (en) | Imaging device | |
JP2007086596A (en) | Camera | |
JP2008160208A (en) | Optical apparatus | |
JP5393300B2 (en) | Imaging device | |
US8743209B2 (en) | Image pickup apparatus and method for controlling the same | |
JP2003307669A (en) | Camera | |
JP2011013645A5 (en) | ||
JP2009175442A (en) | Imaging apparatus | |
JP5359150B2 (en) | Imaging device | |
JP5396940B2 (en) | Imaging apparatus and image processing apparatus | |
JP2019144502A (en) | Focus detection device and focus detection method | |
JP2008287050A (en) | Automatic focusing device and imaging apparatus | |
WO2019146164A1 (en) | Imaging device, imaging method, and program | |
JP2010014883A (en) | Camera | |
US10484592B2 (en) | Focus adjustment device, focus adjustment method, and non-transitory storage medium for storing focus adjustment programs for performing focus adjustment in response to image signals of an image pickup device including focus detection pixels | |
JP2013134403A (en) | Focus adjustment device and imaging apparatus | |
JP5315019B2 (en) | Autofocus device, autofocus method, and imaging device | |
JP5144469B2 (en) | Imaging apparatus and control method thereof |