JP2011085661A - Digital camera - Google Patents

Digital camera Download PDF

Info

Publication number
JP2011085661A
JP2011085661A JP2009236548A JP2009236548A JP2011085661A JP 2011085661 A JP2011085661 A JP 2011085661A JP 2009236548 A JP2009236548 A JP 2009236548A JP 2009236548 A JP2009236548 A JP 2009236548A JP 2011085661 A JP2011085661 A JP 2011085661A
Authority
JP
Japan
Prior art keywords
focus
image
optical system
focus detection
subject
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
Application number
JP2009236548A
Other languages
Japanese (ja)
Inventor
Satoru Yamaguchi
悟 山口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nikon Corp
Original Assignee
Nikon Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nikon Corp filed Critical Nikon Corp
Priority to JP2009236548A priority Critical patent/JP2011085661A/en
Publication of JP2011085661A publication Critical patent/JP2011085661A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To drive a photographing optical system to a new focusing position without missing a shutter chance, even in the case where a distance to a subject is changed following a composition changing operation, when the photographing optical system is fixed to the focusing position. <P>SOLUTION: The digital camera includes: a first imaging element; a focus detection means for outputting a signal showing a focus adjustment state of the photographing optical system; a focus adjusting means for driving the photographing optical system to the focusing position, when photographing preparation is instructed; a locking means for locking the driven photographing optical system on the focusing position; a main subject detection means for detecting the position of an image of a main subject on a photographed image; a determination means for determining occurrence of a position change of the main subject after the photographing optical system is locked, when photographing preparation is instructed; and a control means wherein, when the position of the main subject is changed, the photographing optical system is driven to the new focusing position based on a signal output newly from the focus detection means by controlling the focus adjusting means, and then the image of the subject is imaged by controlling a first imaging element. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、デジタルカメラに関する。   The present invention relates to a digital camera.

従来から、撮影用の撮像素子に組み込まれた焦点検出用画素の出力と、撮像素子とは異なる位置に設けられた焦点検出センサの出力とのいずれかに基づいて焦点調節状態を検出する撮像装置が知られている(たとえば特許文献1)。   Conventionally, an imaging apparatus that detects a focus adjustment state based on either an output of a focus detection pixel incorporated in an imaging device for photographing or an output of a focus detection sensor provided at a position different from the imaging device Is known (for example, Patent Document 1).

特開2007−233033号公報JP 2007-233303 A

しかしながら、従来の撮像装置では、撮影光学系の駆動が合焦位置で固定された状態のときに構図変更操作に伴って被写体との距離に変化が生じた場合に、焦点調節状態の検出をやり直すための操作が必要となることがあり、シャッタチャンスを逃すという問題がある。   However, in the conventional imaging apparatus, when the distance from the subject changes due to the composition change operation when the driving of the photographing optical system is fixed at the in-focus position, the focus adjustment state is detected again. There is a problem that a photo opportunity is missed.

請求項1に記載の発明によるデジタルカメラは、撮影光学系を介して被写体の像を撮像して画像信号を出力する第1撮像素子と、撮影光学系の焦点調節状態を示す信号を出力する焦点検出手段と、撮影準備が指示されると、焦点検出手段から出力される信号に基づいて、合焦位置に撮影光学系を駆動する焦点調節手段と、焦点調節手段により合焦位置に駆動された撮影光学系を合焦位置にロックするロック手段と、撮影画像上の主要被写体の像が占有する位置を検出する主要被写体検出手段と、撮影開始が指示されると、ロック手段により撮影光学系がロックされた後の主要被写体の位置変化の有無を判定する判定手段と、主要被写体の位置変化が有ると判定された場合は、焦点調節手段を制御して、焦点検出手段により新たに出力された信号に基づいて、新たな合焦位置に撮影光学系を駆動させ、新たな合焦位置に撮影光学系が駆動されてから、第1撮像素子を制御して被写体の像を撮像させる制御手段とを備えることを特徴とする。
請求項8に記載の発明によるデジタルカメラは、撮影光学系を介して被写体の像を撮像して画像信号を出力する第1撮像素子と、第1撮像素子と光学的に共役な位置に設けられ、撮影開始前に撮影光学系の焦点調節状態を検出して焦点検出信号を出力する第1焦点検出用素子と、第1撮像素子に組み込まれ、撮影光学系の焦点調節状態を検出して焦点検出信号を出力する第2焦点検出用素子と、第1焦点検出素子から出力される焦点検出信号に基づいて、撮影光学系を第1の合焦位置へ駆動する第1焦点調節手段と、第2焦点検出素子から出力される焦点検出信号に基づいて、撮影光学系を第2の合焦位置へ駆動する第2焦点調節手段と、第1焦点調節手段によって第1の合焦位置に駆動された撮影光学系を第1の合焦位置にロックするロック手段と、ロック手段により撮影光学系がロックされた後の被写体の移動を検出する被写体移動検出手段と、被写体からの光が第1撮像素子および第2焦点検出素子に入射することを許容する撮影動作開始手段とを備え、被写体移動検出手段によりロック後の被写体の移動が検出された場合、第2焦点調節手段は、第2焦点検出素子からの第2焦点検出信号に基づいて、撮影光学系を第2の合焦位置に駆動することを特徴とする。
A digital camera according to a first aspect of the present invention includes a first image sensor that captures an image of a subject through a photographing optical system and outputs an image signal, and a focus that outputs a signal indicating a focus adjustment state of the photographing optical system. When the detection means and the preparation for photographing are instructed, the focus adjusting means for driving the photographing optical system to the in-focus position based on the signal output from the focus detecting means, and the in-focus position is driven by the focus adjusting means. Locking means for locking the photographic optical system to the in-focus position, main subject detecting means for detecting the position occupied by the image of the main subject on the photographed image, and when the start of photographing is instructed, the photographing optical system is A determination unit that determines whether or not there is a change in the position of the main subject after being locked, and if it is determined that there is a change in the position of the main subject, the focus adjustment unit is controlled and newly output by the focus detection unit Trust And a control unit that drives the imaging optical system to a new in-focus position and controls the first image sensor after the imaging optical system is driven to the new in-focus position to capture an image of the subject. It is characterized by providing.
A digital camera according to an eighth aspect of the present invention is provided at a position optically conjugate with the first image pickup device that picks up an image of a subject through a photographing optical system and outputs an image signal. The first focus detection element that detects the focus adjustment state of the photographing optical system and outputs a focus detection signal before the start of photographing, and the focus adjustment state of the photographing optical system are detected by detecting the focus adjustment state of the photographing optical system. A second focus detection element that outputs a detection signal; a first focus adjustment unit that drives the imaging optical system to a first focus position based on the focus detection signal output from the first focus detection element; Based on a focus detection signal output from the bifocal detection element, a second focus adjustment unit that drives the photographing optical system to the second focus position, and a first focus adjustment unit that is driven to the first focus position. Lock to lock the photographic optical system to the first in-focus position Means for detecting movement of the subject after the photographing optical system is locked by the lock means, and photographing for allowing light from the subject to enter the first image sensor and the second focus detector. Operation start means, and when the movement of the locked subject is detected by the subject movement detection means, the second focus adjustment means is based on the second focus detection signal from the second focus detection element. Is driven to the second in-focus position.

本発明によれば、撮影光学系が合焦位置にロックされた後、主要被写体に位置変化がある場合には、焦点検出手段により新たに出力された信号に基づいて、新たな合焦位置に撮影光学系を駆動させてから被写体の像を撮像することができる。
さらに本発明によれば、第1焦点検出素子からの第1焦点検出信号に基づいた第1の合焦位置に撮影光学系がロックされた後、被写体移動検出手段により被写体の移動が検出された場合、第2焦点検出素子からの第2焦点検出信号に基づいて、撮影光学系を第2の合焦位置に駆動することができる。
According to the present invention, when the main subject has a position change after the photographing optical system is locked at the in-focus position, a new in-focus position is set based on the signal newly output by the focus detection means. An image of the subject can be taken after the photographing optical system is driven.
Further, according to the present invention, the movement of the subject is detected by the subject movement detection means after the photographing optical system is locked at the first focus position based on the first focus detection signal from the first focus detection element. In this case, the imaging optical system can be driven to the second in-focus position based on the second focus detection signal from the second focus detection element.

本発明の実施の形態によるデジタルカメラの要部構成図1 is a configuration diagram of a main part of a digital camera according to an embodiment of the present invention. 実施の形態によるデジタルカメラの制御系の構成を説明するブロック図FIG. 1 is a block diagram illustrating a configuration of a control system of a digital camera according to an embodiment 実施の形態によるデジタルカメラの動作を説明するフローチャートFlowchart for explaining operation of digital camera according to embodiment 第1および第2の実施の形態によるデジタルカメラの動作を説明するフローチャートA flowchart for explaining the operation of the digital camera according to the first and second embodiments. 第1の実施の形態によるデジタルカメラの動作を説明するフローチャートThe flowchart explaining operation | movement of the digital camera by 1st Embodiment. 第1の実施の形態によるデジタルカメラの動作を説明するフローチャートThe flowchart explaining operation | movement of the digital camera by 1st Embodiment. 第2の実施の形態によるデジタルカメラの動作を説明するフローチャートThe flowchart explaining operation | movement of the digital camera by 2nd Embodiment. 第2の実施の形態によるデジタルカメラの動作を説明するフローチャートThe flowchart explaining operation | movement of the digital camera by 2nd Embodiment. 第3の実施の形態によるデジタルカメラの動作を説明するフローチャートThe flowchart explaining operation | movement of the digital camera by 3rd Embodiment. 第3の実施の形態によるデジタルカメラの動作を説明するフローチャートThe flowchart explaining operation | movement of the digital camera by 3rd Embodiment. 第3の実施の形態によるデジタルカメラの動作を説明するフローチャートThe flowchart explaining operation | movement of the digital camera by 3rd Embodiment.

−第1の実施の形態−
図面を参照して、本発明による第1の実施の形態におけるカメラを説明する。図1はデジタルカメラ1の要部構成を示す図である。デジタルカメラ1のボディに、撮影レンズL1と絞り20とを備える交換レンズ2が着脱可能に装着されている。デジタルカメラ1のボディ側には、クイックリターンミラー10、焦点板11、ペンタプリズム12、接眼レンズ13、撮像素子14、第1焦点検出用センサ15、第2焦点検出用センサ16、測光センサ17およびシャッタ21が設けられている。撮像素子14には、撮像用画素が二次元状に配置されるとともに、焦点検出位置に対応した部分に第2焦点検出用センサ16を構成する焦点検出用画素が組み込まれている。
-First embodiment-
A camera according to a first embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a diagram showing a main configuration of the digital camera 1. An interchangeable lens 2 including a photographing lens L1 and a diaphragm 20 is detachably mounted on the body of the digital camera 1. On the body side of the digital camera 1, a quick return mirror 10, a focusing screen 11, a pentaprism 12, an eyepiece lens 13, an image sensor 14, a first focus detection sensor 15, a second focus detection sensor 16, a photometric sensor 17, and A shutter 21 is provided. The imaging element 14 has imaging pixels arranged two-dimensionally, and incorporates focus detection pixels constituting the second focus detection sensor 16 at a portion corresponding to the focus detection position.

図2は交換レンズ2が装着されたデジタルカメラ1の制御系のブロック図である。図2において、図1に示した構成要素には同一の符号を付して説明する。図2に示すように、交換レンズ2は撮影レンズL1、レンズ制御回路20とレンズ駆動部22とを備える。撮影レンズL1は、結像レンズや焦点調節レンズ等の複数の光学レンズ群を含んで構成される。なお、図2では撮影レンズL1を1枚のレンズで代表して表している。レンズ制御回路20は、後述するレンズ駆動部22に対して駆動制御信号を出力することにより、焦点調節レンズの光軸方向の駆動を制御する。さらに、レンズ制御回路20は、図示しない信号接点を介して、デジタルカメラ1と各種情報の送受信を行う。レンズ駆動部22はたとえばステッピングモータ等により構成され、レンズ制御回路20からの駆動制御信号に基づいて撮影レンズL1を構成する焦点調節レンズを駆動する。デジタルカメラ1は、撮像素子14、第1焦点検出センサ15、第2焦点検出センサ16、測光センサ17、制御回路18、LCD駆動回路19、液晶表示器191、操作部30、補助光発光部33およびメモリカードインタフェース31を備えている。   FIG. 2 is a block diagram of a control system of the digital camera 1 to which the interchangeable lens 2 is attached. In FIG. 2, the components shown in FIG. As shown in FIG. 2, the interchangeable lens 2 includes a photographic lens L <b> 1, a lens control circuit 20, and a lens driving unit 22. The photographing lens L1 includes a plurality of optical lens groups such as an imaging lens and a focus adjustment lens. In FIG. 2, the photographing lens L1 is represented by a single lens. The lens control circuit 20 controls the driving of the focus adjustment lens in the optical axis direction by outputting a drive control signal to a lens driving unit 22 described later. Further, the lens control circuit 20 transmits / receives various information to / from the digital camera 1 via signal contacts (not shown). The lens driving unit 22 is configured by, for example, a stepping motor or the like, and drives a focus adjustment lens that constitutes the photographing lens L1 based on a drive control signal from the lens control circuit 20. The digital camera 1 includes an image sensor 14, a first focus detection sensor 15, a second focus detection sensor 16, a photometric sensor 17, a control circuit 18, an LCD drive circuit 19, a liquid crystal display 191, an operation unit 30, and an auxiliary light emitting unit 33. And a memory card interface 31.

図1を参照して説明すると、撮影レンズL1を通過してデジタルカメラ1に入射した被写体光は、シャッタレリーズ前は図1において実線で示すように位置するクイックリターンミラー10で上方へ導かれて焦点板11に結像する。焦点板11に結像された被写体像は、ペンタプリズム12により接眼レンズ13および測光センサ17へ導かれる。その結果、被写体像が撮影者に観察される。被写体光の一部はクイックリターンミラー10の半透過領域を透過し、サブミラー10aにて下方に反射され、第1焦点検出用センサ15へ入射される。レリーズ後はクイックリターンミラー10が図1の破線で示される位置へ回動し、シャッタ21を介して被写体光が撮像素子14および第2焦点検出センサ16へ導かれ、その撮像面上に被写体像が結像する。   Referring to FIG. 1, subject light that has entered the digital camera 1 after passing through the photographing lens L1 is guided upward by a quick return mirror 10 positioned as shown by a solid line in FIG. 1 before the shutter release. An image is formed on the focusing screen 11. The subject image formed on the focusing screen 11 is guided to the eyepiece lens 13 and the photometric sensor 17 by the pentaprism 12. As a result, the subject image is observed by the photographer. Part of the subject light passes through the semi-transmissive region of the quick return mirror 10, is reflected downward by the sub mirror 10 a, and enters the first focus detection sensor 15. After the release, the quick return mirror 10 is rotated to the position indicated by the broken line in FIG. 1, and the subject light is guided to the image sensor 14 and the second focus detection sensor 16 via the shutter 21, and the subject image is formed on the imaging surface. Forms an image.

図2を参照して制御系について詳細に説明する。
撮像素子14は、二次元状に多数配列された複数の撮影用画素を有する、たとえばCMOS等の光電変換素子である。撮像素子14は、後述する制御回路18の制御に応じて駆動して撮影レンズL1を通して入力される被写体像を撮像し、撮像して得た画像信号を出力する。撮像素子14の撮像面には、それぞれR(赤)、G(緑)およびB(青)のカラーフィルタが画素位置に対応するように設けられている。撮像素子14から出力された画像信号は、図示しないAFE回路等によりアナログ処理(ゲインコントロールなど)が施され、後述する制御回路18へ出力される。
The control system will be described in detail with reference to FIG.
The imaging element 14 is a photoelectric conversion element such as a CMOS having a plurality of imaging pixels arranged two-dimensionally. The image sensor 14 is driven in accordance with the control of the control circuit 18 to be described later, images a subject image input through the imaging lens L1, and outputs an image signal obtained by the imaging. R (red), G (green), and B (blue) color filters are provided on the imaging surface of the imaging device 14 so as to correspond to the pixel positions, respectively. The image signal output from the image sensor 14 is subjected to analog processing (such as gain control) by an AFE circuit (not shown) or the like, and is output to a control circuit 18 described later.

第1焦点検出センサ15は撮影レンズL1の撮影画面内に設定された複数の焦点検出位置に対応して設けられている。第1焦点検出センサ15は、例えば対のCCDラインセンサーを備え、対の光像に応じた焦点検出信号を制御回路8に出力する。第2焦点検出センサ16は、撮影レンズL1による撮影画面内に設定された複数の焦点検出位置に対応して設けられ、上述したように、撮像用画素が二次元状に配置された撮像素子14に組み込まれて配置されている。第2焦点検出センサ16は、たとえば対の焦点検出用画素を備え、焦点検出位置ごとに対の光像に応じた焦点検出信号を制御回路18に出力する。なお、第2焦点検出センサ16の各焦点検出用画素にも、所定の色(たとえばG)のカラーフィルタが設けられている。   The first focus detection sensor 15 is provided corresponding to a plurality of focus detection positions set in the shooting screen of the shooting lens L1. The first focus detection sensor 15 includes a pair of CCD line sensors, for example, and outputs a focus detection signal corresponding to the pair of optical images to the control circuit 8. The second focus detection sensor 16 is provided corresponding to a plurality of focus detection positions set in the imaging screen by the imaging lens L1, and as described above, the imaging element 14 in which imaging pixels are two-dimensionally arranged. It is built in and arranged. The second focus detection sensor 16 includes, for example, a pair of focus detection pixels, and outputs a focus detection signal corresponding to the pair of optical images to the control circuit 18 for each focus detection position. Each focus detection pixel of the second focus detection sensor 16 is also provided with a color filter of a predetermined color (for example, G).

測光センサ17は、二次元状に配列された複数の画素(光電変換素子)を備え、制御回路18に被写界画像信号を出力する。測光センサ17の撮像面にはそれぞれR(赤)、G(緑)、B(青)のカラーフィルタが画素位置に対応するように設けられ、測光センサ17は各画素ごとに被写界画像のRGB信号を出力することができる。被写界画像信号は、後述するように制御回路18により行われる露出演算、主要被写体検出処理および構図変更判定処理に使用される。なお、制御回路18は、露出演算、主要被写体検出処理および構図変更判定処理を撮像素子14から出力される画像信号に基づいて行うこととしてもよい。   The photometric sensor 17 includes a plurality of pixels (photoelectric conversion elements) arranged two-dimensionally, and outputs a field image signal to the control circuit 18. R (red), G (green), and B (blue) color filters are provided on the imaging surface of the photometric sensor 17 so as to correspond to the pixel positions, and the photometric sensor 17 displays the object field image for each pixel. RGB signals can be output. The scene image signal is used for exposure calculation, main subject detection processing, and composition change determination processing performed by the control circuit 18 as will be described later. The control circuit 18 may perform the exposure calculation, the main subject detection process, and the composition change determination process based on the image signal output from the image sensor 14.

制御回路18は、図示しないCPU、ROM、RAMなどを有し、制御プログラムに基づいて、デジタルカメラ1の各構成要素を制御したり、各種のデータ処理を実行する演算回路である。制御プログラムは、制御回路18内の不図示の不揮発性メモリに格納されている。また、制御回路18は、測光センサ17から入力した被写界画像信号に基づいて被写体の輝度を算出し、撮影条件(絞りの値、シャッタ秒時等)を演算する。   The control circuit 18 includes a CPU, a ROM, a RAM, and the like (not shown), and is an arithmetic circuit that controls each component of the digital camera 1 and executes various data processing based on a control program. The control program is stored in a nonvolatile memory (not shown) in the control circuit 18. The control circuit 18 calculates the brightness of the subject based on the object scene image signal input from the photometric sensor 17 and calculates the shooting conditions (aperture value, shutter speed, etc.).

制御回路18は、画像処理部18a、画像記録部18b、焦点調節部18c、レンズ駆動制御部18d、主要被写体検出部18eおよび構図変更判定部18fを機能的に備える。画像処理部18aは、入力した画像信号に対してガンマ補正やホワイトバランス調整等の種々の画像処理を施して画像データを生成する。また、画像処理部18aは、メモリカード32に記録されている画像データに基づいて、後述する液晶表示器191に表示するための表示画像データを生成する。   The control circuit 18 functionally includes an image processing unit 18a, an image recording unit 18b, a focus adjustment unit 18c, a lens drive control unit 18d, a main subject detection unit 18e, and a composition change determination unit 18f. The image processing unit 18a performs various image processing such as gamma correction and white balance adjustment on the input image signal to generate image data. Further, the image processing unit 18a generates display image data to be displayed on a liquid crystal display 191 to be described later, based on the image data recorded on the memory card 32.

画像記録部18bは、画像処理部18aにより生成された画像データに対してJPEGなどの所定の方式により圧縮処理を行い、EXIFなどの形式でメモリカード32へ記録する。焦点調節部18cは、第1焦点検出センサ15または第2焦点検出センサ16から出力される対の光像に応じた焦点検出信号に基づいて撮影レンズL1の焦点調節状態、ここではデフォーカス量を検出する。そして、焦点調節部18cは、検出したデフォーカス量に基づいて、撮影レンズL1に含まれる焦点調節レンズの合焦位置を検出する。なお、焦点調節部18cは、撮影画面上で、後述する主要被写体検出部18eにより検出された主要被写体の近傍に位置する焦点検出位置に対応する第1焦点検出センサ15または第2焦点検出センサ16の焦点検出信号に基づいて合焦位置を検出(追尾AF)してもよい。   The image recording unit 18b compresses the image data generated by the image processing unit 18a by a predetermined method such as JPEG, and records the compressed data in the memory card 32 in a format such as EXIF. The focus adjustment unit 18c determines the focus adjustment state of the photographing lens L1, based on the focus detection signal corresponding to the pair of optical images output from the first focus detection sensor 15 or the second focus detection sensor 16, here the defocus amount. To detect. Then, the focus adjustment unit 18c detects the focus position of the focus adjustment lens included in the photographic lens L1 based on the detected defocus amount. The focus adjusting unit 18c is a first focus detection sensor 15 or a second focus detection sensor 16 corresponding to a focus detection position located in the vicinity of the main subject detected by the main subject detection unit 18e described later on the shooting screen. The focus position may be detected (tracking AF) based on the focus detection signal.

レンズ駆動制御部18dは、焦点調節部18cにより検出された合焦位置を用いて、焦点調節レンズの駆動量を算出する。そして、レンズ駆動制御部18dは、算出した駆動量に基づいて、焦点調節レンズの駆動指示信号をレンズ制御回路20へ出力して、焦点調節レンズの合焦位置への駆動を制御させる。なお、後述するように、焦点調節レンズを合焦位置で固定するフォーカスロックが設定された場合には、レンズ駆動制御部18dは、駆動指示信号を出力しない。すなわち、フォーカスロック時には、レンズ駆動制御部18dは、既に合焦位置に駆動された焦点調節レンズを固定(ロック)させたまま駆動させないようにする。   The lens drive control unit 18d calculates the drive amount of the focus adjustment lens using the focus position detected by the focus adjustment unit 18c. Then, the lens drive control unit 18d outputs a drive instruction signal for the focus adjustment lens to the lens control circuit 20 based on the calculated drive amount, and controls the drive of the focus adjustment lens to the in-focus position. As will be described later, when the focus lock for fixing the focus adjustment lens at the in-focus position is set, the lens drive control unit 18d does not output a drive instruction signal. That is, at the time of focus lock, the lens drive control unit 18d prevents the focus adjustment lens that has already been driven to the in-focus position from being driven while being fixed (locked).

主要被写体検出部18eは、測光センサ17から入力した被写界画像信号を用いて、公知の技術に基づいて、撮影画面上における主要被写体検出処理を行う。主要被写体検出部18eは、たとえば、入力した被写界画像信号に基づいて、撮影画像内の所定の領域を有するテンプレート合像(たとえば矩形領域)を作成し、このテンプレート画像を主要被写体検出の基準として用いる。テンプレート画像は、被写界画像信号に基づいて、たとえば公知の顔検出処理等により抽出された人物の顔に対応する画像データである。主要被写体検出部18eは、測光センサ17による撮像に応じて、テンプレート画像作成後に順次入力された被写界画像信号と、テンプレート画像との差分を算出する。そして、主要被写体検出部18eは、被写界画像上において、テンプレート画像との差分の小さい領域を主要被写体が占有する位置(主要被写体位置)として検出する。   The main subject detection unit 18e performs main subject detection processing on the shooting screen based on a known technique using the object scene image signal input from the photometry sensor 17. The main subject detection unit 18e creates, for example, a template combined image (for example, a rectangular region) having a predetermined region in the captured image based on the input object scene image signal, and uses this template image as a reference for detecting the main subject. Used as The template image is image data corresponding to a human face extracted by, for example, a known face detection process based on the object scene image signal. The main subject detection unit 18e calculates the difference between the object scene image signal sequentially input after the template image is created and the template image in accordance with the imaging by the photometric sensor 17. Then, the main subject detection unit 18e detects, on the object scene image, a position where the main subject occupies a region having a small difference from the template image (main subject position).

構図変更判定部18fは、主要被写体検出部18eにより検出された主要被写体位置に基づいて、ユーザの操作により撮影画像の構図が変更されたか否かを判定する。この場合、構図変更判定部18fは、後述するように焦点調節レンズが合焦位置でロックされた時点(フォーカスロック時)で取得された被写界画像信号と、ユーザによる撮影指示が行われた後に取得された被写界画像信号とを用いて、ユーザの操作により構図が変更されたか否かを判定する。すなわち、構図変更判定部18fは、フォーカスロック時に撮影画像上で主要被写体が占有する位置と、撮影指示の時に撮影画像上で主要被写体が占有する位置とが変化したか否かを判定する。なお、焦点調節部18c、レンズ駆動制御部18d、主要被写体検出部18eおよび構図変更判定部18fについては後に詳細に説明する。   The composition change determination unit 18f determines whether or not the composition of the captured image has been changed by a user operation based on the main subject position detected by the main subject detection unit 18e. In this case, the composition change determination unit 18f receives the object scene image signal acquired when the focus adjustment lens is locked at the in-focus position (when the focus is locked) and a shooting instruction by the user, as will be described later. It is determined whether or not the composition has been changed by the user's operation using the object scene image signal acquired later. That is, the composition change determination unit 18f determines whether or not the position occupied by the main subject on the captured image when the focus is locked and the position occupied by the main subject on the captured image when the shooting instruction is issued are changed. The focus adjustment unit 18c, the lens drive control unit 18d, the main subject detection unit 18e, and the composition change determination unit 18f will be described in detail later.

メモリカードインタフェース31は、メモリカード32が着脱可能なインタフェースである。メモリカードインタフェース31は、制御回路18の制御に基づいて、画像データをメモリカード32に書き込んだり、メモリカード32に記録されている画像データを読み出す。メモリカード32はコンパクトフラッシュ(登録商標)やSDカードなどの半導体メモリカードである。   The memory card interface 31 is an interface to which the memory card 32 can be attached and detached. The memory card interface 31 writes image data to the memory card 32 or reads image data recorded on the memory card 32 based on the control of the control circuit 18. The memory card 32 is a semiconductor memory card such as a compact flash (registered trademark) or an SD card.

LCD駆動回路19は、制御回路18の命令に基づいて液晶表示器191を駆動する回路である。液晶表示器191は、再生モードにおいて、メモリカード32に記録されている画像データに基づいて制御回路18で作成された表示データの表示を行う。また、液晶表示器191は、いわゆるライブビュー画像を表示するように構成されている。ライブビューとは、レリーズ前にクイックリターンミラー10を上方に跳ね上げて撮像素子14で撮像した画像をリアルタイムに液晶表示器191に表示する表示形態である。   The LCD drive circuit 19 is a circuit that drives the liquid crystal display 191 based on a command from the control circuit 18. The liquid crystal display 191 displays the display data created by the control circuit 18 based on the image data recorded on the memory card 32 in the reproduction mode. The liquid crystal display 191 is configured to display a so-called live view image. The live view is a display form in which the quick return mirror 10 is flipped upward before the release and an image captured by the image sensor 14 is displayed on the liquid crystal display 191 in real time.

操作部30は、ユーザの操作を受け付ける各種のスイッチであり、操作内容に応じた各種の操作信号を制御回路18へ出力する。操作部30には、電源スイッチ、レリーズスイッチ、その他の設定メニューの表示切換スイッチ、設定メニュー決定ボタン、合焦ロックボタン等を含む。合焦ロックボタンは、ユーザによりたとえば撮影画像の構図変更を伴う撮影を行う際に操作され、撮影準備指示に応じて合焦位置に駆動された焦点調節レンズを、その合焦位置で固定する際に操作される。   The operation unit 30 is various switches that accept user operations, and outputs various operation signals corresponding to the operation contents to the control circuit 18. The operation unit 30 includes a power switch, a release switch, other setting menu display changeover switches, a setting menu determination button, a focus lock button, and the like. The focus lock button is operated when the user performs shooting with changing the composition of the shot image, for example, and when the focus adjustment lens driven to the focus position according to the shooting preparation instruction is fixed at the focus position. To be operated.

操作部30により、AF-Sモードや、撮影モードとして静止画撮影モードや動画撮影モード、上記のライブビュー画像を表示するためのライブビューモードの設定が可能である。AF-Sモードは、撮影準備動作時に焦点調節部18cによる初回の処理で検出された合焦位置で焦点調節レンズの駆動を固定(ロック)するモードであり、ユーザによりたとえば撮影画像の構図変更を伴う撮影を行う際に設定される。なお、以後の説明においては、合焦ロックボタンが操作された場合、またはAF-Sモードが選択された状態で焦点調節レンズが合焦位置でロックされた場合をフォーカスロックと呼ぶ。   The operation unit 30 can set an AF-S mode, a still image shooting mode or a moving image shooting mode as a shooting mode, and a live view mode for displaying the above live view image. The AF-S mode is a mode in which the focus adjustment lens drive is fixed (locked) at the in-focus position detected in the initial processing by the focus adjustment unit 18c during the shooting preparation operation. For example, the user can change the composition of the shot image. It is set when shooting with accompanying. In the following description, the case where the focus lock button is operated or the case where the focus adjustment lens is locked at the focus position while the AF-S mode is selected is referred to as focus lock.

補助光発光部33は、たとえば赤外光等を照射する光源を備え、焦点調節部18cにより焦点調節状態を検出する際に、制御回路18からの発光(点灯)指示に応じて点灯する。この場合、制御回路18は、測光センサ17から入力した被写界画像信号に基づいて、主要被写体の輝度が所定の輝度値よりも低い場合に、上記の発光を指示する信号を出力する。   The auxiliary light emitting unit 33 includes a light source that emits infrared light, for example, and lights up in response to a light emission (lighting) instruction from the control circuit 18 when the focus adjustment unit 18c detects the focus adjustment state. In this case, based on the object scene image signal input from the photometric sensor 17, the control circuit 18 outputs the above-described signal for instructing light emission when the luminance of the main subject is lower than a predetermined luminance value.

以下、ユーザによるレリーズスイッチの半押し操作に応じて撮影準備指示が行われた場合のデジタルカメラ1の動作について説明する。第1の実施の形態のデジタルカメラ1は、撮影準備動作の際に焦点調節レンズが合焦位置に駆動され、フォーカスロック状態であっても、ユーザによるレリーズスイッチの全押し操作に応じた撮影指示の際に構図変更が判定された場合には、新たに合焦位置を検出する。そして、デジタルカメラ1は、焦点調節レンズがロックされた合焦位置と、撮影指示の後に検出された新たな合焦位置との差が所定値以上の場合には、新たに検出された合焦位置に焦点調節レンズを駆動させる。また、デジタルカメラ1は、撮影準備動作の際には第1焦点検出センサ15から出力された焦点検出信号に基づいて焦点調節(以後、通常位相差AF)を行い、撮影指示後に新たに合焦位置を検出する場合には、第2焦点検出センサ16から出力された焦点検出信号に基づいて焦点調節(以後、像面位相差AF)を行う。以下、詳細に説明する。   Hereinafter, the operation of the digital camera 1 when a shooting preparation instruction is issued in response to a half-press operation of the release switch by the user will be described. In the digital camera 1 according to the first embodiment, the focus adjustment lens is driven to the in-focus position during the shooting preparation operation, and the shooting instruction according to the full pressing operation of the release switch by the user even in the focus lock state. If the composition change is determined at this time, a new in-focus position is detected. When the difference between the in-focus position where the focus adjustment lens is locked and the new in-focus position detected after the shooting instruction is greater than or equal to a predetermined value, the digital camera 1 determines the newly detected in-focus position. Drive the focus adjustment lens to the position. Further, the digital camera 1 performs focus adjustment (hereinafter referred to as normal phase difference AF) based on the focus detection signal output from the first focus detection sensor 15 during the shooting preparation operation, and newly focuses after the shooting instruction. When the position is detected, focus adjustment (hereinafter referred to as image plane phase difference AF) is performed based on the focus detection signal output from the second focus detection sensor 16. This will be described in detail below.

(1)撮影準備時
ユーザによるレリーズスイッチの半押し操作に応じて操作部30から半押し操作信号を入力すると、焦点調節部18cは、第1焦点検出センサ15から出力された焦点検出信号に基づいて、上述したようにデフォーカス量を算出し、合焦位置を検出する。合焦位置が検出されると、レンズ駆動制御部18dは、レンズ制御部20に駆動指示信号を出力して、焦点調節レンズを合焦位置へ駆動させる。なお、ユーザにより合焦ロックボタンが操作され操作部30から操作信号を入力した場合は、レンズ駆動制御部18dは、操作信号を入力した時点で駆動停止を指示する信号をレンズ制御回路20へ出力し、焦点調節レンズの駆動を停止させロックさせる。
(1) During shooting preparation When a half-press operation signal is input from the operation unit 30 in response to a half-press operation of the release switch by the user, the focus adjustment unit 18 c is based on the focus detection signal output from the first focus detection sensor 15. As described above, the defocus amount is calculated, and the in-focus position is detected. When the in-focus position is detected, the lens drive control unit 18d outputs a drive instruction signal to the lens control unit 20 to drive the focus adjustment lens to the in-focus position. When the focus lock button is operated by the user and an operation signal is input from the operation unit 30, the lens drive control unit 18d outputs a signal to stop driving when the operation signal is input to the lens control circuit 20. Then, the focus adjustment lens is stopped and locked.

AF-Sモードが設定されている場合に、初回の通常位相差AFにより検出された合焦位置に焦点調節レンズが駆動されると、レンズ駆動制御部18dは、焦点調節レンズの駆動を合焦位置での停止およびロックさせる固定指示信号をレンズ制御回路20へ出力する。その結果、ユーザによるレリーズスイッチの全押し操作に応じて操作部30から全押し操作信号を入力するまで、焦点調節レンズが合焦位置でロックされる。なお、焦点調節レンズが駆動された位置は、図示しないエンコーダ等により検出され、制御回路18へ出力されるものとする。   When the focus adjustment lens is driven to the focus position detected by the first normal phase difference AF when the AF-S mode is set, the lens drive control unit 18d focuses the drive of the focus adjustment lens. A fixing instruction signal for stopping and locking at the position is output to the lens control circuit 20. As a result, the focus adjustment lens is locked at the in-focus position until a full-press operation signal is input from the operation unit 30 in response to the full-press operation of the release switch by the user. Note that the position where the focus adjustment lens is driven is detected by an encoder (not shown) or the like and output to the control circuit 18.

焦点調節レンズがフォーカスロックされると、主要被写体検出部18eは、測光センサ17から入力した被写界画像信号に基づいて、主要被写体検出処理を行う。なお、主要被写体検出部18eは、上述したように、被写界画像信号のうち主要被写体検出のための基準となるテンプレート画像との差分が最小の領域を、撮影画面上で主要被写体が占有する位置として検出する。このとき、主要被写体を包含する領域はテンプレート画像で規定される領域と同一の大きさを有する。したがって、主要被写体検出部18eは、テンプレート画像との差分が最小の領域を囲む矩形領域の中心の座標値を主要被写体位置として、図示しないメモリに格納する。   When the focus adjustment lens is focus-locked, the main subject detection unit 18e performs main subject detection processing based on the object scene image signal input from the photometric sensor 17. Note that, as described above, the main subject detection unit 18e occupies the main subject on the shooting screen in an area where the difference from the template image serving as a reference for main subject detection is the smallest in the scene image signal. Detect as position. At this time, the area including the main subject has the same size as the area defined by the template image. Therefore, the main subject detection unit 18e stores the coordinate value of the center of the rectangular area surrounding the area having the smallest difference from the template image as a main subject position in a memory (not shown).

(2)撮影指示時
半押し操作信号に応じて焦点調節レンズがフォーカスロックされ、主要被写体が検出された状態で、ユーザのレリーズスイッチの全押し操作に応じて操作部30から全押し操作信号が入力された場合について説明する。このとき、主要被写体検出部18eは、新たに入力した被写界画像信号を用いて、上述の場合と同様にして主要被写体検出処理を行い、新たな主要被写体位置(すなわち矩形領域の中心の座標値)をメモリに格納する。
(2) At the time of shooting instruction When the focus adjustment lens is focus-locked according to the half-press operation signal and the main subject is detected, a full-press operation signal is output from the operation unit 30 according to the user's full-press operation of the release switch. The case where it is input will be described. At this time, the main subject detection unit 18e performs a main subject detection process using the newly input object scene image signal in the same manner as described above, and performs a new main subject position (ie, coordinates of the center of the rectangular area). Value) in memory.

構図変更判定部18fは、焦点調節レンズがフォーカスロックされた時点で検出された主要被写体位置と、レリーズスイッチの全押し操作が行われた後に新たに検出された主要被写体位置とを比較して、構図変更の有無を判定する。この場合、構図変更判定部18fは、フォーカスロック時に検出された主要被写体位置と、撮影指示後に新たに検出された主要被写体位置との差分を算出する。すなわち、構図変更判定部18fは、メモリに格納された、フォーカスロック時における矩形領域の中心の座標値と全押し操作信号入力後における矩形領域の中心の座標値との差分値を算出する。そして、構図変更判定部18fは、算出した差分値が所定値以上の場合はユーザによる構図変更操作が行われたものと判定する。以下、構図変更操作が行われていないと判定された場合と、構図変更操作が行われたと判定された場合とに分けて説明する。なお、制御回路18は、上述した追尾AFによって検出された合焦位置へ焦点調節レンズを駆動中に操作部30から全押し操作信号を入力すると、以下で説明する構図変更操作が行われた場合と同様の処理を行う。   The composition change determination unit 18f compares the main subject position detected when the focus adjustment lens is focus-locked with the main subject position newly detected after the release switch is fully pressed, The presence or absence of composition change is determined. In this case, the composition change determination unit 18f calculates the difference between the main subject position detected when the focus is locked and the main subject position newly detected after the shooting instruction. That is, the composition change determination unit 18f calculates a difference value stored in the memory between the coordinate value of the center of the rectangular area when the focus is locked and the coordinate value of the center of the rectangular area after the full-press operation signal is input. Then, the composition change determination unit 18f determines that the composition change operation has been performed by the user when the calculated difference value is equal to or greater than a predetermined value. Hereinafter, the case where it is determined that the composition change operation has not been performed and the case where it has been determined that the composition change operation has been performed will be described separately. When the control circuit 18 inputs a full-press operation signal from the operation unit 30 while driving the focus adjustment lens to the in-focus position detected by the tracking AF described above, a composition change operation described below is performed. The same processing is performed.

−構図変更操作が行われていない場合−
構図変更操作が行われていないと判定された場合、制御回路18は、焦点調節レンズをフォーカスロックの状態で、各部を制御して撮影処理を行わせる。この場合、制御回路18は、図示しないアクチュエータ等を介してクイックリターンミラー10を図1の破線で示す位置へ駆動させる(ミラーアップ)。そして、制御回路18は、ミラーアップが行われると、測光センサ17からの被写界画像信号に基づいて算出したシャッタ秒時に応じた期間だけシャッタ21を開放して、撮像素子14を露光する。
-When no composition change operation is performed-
When it is determined that the composition change operation has not been performed, the control circuit 18 controls each unit to perform the photographing process while the focus adjustment lens is in the focus lock state. In this case, the control circuit 18 drives the quick return mirror 10 to a position indicated by a broken line in FIG. 1 via an actuator (not shown) (mirror up). When the mirror is raised, the control circuit 18 opens the shutter 21 for a period corresponding to the shutter time calculated based on the object scene image signal from the photometric sensor 17 to expose the image sensor 14.

シャッタ秒時が経過してシャッタ21が閉じられ、撮像素子14への被写体光が遮断されると、制御回路18は、撮像素子14に対して画像信号を出力させる。そして、画像処理部18aは、入力した画像信号に対して上述した各種の画像処理を施して画像データを生成する。そして、画像記録部18bは、画像処理部18aにより生成された画像データに対してJPEGなどの所定の方式により圧縮処理を行い、EXIFなどの形式でメモリカード32へ記録する。画像データのメモリカード32への記録が行われると、制御回路18は、不図示のアクチュエータ等を介してクイックリターンミラー10を図1の実線で示す位置へ駆動させる(ミラーダウン)。   When the shutter time has elapsed and the shutter 21 is closed and the subject light to the image sensor 14 is blocked, the control circuit 18 causes the image sensor 14 to output an image signal. The image processing unit 18a performs the above-described various image processing on the input image signal to generate image data. Then, the image recording unit 18b performs compression processing on the image data generated by the image processing unit 18a by a predetermined method such as JPEG, and records it in the memory card 32 in a format such as EXIF. When the image data is recorded on the memory card 32, the control circuit 18 drives the quick return mirror 10 to the position indicated by the solid line in FIG. 1 via an actuator (not shown) (mirror down).

−構図変更操作が行われた場合−
構図変更操作が行われたと判定され場合、像面位相差AFを行い、新たに撮影レンズL1の焦点調節状態、すなわち焦点調節レンズの合焦位置を検出する。この場合、制御回路18は、操作部30から全押し操作信号を入力すると、図示しないアクチュエータ等を介してクイックリターンミラー10をミラーアップさせるとともに、シャッタ21を開放する。すなわち、制御回路18は、被写体光が撮像素子14および第2焦点検出センサ16に入射することを許容する。その結果、撮像素子14と第2焦点検出センサ16とが露光される。
-When a composition change operation is performed-
When it is determined that the composition change operation has been performed, the image plane phase difference AF is performed to newly detect the focus adjustment state of the photographing lens L1, that is, the focus position of the focus adjustment lens. In this case, when a full-press operation signal is input from the operation unit 30, the control circuit 18 mirrors the quick return mirror 10 through an actuator (not shown) and opens the shutter 21. That is, the control circuit 18 allows subject light to enter the image sensor 14 and the second focus detection sensor 16. As a result, the image sensor 14 and the second focus detection sensor 16 are exposed.

このとき、制御回路18は、撮像素子14をローリングシャッタ方式(電子シャッタ方式)で駆動させて画像信号を出力させる。ローリングシャッタ方式とは、撮像素子14が走査ライン(画素行)ごとに順次、画像信号を出力する撮像方式である。制御回路18は、撮像素子14から出力された画像信号を、図示しないメモリに一時的に格納する。さらに、焦点調節部18cは、第2焦点検出センサ16から出力された焦点検出信号に基づいて、デフォーカス量を算出し、焦点調節レンズの合焦位置を検出する。   At this time, the control circuit 18 drives the image sensor 14 by a rolling shutter system (electronic shutter system) to output an image signal. The rolling shutter system is an imaging system in which the image sensor 14 sequentially outputs an image signal for each scanning line (pixel row). The control circuit 18 temporarily stores the image signal output from the image sensor 14 in a memory (not shown). Furthermore, the focus adjustment unit 18c calculates a defocus amount based on the focus detection signal output from the second focus detection sensor 16, and detects the focus position of the focus adjustment lens.

制御回路18は、第2焦点検出センサ16から出力された焦点検出信号に基づく像面位相差AFにより新たに検出された合焦位置が、焦点調節レンズがフォーカスロックされた合焦位置、すなわち通常位相差AFにより検出された合焦位置から変化したか否かを判定する。この場合、制御回路18は、像面位相差AFにより新たに検出された合焦位置と、通常位相差AFにより検出された合焦位置との差分が所定値以上であるか否かを判定する。そして、2つの合焦位置の差分の値が所定値以上の場合に、制御回路18は、合焦位置が変化したと判定する。なお、この所定値は、ユーザにより構図変更操作が行われた場合であっても、焦点調節状態がズレた画像が撮影されないように設定された値であり、実験等により決定されるものとする。この所定値は、予め図示しないメモリに格納されているものとする。   The control circuit 18 determines that the focus position newly detected by the image plane phase difference AF based on the focus detection signal output from the second focus detection sensor 16 is the focus position where the focus adjustment lens is focus-locked, that is, normal It is determined whether or not the focus position detected by the phase difference AF has changed. In this case, the control circuit 18 determines whether or not the difference between the in-focus position newly detected by the image plane phase difference AF and the in-focus position detected by the normal phase difference AF is greater than or equal to a predetermined value. . When the difference between the two in-focus positions is equal to or greater than a predetermined value, the control circuit 18 determines that the in-focus position has changed. Note that the predetermined value is a value set so that an image with a shifted focus adjustment state is not captured even when a composition change operation is performed by the user, and is determined by an experiment or the like. . This predetermined value is stored in advance in a memory (not shown).

合焦位置が変化している場合(2つの合焦位置の差分の値が所定値以上の場合)、レンズ駆動制御部18dは、レンズ制御回路20へ駆動信号を出力して、像面位相差AFにより新たに検出された合焦位置に、焦点調節レンズを駆動させる。そして、新たな合焦位置に焦点調節レンズが駆動されると、制御回路18は、撮像素子14をローリングシャッタ方式(電子シャッタ方式)で駆動させて画像信号を出力させる。そして、画像処理部18aは、入力した画像信号に対して上述した各種の画像処理を施して画像データを生成する。生成された画像データは、構図変更操作が行われていない場合と同様に、画像記録部18bにより圧縮処理等が施されてからEXIFなどの形式でメモリカード32へ記録される。なお、制御回路18は、ミラーアップおよびシャッタ21の開放後に取得し、メモリに一時的に格納された画像信号を削除する。   When the in-focus position has changed (when the difference between the two in-focus positions is greater than or equal to a predetermined value), the lens drive control unit 18d outputs a drive signal to the lens control circuit 20 and the image plane phase difference. The focus adjustment lens is driven to the in-focus position newly detected by AF. When the focus adjustment lens is driven to a new in-focus position, the control circuit 18 drives the image sensor 14 by a rolling shutter method (electronic shutter method) to output an image signal. The image processing unit 18a performs the above-described various image processing on the input image signal to generate image data. The generated image data is recorded on the memory card 32 in a format such as EXIF after being subjected to compression processing or the like by the image recording unit 18b as in the case where the composition change operation is not performed. The control circuit 18 deletes the image signal acquired after the mirror is raised and the shutter 21 is opened and temporarily stored in the memory.

合焦位置が変化していない場合(2つの合焦位置の差分の値が所定値未満の場合)、レンズ駆動制御部18dは、焦点調節レンズをフォーカスロックさせた状態を継続させる。すなわち、レンズ駆動制御部18dは、像面位相差AFにより新たに検出した合焦位置に焦点調節レンズを駆動させることを禁止する。そして、画像処理部18aは、ミラーアップおよびシャッタ21の開放後に取得し、メモリに一時的に格納された画像信号を読み出し、この画像信号に対して上述した各種の画像処理を施して画像データを生成する。生成された画像データは、構図変更操作が行われていない場合と同様に、画像記録部18bにより圧縮処理等が施されてからEXIFなどの形式でメモリカード32へ記録される。   When the in-focus position has not changed (when the difference between the two in-focus positions is less than the predetermined value), the lens drive control unit 18d continues the focus-locked state of the focus adjustment lens. That is, the lens drive control unit 18d prohibits the focus adjustment lens from being driven to the in-focus position newly detected by the image plane phase difference AF. Then, the image processing unit 18a reads the image signal acquired after the mirror up and the shutter 21 is opened and temporarily stored in the memory, and performs the above-described various image processing on the image signal to obtain the image data. Generate. The generated image data is recorded on the memory card 32 in a format such as EXIF after being subjected to compression processing or the like by the image recording unit 18b as in the case where the composition change operation is not performed.

図3〜図6に示すフローチャートを参照して、実施の形態によるデジタルカメラ1の動作を説明する。図3〜図6の処理を行うプログラムは制御回路18内の図示しないメモリに格納されており、ユーザにより電源スイッチがオン操作されて操作部30により電源オンを指示する操作信号を入力すると制御回路18により起動され、実行される。   The operation of the digital camera 1 according to the embodiment will be described with reference to the flowcharts shown in FIGS. A program for performing the processes of FIGS. 3 to 6 is stored in a memory (not shown) in the control circuit 18, and when the user turns on the power switch and inputs an operation signal for instructing power on by the operation unit 30, the control circuit 18 is started and executed.

図3のステップS101では初期化を行い、ステップS102では、デジタルカメラ1内の各部に電源オン処理を行ってステップS103へ進む。ステップS103では、電源スイッチがオフ操作されたか否かを判定する。電源スイッチの操作に応じて操作部30から電源オフを指示する操作信号を入力した場合にはステップS103が肯定判定されてステップS104へ進む。ステップS104では電源オフ処理を行って、処理を終了する。操作部30から電源オフを指示する操作信号を入力しない場合は、ステップS103が否定判定されてステップS105へ進む。   In step S101 of FIG. 3, initialization is performed, and in step S102, power-on processing is performed on each unit in the digital camera 1, and the process proceeds to step S103. In step S103, it is determined whether or not the power switch is turned off. When an operation signal for instructing to turn off the power is input from the operation unit 30 according to the operation of the power switch, an affirmative determination is made in step S103 and the process proceeds to step S104. In step S104, a power-off process is performed and the process ends. If an operation signal for instructing power off is not input from the operation unit 30, a negative determination is made in step S103 and the process proceeds to step S105.

ステップS105では、ユーザによりレリーズスイッチが半押し操作された否かを判定する。レリーズスイッチの半押し操作に応じて操作部30から半押し操作信号を入力した場合は、ステップS105が肯定判定されてステップS106へ進む。操作部30から半押し操作信号を入力しない場合は、ステップS105が否定判定されてステップS103へ戻る。   In step S105, it is determined whether or not the user has pressed the release switch halfway. If a half-press operation signal is input from the operation unit 30 in response to a half-press operation of the release switch, an affirmative determination is made in step S105 and the process proceeds to step S106. If no half-press operation signal is input from the operation unit 30, a negative determination is made in step S105, and the process returns to step S103.

ステップS106では、撮影準備処理を行ってステップS107へ進む。なお、撮影準備処理については図4を用いて後述する。ステップS107においては、ユーザによるレリーズスイッチの半押し操作が継続されているか否かを判定する。操作部30から半押し操作信号を入力している場合は、ステップS107が肯定判定されてステップS108へ進む。半押し操作信号を入力しない場合には、ステップS107が否定判定されてステップS103へ戻る。   In step S106, a shooting preparation process is performed, and the process proceeds to step S107. The photographing preparation process will be described later with reference to FIG. In step S107, it is determined whether or not the user continues to press the release switch halfway. If a half-press operation signal is input from the operation unit 30, an affirmative determination is made in step S107 and the process proceeds to step S108. If the half-press operation signal is not input, a negative determination is made in step S107 and the process returns to step S103.

ステップS108では、AF-Sモードが設定され、かつ焦点調節レンズが合焦位置に駆動されていないか否かを判定する。AF-Sモードが設定され、かつ焦点調節レンズが合焦位置に駆動されていない場合は、ステップS108が肯定判定されてステップS107へ戻る。ステップS108が否定判定された場合はステップS109へ進む。   In step S108, it is determined whether the AF-S mode is set and the focus adjustment lens is not driven to the in-focus position. When the AF-S mode is set and the focus adjustment lens is not driven to the in-focus position, an affirmative determination is made in step S108 and the process returns to step S107. If a negative determination is made in step S108, the process proceeds to step S109.

ステップS109では、ユーザによりレリーズスイッチが全押し操作されたか否かを判定する。操作部30から全押し操作信号を入力した場合は、ステップS109が肯定判定されてステップS110へ進む。全押し操作信号を入力しない場合は、ステップS109が否定判定されてステップS103へ戻る。ステップS110では、撮影処理を行ってステップS103へ戻る。なお、撮影処理については、図5のフローチャートを参照しながら後述する。   In step S109, it is determined whether or not the user has pressed the release switch fully. If a full-press operation signal is input from the operation unit 30, an affirmative determination is made in step S109 and the process proceeds to step S110. If the full-press operation signal is not input, a negative determination is made in step S109 and the process returns to step S103. In step S110, a photographing process is performed, and the process returns to step S103. The photographing process will be described later with reference to the flowchart of FIG.

次に図4のフローチャートを参照しながら撮影準備処理について説明する。ステップS201ではフォーカスロック中であるか否かを判定する。フォーカスロック中でなければステップS201が否定判定されてステップS202へ進む。フォーカスロック中である場合はステップS201が肯定判定されて後述するステップS208へ進む。ステップS202においては、通常位相差AFによりデフォーカス量を算出してステップS203へ進む。   Next, imaging preparation processing will be described with reference to the flowchart of FIG. In step S201, it is determined whether the focus is locked. If the focus is not locked, a negative determination is made in step S201 and the process proceeds to step S202. If the focus is locked, an affirmative decision is made in step S201 and the process proceeds to step S208 described later. In step S202, the defocus amount is calculated by the normal phase difference AF, and the process proceeds to step S203.

ステップS203においては、ステップS202における通常位相差AFにより焦点調節レンズの合焦位置が検出されたか否かを判定する。合焦位置が検出された場合は、ステップS203が肯定判定されてステップS204へ進む。合焦位置が検出されない場合は、ステップS203が否定判定されて後述するステップS209へ進む。ステップS204では、レンズ制御回路20を介して焦点調節レンズを合焦位置へ駆動させてステップS205へ進む。   In step S203, it is determined whether or not the focus position of the focus adjustment lens is detected by the normal phase difference AF in step S202. If the in-focus position is detected, an affirmative determination is made in step S203 and the process proceeds to step S204. If the in-focus position is not detected, a negative determination is made in step S203, and the process proceeds to step S209 described later. In step S204, the focus adjustment lens is driven to the in-focus position via the lens control circuit 20, and the process proceeds to step S205.

ステップS205においては、焦点調節レンズの駆動が終了したか否かを判定する。焦点調節レンズが合焦位置へ駆動された場合、ステップS205が肯定判定されてステップS206へ進む。焦点調節レンズが駆動中の場合は、ステップS205が否定判定されて当該判定処理を繰り返す。ステップS206では、AF-Sモードが設定されているか、または合焦ロックボタンが操作されたか否かを判定する。AF-Sモードが設定されている場合、または合焦ロックボタンの操作に応じて操作部30から操作信号を入力した場合は、ステップS206が肯定判定されてステップS207へ進む。ステップS207では、焦点調節レンズを合焦位置にロックさせてステップS208へ進む。AF-Sモードが設定されておらず、かつ合焦ロックボタンの操作も行われていない場合には、ステップS206が否定判定されてステップS208へ進む。ステップS208では、測光センサ17から入力した被写界画像信号を用いて主要被写体の位置を検出して撮影準備処理を終了する。   In step S205, it is determined whether or not driving of the focus adjustment lens is completed. When the focus adjustment lens is driven to the in-focus position, an affirmative determination is made in step S205 and the process proceeds to step S206. If the focus adjustment lens is being driven, a negative determination is made in step S205 and the determination process is repeated. In step S206, it is determined whether the AF-S mode is set or the focus lock button is operated. If the AF-S mode is set, or if an operation signal is input from the operation unit 30 in response to the operation of the focus lock button, an affirmative determination is made in step S206 and the process proceeds to step S207. In step S207, the focus adjustment lens is locked at the in-focus position, and the process proceeds to step S208. If the AF-S mode is not set and the focus lock button has not been operated, a negative determination is made in step S206 and the process proceeds to step S208. In step S208, the position of the main subject is detected using the object scene image signal input from the photometric sensor 17, and the shooting preparation process is terminated.

ステップS203が否定判定されるとステップS209へ進み、レンズ制御回路20を介して焦点調節レンズを所定位置(たとえば焦点距離が∞となる位置)へ駆動させてステップS210へ進む。ステップS210においては、ステップS205と同様に、焦点調節レンズの駆動が終了したか否かを判定する。ステップS210が肯定判定されるとステップS211へ進み、否定判定された場合は当該判定処理を繰り返す。ステップS211では、AF-Sモードが設定されているか否かを判定する。AF-Sモードが設定されていない場合は、ステップS211が否定判定されてステップS208へ進む。AF-Sモードが設定されている場合はステップS211が肯定判定されてステップS212へ進む。ステップS212では、焦点調節レンズを所定の位置にロックさせて撮影準備処理を終了する。   If a negative determination is made in step S203, the process proceeds to step S209, and the focus adjustment lens is driven to a predetermined position (for example, a position where the focal length becomes ∞) via the lens control circuit 20, and the process proceeds to step S210. In step S210, as in step S205, it is determined whether or not the driving of the focus adjustment lens has ended. If a positive determination is made in step S210, the process proceeds to step S211. If a negative determination is made, the determination process is repeated. In step S211, it is determined whether or not the AF-S mode is set. If the AF-S mode is not set, a negative determination is made in step S211 and the process proceeds to step S208. If the AF-S mode is set, an affirmative determination is made in step S211 and the process proceeds to step S212. In step S212, the focus adjustment lens is locked at a predetermined position, and the photographing preparation process ends.

続いて図5を参照しながら撮影処理について説明する。ステップS301においては、測光センサ17から入力した被写界画像信号を用いて主要被写体の位置を検出してステップS302へ進む。ステップS302では、ユーザにより構図変更操作が行われたか否か、または追尾AF中にレリーズスイッチが全押し操作されたか否かを判定する。図4のステップS208で検出した主要被写体位置とステップS301で検出した主要被写体位置との差分が所定値以上であればステップS302が肯定判定されて後述するステップS310へ進む。主要被写体位置の差分が所定値未満の場合はステップS302が否定判定されてステップS303へ進む。また、追尾AFを行っている場合には、焦点調節レンズが駆動中にレリーズスイッチが全押し操作されたか否かを判定する。焦点調節レンズが駆動中に操作部30から全押し操作信号を入力した場合にはステップS302が肯定判定されて後述するステップS310へ進み、焦点調節レンズが駆動していないときに操作部30から全押し操作信号を入力した場合にはステップS302が否定判定されてステップS303へ進む。なお、ステップS310の像面位相差AF処理の詳細については、図6を用いて後述する。   Next, the photographing process will be described with reference to FIG. In step S301, the position of the main subject is detected using the object scene image signal input from the photometric sensor 17, and the process proceeds to step S302. In step S302, it is determined whether or not a composition change operation has been performed by the user, or whether or not the release switch has been fully pressed during tracking AF. If the difference between the main subject position detected in step S208 in FIG. 4 and the main subject position detected in step S301 is greater than or equal to a predetermined value, an affirmative determination is made in step S302 and the process proceeds to step S310 described later. If the difference in the main subject position is less than the predetermined value, a negative determination is made in step S302 and the process proceeds to step S303. When tracking AF is being performed, it is determined whether or not the release switch has been fully pressed while the focus adjustment lens is being driven. When a full-press operation signal is input from the operation unit 30 while the focus adjustment lens is being driven, an affirmative determination is made in step S302 and the process proceeds to step S310 described later. If a push operation signal is input, a negative determination is made in step S302 and the process proceeds to step S303. Details of the image plane phase difference AF process in step S310 will be described later with reference to FIG.

ステップS303ではクイックリターンミラー10をミラーアップさせてステップS304へ進む。ステップS304ではシャッタ21を開いて、ステップS305で撮像素子14を露光させる。ステップS304からシャッタ秒時に相当する時間が経過したステップS306ではシャッタ21を閉じてステップS307へ進む。ステップS307では、撮像処理を行う。すなわち、撮像素子14から出力された画像信号に対して各種の画像処理を施して画像データを生成し、所定の圧縮率(たとえばJPEG)に圧縮した後画像ファイルを生成してメモリカード32へ記録する。なお、ステップS307では、構図変更が行われていない場合には、ステップS305で出力された画像信号に基づいて画像データが生成される。また、構図変更が行われた場合は、後述する像面位相差AF処理(図6、ステップS402またはS409)にて出力された画像信号に基づいて画像データが生成される。ステップS308では、クイックリターンミラー10をミラーダウンさせて撮影処理を終了する。   In step S303, the quick return mirror 10 is raised, and the process proceeds to step S304. In step S304, the shutter 21 is opened, and in step S305, the image sensor 14 is exposed. In step S306 when the time corresponding to the shutter speed has elapsed from step S304, the shutter 21 is closed and the process proceeds to step S307. In step S307, an imaging process is performed. That is, the image signal output from the image sensor 14 is subjected to various image processing to generate image data, compressed to a predetermined compression rate (for example, JPEG), and then an image file is generated and recorded in the memory card 32. To do. In step S307, if the composition has not been changed, image data is generated based on the image signal output in step S305. When the composition is changed, image data is generated based on the image signal output in the image plane phase difference AF process (FIG. 6, step S402 or S409) described later. In step S308, the quick return mirror 10 is mirrored down and the photographing process is terminated.

図6に示すフローチャートを参照しながら、像面位相差AF処理について説明する。ステップS401では、クイックリターンミラー10をミラーアップさせるとともに、シャッタ21を開放してステップS402へ進む。ステップS402においては、撮像素子14および第2焦点検出センサ16を電子シャッタ方式により露光させてステップS403へ進む。なお、このとき撮像素子14から出力された画像信号は図示しないメモリに一時的に格納される。ステップS403においては、像面位相差AFによりデフォーカス量を算出してステップS404へ進む。   The image plane phase difference AF process will be described with reference to the flowchart shown in FIG. In step S401, the quick return mirror 10 is raised, and the shutter 21 is opened, and the process proceeds to step S402. In step S402, the image sensor 14 and the second focus detection sensor 16 are exposed by the electronic shutter method, and the process proceeds to step S403. At this time, the image signal output from the image sensor 14 is temporarily stored in a memory (not shown). In step S403, the defocus amount is calculated by the image plane phase difference AF, and the process proceeds to step S404.

ステップS404では、ステップS403における像面位相差AFにより焦点調節レンズの合焦位置が新たに検出されたか否かを判定する。新たに合焦位置が検出された場合は、ステップS404が肯定判定されてステップS405へ進む。新たに合焦位置が検出されない場合は、ステップS404が否定判定されて後述するステップS410へ進む。ステップS405では、図4のステップS202で通常位相差AFにより検出された合焦位置とステップS403で像面位相差AFにより新たに検出された合焦位置との変化を検出、すなわち2つの合焦位置の差分を算出してステップS406へ進む。   In step S404, it is determined whether or not the focus position of the focus adjustment lens is newly detected by the image plane phase difference AF in step S403. If a new in-focus position is detected, an affirmative determination is made in step S404 and the process proceeds to step S405. If a new in-focus position is not detected, a negative determination is made in step S404 and the process proceeds to step S410 described later. In step S405, a change between the in-focus position detected by the normal phase difference AF in step S202 of FIG. 4 and the in-focus position newly detected by the image plane phase difference AF in step S403 is detected, that is, two in-focus positions are detected. The position difference is calculated and the process proceeds to step S406.

ステップS406では、2つの焦点検出処理により検出された合焦位置に変化があるか否かを判定する。合焦位置に変化がある場合、すなわちステップS405で算出された合焦位置の差分値が所定値以上の場合にはステップS406が肯定判定されてステップS407へ進む。合焦位置に変化がない場合、すなわちステップS405で算出された合焦位置の差分値が所定値未満の場合にはステップS406が否定判定されて後述するステップS410へ進む。   In step S406, it is determined whether or not there is a change in the in-focus position detected by the two focus detection processes. If there is a change in the focus position, that is, if the difference value of the focus position calculated in step S405 is greater than or equal to a predetermined value, an affirmative determination is made in step S406 and the process proceeds to step S407. If there is no change in the in-focus position, that is, if the difference value of the in-focus position calculated in step S405 is less than a predetermined value, a negative determination is made in step S406 and the process proceeds to step S410 described later.

ステップS407では、像面位相差AFにより新たに検出された合焦位置へ焦点調節レンズを駆動させてステップS408へ進む。ステップS408では、焦点調節レンズの駆動が終了したか否かを判定する。焦点調節レンズがステップS403で新たに検出された合焦位置へ駆動された場合には、ステップS408が肯定判定されてステップS409へ進む。焦点調節レンズが新たに検出された合焦位置へ駆動中である場合には、ステップS408が否定判定されて当該判定処理を繰り返す。   In step S407, the focus adjustment lens is driven to the in-focus position newly detected by the image plane phase difference AF, and the process proceeds to step S408. In step S408, it is determined whether or not the driving of the focus adjustment lens is finished. When the focus adjustment lens is driven to the in-focus position newly detected in step S403, an affirmative determination is made in step S408 and the process proceeds to step S409. If the focus adjustment lens is being driven to the newly detected focus position, a negative determination is made in step S408 and the determination process is repeated.

ステップS409では、撮像素子14を電子シャッタ方式により露光して画像信号を出力させて、メモリ(不図示)に一時的に格納してステップS410へ進む。なお、この場合、ステップS402で出力されメモリ内に格納された画像信号を削除する。ステップS410においては、シャッタ21を閉じて像面位相差AF処理を終了する。   In step S409, the image sensor 14 is exposed by the electronic shutter method to output an image signal, temporarily stored in a memory (not shown), and the process proceeds to step S410. In this case, the image signal output in step S402 and stored in the memory is deleted. In step S410, the shutter 21 is closed and the image plane phase difference AF process is terminated.

以上で説明した第1の実施の形態のデジタルカメラ1によれば、以下の作用効果が得られる。
(1)撮像素子14は、撮影レンズL1を介して被写体の像を撮像して画像信号を出力し、第1焦点検出センサ15は、撮像素子14と光学的に共役な位置に設けられ、撮影開始前に撮影レンズL1の焦点調節状態を検出して焦点検出信号を出力する。第2焦点検出センサ16は、撮像素子14に組み込まれ、撮影レンズL1の焦点調節状態を検出して焦点検出信号を出力する。レンズ駆動制御部18dは、第1焦点検出センサ15から出力される焦点検出信号に基づいて、撮影レンズL1を合焦位置へ駆動し、合焦位置に駆動された撮影レンズL1を合焦位置に固定(ロック)する。主要被写体検出部18eおよび構図変更判定部18fは、撮影レンズL1がロックされた後の被写体の移動を検出し、操作部30からの操作信号に基づいて撮影開始が指示されると、制御回路18は、被写体からの光が撮像素子14および第2焦点検出センサ16に入射することを許容する。
According to the digital camera 1 of the first embodiment described above, the following operational effects can be obtained.
(1) The image pickup device 14 picks up an image of a subject through the taking lens L1 and outputs an image signal. The first focus detection sensor 15 is provided at a position optically conjugate with the image pickup device 14, and takes a picture. Before starting, the focus adjustment state of the photographic lens L1 is detected and a focus detection signal is output. The second focus detection sensor 16 is incorporated in the image sensor 14, detects the focus adjustment state of the photographic lens L1, and outputs a focus detection signal. The lens drive control unit 18d drives the photographic lens L1 to the in-focus position based on the focus detection signal output from the first focus detection sensor 15, and sets the photographic lens L1 driven to the in-focus position to the in-focus position. Fix (lock). The main subject detection unit 18e and the composition change determination unit 18f detect the movement of the subject after the photographing lens L1 is locked, and when the start of photographing is instructed based on the operation signal from the operation unit 30, the control circuit 18 Allows light from the subject to enter the image sensor 14 and the second focus detection sensor 16.

撮影開始が指示されたとき、構図変更判定部18fによりロック後の被写体の移動が検出された場合、レンズ駆動制御部18dは、第2焦点検出センサ16から出力される焦点検出信号に基づいて、撮影レンズL2を合焦位置に駆動する。換言すると、レンズ駆動制御部18dは、撮影レンズL1がロックされるまでは、第1焦点検出センサ15からの焦点検出信号に基づいて撮影レンズL1を合焦位置へ駆動し、撮影レンズL1がロックされた後は、第2焦点検出センサ16からの焦点検出信号に基づいて撮影レンズL1を新たな合焦位置へ駆動するようにした。したがって、ユーザによる構図変更操作に伴って被写体との距離に変化が生じた場合であっても、焦点調節状態の検出をやり直すためのユーザによる操作が不要となり、シャッタチャンスを逃すことを防げる。さらに、構図変更操作が行われた後は、撮像素子14および第2焦点検出センサ16はローリングシャッタ方式により露光されるので、第2焦点検出センサ16を露光するためのシャッタ21の開閉動作によるタイムラグを防ぐことができる。   When the start of shooting is instructed, if the movement of the locked subject is detected by the composition change determination unit 18f, the lens drive control unit 18d is based on the focus detection signal output from the second focus detection sensor 16. The photographic lens L2 is driven to the in-focus position. In other words, the lens drive controller 18d drives the photographing lens L1 to the in-focus position based on the focus detection signal from the first focus detection sensor 15 until the photographing lens L1 is locked, and the photographing lens L1 is locked. After that, the taking lens L1 is driven to a new in-focus position based on the focus detection signal from the second focus detection sensor 16. Therefore, even when the distance to the subject changes due to the composition change operation by the user, the user's operation for redoing the detection of the focus adjustment state becomes unnecessary, and it is possible to prevent the shutter chance from being missed. Further, after the composition change operation is performed, the image sensor 14 and the second focus detection sensor 16 are exposed by the rolling shutter method, and therefore, a time lag due to the opening / closing operation of the shutter 21 for exposing the second focus detection sensor 16. Can be prevented.

(2)制御回路18は、第2焦点検出センサ16からの焦点検出信号に基づく新たな合焦位置と、撮影レンズL1がロックされたときの合焦位置との差が所定値以上の場合に、レンズ駆動制御部18dを制御して、第2焦点検出センサ16からの焦点検出信号に基づく新たな合焦位置に撮影レンズL1を駆動させるようにした。換言すると、第2焦点検出センサ16からの焦点検出信号に基づく新たな合焦位置と、撮影レンズL1がロックされたときの合焦位置との差が所定値未満の場合には、撮影レンズL1を新たな合焦位置に駆動しないようにした。したがって、ユーザの構図変更操作が行われた後であっても、被写体との距離に大きな変化が生じていない場合には撮影レンズL1の駆動を行わないので、不必要な電力消費を抑えることができる。さらに、構図変更操作が行われ、かつ被写体との距離に大きな変化が生じていない場合には、撮像素子14はローリングシャッタ方式により露光されて画像信号を出力するので(図6、ステップS402)、撮影開始指示から画像信号出力までのタイムラグを防ぐことができる。 (2) When the difference between the new focus position based on the focus detection signal from the second focus detection sensor 16 and the focus position when the photographing lens L1 is locked is greater than or equal to a predetermined value, the control circuit 18 The lens driving control unit 18d is controlled to drive the photographing lens L1 to a new in-focus position based on the focus detection signal from the second focus detection sensor 16. In other words, if the difference between the new focus position based on the focus detection signal from the second focus detection sensor 16 and the focus position when the photographic lens L1 is locked is less than a predetermined value, the photographic lens L1. Was not driven to a new in-focus position. Therefore, even after the user's composition change operation is performed, if the distance from the subject has not changed significantly, the photographing lens L1 is not driven, so that unnecessary power consumption can be suppressed. it can. Furthermore, when a composition change operation is performed and there is no significant change in the distance to the subject, the image sensor 14 is exposed by the rolling shutter method and outputs an image signal (FIG. 6, step S402). It is possible to prevent a time lag from the shooting start instruction to the image signal output.

(3)主要被写体検出部18eは、測光センサ17から出力される測光用の被写界画像信号を用いて、撮影画面上での主要被写体の位置を検出する。したがって、ユーザによる構図変更操作の有無を判定することができる。 (3) The main subject detection unit 18e detects the position of the main subject on the shooting screen using the photometric object scene image signal output from the photometry sensor 17. Therefore, the presence / absence of a composition change operation by the user can be determined.

−第2の実施の形態−
図面を参照して、本発明による第2の実施の形態について説明する。以下の説明では、第1の実施の形態と同じ構成要素には同じ符号を付して相違点を主に説明する。特に説明しない点については、第1の実施の形態と同じである。本実施の形態では、被写体輝度が低いような場合、すなわちAF補助光の照射が必要な場合に、ユーザにより撮影画面の構図変更が行われると、フォーカスロックされた状態であっても通常位相差AFにより新たに合焦位置を検出する点で、第1の実施の形態と異なる。なお、第2の実施の形態による電子カメラ1は、第1の実施の形態における第2焦点検出センサ16を備えないものでもよい。
-Second Embodiment-
A second embodiment according to the present invention will be described with reference to the drawings. In the following description, the same components as those in the first embodiment are denoted by the same reference numerals, and different points will be mainly described. Points that are not particularly described are the same as those in the first embodiment. In this embodiment, when the subject brightness is low, that is, when AF auxiliary light irradiation is required, if the composition of the shooting screen is changed by the user, the normal phase difference is maintained even when the focus is locked. This is different from the first embodiment in that an in-focus position is newly detected by AF. The electronic camera 1 according to the second embodiment may not include the second focus detection sensor 16 in the first embodiment.

制御回路18は、ユーザによるレリーズスイッチの半押し操作に応じて操作部30から半押し操作信号が入力されると、測光を開始させる。すなわち、制御回路18は、測光センサ17に撮像を行わせ、電荷蓄積後に出力される被写界画像信号の信号値から被写界の明るさ情報、すなわち輝度値を算出する。そして、制御回路18は、算出した被写体の輝度が所定の値よりも低い低輝度の場合に、補助光発光部33へ発光を指示する信号を出力する。   The control circuit 18 starts photometry when a half-press operation signal is input from the operation unit 30 in response to a half-press operation of the release switch by the user. That is, the control circuit 18 causes the photometric sensor 17 to perform imaging, and calculates brightness information of the object scene, that is, a luminance value, from the signal value of the object scene image signal output after charge accumulation. Then, the control circuit 18 outputs a signal for instructing the auxiliary light emitting unit 33 to emit light when the calculated luminance of the subject is a low luminance lower than a predetermined value.

以下の説明においては、ユーザによりレリーズスイッチが全押し操作されるまでの処理は第1の実施の形態によるデジタルカメラ1と同様であるので、レリーズスイッチが全押し操作された後の処理について説明する。すなわち、被写体が低輝度の場合に、焦点調節レンズがフォーカスロックされ、主要被写体が検出された状態で、ユーザのレリーズスイッチの全押し操作(撮影指示)に応じて操作部30から全押し操作信号が入力された場合について説明する。このとき、主要被写体検出部18eは、新たに入力した被写界画像信号を用いて、第1の実施の形態の場合と同様にして主要被写体検出処理を行い、新たな主要被写体位置をメモリに格納する。   In the following description, since the processing until the release switch is fully pressed by the user is the same as that of the digital camera 1 according to the first embodiment, the processing after the release switch is fully pressed will be described. . In other words, when the subject has low brightness, the focus adjustment lens is focus-locked, and the main subject is detected. In response to the user's full-press operation (shooting instruction) on the release switch, the full-press operation signal is output from the operation unit 30. A case where is input will be described. At this time, the main subject detection unit 18e performs main subject detection processing in the same manner as in the first embodiment, using the newly input scene image signal, and stores the new main subject position in the memory. Store.

構図変更判定部18fは、第1の実施の形態の場合と同様に、焦点調節レンズがフォーカスロックされた時点で検出された主要被写体位置と、操作部30から全押し操作信号を入力した後に新たに検出された主要被写体位置との差分を算出し、差分値が所定値以上であるか否かを判定する。そして、構図変更判定部18fは、差分値が所定値以上の場合はユーザによる構図変更操作が行われたものと判定する。   As in the case of the first embodiment, the composition change determination unit 18f newly inputs the main subject position detected when the focus adjustment lens is focus-locked and the full-press operation signal from the operation unit 30. The difference between the detected position and the main subject position is calculated, and it is determined whether or not the difference value is a predetermined value or more. Then, the composition change determination unit 18f determines that the composition change operation has been performed by the user when the difference value is equal to or greater than a predetermined value.

−構図変更操作が行われた場合−
構図変更操作が行われた場合、制御回路18は通常位相差AFにより焦点調節レンズの合焦位置を新たに検出する。この場合、焦点調節部18cは、最新の主要被写体位置の近傍に位置する焦点検出位置に対応する第1焦点検出センサ15から出力される焦点検出信号を用いて、焦点調節レンズの合焦位置を新たに検出する。
-When a composition change operation is performed-
When the composition change operation is performed, the control circuit 18 newly detects the in-focus position of the focus adjustment lens by the normal phase difference AF. In this case, the focus adjustment unit 18c determines the focus position of the focus adjustment lens using the focus detection signal output from the first focus detection sensor 15 corresponding to the focus detection position located in the vicinity of the latest main subject position. Newly detect.

制御回路18は、構図変更操作が行われた後に通常位相差AFにより新たに検出された合焦位置が、焦点調節レンズがフォーカスロックされている合焦位置から変化したか否かを判定する。この場合、制御回路18は、新たに検出された合焦位置と、焦点調節レンズがフォーカスロックされている合焦位置との差分が所定値以上であるか否かを判定する。そして、2つの合焦位置の差分の値が所定値以上の場合に、制御回路18は、合焦位置が変化したと判定する。   The control circuit 18 determines whether or not the focus position newly detected by the normal phase difference AF after the composition change operation is changed from the focus position where the focus adjustment lens is focus-locked. In this case, the control circuit 18 determines whether or not the difference between the newly detected in-focus position and the in-focus position where the focus adjustment lens is focus-locked is greater than or equal to a predetermined value. When the difference between the two in-focus positions is equal to or greater than a predetermined value, the control circuit 18 determines that the in-focus position has changed.

合焦位置が変化した場合、レンズ駆動制御部18dは、レンズ制御回路20へ駆動信号を出力して、新たに検出された合焦位置に焦点調節レンズを駆動させる。合焦位置が変化していない場合、レンズ駆動制御部18dは、焦点調節レンズがフォーカスロックされた状態を継続させる。すなわち、レンズ駆動制御部18dは、新たに検出した合焦位置に焦点調節レンズを駆動させることを禁止する。そして、制御回路18はデジタルカメラ1内の各部を制御して撮影処理を行わせる。なお、第2の実施の形態におけるデジタルカメラ1の撮影処理は、第1の実施の形態において構図変更操作が行われない場合の撮影処理と同様の処理を行う。   When the focus position changes, the lens drive control unit 18d outputs a drive signal to the lens control circuit 20 to drive the focus adjustment lens to the newly detected focus position. When the in-focus position has not changed, the lens drive control unit 18d continues the state in which the focus adjustment lens is focus-locked. That is, the lens drive control unit 18d prohibits driving the focus adjustment lens to the newly detected in-focus position. Then, the control circuit 18 controls each part in the digital camera 1 to perform photographing processing. Note that the shooting process of the digital camera 1 in the second embodiment performs the same process as the shooting process when the composition change operation is not performed in the first embodiment.

−構図変更操作が行われない場合−
構図変更操作が行われていない場合は、制御回路18は、上述したような新たな合焦位置の検出処理を行うことなく撮影処理を行う。すなわち、制御回路18は、焦点調節レンズをフォーカスロックした状態で撮影処理を行う。
-When no composition change operation is performed-
When the composition change operation is not performed, the control circuit 18 performs the imaging process without performing the new focus position detection process as described above. That is, the control circuit 18 performs photographing processing with the focus adjustment lens being focus-locked.

図3、図4、図7および図8に示すフローチャートを参照して、実施の形態によるデジタルカメラ1の動作を説明する。図3、図4、図7および図8の処理を行うプログラムは制御回路18内の図示しないメモリに格納されており、ユーザにより電源スイッチがオン操作されて操作部30から電源オンを指示する操作信号を入力すると制御回路18により起動され、実行される。なお、図3および図4における処理は第1の実施の形態において説明した処理と同様なので、図7および図8に示すフローチャートを中心に説明を行う。   With reference to the flowcharts shown in FIGS. 3, 4, 7 and 8, the operation of the digital camera 1 according to the embodiment will be described. 3, 4, 7, and 8 are stored in a memory (not shown) in the control circuit 18, and an operation to turn on the power from the operation unit 30 when the user turns on the power switch. When a signal is input, it is started and executed by the control circuit 18. 3 and 4 are the same as the processes described in the first embodiment, and therefore the description will be made mainly with reference to the flowcharts shown in FIGS.

図7のステップS311(主要被写体検出)およびステップS312(構図変更または追尾AF中に全押しの有無判定)の各処理は、図5のステップS301(主要被写体検出)およびステップS302(構図変更または追尾AF中に全押しの有無判定)と同様である。ただし、ステップS312が否定判定された場合は、ステップS313をスキップしてステップS314へ進む。   Each process of step S311 (main subject detection) and step S312 (composition change or full-press determination during tracking AF) in FIG. 7 is performed in steps S301 (main subject detection) and step S302 (composition change or tracking in FIG. 5). This is the same as the determination of whether or not the button is fully pressed during AF. However, if the determination in step S312 is negative, step S313 is skipped and the process proceeds to step S314.

ステップS313では、通常位相差AF処理を行ってステップS314へ進む。なお、ステップS313における処理の詳細は、図8に示すフローチャートを用いて後述する。ステップS314(ミラーアップ)からステップS319(ミラーダウン)までの各処理は、図5のステップS303(ミラーアップ)からステップS308(ミラーダウン)までの各処理と同様である。   In step S313, normal phase difference AF processing is performed, and the process proceeds to step S314. Details of the processing in step S313 will be described later using the flowchart shown in FIG. Each process from step S314 (mirror up) to step S319 (mirror down) is the same as each process from step S303 (mirror up) to step S308 (mirror down) in FIG.

次に、ステップS313における通常位相差AF処理の詳細を、図8に示すフローチャートを参照して説明する。ステップS411では、通常位相差AFにより、第1焦点検出センサ15からの焦点検出信号に基づいて、デフォーカス量を算出してステップS412へ進む。なお、図7のステップS311で検出された主要被写体位置の近傍に位置する焦点検出位置に対応する焦点検出信号に基づいてデフォーカス量を算出する。   Next, details of the normal phase difference AF processing in step S313 will be described with reference to the flowchart shown in FIG. In step S411, the defocus amount is calculated based on the focus detection signal from the first focus detection sensor 15 by the normal phase difference AF, and the process proceeds to step S412. The defocus amount is calculated based on the focus detection signal corresponding to the focus detection position located in the vicinity of the main subject position detected in step S311 in FIG.

ステップS412では、ステップS411における通常相差AFにより焦点調節レンズの合焦位置が新たに検出されたか否かを判定する。合焦位置が新たに検出された場合は、ステップS412が肯定判定されてステップS413へ進む。合焦位置が検出されない場合は、ステップS412が否定判定されて通常位相差AF処理を終了する。ステップS413では、図4のステップS202で検出された合焦位置とステップS411で新たに検出された合焦位置との変化を検出、すなわち2つの合焦位置の差分を算出してステップS414へ進む。   In step S412, it is determined whether or not the focus position of the focus adjustment lens is newly detected by the normal phase difference AF in step S411. When the in-focus position is newly detected, an affirmative determination is made in step S412 and the process proceeds to step S413. If the in-focus position is not detected, a negative determination is made in step S412 and the normal phase difference AF process is terminated. In step S413, a change between the in-focus position detected in step S202 of FIG. 4 and the in-focus position newly detected in step S411 is detected, that is, the difference between the two in-focus positions is calculated, and the process proceeds to step S414. .

ステップS414では、2つの焦点検出処理により検出された合焦位置に変化があるか否かを判定する。合焦位置に変化がある場合、すなわちステップS413で算出された合焦位置の差分値が所定値以上の場合にはステップS414が肯定判定されてステップS415へ進む。合焦位置に変化がない場合、すなわちステップS413で算出された合焦位置の差分値が所定値未満の場合にはステップS414が否定判定されて通常位相差AF処理を終了する。   In step S414, it is determined whether or not there is a change in the in-focus position detected by the two focus detection processes. If there is a change in the focus position, that is, if the difference value of the focus position calculated in step S413 is greater than or equal to a predetermined value, an affirmative determination is made in step S414 and the process proceeds to step S415. If there is no change in the focus position, that is, if the difference value of the focus position calculated in step S413 is less than a predetermined value, a negative determination is made in step S414, and the normal phase difference AF process is terminated.

ステップS415では、ステップS411で新たに検出された合焦位置へ焦点調節レンズを駆動させてステップS416へ進む。ステップS416では、焦点調節レンズの駆動が終了したか否かを判定する。焦点調節レンズが新たに検出された合焦位置へ駆動された場合には、ステップS416が肯定判定されて通常位相差AF処理を終了する。焦点調節レンズが新たに検出された合焦位置へ駆動中である場合には、ステップS416が否定判定されて当該判定処理を繰り返す。   In step S415, the focus adjustment lens is driven to the focus position newly detected in step S411, and the process proceeds to step S416. In step S416, it is determined whether or not driving of the focus adjustment lens has ended. When the focus adjustment lens is driven to the newly detected in-focus position, an affirmative determination is made in step S416 and the normal phase difference AF process is terminated. If the focus adjustment lens is being driven to the newly detected focus position, a negative determination is made in step S416 and the determination process is repeated.

以上で説明した第2の実施の形態によるデジタルカメラ1によれば、以下の作用効果が得られる。
(1)撮像素子14は、撮影レンズL1を介して被写体の像を撮像して画像信号を出力し、第1焦点検出センサ15は撮影レンズL1の焦点調節状態を示す焦点検出信号を出力する。レンズ駆動制御部18dは、撮影準備が指示されると、第1焦点検出センサ15から出力される焦点検出信号に基づいて、合焦位置に撮影レンズL1を駆動させ、合焦位置に駆動された撮影レンズL1を合焦位置に固定(ロック)する。主要被写体検出部18eは撮影画像上での主要被写体の像が占有する位置を検出し、構図変更判定部18fは、撮影開始が指示されると、撮影レンズL1がロックされた後の主要被写体の位置変化の有無を判定する。そして、制御回路18は、構図変更判定部18fにより主要被写体の位置変化が有ると判定された場合は、レンズ駆動制御部18dを制御して、第1焦点検出センサ15により新たに出力された焦点検出信号に基づいて、新たな合焦位置に撮影レンズL1を駆動させるようにした。さらに、制御回路18は、新たな合焦位置に撮影レンズL1が駆動されてから、撮像素子14を制御して被写体の像を撮像させるようにした。したがって、ユーザによる構図変更操作に伴って被写体との距離に変化が生じた場合であっても、焦点調節状態の検出をやり直すためのユーザによる操作が不要となり、シャッタチャンスを逃すことを防げる。
According to the digital camera 1 according to the second embodiment described above, the following operational effects can be obtained.
(1) The image sensor 14 captures an image of a subject via the photographing lens L1 and outputs an image signal, and the first focus detection sensor 15 outputs a focus detection signal indicating the focus adjustment state of the photographing lens L1. When the preparation for photographing is instructed, the lens drive control unit 18d drives the photographing lens L1 to the in-focus position based on the focus detection signal output from the first focus detection sensor 15, and is driven to the in-focus position. The photographing lens L1 is fixed (locked) at the in-focus position. The main subject detection unit 18e detects the position occupied by the image of the main subject on the photographed image, and the composition change determination unit 18f, when instructed to start photographing, detects the main subject after the photographing lens L1 is locked. The presence or absence of a position change is determined. When the composition change determination unit 18f determines that there is a change in the position of the main subject, the control circuit 18 controls the lens drive control unit 18d and the focus newly output by the first focus detection sensor 15. Based on the detection signal, the taking lens L1 is driven to a new in-focus position. Further, the control circuit 18 controls the image sensor 14 to capture an image of the subject after the photographing lens L1 is driven to a new in-focus position. Therefore, even when the distance to the subject changes due to the composition change operation by the user, the user's operation for redoing the detection of the focus adjustment state becomes unnecessary, and it is possible to prevent missing a photo opportunity.

(2)レンズ駆動制御部18dは、被写体の輝度が低い場合は、撮影準備が指示された後は、第1焦点検出センサ15のみから出力される焦点検出信号に基づいて撮影レンズL1を合焦位置に駆動するようにした。したがって、カラーフィルタが設けられた第2焦点検出センサ16のように、補助光発光部33から照射されるAF補助光(たとえば赤外光)の影響による焦点検出精度の低下を防ぐことができる。 (2) When the luminance of the subject is low, the lens drive control unit 18d focuses the photographing lens L1 based on the focus detection signal output from only the first focus detection sensor 15 after the preparation for photographing is instructed. Drive to position. Therefore, like the second focus detection sensor 16 provided with a color filter, it is possible to prevent a decrease in focus detection accuracy due to the influence of AF auxiliary light (for example, infrared light) emitted from the auxiliary light emitting unit 33.

−第3の実施の形態−
図面を参照して、本発明による第3の実施の形態について説明する。以下の説明では、第1の実施の形態と同じ構成要素には同じ符号を付して相違点を主に説明する。特に説明しない点については、第1の実施の形態と同じである。本実施の形態では、たとえばライブビューモードが設定されているような場合、すなわちミラーアップされた状態の場合から、撮影準備動作および撮影動作に移行する際に像面位相差AFにより合焦位置の検出を行う点で、第1の実施の形態と異なる。なお、第3の実施の形態による電子カメラ1は、第1の実施の形態における第1焦点検出センサ15を備えないものでもよい。
-Third embodiment-
With reference to the drawings, a third embodiment of the present invention will be described. In the following description, the same components as those in the first embodiment are denoted by the same reference numerals, and different points will be mainly described. Points that are not particularly described are the same as those in the first embodiment. In the present embodiment, for example, when the live view mode is set, that is, in the mirror-up state, the focus position is changed by the image plane phase difference AF when the shooting preparation operation and the shooting operation are performed. It differs from the first embodiment in that detection is performed. Note that the electronic camera 1 according to the third embodiment may not include the first focus detection sensor 15 in the first embodiment.

操作部30の操作によりライブビューモードが設定されると、制御回路18は、クイックリターンミラー10をミラーアップし、シャッタ21を開放して、撮影レンズL1を通過した被写体光が撮像素子14に導かれるようにする。そして制御回路18は、撮像素子14から所定の周期、たとえば1/30秒周期で画像信号を順次読み出させる。そして、画像処理部18aは、画像信号が順次読み出されるごとに、読み出された画像信号に基づいて画像データを生成してLCD駆動回路19へ出力して、画像データに対応する画像を液晶表示器191に表示させる。   When the live view mode is set by operating the operation unit 30, the control circuit 18 raises the quick return mirror 10, opens the shutter 21, and guides the subject light that has passed through the photographing lens L 1 to the image sensor 14. Let them be. Then, the control circuit 18 sequentially reads image signals from the image sensor 14 at a predetermined cycle, for example, at a 1/30 second cycle. Then, each time image signals are sequentially read out, the image processing unit 18a generates image data based on the read image signals and outputs the image data to the LCD drive circuit 19 to display an image corresponding to the image data on the liquid crystal display. Display on the device 191.

(1)撮影準備時
ユーザによるレリーズスイッチの半押し操作に応じて操作部30から半押し操作信号を入力すると、焦点調節部18cは、像面位相差AFにより、第2焦点検出センサ16から出力された焦点検出信号に基づいて、上述したようにデフォーカス量を算出する。デフォーカス量が算出され、合焦位置が検出されると、レンズ駆動制御部18dは、レンズ制御部20に駆動指示信号を出力して、焦点調節レンズを合焦位置へ駆動させる。以後の処理は、第1の実施の形態におけるデジタルカメラ1と同様である。ただし、主要被写体検出部18eは、撮像素子14から出力された画像信号を用いて、撮影画面上における主要被写体の位置を検出する。主要被写体検出部18eによる主要被写体の位置の検出方法は、第1または第2の実施の形態において測光センサ17からの被写界画像信号を用いて行う場合と同様である。
(1) During shooting preparation When a half-press operation signal is input from the operation unit 30 in response to a half-press operation of the release switch by the user, the focus adjustment unit 18c outputs from the second focus detection sensor 16 due to the image plane phase difference AF. Based on the focus detection signal thus obtained, the defocus amount is calculated as described above. When the defocus amount is calculated and the focus position is detected, the lens drive control unit 18d outputs a drive instruction signal to the lens control unit 20 to drive the focus adjustment lens to the focus position. The subsequent processing is the same as that of the digital camera 1 in the first embodiment. However, the main subject detection unit 18e detects the position of the main subject on the shooting screen using the image signal output from the image sensor 14. The method of detecting the position of the main subject by the main subject detection unit 18e is the same as that performed using the object scene image signal from the photometric sensor 17 in the first or second embodiment.

(2)撮影指示時
焦点調節レンズが合焦位置でフォーカスロックされ、主要被写体が検出された状態で、ユーザのレリーズスイッチの全押し操作に応じて操作部30から全押し操作信号が入力された場合について説明する。制御回路18は撮像素子14から画像信号を出力させメモリに格納するとともに、第2焦点検出センサ16から焦点検出信号を出力させる。そして、主要被写体検出部18eは、撮像素子14から新たに入力した画像信号を用いて、主要被写体検出処理を行い、新たな主要被写体位置をメモリに格納する。
(2) At the time of shooting instruction When the focus adjustment lens is focus-locked at the in-focus position and the main subject is detected, a full-press operation signal is input from the operation unit 30 in response to the user's full-press operation of the release switch. The case will be described. The control circuit 18 outputs an image signal from the image sensor 14 and stores it in the memory, and also outputs a focus detection signal from the second focus detection sensor 16. Then, the main subject detection unit 18e performs main subject detection processing using the image signal newly input from the image sensor 14, and stores the new main subject position in the memory.

構図変更判定部18fは、焦点調節レンズがフォーカスロックされた時点で検出された主要被写体位置と、全押し操作信号を入力した後に新たに検出された主要被写体位置との差分を算出し、差分値が所定値以上であるか否かを判定する。そして、構図変更判定部18fは、差分値が所定値以上の場合はユーザによる撮影画面の構図変更操作が行われたものと判定する。以下、構図変更操作が行われていないと判定された場合と、構図変更操作が行われたと判定された場合とに分けて説明する。   The composition change determination unit 18f calculates a difference between the main subject position detected when the focus adjustment lens is focus-locked and the main subject position newly detected after the full-press operation signal is input, and the difference value Is determined to be greater than or equal to a predetermined value. Then, the composition change determination unit 18f determines that the composition change operation of the shooting screen has been performed by the user when the difference value is equal to or greater than the predetermined value. Hereinafter, the case where it is determined that the composition change operation has not been performed and the case where it has been determined that the composition change operation has been performed will be described separately.

−構図変更操作が行われた場合−
構図変更操作が行われた場合、焦点調節部18cは、像面位相差AFにより焦点調節レンズの合焦位置を新たに検出する。そして、制御回路18は、像面位相差AFにより新たに検出された合焦位置が、焦点調節レンズがフォーカスロックされた合焦位置から変化したか否かを判定する。すなわち、制御回路18は新たに検出された合焦位置と、焦点調節レンズがフォーカスロックされた合焦位置との差分が所定値以上であるか否かを判定する。そして、2つの合焦位置の差分の値が所定値以上の場合に、制御回路18は、合焦位置が変化したと判定する。
-When a composition change operation is performed-
When the composition change operation is performed, the focus adjustment unit 18c newly detects the in-focus position of the focus adjustment lens based on the image plane phase difference AF. Then, the control circuit 18 determines whether or not the focus position newly detected by the image plane phase difference AF has changed from the focus position where the focus adjustment lens is focus-locked. That is, the control circuit 18 determines whether or not the difference between the newly detected in-focus position and the in-focus position where the focus adjustment lens is focus-locked is greater than or equal to a predetermined value. When the difference between the two in-focus positions is equal to or greater than a predetermined value, the control circuit 18 determines that the in-focus position has changed.

合焦位置が変化した場合、レンズ駆動制御部18dは、レンズ制御回路20へ駆動信号を出力して、新たに検出された合焦位置に、焦点調節レンズを駆動させる。そして、制御回路18は撮像素子14を電子シャッタ方式により駆動させて、撮像素子14から画像信号を出力させる。そして、画像処理部18aは、入力した画像信号に対して上述した各種の画像処理を施して画像データを生成する。生成された画像データは、構図変更操作が行われていない場合と同様に、画像記録部18bにより圧縮処理等が施されてからEXIFなどの形式でメモリカード32へ記録される。なお、制御回路18は、全押し操作信号を入力した際に取得し、メモリに一時的に格納された画像信号を削除する。   When the focus position changes, the lens drive control unit 18d outputs a drive signal to the lens control circuit 20 to drive the focus adjustment lens to the newly detected focus position. Then, the control circuit 18 drives the image sensor 14 by an electronic shutter method, and outputs an image signal from the image sensor 14. The image processing unit 18a performs the above-described various image processing on the input image signal to generate image data. The generated image data is recorded on the memory card 32 in a format such as EXIF after being subjected to compression processing or the like by the image recording unit 18b as in the case where the composition change operation is not performed. The control circuit 18 deletes the image signal acquired when the full-press operation signal is input and temporarily stored in the memory.

合焦位置が変化していない場合、レンズ駆動制御部18dは、焦点調節レンズがフォーカスロックされた状態を継続させる。すなわち、レンズ駆動制御部18dは、像面位相差AFにより新たに検出した合焦位置に焦点調節レンズを駆動させることを禁止する。そして、画像処理部18aは、全押し操作信号を入力した際に撮像素子14から出力され、メモリに一時的に格納された画像信号に対して画像処理を施して画像データを生成する。画像記録部18bは、画像処理部18aにより生成された画像データに対してJPEGなどの所定の方式により圧縮処理を行い、EXIFなどの形式でメモリカード32へ記録する。   When the in-focus position has not changed, the lens drive control unit 18d continues the state in which the focus adjustment lens is focus-locked. That is, the lens drive control unit 18d prohibits the focus adjustment lens from being driven to the in-focus position newly detected by the image plane phase difference AF. The image processing unit 18a performs image processing on the image signal that is output from the image sensor 14 and temporarily stored in the memory when the full-press operation signal is input, and generates image data. The image recording unit 18b compresses the image data generated by the image processing unit 18a by a predetermined method such as JPEG, and records the compressed data in the memory card 32 in a format such as EXIF.

−構図変更操作が行われない場合−
構図変更操作が行われていない場合は、制御回路18は、上述したような像面位相差AFによる新たな合焦位置の検出処理を行わない。この場合、画像処理部18aは、全押し操作信号を入力した際に撮像素子14から出力され、メモリに一時的に格納された画像信号に対して画像処理を施して画像データを生成する。そして、画像記録部18bは、画像処理部18aにより生成された画像データに対してJPEGなどの所定の方式により圧縮処理を行い、EXIFなどの形式でメモリカード32へ記録する。
-When no composition change operation is performed-
When the composition change operation is not performed, the control circuit 18 does not perform the new focus position detection process based on the image plane phase difference AF as described above. In this case, the image processing unit 18a performs image processing on the image signal that is output from the image sensor 14 and temporarily stored in the memory when the full-press operation signal is input, and generates image data. Then, the image recording unit 18b performs compression processing on the image data generated by the image processing unit 18a by a predetermined method such as JPEG, and records it in the memory card 32 in a format such as EXIF.

図3、図9、図10および図11に示すフローチャートを参照して、実施の形態によるデジタルカメラ1の動作を説明する。図3、図9、図10および図11の処理を行うプログラムは制御回路18内の図示しないメモリに格納されており、ユーザにより電源スイッチがオン操作されて操作部30により電源オンを指示する操作信号を入力すると制御回路18により起動され、実行される。なお、図3における処理は第1の実施の形態において説明した処理と同様なので、図9、図10および図11に示すフローチャートを中心に説明を行う。   With reference to the flowcharts shown in FIGS. 3, 9, 10 and 11, the operation of the digital camera 1 according to the embodiment will be described. 3, 9, 10, and 11 are stored in a memory (not shown) in the control circuit 18, and an operation for instructing to turn on the power by the operation unit 30 when the power switch is turned on by the user. When a signal is input, it is started and executed by the control circuit 18. Since the processing in FIG. 3 is the same as the processing described in the first embodiment, the description will focus on the flowcharts shown in FIG. 9, FIG. 10, and FIG.

図3のステップS106における撮影準備処理について図9を参照して説明する。図9のステップS221(フォーカスロック判定)は図4のステップS201(フォーカスロック判定)と同様の処理を行う。ステップS222では、第2焦点検出センサ16を露光して、焦点検出信号を出力させてステップS223へ進む。ステップS223においては、像面位相差AF、すなわちステップS222で出力された焦点検出信号を用いてデフォーカス量を算出してステップS224へ進む。ステップS224(合焦位置検出判定)からステップS233(焦点調節レンズをロック)までの各処理は、図4のステップS203(合焦位置検出判定)からステップS212(焦点調節レンズをロック)までの各処理と同様である。   The shooting preparation process in step S106 of FIG. 3 will be described with reference to FIG. Step S221 (focus lock determination) in FIG. 9 performs the same processing as step S201 (focus lock determination) in FIG. In step S222, the second focus detection sensor 16 is exposed to output a focus detection signal, and the process proceeds to step S223. In step S223, the defocus amount is calculated using the image plane phase difference AF, that is, the focus detection signal output in step S222, and the process proceeds to step S224. Each process from step S224 (focus position detection determination) to step S233 (focus adjustment lens is locked) is performed from step S203 (focus position detection determination) to step S212 (focus adjustment lens is locked) in FIG. It is the same as the processing.

次に、図3のステップS110における撮影処理について図10を参照して説明する。ステップS321においては、撮像素子14を電子シャッタ方式により露光させてステップS322へ進む。なお、このとき撮像素子14から出力された画像信号は図示しないメモリに格納される。ステップS322では、ステップS321で取得した画像信号を用いて主要被写体の位置を検出してステップS323へ進む。   Next, the photographing process in step S110 of FIG. 3 will be described with reference to FIG. In step S321, the image sensor 14 is exposed by the electronic shutter method, and the process proceeds to step S322. At this time, the image signal output from the image sensor 14 is stored in a memory (not shown). In step S322, the position of the main subject is detected using the image signal acquired in step S321, and the process proceeds to step S323.

ステップS323(構図変更または追尾AF中に全押しの有無判定)の処理は、図5のステップS302(構図変更または追尾AF中に全押しの有無判定)の処理と同様である。ステップS324においては、像面位相差式AF処理を行ってステップS325へ進む。なお、像面位相差AF処理の詳細は、図11を参照して後述する。ステップS325においては、撮像処理を行ってから撮影処理を終了する。すなわち、撮像素子14から出力された画像信号に対して各種の画像処理を施して画像データを生成し、所定の圧縮率(たとえばJPEG)に圧縮した後画像ファイルを生成してメモリカード32へ記録する。なお、ステップS325では、構図変更が行われていない場合、または後述するように構図変更が行われたが合焦位置が変化していない場合にはステップS321で出力された画像信号に基づいて画像データが生成される。さらに、ステップS325では、構図変更が行われ、かつ合焦位置が変化した場合は、後述する像面位相差AF処理により撮像素子14から出力された画像信号(図11、ステップS427)に基づいて画像データが生成される。   The processing of step S323 (determination of whether or not full pressing is performed during composition change or tracking AF) is the same as the processing of step S302 (determination of whether or not full pressing is performed during composition change or tracking AF) in FIG. In step S324, image plane phase difference AF processing is performed, and the flow proceeds to step S325. Details of the image plane phase difference AF process will be described later with reference to FIG. In step S325, the imaging process is terminated after the imaging process is performed. That is, the image signal output from the image sensor 14 is subjected to various image processing to generate image data, compressed to a predetermined compression rate (for example, JPEG), and then an image file is generated and recorded in the memory card 32. To do. In step S325, if the composition has not been changed, or if the composition has been changed as described later but the focus position has not changed, an image is output based on the image signal output in step S321. Data is generated. Further, in step S325, when the composition is changed and the in-focus position is changed, based on the image signal (FIG. 11, step S427) output from the image sensor 14 by the image plane phase difference AF process described later. Image data is generated.

図10のステップS324(像面位相差AF処理)の詳細について、図11を用いて説明する。ステップS421においては、像面位相差AFにより第2焦点検出センサ16からの焦点検出信号に基づいて、デフォーカス量を算出してステップS422へ進む。なお、図10のステップS322で検出された主要被写体位置の近傍に位置する焦点検出エリアに対応する焦点検出信号に基づいてデフォーカス量を算出する。ステップS422(合焦位置検出判定)からステップS427(撮影用露光)までの各処理は、図6のステップS404(合焦位置検出判定)からステップS409(撮影用露光)までの各処理と同様である。   Details of step S324 (image plane phase difference AF processing) in FIG. 10 will be described with reference to FIG. In step S421, the defocus amount is calculated based on the focus detection signal from the second focus detection sensor 16 based on the image plane phase difference AF, and the process proceeds to step S422. The defocus amount is calculated based on the focus detection signal corresponding to the focus detection area located in the vicinity of the main subject position detected in step S322 in FIG. Each process from step S422 (focus position detection determination) to step S427 (shooting exposure) is the same as each process from step S404 (focus position detection determination) to step S409 (shooting exposure) in FIG. is there.

以上で説明した第3の実施の形態によるデジタルカメラ1によれば、以下の作用効果が得られる。
(1)撮像素子14は、撮影レンズL1を介して被写体の像を撮像して画像信号を出力し、第2焦点検出センサ16は撮影レンズL1の焦点調節状態を示す焦点検出信号を出力する。レンズ駆動制御部18dは、撮影準備が指示されると、第2焦点検出センサ16から出力される焦点検出信号に基づいて、合焦位置に撮影レンズL1を駆動させ、合焦位置に駆動された撮影レンズL1を合焦位置に固定(ロック)する。主要被写体検出部18eは撮影画像上での主要被写体の像が占有する位置を検出し、構図変更判定部18fは、撮影開始が指示されると、撮影レンズL1がロックされた後の主要被写体の位置変化の有無を判定する。そして、制御回路18は、構図変更判定部18fにより主要被写体の位置変化が有ると判定された場合は、レンズ駆動制御部18dを制御して、第2焦点検出センサ16により新たに出力された焦点検出信号に基づいて、新たな合焦位置に撮影レンズL1を駆動させるようにした。さらに、制御回路18は、新たな合焦位置に撮影レンズL1が駆動されてから、撮像素子14を制御して被写体の像を撮像させるようにした。したがって、ユーザによる構図変更操作に伴って被写体との距離に変化が生じた場合であっても、焦点調節状態の検出をやり直すためのユーザによる操作が不要となり、シャッタチャンスを逃すことを防げる。
According to the digital camera 1 according to the third embodiment described above, the following operational effects can be obtained.
(1) The image sensor 14 captures an image of a subject via the photographing lens L1 and outputs an image signal, and the second focus detection sensor 16 outputs a focus detection signal indicating the focus adjustment state of the photographing lens L1. When the preparation for photographing is instructed, the lens drive control unit 18d drives the photographing lens L1 to the in-focus position based on the focus detection signal output from the second focus detection sensor 16, and is driven to the in-focus position. The photographing lens L1 is fixed (locked) at the in-focus position. The main subject detection unit 18e detects the position occupied by the image of the main subject on the photographed image, and the composition change determination unit 18f, when instructed to start photographing, detects the main subject after the photographing lens L1 is locked. The presence or absence of a position change is determined. When the composition change determination unit 18f determines that there is a change in the position of the main subject, the control circuit 18 controls the lens drive control unit 18d and the focus newly output by the second focus detection sensor 16. Based on the detection signal, the taking lens L1 is driven to a new in-focus position. Further, the control circuit 18 controls the image sensor 14 to capture an image of the subject after the photographing lens L1 is driven to a new in-focus position. Therefore, even when the distance to the subject changes due to the composition change operation by the user, the user's operation for redoing the detection of the focus adjustment state becomes unnecessary, and it is possible to prevent the shutter chance from being missed.

(2)画像生成部18aは、ライブビューモードが設定されると、撮像素子14から出力された画像信号に基づいて、メモリカード32への記録を伴わない表示用画像データを生成する。そして、ライブビューモード時に画像生成部18aが表示用画像データを生成するときは、レンズ駆動制御部18dは、撮影準備が指示された後は、第2焦点検出センサ16のみから出力される焦点検出信号に基づいて撮影レンズL1を合焦位置に駆動するようにした。したがって、ライブビューモードから撮影動作に移行する際にクイックリターンミラー10のミラーアップおよびミラーダウンを行うことなく、焦点検出信号の出力および画像信号の出力を行うことができるので、タイムラグの発生を防ぐことができる。 (2) When the live view mode is set, the image generation unit 18a generates display image data that is not recorded on the memory card 32, based on the image signal output from the image sensor 14. When the image generation unit 18a generates the display image data in the live view mode, the lens drive control unit 18d detects the focus detected only from the second focus detection sensor 16 after the preparation for shooting is instructed. The taking lens L1 is driven to the in-focus position based on the signal. Accordingly, since the focus detection signal and the image signal can be output without performing the mirror up and mirror down of the quick return mirror 10 when shifting from the live view mode to the shooting operation, occurrence of a time lag is prevented. be able to.

また、本発明の特徴を損なわない限り、本発明は上記実施の形態に限定されるものではなく、本発明の技術的思想の範囲内で考えられるその他の形態についても、本発明の範囲内に含まれる。説明に用いた実施の形態および変形例は、それぞれを適宜組合わせて構成しても構わない。   In addition, the present invention is not limited to the above-described embodiment as long as the characteristics of the present invention are not impaired, and other forms conceivable within the scope of the technical idea of the present invention are also within the scope of the present invention. included. The embodiments and modifications used in the description may be configured by appropriately combining them.

14・・・撮像素子、15・・・第1焦点検出センサ、
16・・・第2焦点検出センサ、17・・・測光センサ、
18・・・制御回路、18a・・・画像処理部、
18c・・・焦点調節部、18d・・・レンズ駆動制御部、
18e・・・主要被写体検出部、18f・・・構図変更判定部、
30・・・操作部
14 ... image sensor, 15 ... first focus detection sensor,
16 ... second focus detection sensor, 17 ... photometric sensor,
18... Control circuit, 18 a.
18c: Focus adjustment unit, 18d: Lens drive control unit,
18e: main subject detection unit, 18f: composition change determination unit,
30 ... operation unit

Claims (8)

撮影光学系を介して被写体の像を撮像して画像信号を出力する第1撮像素子と、
前記撮影光学系の焦点調節状態を示す信号を出力する焦点検出手段と、
撮影準備が指示されると、前記焦点検出手段から出力される前記信号に基づいて、合焦位置に前記撮影光学系を駆動する焦点調節手段と、
前記焦点調節手段により前記合焦位置に駆動された前記撮影光学系を前記合焦位置にロックするロック手段と、
撮影画像上の主要被写体の像が占有する位置を検出する主要被写体検出手段と、
撮影開始が指示されると、前記ロック手段により前記撮影光学系がロックされた後の前記主要被写体の位置変化の有無を判定する判定手段と、
前記主要被写体の位置変化が有ると判定された場合は、前記焦点調節手段を制御して、前記焦点検出手段により新たに出力された信号に基づいて、新たな合焦位置に前記撮影光学系を駆動させ、前記新たな合焦位置に前記撮影光学系が駆動されてから、前記第1撮像素子を制御して前記被写体の像を撮像させる制御手段とを備えることを特徴とするデジタルカメラ。
A first image pickup device that picks up an image of a subject through a photographing optical system and outputs an image signal;
Focus detection means for outputting a signal indicating a focus adjustment state of the photographing optical system;
When imaging preparation is instructed, based on the signal output from the focus detection unit, a focus adjustment unit that drives the imaging optical system to a focus position;
Lock means for locking the photographing optical system driven to the in-focus position by the focus adjusting means in the in-focus position;
Main subject detection means for detecting the position occupied by the image of the main subject on the captured image;
When the start of shooting is instructed, a determination unit that determines whether or not there is a change in position of the main subject after the imaging optical system is locked by the locking unit;
When it is determined that there is a change in the position of the main subject, the focus adjustment unit is controlled, and the imaging optical system is moved to a new in-focus position based on a signal newly output by the focus detection unit. And a control unit configured to control the first imaging element to capture an image of the subject after the imaging optical system is driven to the new in-focus position.
請求項1に記載のデジタルカメラにおいて、
前記制御手段は、前記新たな合焦位置と前記ロック手段によりロックされたときの前記合焦位置との差が所定値以上の場合に、前記焦点調節手段を制御して、前記新たな合焦位置に前記撮影光学系を駆動させることを特徴とするデジタルカメラ。
The digital camera according to claim 1, wherein
The control means controls the focus adjustment means to control the new focus when the difference between the new focus position and the focus position when locked by the lock means is a predetermined value or more. A digital camera, wherein the photographing optical system is driven to a position.
請求項1または2に記載のデジタルカメラにおいて、
前記主要被写体検出手段は、前記被写体の像を撮像して、測光用の画像データを生成する第2撮像素子を含み、前記第2撮像素子により生成された前記測光用の画像データを用いて、前記主要被写体の位置を検出することを特徴とするデジタルカメラ。
The digital camera according to claim 1 or 2,
The main subject detection means includes a second image sensor that captures an image of the subject and generates image data for photometry, and uses the image data for photometry generated by the second image sensor, A digital camera for detecting a position of the main subject.
請求項1乃至3のいずれか一項に記載のデジタルカメラにおいて、
前記焦点検出手段は、前記第1撮像素子と光学的に共役な位置に設けられた第1焦点検出用素子と、前記第1撮像素子に組み込まれた第2焦点検出用素子とを含み、
前記焦点調節手段は、前記ロック手段により前記撮影光学系がロックされるまでは、前記第1焦点検出用素子からの信号に基づいて前記撮影光学系を前記合焦位置へ駆動し、前記ロック手段により前記撮影光学系がロックされた後は、前記第2焦点検出用素子からの信号に基づいて前記撮影光学系を前記新たな合焦位置へ駆動することを特徴とするデジタルカメラ。
The digital camera according to any one of claims 1 to 3,
The focus detection means includes a first focus detection element provided at a position optically conjugate with the first image sensor, and a second focus detection element incorporated in the first image sensor,
The focus adjusting unit drives the imaging optical system to the in-focus position based on a signal from the first focus detection element until the imaging optical system is locked by the locking unit, and the locking unit After the photographing optical system is locked by the above, the photographing optical system is driven to the new in-focus position based on a signal from the second focus detection element.
請求項4に記載のデジタルカメラにおいて、
前記焦点調節手段は、被写体の輝度が低い場合は、前記撮影準備が指示された後は、前記第1焦点検出用素子のみから出力される前記信号に基づいて前記撮影光学系を合焦位置に駆動することを特徴とするデジタルカメラ。
The digital camera according to claim 4, wherein
The focus adjusting unit moves the imaging optical system to the in-focus position based on the signal output only from the first focus detection element after the preparation for imaging is instructed when the luminance of the subject is low. A digital camera characterized by driving.
請求項4または5に記載のデジタルカメラにおいて、
前記第1撮像素子から出力された画像信号に基づいて、記憶媒体への記録を伴わない表示用画像データを生成する表示用画像生成手段をさらに備え、
前記表示用画像生成手段により前記表示用画像データを生成するときは、前記焦点調節手段は、前記撮影準備が指示された後は、前記第2焦点検出用素子のみから出力される前記信号に基づいて前記撮影光学系を合焦位置に駆動することを特徴とするデジタルカメラ。
The digital camera according to claim 4 or 5,
Further comprising display image generation means for generating display image data without recording on a storage medium based on the image signal output from the first image sensor;
When generating the display image data by the display image generation means, the focus adjustment means is based on the signal output only from the second focus detection element after the preparation for photographing is instructed. And a digital camera for driving the photographing optical system to a focus position.
請求項1乃至6のいずれか一項に記載のデジタルカメラにおいて、
前記ロック手段は手動操作部材を含み、前記手動操作部材の操作に応じて、前記合焦位置に駆動された前記撮影光学系を前記合焦位置にロックすることを特徴とするデジタルカメラ。
The digital camera according to any one of claims 1 to 6,
The digital camera characterized in that the locking means includes a manual operation member, and the imaging optical system driven to the in-focus position is locked in the in-focus position in accordance with an operation of the manual operation member.
撮影光学系を介して被写体の像を撮像して画像信号を出力する第1撮像素子と、
前記第1撮像素子と光学的に共役な位置に設けられ、撮影開始前に前記撮影光学系の焦点調節状態を検出して焦点検出信号を出力する第1焦点検出用素子と、
前記第1撮像素子に組み込まれ、前記撮影光学系の焦点調節状態を検出して焦点検出信号を出力する第2焦点検出用素子と、
前記第1焦点検出素子から出力される焦点検出信号に基づいて、前記撮影光学系を第1の合焦位置へ駆動する第1焦点調節手段と、
前記第2焦点検出素子から出力される焦点検出信号に基づいて、前記撮影光学系を第2の合焦位置へ駆動する第2焦点調節手段と、
前記第1焦点調節手段によって前記第1の合焦位置に駆動された前記撮影光学系を前記第1の合焦位置にロックするロック手段と、
前記ロック手段により前記撮影光学系がロックされた後の前記被写体の移動を検出する被写体移動検出手段と、
前記被写体からの光が前記第1撮像素子および前記第2焦点検出素子に入射することを許容する撮影動作開始手段とを備え、
前記被写体移動検出手段により前記ロック後の前記被写体の移動が検出された場合、前記第2焦点調節手段は、前記第2焦点検出素子からの前記第2焦点検出信号に基づいて、前記撮影光学系を前記第2の合焦位置に駆動することを特徴とするデジタルカメラ。
A first image pickup device that picks up an image of a subject through a photographing optical system and outputs an image signal;
A first focus detection element which is provided at a position optically conjugate with the first imaging element, detects a focus adjustment state of the imaging optical system before starting imaging, and outputs a focus detection signal;
A second focus detection element that is incorporated in the first image sensor and detects a focus adjustment state of the photographing optical system and outputs a focus detection signal;
First focus adjustment means for driving the photographing optical system to a first in-focus position based on a focus detection signal output from the first focus detection element;
Based on a focus detection signal output from the second focus detection element, second focus adjustment means for driving the photographing optical system to a second focus position;
Locking means for locking the photographing optical system driven to the first in-focus position by the first focus adjustment means in the first in-focus position;
Subject movement detection means for detecting movement of the subject after the photographing optical system is locked by the locking means;
Photographing operation start means for allowing light from the subject to enter the first imaging element and the second focus detection element;
When the movement of the subject after the lock is detected by the subject movement detection unit, the second focus adjustment unit is configured to perform the photographing optical system based on the second focus detection signal from the second focus detection element. Is driven to the second in-focus position.
JP2009236548A 2009-10-13 2009-10-13 Digital camera Pending JP2011085661A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009236548A JP2011085661A (en) 2009-10-13 2009-10-13 Digital camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009236548A JP2011085661A (en) 2009-10-13 2009-10-13 Digital camera

Publications (1)

Publication Number Publication Date
JP2011085661A true JP2011085661A (en) 2011-04-28

Family

ID=44078669

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009236548A Pending JP2011085661A (en) 2009-10-13 2009-10-13 Digital camera

Country Status (1)

Country Link
JP (1) JP2011085661A (en)

Similar Documents

Publication Publication Date Title
KR101295648B1 (en) Image capturing apparatus and control method therefor
TWI407234B (en) Image pickup apparatus
JP2008070611A (en) Imaging apparatus, exposure condition adjustment method and program
JP2009069170A (en) Photographing device and control method of photographing device
JP2007221268A (en) Imaging apparatus
JP4941141B2 (en) Imaging device
JP2006339902A (en) Finder and camera
JP4717867B2 (en) Imaging apparatus and imaging method
JP4717840B2 (en) Imaging apparatus and control method thereof
JP5409205B2 (en) Imaging apparatus and control method thereof
JP2007006097A (en) Camera
JP2010224290A (en) Camera
JP2010212827A (en) Imager, and control method for imager
JP2009267893A (en) Imaging apparatus
JP2009048123A (en) Photographing equipment and method of controlling same
JP2007281974A (en) Digital camera
JP2015055775A (en) Imaging device and imaging device control method
JP2011085661A (en) Digital camera
JP2007036951A (en) Camera having electronic viewfinder
JP6493594B2 (en) Imaging device
JP2007049363A (en) Camera
JP2007057933A (en) Camera having electronic view finder
JP2007101860A (en) Imaging apparatus
JP2015106823A (en) Imaging apparatus
JP2010190925A (en) Camera