JP4848618B2 - Electronic camera device and focus information correction method - Google Patents

Electronic camera device and focus information correction method Download PDF

Info

Publication number
JP4848618B2
JP4848618B2 JP2004026171A JP2004026171A JP4848618B2 JP 4848618 B2 JP4848618 B2 JP 4848618B2 JP 2004026171 A JP2004026171 A JP 2004026171A JP 2004026171 A JP2004026171 A JP 2004026171A JP 4848618 B2 JP4848618 B2 JP 4848618B2
Authority
JP
Japan
Prior art keywords
focus
zoom
aperture
lens
correction value
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.)
Expired - Fee Related
Application number
JP2004026171A
Other languages
Japanese (ja)
Other versions
JP2005221517A (en
Inventor
大介 小甲
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2004026171A priority Critical patent/JP4848618B2/en
Publication of JP2005221517A publication Critical patent/JP2005221517A/en
Application granted granted Critical
Publication of JP4848618B2 publication Critical patent/JP4848618B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Focusing (AREA)
  • Automatic Focus Adjustment (AREA)
  • Studio Devices (AREA)

Description

本発明は、ズーム機能及びオートフォーカス機能を備えたデジタルカメラに用いて好適な、光学系の駆動機構に起因する誤差を排除することができる電子カメラ装置、及びフォーカス情報補正方法に関するものである。   The present invention relates to an electronic camera device and a focus information correction method, which can be used for a digital camera having a zoom function and an autofocus function, and can eliminate errors caused by an optical system drive mechanism.

従来、光学系にズームレンズ及びフォーカスレンズを備えたデジタルカメラにおいて、所謂コントラスト検出方式のオートフォーカス(コントラストAF)機能を有したものでは、通常、被写体距離を直接計測する手段が設けられていない。そのため、撮影時において、例えば画像ファイルにカメラ情報として被写体距離を付加する場合には、オートフォーカス制御で合焦ポイントに移動したときのフォーカスレンズの位置(以後、フォーカス位置という)に基づき被写体距離が取得されている。例えばフォーカスレンズやズームレンズの光学特性によって決められているフォーカス位置と被写体距離との関係を示すテーブルデータを予め用意しておき、それを用いることにより被写体距離が取得可能となっている。   Conventionally, in a digital camera having a zoom lens and a focus lens in an optical system and having a so-called contrast detection type autofocus (contrast AF) function, there is usually no means for directly measuring a subject distance. Therefore, at the time of shooting, for example, when adding the subject distance as camera information to the image file, the subject distance is determined based on the position of the focus lens (hereinafter referred to as the focus position) when moving to the in-focus point by autofocus control. Has been acquired. For example, table data indicating the relationship between the focus position determined by the optical characteristics of the focus lens and the zoom lens and the subject distance is prepared in advance, and the subject distance can be acquired by using the prepared table data.

ところで、上記のように取得される被写体距離はあくまで設計値(又は、計算に基づく理論値)である一方、フォーカスレンズ等の光学特性には固体差が存在するため、一般には、以下の方法によって正確な被写体距離が取得可能となっている。すなわち、製造時の調整段階で、実際に、ある距離(多くの場合は無限大遠)、あるズーム位置において合焦したポイントのフォーカス位置と、無限大遠に対応する設計値としてのフォーカス位置との誤差を記憶しておき、その後、撮影モードにおけるAF時には、前記誤差を用いて被写体に応じた合焦ポイントへフォーカスレンズを駆動したときのフォーカス位置を補正することにより正確な被写体距離を取得する。   By the way, the subject distance acquired as described above is merely a design value (or a theoretical value based on calculation), but there are individual differences in optical characteristics of the focus lens and the like. Accurate subject distance can be acquired. That is, in the adjustment stage at the time of manufacture, the focus position of the point focused at a certain distance (in many cases, infinity) and the zoom position, and the focus position as a design value corresponding to infinity Then, during AF in the shooting mode, an accurate subject distance is obtained by correcting the focus position when the focus lens is driven to a focusing point corresponding to the subject using the error. .

また、設計上のフォーカス位置と実際のフォーカス位置との誤差はズーム位置によっても異なるため、前記誤差をズーム位置毎に記憶しておき、AF時におけるフォーカスレンズの位置補正もズーム位置に応じて行うことにより、より正確な被写体距離が取得できる。なお、補正値をズーム位置に応じて記憶しておき、それに基づきフォーカスレンズの位置補正を行う技術については、例えば下記特許文献1に記載されている。
特開平11−23933号公報
Since the error between the designed focus position and the actual focus position varies depending on the zoom position, the error is stored for each zoom position, and the position of the focus lens during AF is corrected according to the zoom position. Thus, a more accurate subject distance can be acquired. A technique for storing a correction value according to a zoom position and correcting the position of the focus lens based on the correction value is described in, for example, Patent Document 1 below.
Japanese Patent Laid-Open No. 11-23933

しかしながら、上述した方法によればズームレンズやフォーカスレンズの固体差によるフォーカス位置の設計値に対するズレは吸収させることはできるものの、各レンズの固体差以外にもズームレンズやフォーカスレンズを含む光学系の駆動機構に起因する誤差、より具体的には駆動機構内が有するネジのバックラッシュ等に起因する誤差については補正することができない。そのため、正確な被写体距離の取得にも限界があった。   However, according to the above-described method, it is possible to absorb the deviation from the design value of the focus position due to the individual difference of the zoom lens and the focus lens, but in addition to the individual difference of each lens, the optical system including the zoom lens and the focus lens can be absorbed. An error caused by the drive mechanism, more specifically, an error caused by screw backlash or the like in the drive mechanism cannot be corrected. For this reason, there is a limit to obtaining an accurate subject distance.

本発明は、かかる従来の課題に鑑みてなされたものであり、オートフォーカス動作において取得する被写体距離、フォーカス位置等のフォーカス情報から、ズーム位置の違いに起因する誤差と共に、それ以外の光学系の駆動機構に起因する誤差等を排除することにより、精度の高いフォーカス動作が可能となる電子カメラ装置、及びフォーカス情報補正方法を提供することを目的とする。   The present invention has been made in view of such a conventional problem. From focus information such as a subject distance and a focus position acquired in an autofocus operation, an error caused by a difference in a zoom position and other optical systems. An object of the present invention is to provide an electronic camera device and a focus information correction method capable of performing a focus operation with high accuracy by eliminating errors caused by a drive mechanism.

前記課題を解決するため請求項の発明にあっては、被写体を撮像する撮像手段と、
この撮像手段により撮像された被写体の画像情報に基づきフォーカスレンズを合焦ポイントに移動させるフォーカスレンズ位置制御手段と、このフォーカスレンズ位置制御手段によってフォーカスレンズが合焦ポイントに移動されたときのフォーカス位置を補正する情報を取得ためのフォーカス調整モードを設定するモード設定手段と、を備える電子カメラ装置であって、ズームレンズを各ズーム位置に移動させるズームレンズ位置制御手段と、前記モード設定手段により前記フォーカス調整モードに設定されている状態において、前記ズームレンズ位置制御手段によってズームレンズが複数のズーム位置に移動された状態での絞りの開度を複数の開度に制御するとともに、ズームレンズが各ズーム位置に移動した状態で前記フォーカスレンズ位置制御手段によってフォーカスレンズが被写体距離が既知である被写体に応じた合焦ポイントに移動されたときのフォーカス位置と、前記被写体距離に対応する設計上のフォーカス位置との違いに基づく補正値であって、絞りの開度の違いに応じた絞り補正値を外部のフォーカス位置調整用装置により計測された値から取得する補正情報取得手段と、この補正情報取得手段により取得された絞り補正値を各ズーム位置に対応させて記憶する記憶手段と、前記フォーカスレンズ位置制御手段によってフォーカスレンズが合焦ポイントに移動されたときのフォーカス位置、及びそのときのズームレンズのズーム位置と絞りの開度とに対応して前記記憶手段に記憶されている絞り補正値とに基づいて被写体距離を算出する算出手段とを備えるものとした。
In order to solve the above-mentioned problem, in the invention of claim 1 , an imaging means for imaging a subject,
Focus lens position control means for moving the focus lens to the in-focus point based on the image information of the subject imaged by the imaging means, and the focus position when the focus lens is moved to the in-focus point by the focus lens position control means an electronic camera apparatus and a mode setting means for setting a focus adjustment mode for obtaining the information for correcting the, the zoom lens position control means for moving the zoom lens in each zoom position, the by the mode setting means In the state in which the focus adjustment mode is set, the zoom lens position control means controls the aperture of the diaphragm when the zoom lens is moved to a plurality of zoom positions to a plurality of apertures. The focus lens is moved to the zoom position. The focus lens by the position control means, and the focus position when it is moved to the focusing points corresponding to the subject the subject distance is known, brute group differences between the focus position of the design corresponding to the object distance correction value A correction information acquisition unit that acquires an aperture correction value corresponding to a difference in aperture opening from a value measured by an external focus position adjustment device, and an aperture correction value acquired by the correction information acquisition unit Storing means corresponding to each zoom position, the focus position when the focus lens is moved to the in-focus point by the focus lens position control means, and the zoom position and aperture of the zoom lens at that time And calculating means for calculating the subject distance based on the aperture correction value stored in the storage means. It was as.

かかる構成においては、算出手段により算出される被写体距離には絞りの開度の違いが反映されることとなり、オートフォーカス動作において取得される被写体距離からズーム位置の違いによる誤差と共に絞りの開度の違いに起因する誤差を排除することができる。   In such a configuration, the subject distance calculated by the calculation means reflects the difference in the aperture of the aperture, and the aperture distance of the aperture with the error due to the difference in the zoom position from the subject distance acquired in the autofocus operation. Errors due to differences can be eliminated.

また、請求項の発明にあっては、前記補正情報取得手段は、絞りの開度を第1の開度と、それ以外の第2の開度とに制御するとともに、絞りの開度を前記第2の開度に制御したときの絞り補正値を、絞りの開度を第1の開度に制御したとき取得した絞り補正値に対する差分として取得するものとした。
また、請求項3の発明にあっては、前記補正情報取得手段は、前記ズームレンズ位置制御手段がズームレンズを複数のズーム位置へ向けてテレ方向とワイド方向とに移動させるとともに、前記補正値として、各ズーム位置へのズームレンズの移動方向がテレ方向であったときのテレ方向補正値と、各ズーム位置へのズームレンズの移動方向がワイド方向であったときのワイド方向補正値とを取得し、前記記憶手段は、前記補正情報取得手段により取得されたテレ方向補正値とワイド方向補正値とを各ズーム位置に対応させて記憶し、前記算出手段は、前記フォーカスレンズ位置制御手段によってフォーカスレンズが合焦ポイントに移動されたときのフォーカス位置と、そのときのズームレンズのズーム位置と当該ズーム位置へのズームレンズの移動方向とに対応して前記記憶手段に記憶されているテレ方向補正値又はワイド方向補正値とに基づいて被写体距離を算出するものとした。
In the invention of claim 2 , the correction information acquisition means controls the opening of the throttle to the first opening and the other second opening, and the opening of the throttle. The aperture correction value when the second opening is controlled is acquired as a difference with respect to the aperture correction value acquired when the aperture is controlled to the first opening.
According to a third aspect of the present invention, the correction information acquisition means causes the zoom lens position control means to move the zoom lens in a tele direction and a wide direction toward a plurality of zoom positions, and the correction value. The tele direction correction value when the moving direction of the zoom lens to each zoom position is the tele direction, and the wide direction correction value when the moving direction of the zoom lens to each zoom position is the wide direction. The storage means stores the tele direction correction value and the wide direction correction value acquired by the correction information acquisition means in association with each zoom position, and the calculation means is controlled by the focus lens position control means. The focus position when the focus lens is moved to the in-focus point, the zoom position of the zoom lens at that time, and the zoom lens to that zoom position It was assumed to calculate the subject distance based on in response to the moving direction in the telephoto direction correction value or a wide direction correction value stored in the storage means.

また、請求項の発明にあっては、被写体を撮像する撮像手段と、この撮像手段により撮像された被写体の画像情報に基づきフォーカスレンズを合焦ポイントに移動させるフォーカスレンズ位置制御手段と、このフォーカスレンズ位置制御手段によってフォーカスレンズが合焦ポイントに移動されたときのフォーカス位置を補正する情報を取得ためのフォーカス調整モードを設定するモード設定手段と、を備える電子カメラ装置であって、ズームレンズを各ズーム位置に移動させるズームレンズ位置制御手段と、前記モード設定手段により前記フォーカス調整モードに設定されている状態において、前記ズームレンズ位置制御手段によってズームレンズが複数のズーム位置に移動された状態での絞りの開度を複数の開度に制御するとともに、ズームレンズが各ズーム位置に移動した状態で前記フォーカスレンズ位置制御手段によってフォーカスレンズが被写体距離が既知である被写体に応じた合焦ポイントに移動されたときのフォーカス位置と、前記被写体距離に対応する設計上のフォーカス位置との違いに基づく補正値であって、絞りの開度の違いに応じた絞り補正値を外部のフォーカス位置調整用装置により計測された値から取得する補正情報取得手段と、この補正情報取得手段により取得された絞り補正値を各ズーム位置に対応させて記憶する記憶手段と、被写体距離を取得する被写体距離取得手段と、この被写体距離取得手段により取得された被写体距離に対応する設計上のフォーカス位置、及びズームレンズのズーム位置と絞りの開度とに対応して前記記憶手段に記憶されている絞り補正値に基づいて制御用のフォーカス位置を算出する算出手段と、この算出手段により算出されたフォーカス位置へ前記フォーカスレンズを移動する第2のフォーカスレンズ位置制御手段とを備えるものとした。
Further, in the invention of claim 4 , an imaging means for imaging the subject, a focus lens position control means for moving the focus lens to the in-focus point based on image information of the subject imaged by the imaging means, and this A zoom lens , comprising: a mode setting unit that sets a focus adjustment mode for acquiring information for correcting a focus position when the focus lens is moved to a focus point by the focus lens position control unit; A zoom lens position control means for moving the zoom lens to each zoom position, and a state in which the zoom lens position control means has moved the zoom lens to a plurality of zoom positions in the state where the focus adjustment mode is set by the mode setting means In addition to controlling the aperture of the throttle at a plurality of apertures, Murenzu is the focus lens by said focus lens position control means in a state of being moved to the zoom position, the focus position when moved to the focusing points corresponding to the subject the subject distance is known, corresponding to the object distance a group brute correction value to the difference between the focus position of the design, and the correction information acquisition means for acquiring iris correction value corresponding to the difference of the throttle opening degree from the values measured by an external focus position adjusting device The aperture correction value acquired by the correction information acquisition means is stored in correspondence with each zoom position, the subject distance acquisition means for acquiring the subject distance, and the subject distance acquired by the subject distance acquisition means. Corresponding design focus position, and zoom position and aperture of the zoom lens are stored in the storage means. A calculation unit that calculates a focus position for control based on the aperture correction value that is set, and a second focus lens position control unit that moves the focus lens to the focus position calculated by the calculation unit; did.

かかる構成においては、算出手段により算出されるフォーカス位置には絞りの開度の違いが反映されることとなり、オートフォーカス動作において取得される、フォーカスレンズの制御位置(フォーカス位置)からズーム位置の違いによる誤差と共に絞りの開度の違いに起因する誤差を排除することができる。   In such a configuration, the difference in aperture is reflected in the focus position calculated by the calculation means, and the difference in zoom position from the control position (focus position) of the focus lens acquired in the autofocus operation. It is possible to eliminate errors due to differences in the opening of the aperture as well as errors due to.

また、請求項の発明にあっては、電子カメラ装置において、撮影モードでのオートフォーカス動作において取得する被写体に応じた所定のフォーカス情報を補正する方法であって、フォーカス位置を補正する情報を取得するためのフォーカス調整モードで、ズームレンズを複数のズーム位置に移動された状態での絞りの開度を複数の開度に制御するとともに、ズームレンズを各ズーム位置に移動させた状態で、被写体距離が既知である被写体を撮像して得られた画像情報に基づきフォーカスレンズを前記被写体に応じた合焦ポイントに移動させ、そのときのフォーカス位置と前記被写体距離に対応する設計上のフォーカス位置との違いに基づく補正値であって、絞りの開度の違いに応じた絞り補正値を外部のフォーカス位置調整用装置により計測された値から取得し、各ズーム位置に対応させて記憶手段に記憶させる第1の工程と、撮影モードでのオートフォーカス動作に際し、前記フォーカス情報を、そのときのズームレンズのズーム位置と当該ズーム位置へのズームレンズの移動方向とに対応して前記記憶手段に記憶されている絞り補正値を用いて補正する第2の工程とを含む方法とした。
According to the invention of claim 5 , in the electronic camera device, a method for correcting predetermined focus information corresponding to the subject acquired in the autofocus operation in the shooting mode, the information for correcting the focus position is provided. In the focus adjustment mode for acquiring , while controlling the aperture of the diaphragm when the zoom lens is moved to a plurality of zoom positions to a plurality of apertures, and moving the zoom lens to each zoom position, Based on image information obtained by imaging a subject whose subject distance is known, the focus lens is moved to a focusing point corresponding to the subject, and the focus position at that time and the design focus position corresponding to the subject distance a correction value difference based with, the aperture correction value corresponding to the difference of the throttle opening to the outside of the focus position adjusting device Obtained from the measured values, a first step to be stored in the storage means corresponding to each zoom position, upon the autofocus operation in the shooting mode, the focus information, the a zoom position of the zoom lens at that time And a second step of performing correction using the aperture correction value stored in the storage unit corresponding to the moving direction of the zoom lens to the zoom position.

かかる方法によれば、オートフォーカス動作において取得される、被写体距離やフォーカスレンズの制御位置(フォーカス位置)等のフォーカス情報からズーム位置の違いによる誤差と共に光学系の駆動機構に起因する誤差を排除することができる。   According to this method, errors due to the difference in the zoom position and errors due to the drive mechanism of the optical system are excluded from the focus information such as the subject distance and the focus lens control position (focus position) acquired in the autofocus operation. be able to.

また、請求項の発明にあっては、ズーム機能及びオートフォーカス機能を備えた電子カメラ装置が有するコンピュータに、フォーカス位置を補正する情報を取得するためのフォーカス調整モードで、ズームレンズを複数のズーム位置に移動された状態での絞りの開度を複数の開度に制御するとともに、ズームレンズを各ズーム位置に移動させた状態で、被写体距離が既知である被写体を撮像して得られた画像情報に基づきフォーカスレンズを前記被写体に応じた合焦ポイントに移動させ、そのときのフォーカス位置と前記被写体距離に対応する設計上のフォーカス位置との違いに基づく補正値であって、絞りの開度の違いに応じた絞り補正値を外部のフォーカス位置調整用装置により計測された値から取得し、各ズーム位置に対応させて記憶手段に記憶させる処理と、撮影モードでのオートフォーカス動作に際し、前記フォーカス情報を、そのときのズームレンズのズーム位置と当該ズーム位置へのズームレンズの移動方向とに対応して前記記憶手段に記憶されている絞り補正値を用いて補正する処理とを実行させるためのプログラムとした。
According to a sixth aspect of the present invention, a plurality of zoom lenses are provided in a focus adjustment mode for acquiring information for correcting a focus position in a computer included in an electronic camera device having a zoom function and an autofocus function. Obtained by imaging a subject whose subject distance is known in a state in which the aperture of the diaphragm when moved to the zoom position is controlled to a plurality of apertures and the zoom lens is moved to each zoom position. the focus lens on the basis of image information is moved to the focusing point corresponding to the object, a correction value based on the difference between the focus position of the design corresponding to the object distance and the focus position at that time, opening of the aperture obtained from the values measured by time outside of the focus position adjusting device aperture correction value corresponding to the difference in, corresponding to each zoom position come In the processing to be stored in the means and in the autofocus operation in the shooting mode, the focus information is stored in the storage means corresponding to the zoom position of the zoom lens at that time and the moving direction of the zoom lens to the zoom position. A program for executing a correction process using the aperture correction value that has been set .

また、請求項の発明においては、オートフォーカス動作において取得される被写体距離から、ズーム位置の違いによる誤差と共に絞りの開度の違いに起因する誤差とを排除することができるようにした。よって、精度の高いフォーカス動作が可能となる。
According to the first and second aspects of the invention, it is possible to eliminate the error due to the difference in the zoom position and the error due to the difference in the aperture of the diaphragm from the subject distance acquired in the autofocus operation. . Therefore, a highly accurate focus operation is possible.

また、請求項の発明においては、オートフォーカス動作において取得される被写体距離から、ズーム位置の違いによる誤差と共に光学系の駆動機構に起因する誤差を排除することができ、よって、より一層精度の高いフォーカス動作が可能となる。
In the invention of claim 3, the subject distance is obtained in the autofocus operation, the error due to the difference in zoom position can eliminate errors due to the optical system of the drive mechanism, therefore, the more accurate High focus operation is possible.

また、請求項の発明においては、オートフォーカス動作において取得される、フォーカスレンズの制御位置(フォーカス位置)から、ズーム位置の違いによる誤差と共に絞りの開度の違いに起因する誤差を排除することができるようにした。よって、精度の高いフォーカス動作が可能となる。
In the invention of claim 4 , the error caused by the difference in the aperture of the diaphragm as well as the error caused by the difference in the zoom position are excluded from the control position (focus position) of the focus lens acquired in the autofocus operation. I was able to. Therefore, a highly accurate focus operation is possible.

また、請求項の発明においては、オートフォーカス動作において取得される、被写体距離やフォーカスレンズの制御位置(フォーカス位置)等のフォーカス情報から、ズーム位置の違いによる誤差と共に光学系の駆動機構に起因する誤差を排除することができるようにした。よって、精度の高いフォーカス動作が可能となる。 Further, in the invention of claim 5 , from the focus information such as the subject distance and the focus lens control position (focus position) acquired in the autofocus operation, the error is caused by the difference in the zoom position and is caused by the driving mechanism of the optical system. The error to be able to be eliminated. Therefore, a highly accurate focus operation is possible.

以下、本発明の一実施の形態を図にしたがって説明する。図1は、本発明の一実施の形態を示すデジタルカメラの主として電気的構成を示すブロック図である。   Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram mainly showing an electrical configuration of a digital camera showing an embodiment of the present invention.

このデジタルカメラはズーム機能と、自動露出(AE)機能、コントラスト検出方式のオートフォーカス(コントラストAF)機能とを備えたものであり、それを実現するための構成を有している。   This digital camera has a zoom function, an automatic exposure (AE) function, and a contrast detection type autofocus (contrast AF) function, and has a configuration for realizing it.

すなわちレンズブロック1には、カメラ本体の鏡筒2内に設けられたシャッター3、絞り4、ズームレンズ5、フォーカスレンズ6からなる光学系が設けられている。絞り4は、その開度が「開放」状態と、「絞り」状態(所定開度)との2段階に制御可能であり、またズームレンズ5及びフォーカスレンズ6は、鏡筒2内の図示しない駆動機構により機械的に光軸方向に移動可能となっている。   That is, the lens block 1 is provided with an optical system including a shutter 3, a diaphragm 4, a zoom lens 5, and a focus lens 6 provided in a lens barrel 2 of the camera body. The aperture 4 can be controlled in two stages, that is, an “open” state and an “aperture” state (predetermined opening), and the zoom lens 5 and the focus lens 6 are not shown in the lens barrel 2. It can be moved mechanically in the optical axis direction by a drive mechanism.

レンズブロック1には、シャッター3を開閉駆動するシャッター用アクチュエータ7と、絞り4を駆動する絞り用アクチュエータ8、前記駆動機構によりズームレンズ5及びフォーカスレンズ6を駆動するズームモータ9及びフォーカスモータ10(具体的にはステッピングモータ)が設けられており、さらに両レンズ5,6の移動位置をそれぞれ検出するためのズーム位置検出センサ11及びフォーカス位置検出センサ12が設けられている。上記の各アクチュエータ7,8及び各モータ9,10は、ドライバーブロック13に設けられた絞り用(Iris)、シャッター用(Shutter)、ズーム用(ZOOM)、フォーカス用(Focus)の各ドライバー14〜17によって駆動される。   The lens block 1 includes a shutter actuator 7 that opens and closes the shutter 3, a diaphragm actuator 8 that drives the diaphragm 4, and a zoom motor 9 and a focus motor 10 that drive the zoom lens 5 and the focus lens 6 by the driving mechanism. More specifically, a stepping motor) is provided, and a zoom position detection sensor 11 and a focus position detection sensor 12 for detecting the movement positions of both lenses 5 and 6 are also provided. The actuators 7 and 8 and the motors 9 and 10 are provided on the driver block 13 for the iris (Iris), shutter (Shutter), zoom (ZOOM), and focus (Focus) drivers 14 to 14, respectively. 17 is driven.

また、デジタルカメラは、前述した光学系の光軸後方に配置された撮像手段であるCCD19と、CDS(Correlated Double Sampling)/ADブロック20、TG(Timing Generator)21とからなるCCD撮像系ブロック18を有している。CCD19は、デジタルカメラが記録モードに設定されているとき、光学系によって結像された被写体の光像を光電変換するとともに、TG21によって走査駆動され一定周期毎に光電変換出力を1画面分出力する。CDS/ADブロック20は、CCD19から出力された後、RGBの色成分毎に適宜ゲイン調整されたアナログの出力信号に対する相関二重サンプリングによるノイズ除去、及びデジタル信号への変換を行い、カラープロセス回路22に出力する。   The digital camera has a CCD imaging system block 18 comprising a CCD 19, which is an imaging means disposed behind the optical axis of the optical system, a CDS (Correlated Double Sampling) / AD block 20, and a TG (Timing Generator) 21. have. When the digital camera is set to the recording mode, the CCD 19 photoelectrically converts the light image of the subject imaged by the optical system, and scan-driven by the TG 21 to output a photoelectric conversion output for one screen at a certain period. . The CDS / AD block 20 performs noise removal by correlated double sampling and conversion to a digital signal with respect to an analog output signal that has been appropriately gain-adjusted for each RGB color component after being output from the CCD 19, and is a color process circuit 22 to output.

カラープロセス回路22は、入力した撮像信号に対し画素補間処理を含むカラープロセス処理を施し、デジタル値の輝度信号(Y)及び色差信号(Cb,Cr)を生成し、デジタルカメラ全体を制御するCPU23へ出力する。なお、CPU23は、実際には内部メモリや各種の演算処理回路、データの入出力インターフェース等を備えたマイクロプロセッサーである。   The color process circuit 22 performs color process processing including pixel interpolation processing on the input image pickup signal, generates a digital luminance signal (Y) and color difference signals (Cb, Cr), and controls the entire digital camera. Output to. The CPU 23 is actually a microprocessor having an internal memory, various arithmetic processing circuits, a data input / output interface, and the like.

CPU23に送られたデジタル信号(画像信号)はDRAM24に一時保存されるとともに画像表示部25に送られる。画像表示部25はビデオエンコーダー、VRAM、液晶モニタ及びその駆動回路を含み、送られたデジタル信号に基づくビデオ信号がビデオエンコーダーによって生成され、それに基づく表示画像、すなわちCCD19に撮像されるとともに所定の画素数に間引きされた後の被写体のスルー画像が液晶モニタに表示される。   The digital signal (image signal) sent to the CPU 23 is temporarily stored in the DRAM 24 and sent to the image display unit 25. The image display unit 25 includes a video encoder, a VRAM, a liquid crystal monitor, and a driving circuit thereof. A video signal based on the transmitted digital signal is generated by the video encoder, and is displayed on the display image based on the video signal, that is, captured by the CCD 19 and a predetermined pixel. The through image of the subject after being thinned out to the number is displayed on the liquid crystal monitor.

また、DRAM24はCPU23の作業用メモリとしても機能し、後述するフォーカス調整モードが設定されているときには、図2(a)に示したような、フォーカス位置検出センサ12により検出されたフォーカスレンズ6の位置を示すフォーカス停止位置データが、Fdat(1)〜Fdat(14)、又はFdat(1)〜Fdat(6)として一時的に記憶される。なお、上記フォーカス調整モードは、製品出荷前に行われる調整作業のために用意されているモードである。また、前述した記録モードが設定されているときには、図2(b)に示したような、その時々に取得されるフォーカスレンズ6の位置を示すフォーカス停止位置データ(Fpos)、及びズーム位置検出センサ11により検出されたズームレンズ5の位置を示すズーム停止位置データ(Zpos)と、直前にズームレンズ5が駆動された方向、つまり、ある時点におけるズームレンズ5の位置が、ズームレンズ5がテレ方向とワイド方向とのどちら側に駆動されて達した位置なのかを示すズーム駆動方向(Zdir)の各データが記憶される。   The DRAM 24 also functions as a working memory for the CPU 23. When a focus adjustment mode to be described later is set, the DRAM 24 detects the focus lens 6 detected by the focus position detection sensor 12 as shown in FIG. Focus stop position data indicating the position is temporarily stored as Fdat (1) to Fdat (14) or Fdat (1) to Fdat (6). The focus adjustment mode is a mode prepared for adjustment work performed before product shipment. Further, when the above-described recording mode is set, as shown in FIG. 2B, focus stop position data (Fpos) indicating the position of the focus lens 6 acquired at that time, and a zoom position detection sensor. The zoom stop position data (Zpos) indicating the position of the zoom lens 5 detected by 11 and the direction in which the zoom lens 5 was driven immediately before, that is, the position of the zoom lens 5 at a certain time point Each data of the zoom drive direction (Zdir) indicating which side is driven and reached in the wide direction is stored.

キー入力部26は電源キー、記録/再生のモード切替スイッチ、シャッターキー、ズームキー、メニューキー等の各種キーにより構成され、ユーザーによるキー操作に応じた操作信号をCPU23に送る。例えば記録モードでシャッターキーが押された撮影操作時には、それを示すトリガー信号をCPU23に出力する。   The key input unit 26 includes various keys such as a power key, a recording / playback mode changeover switch, a shutter key, a zoom key, and a menu key, and sends an operation signal to the CPU 23 according to the key operation by the user. For example, at the time of shooting operation in which the shutter key is pressed in the recording mode, a trigger signal indicating that is output to the CPU 23.

CPU23はトリガー信号が入力すると、それに応じてCCD19から取り込んだ1画面分の画像データをY,Cb,Crのコンポーネント毎に縦8画素×横8画素の基本ブロックと称する基本単位毎にDRAM24から読み出してJPEG回路27に送り、JPEG回路27によりDCT(離散拡散変換)、符号化によって圧縮された1画像分の圧縮データを画像記録部28に記憶する。   When the trigger signal is input, the CPU 23 reads out the image data for one screen captured from the CCD 19 in accordance with the trigger signal from the DRAM 24 for each basic unit called a basic block of 8 vertical pixels × 8 horizontal pixels for each of Y, Cb, and Cr components. The compressed data for one image compressed by DCT (Discrete Diffusion Transform) and encoding by the JPEG circuit 27 is stored in the image recording unit 28.

画像記録部28は、具体的にはカードインターフェース、及びそれを介してCPU23に接続され、かつカメラ本体に着脱自在に装着される不揮発性の各種メモリカードから構成される。画像記録部28に記録された画像データは、再生モードにおいてはCPU23により読み出され、JPEG回路27によって伸張された後、画像表示部25の液晶表示モニタに表示される。   Specifically, the image recording unit 28 includes a card interface and various nonvolatile memory cards that are connected to the CPU 23 via the card interface and are detachably attached to the camera body. The image data recorded in the image recording unit 28 is read by the CPU 23 in the reproduction mode, expanded by the JPEG circuit 27, and then displayed on the liquid crystal display monitor of the image display unit 25.

また、記録モードにおいてCPU23は、必要に応じてレンズコントロールブロック29に、前述したドライバーブロック13の各ドライバー14〜17へ送る駆動信号を生成させ、それにより絞り4の開度(アパーチャ)やズームレンズ5やフォーカスレンズ6の位置、シャッター3の開閉動作を制御する。その際、CPU23には、ズーム位置検出センサ11及びフォーカス位置検出センサ12によって検出された各レンズ5,6の位置検出情報がレンズコントロールブロック29を介して逐次入力する。   In the recording mode, the CPU 23 causes the lens control block 29 to generate drive signals to be sent to the drivers 14 to 17 of the driver block 13 as necessary, thereby opening the aperture 4 (aperture) and zoom lens. 5 and the position of the focus lens 6 and the opening / closing operation of the shutter 3 are controlled. At that time, the position detection information of the lenses 5 and 6 detected by the zoom position detection sensor 11 and the focus position detection sensor 12 is sequentially input to the CPU 23 via the lens control block 29.

フラッシュメモリ30は、CPU23に上述した各部を制御させるためのプログラムや、その他の各種データが格納された書き換え可能な不揮発性のメモリであり、本発明の記憶手段として機能する。そして、CPU23は、上記のプログラムに従い動作することにより本発明のズームレンズ位置制御手段、フォーカスレンズ位置制御手段、補正情報取得手段、算出手段として機能する。   The flash memory 30 is a rewritable nonvolatile memory in which a program for causing the CPU 23 to control each unit described above and other various data are stored, and functions as a storage unit of the present invention. The CPU 23 functions as zoom lens position control means, focus lens position control means, correction information acquisition means, and calculation means of the present invention by operating according to the above program.

一方、図3は、フラッシュメモリ30に記憶されているデータを示す模式図であり、フラッシュメモリ30には、前述した各種データとして同図(a)に示したフォーカスレンズ位置−距離変換テーブル101を構成する距離変換データと、後述するフォーカス調整モードによる処理によって記憶された同図(b)に示したフォーカス位置補正データ102とが記憶されている。   On the other hand, FIG. 3 is a schematic diagram showing data stored in the flash memory 30. The flash memory 30 includes the focus lens position-distance conversion table 101 shown in FIG. The distance conversion data to be configured and the focus position correction data 102 shown in FIG. 5B stored by processing in a focus adjustment mode to be described later are stored.

フォーカスレンズ位置−距離変換テーブル101は、記録モードでシャッターキーが押された撮影操作時に、被写体距離を取得するために使用されるデータであって、ズーム位置(ズームレンズ5の位置)毎に、あるフォーカス位置(フォーカスレンズ6の位置)と、それと対応する被写体距離を示すテーブルである。なお、ズーム位置はワイド端である「1」からテレ端である「7」までの7箇所であり、被写体距離は無限遠(∞)から最至近(図示した例では0.5m)である。また、フォーカス位置のデータ(Ftable(1,1)〜Ftable(7,n))は、前述した光学系における設計上の理論値である。   The focus lens position-distance conversion table 101 is data used to acquire the subject distance at the time of shooting operation in which the shutter key is pressed in the recording mode, and for each zoom position (position of the zoom lens 5). It is a table which shows a certain focus position (position of the focus lens 6) and subject distance corresponding to it. There are seven zoom positions from “1” at the wide end to “7” at the tele end, and the subject distance is from infinity (∞) to the closest distance (0.5 m in the illustrated example). Further, the focus position data (Ftable (1, 1) to Ftable (7, n)) are theoretical values in design in the optical system described above.

また、フォーカス位置補正データ102は、前記フォーカスレンズ位置−距離変換テーブル101に基づき被写体距離を取得する際、AF制御によって合焦ポイントに移動したフォーカスレンズの位置、つまりフォーカス位置から、それに含まれる誤差を排除して理論値であるフォーカス位置に補正するために用いられるデータであって、各ズーム位置(1〜7)にそれぞれ対応するテレ方向補正値(Ftel(1)〜Ftel(7))と、ワイド方向補正値(Fwide(1)〜Fwide(6))、絞り補正値であるアパーチャ補正値(Firis(1)〜Firis(7))の3種類の補正値からなる対応テーブルを構成するデータである(但し、ワイド方向補正値はズーム位置「1」〜「6」に対応するデータのみ)。   Further, the focus position correction data 102 is obtained from the position of the focus lens moved to the in-focus point by the AF control, that is, the focus position when acquiring the subject distance based on the focus lens position-distance conversion table 101. And tele direction correction values (Ftel (1) to Ftel (7)) respectively corresponding to the zoom positions (1 to 7). , Data constituting a correspondence table composed of three types of correction values: wide direction correction values (Fwide (1) to Fwide (6)) and aperture correction values (Firis (1) to Firis (7)) which are aperture correction values (However, the wide direction correction value is only data corresponding to the zoom positions “1” to “6”).

次に、以上の構成からなるデジタルカメラの動作について説明する。図4は、製品の組み立て後の調整段階で、前述したフォーカス位置補正データ102を取得するため用意されているフォーカス調整モードが設定されたときのCPU23の処理手順を示すフローチャートである。なお、フォーカス調整モードによる調整作業は、予め用意されているフォーカス位置調整用のコリメータに調整距離として無限遠を設定した状態で行われる。   Next, the operation of the digital camera having the above configuration will be described. FIG. 4 is a flowchart showing the processing procedure of the CPU 23 when the focus adjustment mode prepared for acquiring the focus position correction data 102 described above is set in the adjustment stage after the product is assembled. The adjustment work in the focus adjustment mode is performed in a state where an infinite distance is set as an adjustment distance in a collimator for focus position adjustment prepared in advance.

CPU23はフォーカス調整モードが設定されると、ズームレンズ5の位置(ズーム位置)をワイド端の「1」に、絞り4を「開放」状態に制御するとともに、処理回数Mを0回とする初期化を行う(ステップSA1)。以後、処理回数Mをカウントしながら(ステップSA2)、処理回数Mが"14"に達するまで以下の処理を繰り返す。すなわち、1回目の処理では(ステップSA3で「1」)、直ちにステップSA7へ進み、コントラストAF処理を実施し、フォーカスレンズ6を移動させながらCCD19により撮像した被写体画像の所定範囲におけるコントラスト値を算出して、それがピーク位置となる合焦ポイントへフォーカスレンズ6を移動制御する。そして、そのときのフォーカスレンズ6の位置をフォーカス位置検出センサ12により検出し、検出結果(Fdat(1))をDRAM24に記憶する(ステップSA8)。   When the focus adjustment mode is set, the CPU 23 controls the position of the zoom lens 5 (zoom position) to “1” at the wide end, the aperture 4 to the “open” state, and sets the number of processing times M to 0. (Step SA1). Thereafter, the following processing is repeated until the processing count M reaches “14” while counting the processing count M (step SA2). That is, in the first process (“1” in step SA3), the process immediately proceeds to step SA7, where the contrast AF process is performed, and the contrast value in the predetermined range of the subject image captured by the CCD 19 while moving the focus lens 6 is calculated. Then, the focus lens 6 is controlled to move to the in-focus point where it is the peak position. Then, the position of the focus lens 6 at that time is detected by the focus position detection sensor 12, and the detection result (Fdat (1)) is stored in the DRAM 24 (step SA8).

さらに、このときの処理回数Mは奇数回であるため(ステップSA9でYES)、ステップSA10へ進み、前述したフォーカスレンズ位置−距離変換テーブル101(図3(a)参照)に示されているズーム位置「1」に対応する理論値としてのフォーカス位置(Ftable(1,1))から、ステップSA8で取得したフォーカス停止位置(Fdat(1))を減算し、その結果を、そのときのズーム位置「1」に対応するテレ方向補正値(Ftele(1))としてフラッシュメモリ30に格納する。   Further, since the number M of times of processing at this time is an odd number (YES in step SA9), the process proceeds to step SA10, and the zoom shown in the focus lens position-distance conversion table 101 (see FIG. 3A) described above. The focus stop position (Fdat (1)) acquired in step SA8 is subtracted from the theoretical focus position (Ftable (1,1)) corresponding to the position “1”, and the result is obtained as the zoom position at that time. It is stored in the flash memory 30 as a tele direction correction value (Ftele (1)) corresponding to “1”.

引き続き、2回目の処理では(ステップSA3で「2」)、絞り4を「開放」状態から「絞り」状態に切り換えた後(ステップSA6)、コントラストAF処理によってフォーカスレンズ6を合焦ポイントへ移動制御するとともに、そのときのフォーカスレンズ6の位置をフォーカス位置検出センサ12により検出し、検出結果をフォーカス停止位置(Fdat(2))としてDRAM24に記憶する(ステップSA7,SA8)。そして、処理回数Mが奇数回でないため(ステップSA9でNO)、ステップSA11へ進み、1回前(直前)の処理で取得したフォーカス停止位置(Fdat(1))から、今回の処理で取得したフォーカス停止位置(Fdat(2))を減算し、その結果を、そのときのズーム位置「1」に対応するアパーチャ補正値(Firis(1))としてフラッシュメモリ30に格納する。   Subsequently, in the second process (“2” in step SA3), after the aperture 4 is switched from the “open” state to the “aperture” state (step SA6), the focus lens 6 is moved to the in-focus point by contrast AF processing. At the same time, the position of the focus lens 6 is detected by the focus position detection sensor 12, and the detection result is stored in the DRAM 24 as the focus stop position (Fdat (2)) (steps SA7 and SA8). Since the processing count M is not an odd number (NO in step SA9), the process proceeds to step SA11, and the focus stop position (Fdat (1)) acquired in the previous (previous) process is acquired in the current process. The focus stop position (Fdat (2)) is subtracted, and the result is stored in the flash memory 30 as an aperture correction value (Firis (1)) corresponding to the zoom position “1” at that time.

さらに、3回目の処理では(ステップSA3で「Other」)、処理回数Mは奇数回であるため(ステップSA4でYES)、ステップSA5へ進んでズーム位置をテレ側へ1つ移動させる。そして、絞り4を「絞り」状態から「開放」状態に戻した後(ステップSA6)、前述したステップSA7〜SA10の処理を行うことにより、新たなズーム位置(ここでは「2」)に対応するテレ方向補正値(Ftele(2))を取得し、フラッシュメモリ30に格納する。   Further, in the third process (“Other” in step SA3), the number of processes M is an odd number (YES in step SA4), so the process proceeds to step SA5 to move the zoom position by one to the tele side. Then, after the aperture 4 is returned from the “aperture” state to the “open” state (step SA6), the processing in steps SA7 to SA10 described above is performed to correspond to a new zoom position (here, “2”). The tele direction correction value (Ftele (2)) is acquired and stored in the flash memory 30.

以後は、処理回数Mが"14"に達するまで、前述したステップSA2〜SA11の処理を繰り返し、処理回数Mが奇数回となる毎にズーム位置をテレ側へ1つ移動させる一方、奇数回目の処理では絞り4を「開放」状態にして新たなテレ方向補正値を、また偶数回目の処理では絞り4を「絞り」状態にして新たなアパーチャ補正値をそれぞれ交互に取得しフラッシュメモリ30に格納する。   Thereafter, the processing of steps SA2 to SA11 described above is repeated until the number of times of processing M reaches “14”, and the zoom position is moved by one to the tele side every time the number of times of processing M becomes odd, while the odd number of times In processing, the aperture 4 is set to the “open” state, and a new tele-direction correction value is obtained. In the even-numbered processing, the aperture 4 is set to the “aperture” state, and new aperture correction values are alternately obtained and stored in the flash memory 30. To do.

やがて、処理回数Mが"14"に達して、ズーム位置がテレ端の「7」まで移動され、それに対応する最後のテレ方向補正値(Ftele(7))とアパーチャ補正値(Firis(7))がフラッシュメモリ30に格納できたら(ステップSA12でYES)、絞り4を「開放」状態とするとともに、カウントダウン変数Nに"7"を設定する再初期化を行う(ステップSA13)。なお、この時点でDRAM24に記憶されているフォーカス停止位置データ(Fdat(1)〜(14))を消去する。   Eventually, the processing count M reaches “14”, the zoom position is moved to “7” at the telephoto end, and the last tele direction correction value (Ftele (7)) and aperture correction value (Firis (7)) corresponding thereto. ) Can be stored in the flash memory 30 (YES in step SA12), the aperture 4 is set to the “open” state, and re-initialization is performed to set the countdown variable N to “7” (step SA13). At this time, the focus stop position data (Fdat (1) to (14)) stored in the DRAM 24 is erased.

その後、カウントダウン変数Nをカウントダウンし(ステップSA14)、ズーム位置をワイド側へ1つ移動させる(ステップSA15)。つまりズーム位置「6」へ移動させる。その状態で、コントラストAF処理を実施して、フォーカスレンズ6を合焦ポイントへ移動制御し(ステップSA16)、そのとき検出したフォーカス停止位置(Fdat(6))をDRAM24に記憶する(ステップSA17)。引き続き、取得したフォーカス停止位置(Fdat(6))を、前述したフォーカスレンズ位置−距離変換テーブル101(図3(a)参照)に示されているズーム位置「6」に対応する理論値としてのフォーカス位置(Ftable(6,1))から減算し、その結果を、ズーム位置「6」に対応するワイド方向補正値(Fwide(6))としてフラッシュメモリ30に格納する(ステップSA18)。   Thereafter, the countdown variable N is counted down (step SA14), and the zoom position is moved by one to the wide side (step SA15). That is, the zoom position is moved to “6”. In this state, contrast AF processing is performed to control the movement of the focus lens 6 to the in-focus point (step SA16), and the focus stop position (Fdat (6)) detected at that time is stored in the DRAM 24 (step SA17). . Subsequently, the acquired focus stop position (Fdat (6)) is used as a theoretical value corresponding to the zoom position “6” shown in the focus lens position-distance conversion table 101 (see FIG. 3A). The focus position (Ftable (6,1)) is subtracted and the result is stored in the flash memory 30 as a wide direction correction value (Fwide (6)) corresponding to the zoom position “6” (step SA18).

これ以後は、カウントダウン変数Nが"1"となるまで(ステップSA19でNO)、ステップSA14へ戻り、前述したステップSA14〜SA18の処理を繰り返す。引き続き係る一連の処理を5回繰り返すことにより、残りのズーム位置「5」〜「1」(ワイド端)に対応するワイド方向補正値(Fwide(5)〜(1))をそれぞれ取得しフラッシュメモリ30に格納し、それが完了したら(ステップSA19でYES)、フォーカス調整モードによる動作を終了する。つまり図3(b)に示したフォーカス位置補正データ102の取得処理を完了する。   Thereafter, the process returns to step SA14 until the countdown variable N becomes “1” (NO in step SA19), and the processes in steps SA14 to SA18 described above are repeated. Subsequently, the series of processing is repeated five times to obtain the wide direction correction values (Fwide (5) to (1)) corresponding to the remaining zoom positions “5” to “1” (wide end), respectively, and the flash memory. 30, and when this is completed (YES in step SA19), the operation in the focus adjustment mode is terminated. That is, the acquisition process of the focus position correction data 102 shown in FIG.

次に、本実施の形態において、前述したフォーカス位置補正データ102の取得後に記録モードが設定されたときの、本発明に係る動作を図5及び図6にしたがって説明する。なお、以下の説明においては、デジタルカメラが、記録モードの設定時に主電源がオフ操作されたり、再生モードへ切り換えられたりしたとき、ズームレンズ5を初期位置であるワイド端「1」に移動させるものであるとともに、AE機能、AF機能、シャッターの半押し操作状態でのAFロック機能がオン状態に設定されているものとする。   Next, in the present embodiment, the operation according to the present invention when the recording mode is set after obtaining the above-described focus position correction data 102 will be described with reference to FIGS. In the following description, the digital camera moves the zoom lens 5 to the wide end “1” which is the initial position when the main power is turned off or the playback mode is switched when the recording mode is set. In addition, it is assumed that the AE function, the AF function, and the AF lock function in the half-pressed state of the shutter are set to the on state.

図5及び図6は、記録モードが設定されているときCPU23が実行するAF動作に関する処理手順を示すフローチャートであって、CPU23は記録モードが設定されたら、まずズーム駆動方向のデータ(Zdir)を初期化し、ワイド方向を設定する(ステップSB1)。次に、ユーザーの操作に応じてズームレンズ5を駆動した場合には(ステップSB2でYES)、キー入力部26から送られた操作信号等に基づきズーム駆動方向(テレ方向又はワイド方向であり、かつ最初のズーム駆動があったときにはテレ方向となる。)を取得し、DRAM24に記憶されているデータ(Zdir)を更新する(ステップSB3)。   FIGS. 5 and 6 are flowcharts showing a processing procedure related to the AF operation executed by the CPU 23 when the recording mode is set. When the recording mode is set, the CPU 23 first stores data (Zdir) in the zoom drive direction. Initialization is performed and the wide direction is set (step SB1). Next, when the zoom lens 5 is driven according to the user's operation (YES in step SB2), the zoom drive direction (tele direction or wide direction is based on the operation signal or the like sent from the key input unit 26, When the first zoom drive is performed, the tele direction is obtained), and the data (Zdir) stored in the DRAM 24 is updated (step SB3).

引き続き、ズームレンズ5の駆動の有無にかかわらず、シャッターが半押しされたか否かを確認し、半押しされなければ(ステップSB4でNO)、ステップSB2へ戻り、半押しされたら(ステップSB4でYES)、AE処理により絞り4の開度を制御する(ステップSB5)。さらにコントラストAF処理によってフォーカスレンズ6を合焦ポイントへ移動制御するとともに(ステップSB6)、そのときのフォーカスレンズ6の位置をフォーカス位置検出センサ12により検出し、検出結果(Fpos)をDRAM24に記憶する(ステップSB7)、またズームレンズ5の位置をズーム位置検出センサ11により検出し、検出結果(Zpos)をDRAM24に記憶する(ステップSB8)。   Subsequently, regardless of whether the zoom lens 5 is driven or not, it is confirmed whether or not the shutter is half-pressed. If it is not half-pressed (NO in step SB4), the process returns to step SB2, and if half-pressed (in step SB4). YES), the opening of the diaphragm 4 is controlled by AE processing (step SB5). Further, the focus lens 6 is controlled to move to the in-focus point by contrast AF processing (step SB6), the position of the focus lens 6 at that time is detected by the focus position detection sensor 12, and the detection result (Fpos) is stored in the DRAM 24. (Step SB7) The position of the zoom lens 5 is detected by the zoom position detection sensor 11, and the detection result (Zpos) is stored in the DRAM 24 (Step SB8).

そして、そのとき記憶されているズーム駆動方向がテレ方向であったときには(ステップSB9でYES)、ステップSB7で取得したフォーカス位置(Fpos)を、それから、フラッシュメモリ30に記憶されているフォーカス位置補正データ102を構成するステップSB8で取得したズーム位置に対応するテレ方向補正値を差し引いた位置(Fpos−Ftele(Zpos))に補正する(ステップSB10)。また上記とは逆に記憶されているズーム駆動方向がワイド方向であったときには(ステップSB9でNO)、ステップSB7で取得したフォーカス位置(Fpos)を、それから、フラッシュメモリ30に記憶されているフォーカス位置補正データ102を構成するステップSB8で取得したズーム位置に対応するワイド方向補正値を差し引いた位置(Fpos−Fwide(Zpos))に補正する(ステップSB11)。   When the zoom drive direction stored at that time is the tele direction (YES in step SB9), the focus position (Fpos) acquired in step SB7 is then corrected to the focus position stored in the flash memory 30. Correction is made to a position (Fpos-Ftele (Zpos)) obtained by subtracting the tele-direction correction value corresponding to the zoom position acquired in step SB8 constituting the data 102 (step SB10). On the contrary, when the zoom drive direction stored in the opposite direction is the wide direction (NO in step SB9), the focus position (Fpos) acquired in step SB7 is set to the focus stored in the flash memory 30. The position correction data 102 is corrected to a position (Fpos−Fwide (Zpos)) obtained by subtracting the wide direction correction value corresponding to the zoom position acquired in step SB8 (step SB11).

引き続き、絞り4が「開放」状態であるか否かを判別し、「開放」状態であったときには(ステップSB12でYES)、直ちにステップSB10又はステップSB11による補正後のフォーカス位置(Fpos)とズーム位置(Zpos)とに基づき、フラッシュメモリ30に記憶されているフォーカスレンズ位置−距離変換テーブル101(図3(a)参照)を用いて被写体距離を取得する(ステップSB14)。例えばズーム位置が「2」であったときには、フォーカスレンズ位置−距離変換テーブル101におけるズーム位置「2」と対応するフォーカス位置(Ftable(2,1)〜Ftable(2,n))から、上記補正後のフォーカス位置(Fpos)と最も近いフォーカス位置をサーチし、サーチしたフォーカス位置に対応する被写体距離を取得する。   Subsequently, it is determined whether or not the aperture 4 is in the “open” state. If it is in the “open” state (YES in step SB12), the focus position (Fpos) corrected after step SB10 or step SB11 and the zoom are immediately adjusted. Based on the position (Zpos), the subject distance is acquired using the focus lens position-distance conversion table 101 (see FIG. 3A) stored in the flash memory 30 (step SB14). For example, when the zoom position is “2”, the correction is performed from the focus position (Ftable (2, 1) to Ftable (2, n)) corresponding to the zoom position “2” in the focus lens position-distance conversion table 101. The focus position closest to the subsequent focus position (Fpos) is searched, and the subject distance corresponding to the searched focus position is acquired.

また、ステップSB12の判別結果がNOであって、絞り4が「絞り」状態であったときには、ステップSB10又はステップSB11による補正後のフォーカス位置(Fpos)を、それから、フォーカス位置補正データ102を構成するステップSB8で取得したズーム位置に対応するアパーチャ補正値を差し引いた位置(Fpos−Firis(Zpos))に更に補正する(ステップSB13)。そして、係る補正後のフォーカス位置(Fpos)とズーム位置(Zpos)とに基づき、フォーカスレンズ位置−距離変換テーブル101を用いて被写体距離を取得する(ステップSB14)。   If the determination result in step SB12 is NO and the diaphragm 4 is in the “aperture” state, the focus position (Fpos) after the correction in step SB10 or step SB11 is set, and then the focus position correction data 102 is configured. Further correction is made to a position (Fpos−Firis (Zpos)) obtained by subtracting the aperture correction value corresponding to the zoom position acquired in step SB8 (step SB13). Based on the corrected focus position (Fpos) and zoom position (Zpos), the subject distance is acquired using the focus lens position-distance conversion table 101 (step SB14).

この後、シャッターが全押しされることなく、その半押し状態が継続している間はその状態を維持し(ステップSB15でNO、ステップSB16でYES)、その間に半押しが解除された場合には(ステップSB16でNO)、ステップSB2へ戻り、それ以降の処理を再び実行する。そして、シャッターが全押しされたら(ステップSB15でYES)、撮影処理によって被写体の撮像、及び撮像により取得した画像データの圧縮を行い(ステップSB17)、圧縮後の画像データを、それにステップSB14で取得した被写体距離を他の情報(絞り値やシャッター速度等)と共に付加した状態の画像ファイルとして画像記録部28に記録する(ステップSB18)。さらに、その記録画像と、それに付加した被写体距離とを画像表示部25に一定時間表示させる(ステップSB19)。   After that, the shutter is not fully pressed and is maintained as long as the half-pressed state continues (NO in step SB15, YES in step SB16), and when the half-press is released during that time (NO in step SB16), the process returns to step SB2, and the subsequent processing is executed again. When the shutter is fully pressed (YES in step SB15), the subject is imaged by the imaging process and the image data acquired by the imaging is compressed (step SB17), and the compressed image data is acquired in step SB14. The subject distance thus recorded is recorded in the image recording unit 28 as an image file in which other information (aperture value, shutter speed, etc.) is added (step SB18). Further, the recorded image and the subject distance added thereto are displayed on the image display unit 25 for a predetermined time (step SB19).

以後、ステップSB2へ戻り、主電源がオフ操作されたり、モードが再生モードへ切り換えられるまで前述した処理を繰り返す。なお、ステップSB14で取得した被写体距離は、例えばデジタルカメラに、撮影待機状態にあるときスルー画像上に撮影条件を表示させる機能が設けられている場合には、撮影操作(シャッターの全押し操作)に関係なく逐次更新しながら表示させるようにしてもよい。   Thereafter, the process returns to step SB2, and the above-described processing is repeated until the main power source is turned off or the mode is switched to the reproduction mode. Note that the subject distance acquired in step SB14 is a shooting operation (full shutter pressing operation) when, for example, a digital camera is provided with a function for displaying shooting conditions on a through image when in a shooting standby state. You may make it display, updating sequentially, irrespective of.

以上説明した実施の形態によれば、記録モードでのオートフォーカス動作に際して取得されるフォーカス情報としての被写体距離から、ズームレンズ5及びフォーカスレンズ6の駆動機構に起因する誤差(バックラッシュ等に起因する誤差)と、絞り4の開度の違いに起因する誤差とを排除することができる。したがって、単にズーム位置のみに対応して合焦ポイントにおけるフォーカス位置を補正する場合に比べ、より一層正確な被写体距離を取得することができる。   According to the embodiment described above, the error (caused by backlash or the like) caused by the driving mechanism of the zoom lens 5 and the focus lens 6 from the subject distance as the focus information acquired in the autofocus operation in the recording mode. Error) and errors due to the difference in opening of the throttle 4 can be eliminated. Therefore, it is possible to obtain a more accurate subject distance as compared with the case where the focus position at the in-focus point is corrected corresponding to only the zoom position.

なお、本実施の形態では、合焦ポイントにおけるフォーカス位置を補正するためのフォーカス位置補正データ102として、テレ方向補正値とワイド方向補正値とアパーチャ補正値とを取得するものについて説明したが、アパーチャ補正値による補正は必ずしも行わなくともよい。例えば絞り4の開度の違いに起因する誤差が生じないか、又はごく僅かであるような構成においては不要である。また、場合によっては、アパーチャ補正値による補正のみを行ってもよい。   In this embodiment, the focus position correction data 102 for correcting the focus position at the in-focus point has been described as acquiring the tele direction correction value, the wide direction correction value, and the aperture correction value. The correction by the correction value is not necessarily performed. For example, it is not necessary in a configuration in which an error due to a difference in opening of the throttle 4 does not occur or is very small. In some cases, only the correction using the aperture correction value may be performed.

また、本実施の形態においては、フォーカス調整モードで、ズームレンズ5をテレ方向へ移動したときにアパーチャ補正値を取得し、記録モードでは、それのアパーチャ補正値を直前のズームレンズ5の移動方向がテレ方向の場合とワイド方向の場合との双方の場合において使用するようにした、つまり共用化したことから、フォーカス調整モードによる調整作業を簡略化することができる。   In the present embodiment, the aperture correction value is acquired when the zoom lens 5 is moved in the tele direction in the focus adjustment mode, and the aperture correction value is obtained as the moving direction of the immediately preceding zoom lens 5 in the recording mode. Since it is used in both the tele direction and the wide direction, that is, it is shared, the adjustment work in the focus adjustment mode can be simplified.

同時に、フォーカス調整モードでは、テレ方向補正値及びワイド方向補正値を絞り4が「開放」状態であったときに取得し、かつアパーチャ補正値を絞り4が「絞り」状態であったときに、同一のズーム位置に対応するテレ方向補正値に対する差分として取得し、記録モードでは、絞り4が「絞り」状態であったときにのみアパーチャ補正値によりフォーカス位置を補正するようにしたことから、フォーカス調整モードでフラッシュメモリ30に記憶させるアパーチャ補正値の数が削減できる。したがって、フラッシュメモリ30のメモリ容量を他の用途に有効に活用することができる。   At the same time, in the focus adjustment mode, the tele direction correction value and the wide direction correction value are acquired when the aperture 4 is in the “open” state, and the aperture correction value is acquired when the aperture 4 is in the “aperture” state. It is obtained as a difference with respect to the tele direction correction value corresponding to the same zoom position. In the recording mode, the focus position is corrected by the aperture correction value only when the aperture 4 is in the “aperture” state. The number of aperture correction values stored in the flash memory 30 in the adjustment mode can be reduced. Therefore, the memory capacity of the flash memory 30 can be effectively used for other purposes.

なお、本実施の形態では、記録モードにおいてフォーカス位置の補正に使用するアパーチャ補正値を、直前のズームレンズ5の移動方向がテレ方向の場合とワイド方向の場合との双方において共用する場合について説明したが、アパーチャ補正値を共用化することなく、フォーカス調整モードで、それをズームレンズ5をテレ方向へ移動したときとのアパーチャ補正値(テレ方向絞り補正値)、及びワイド方向へ移動したときとのアパーチャ補正値(ワイド方向絞り補正値)として個別に取得しておき、記録モードでは、直前のズームレンズ5の移動方向に対応するアパーチャ補正値を使用するようにしてもかまわない。その場合であっても、単にズーム位置のみに対応して合焦ポイントにおけるフォーカス位置を補正する場合に比べ、より一層正確な被写体距離を取得することができる。   In the present embodiment, a description will be given of a case where the aperture correction value used for correcting the focus position in the recording mode is shared both when the moving direction of the zoom lens 5 immediately before is in the tele direction and in the wide direction. However, without using the aperture correction value in common, in the focus adjustment mode, when the zoom lens 5 is moved in the tele direction, the aperture correction value (tele direction aperture correction value) is moved in the wide direction. And the aperture correction value corresponding to the moving direction of the zoom lens 5 immediately before may be used in the recording mode. Even in such a case, it is possible to obtain a more accurate subject distance as compared with the case where the focus position at the in-focus point is corrected corresponding to only the zoom position.

さらに、フォーカス調整モードで、テレ方向補正値及びワイド方向補正値とは別に、各ズーム位置におけるテレ方向補正値に対する差分(相対的な補正値)であるアパーチャ補正値を取得し、記録モードでは、それを用いることによって、AF動作時のフォーカス位置から絞り4の開度の違いによる誤差を排除するようにしたが以下のようにしてもよい。すなわち、フォーカス調整モードでは、各ズーム位置に対応するテレ方向補正値及びワイド方向補正値を絞り4の開度を変えて個別に取得し、つまりテレ方向補正値及びワイド方向補正値をアパーチャ補正値を含めた状態で予め取得し、フォーカス調整モードでは、そのときの絞り4の開度に対応するテレ方向補正値又はワイド方向補正値を用いてフォーカス位置を補正するようにしてもかまわない。その場合においても、単にズーム位置のみに対応して合焦ポイントにおけるフォーカス位置を補正する場合に比べ、より一層正確な被写体距離を取得することができる。   Further, in the focus adjustment mode, apart from the tele direction correction value and the wide direction correction value, an aperture correction value that is a difference (relative correction value) with respect to the tele direction correction value at each zoom position is acquired. By using this, an error due to the difference in the opening of the diaphragm 4 from the focus position during the AF operation is eliminated, but the following may be used. That is, in the focus adjustment mode, the tele direction correction value and the wide direction correction value corresponding to each zoom position are individually obtained by changing the opening of the diaphragm 4, that is, the tele direction correction value and the wide direction correction value are obtained as the aperture correction value. In the focus adjustment mode, the focus position may be corrected using a tele direction correction value or a wide direction correction value corresponding to the opening of the diaphragm 4 at that time. Even in such a case, it is possible to obtain a more accurate subject distance as compared with the case where the focus position at the in-focus point is corrected corresponding to only the zoom position.

また、本実施の形態では、フォーカス調整モードで取得する3種類の補正値(テレ方向補正値、ワイド方向補正値、アパーチャ補正値)を、それぞれ被写体距離を無限遠としたときのAF制御による実際のフォーカス位置(合焦ポイントに移動したフォーカスレンズ6の位置)と、被写体距離が無限遠であるときの理論値としてのフォーカス位置(フォーカスレンズ位置−距離変換テーブル101に示されているフォーカス位置)との差とする一方、記録モードでは、AF制御による実際のフォーカス位置を上記3種類の補正値を用いて補正するものとしたが、以下のようにすることもできる。   In this embodiment, the three types of correction values (tele-direction correction value, wide-direction correction value, and aperture correction value) acquired in the focus adjustment mode are actually measured by AF control when the subject distance is set to infinity. Focus position (the position of the focus lens 6 moved to the in-focus point) and the theoretical position when the subject distance is infinite (the focus position indicated in the focus lens position-distance conversion table 101) On the other hand, in the recording mode, the actual focus position by the AF control is corrected using the above-described three types of correction values. However, the following may be used.

すなわちフォーカス調整モードで取得する3種類の補正値(テレ方向補正値、ワイド方向補正値、アパーチャ補正値)を、それぞれ被写体距離を所定の基準距離(例えば15m)としたときの実際のAF制御によるフォーカス位置に対応する理論値としての被写体距離(フォーカスレンズ位置−距離変換テーブル101に示されている被写体距離)と、上記基準距離との差分とする一方、記録モードでは、実際のフォーカス位置に対応する理論値としての被写体距離をいったん取得し、取得した被写体距離を上記3種類の補正値を用いて補正するようにする。   That is, the three types of correction values (tele-direction correction value, wide-direction correction value, and aperture correction value) acquired in the focus adjustment mode are based on actual AF control when the subject distance is set to a predetermined reference distance (for example, 15 m). While the difference between the subject distance (the subject distance shown in the focus lens position-distance conversion table 101) as a theoretical value corresponding to the focus position and the reference distance is used, in the recording mode, the difference corresponds to the actual focus position. The subject distance as a theoretical value to be obtained is once acquired, and the acquired subject distance is corrected using the three types of correction values.

より具体的には、例えばフォーカス調整モードによる調整作業では、コリメータに調整距離として基準距離(15m等)を設定しておき、前述した図4のステップSA10において、ステップSA8で取得したフォーカス停止位置(Fdat(M))に対応する被写体距離をフォーカスレンズ位置−距離変換テーブル101から取得し、取得した被写体距離と基準距離との差分を各ズーム位置に対応するテレ方向補正値として記憶する処理を行わせ、それと対応してステップSA11では、前回のテレ方向補正値と今回のテレ方向補正値との差分であるアパーチャ補正値を算出し記憶する。同様にステップSA18では、ステップSA17で取得したフォーカス停止位置(Fdat(N))に対応する被写体距離をフォーカスレンズ位置−距離変換テーブル101から取得し、取得した被写体距離と基準距離との差分を各ズーム位置に対応するワイド方向補正値として記憶する処理を行わせる。   More specifically, for example, in the adjustment work in the focus adjustment mode, a reference distance (15 m or the like) is set as an adjustment distance in the collimator, and the focus stop position (step SA8 in FIG. Fdat (M)) is obtained from the focus lens position-distance conversion table 101, and the difference between the obtained subject distance and the reference distance is stored as a tele direction correction value corresponding to each zoom position. Correspondingly, in step SA11, an aperture correction value which is the difference between the previous tele direction correction value and the current tele direction correction value is calculated and stored. Similarly, in step SA18, the subject distance corresponding to the focus stop position (Fdat (N)) obtained in step SA17 is obtained from the focus lens position-distance conversion table 101, and the difference between the obtained subject distance and the reference distance is obtained for each. A process of storing as a wide direction correction value corresponding to the zoom position is performed.

そして、記録モードでは、前述した図5のステップSB10において、ステップSB7で取得したフォーカス位置(Fpos)と、ステップSB8で取得したズーム位置(Zpos)とに対応する被写体距離をフォーカスレンズ位置−距離変換テーブル101から取得し、取得した被写体距離をズーム位置(Zpos)に対応するテレ方向補正値(Ftele(Zpos))により補正する処理を行わせ、同様にステップSB11においては、フォーカス位置(Fpos)とズーム位置(Zpos)とに対応する被写体距離をフォーカスレンズ位置−距離変換テーブル101から取得し、それをズーム位置(Zpos)に対応するワイド方向補正値(Fwide(Zpos))により補正する処理を行わせる。さらにステップSB13においては、テレ方向補正値またはワイド方向補正値によりいったん補正した被写体距離を、ズーム位置(Zpos)に対応するアパーチャ補正値(Firis(Zpos))により再補正する処理を、そしてステップSB14において、ステップSB10,SB11,SB13で取得した補正後の被写体距離を表示用や記録用の被写体距離として確定する処理を行わせる。   In the recording mode, in step SB10 of FIG. 5, the subject distance corresponding to the focus position (Fpos) acquired in step SB7 and the zoom position (Zpos) acquired in step SB8 is converted to focus lens position-distance. A process of correcting the acquired subject distance from the table 101 using the tele direction correction value (Ftele (Zpos)) corresponding to the zoom position (Zpos) is performed. Similarly, in step SB11, the focus position (Fpos) is set. The subject distance corresponding to the zoom position (Zpos) is acquired from the focus lens position-distance conversion table 101, and the correction is performed by the wide direction correction value (Fwide (Zpos)) corresponding to the zoom position (Zpos). Make it. Further, in step SB13, the subject distance once corrected by the tele direction correction value or the wide direction correction value is recorrected by the aperture correction value (Firis (Zpos)) corresponding to the zoom position (Zpos), and step SB14. In step S5, processing for determining the corrected subject distance acquired in steps SB10, SB11, and SB13 as the subject distance for display or recording is performed.

但し、係る方法においては、上記3種類の補正値が、被写体距離を基準距離に固定して取得するため、記録モードの前述したステップSB10,SB11,SB13の補正処理に先立ち、フォーカスレンズ6の位置の変化に対する被写体距離の変化特性に応じて、上記3種類の補正値を、前記基準距離と、フォーカスレンズ位置−距離変換テーブル101から取得した被写体距離との関係に基づき調整する必要がある。なお、上記方法においてもアパーチャ補正値による補正は必ずしも行わなくともよく、さらに調整モードにおけるテレ方向補正値、ワイド方向補正値、アパーチャ補正値の取得方法や各々の関係については先に述べた内容がそのまま当てはまる。   However, in this method, since the above three types of correction values are acquired with the subject distance fixed at the reference distance, the position of the focus lens 6 is determined prior to the correction processing in the above-described steps SB10, SB11, and SB13 in the recording mode. It is necessary to adjust the three types of correction values based on the relationship between the reference distance and the subject distance acquired from the focus lens position-distance conversion table 101 in accordance with the subject distance change characteristic with respect to the change in the subject distance. In the above method, the correction using the aperture correction value is not necessarily performed. Further, the tele direction correction value, the wide direction correction value, the aperture correction value acquisition method in the adjustment mode, and the relationship between them are as described above. It applies as it is.

また、本実施の形態では、記録モードによる実際の撮影時にコントラスト検出方式によるAF制御を行うデジタルカメラに本発明を適用し、AF動作に際して正確な被写体距離を取得することができるようにしたものについて説明したが、本発明は、以下のようなデジタルカメラにも適用可能である。   In the present embodiment, the present invention is applied to a digital camera that performs AF control using a contrast detection method during actual shooting in a recording mode so that an accurate subject distance can be obtained during AF operation. As described above, the present invention is also applicable to the following digital cameras.

例えば図1に示した構成に加え、被写体距離取得手段として機能する各種の測距センサをさらに備えるとともに、CPU23を第2のフォーカスレンズ位置制御手段として機能させるプログラムがフラッシュメモリ30に格納されることにより、記録モードによる実際の撮影時には、測距センサの検出結果に基づき被写体距離を取得し、その被写体距離に対応する設計上のフォーカス位置(理論値)を求め、そのフォーカス位置へフォーカスレンズ6を移動するAF制御を行うものにおいて、AF制御時に取得するフォーカス情報としてのフォーカスレンズ6の制御位置から、ズームレンズ5及びフォーカスレンズ6の駆動機構等に起因する誤差等を排除する場合においても有効である。   For example, in addition to the configuration shown in FIG. 1, various distance measuring sensors that function as subject distance acquisition means are further provided, and a program that causes the CPU 23 to function as second focus lens position control means is stored in the flash memory 30. Thus, during actual shooting in the recording mode, the subject distance is acquired based on the detection result of the distance measuring sensor, the designed focus position (theoretical value) corresponding to the subject distance is obtained, and the focus lens 6 is moved to the focus position. In the case where the moving AF control is performed, it is also effective in the case where an error caused by the drive mechanism of the zoom lens 5 and the focus lens 6 is excluded from the control position of the focus lens 6 as the focus information acquired at the time of AF control. is there.

その場合には、例えばフォーカス調整モードによる調整作業において、本実施の形態と同様の手順で図3(b)に示したフォーカス位置補正データ102(テレ方向補正値、ワイド方向補正値、アパーチャ補正値)を取得して記憶する。但し、各々の補正値は、フォーカス位置検出センサ12により検出されたフォーカス位置と、フォーカスレンズ位置−距離変換テーブル101に示されている、被写体距離(無限遠等)に対応する理論値としてのフォーカス位置との差である。   In that case, for example, in the adjustment work in the focus adjustment mode, the focus position correction data 102 (tele direction correction value, wide direction correction value, aperture correction value) shown in FIG. ) Is acquired and stored. However, each correction value is the focus as a theoretical value corresponding to the focus position detected by the focus position detection sensor 12 and the subject distance (such as infinity) shown in the focus lens position-distance conversion table 101. It is the difference from the position.

そして、記録モードにおけるAF制御に際しては、前記測距センサ等の検出結果に基づき被写体距離を取得した後、その被写体距離と、そのときのズーム位置とに対応するフォーカス位置を図3(a)に示したフォーカスレンズ位置−距離変換テーブル101から割り出す。しかる後、割り出したフォーカス位置を、そのときのズーム位置へのズームレンズ5の移動方向(直前の移動方向)がテレ方向であれば、ズーム位置に対応する前記テレ方向補正値を用いて、またワイド方向であれば前記ワイド方向補正値を用いてそれぞれ補正する。そして、絞り4が「開放」状態であったときには、そのまま補正後のフォーカス位置へフォーカスレンズ6を駆動し、逆に絞り4が「絞り」状態であったときには、補正後のフォーカス位置を、さらにズーム位置に対応する前記アパーチャ補正値によって補正し、補正後のフォーカス位置へフォーカスレンズ6を駆動させるようにすればよい。それにより、フォーカスレンズ6の正確な位置制御による精度の高いフォーカス動作が可能となる。   In AF control in the recording mode, after obtaining the subject distance based on the detection result of the distance measuring sensor or the like, the subject position and the focus position corresponding to the zoom position at that time are shown in FIG. It is calculated from the focus lens position-distance conversion table 101 shown. Thereafter, if the moving direction of the zoom lens 5 to the zoom position at that time (the previous moving direction) is the tele direction, the tele direction correction value corresponding to the zoom position is used. If in the wide direction, each correction is performed using the wide direction correction value. When the diaphragm 4 is in the “open” state, the focus lens 6 is driven as it is to the corrected focus position. Conversely, when the diaphragm 4 is in the “aperture” state, the corrected focus position is further increased. Correction may be performed using the aperture correction value corresponding to the zoom position, and the focus lens 6 may be driven to the corrected focus position. Thereby, it is possible to perform a focus operation with high accuracy by accurate position control of the focus lens 6.

また、係る場合についても、本実施の形態について先に述べたように、フォーカス調整モードで取得するフォーカス位置補正データ102を、それぞれ被写体距離を所定の基準距離(例えば15m)としたときの実際のAF制御によるフォーカス位置に対応する理論値としての被写体距離(フォーカスレンズ位置−距離変換テーブル101に示されている被写体距離)と、上記基準距離との差分としてもよい。その場合、記録モードにおいては、前記測距センサ等の検出結果に基づき被写体距離を取得した後、その被写体距離を、そのときのズーム位置及びそのズーム位置へのズームレンズ5の駆動方向とに対応するテレ方向補正値又はワイド方向補正値によって補正した後、また絞り4が「絞り」状態であったときにはズーム位置に対応するアパーチャ補正値によってさらに補正した後、補正後の被写体距離に対応するフォーカス位置へフォーカスレンズ6を駆動させることとなる。   Also in this case, as described above with respect to the present embodiment, the focus position correction data 102 acquired in the focus adjustment mode is an actual value when the subject distance is set to a predetermined reference distance (for example, 15 m). The difference between the subject distance (the subject distance shown in the focus lens position-distance conversion table 101) as a theoretical value corresponding to the focus position by AF control and the reference distance may be used. In that case, in the recording mode, after acquiring the subject distance based on the detection result of the distance measuring sensor or the like, the subject distance corresponds to the zoom position at that time and the driving direction of the zoom lens 5 to the zoom position. After the correction with the tele direction correction value or the wide direction correction value to be performed, or when the diaphragm 4 is in the “aperture” state, further correction with the aperture correction value corresponding to the zoom position, and then the focus corresponding to the corrected subject distance The focus lens 6 is driven to the position.

また、その場合においてもアパーチャ補正値による補正は必ずしも行わなくともよく、さらに調整モードにおけるテレ方向補正値、ワイド方向補正値、アパーチャ補正値の取得方法や各々の関係については、本実施の形態について先に述べた内容がそのまま当てはまる。   Even in this case, the correction using the aperture correction value is not necessarily performed. Further, the tele direction correction value, the wide direction correction value, the method for acquiring the aperture correction value in the adjustment mode, and the relationship between them are described in this embodiment. The contents described above apply as they are.

また、以上の説明においては、主として静止画等の撮影に使用される専用機としてのデジタルカメラに本発明を採用した場合について述べたが、これに限らず本発明は、ズーム機能(但し、デジタルズームは除く)及びフォーカス機能を備えたものであれば、例えばデジタルビデオカメラ、カメラ付き携帯電話機、カメラ付きPDA、カメラ付きパソコン等の種々の電子カメラ装置にも採用することができる。その場合においても、前述した効果を得ることができる。   In the above description, the case where the present invention is applied to a digital camera as a dedicated machine mainly used for photographing a still image or the like has been described. However, the present invention is not limited to this. And any other electronic camera device such as a digital video camera, a mobile phone with a camera, a PDA with a camera, and a personal computer with a camera. Even in that case, the above-described effects can be obtained.

本発明に係るデジタルカメラ主として電気的構成を示すブロック図である。1 is a block diagram mainly showing an electrical configuration of a digital camera according to the present invention. フォーカス調整モード、及び記録モードでDRAMに一時記憶されるフォーカス停止位置情報とズーム停止位置情報とを示す模式図である。FIG. 6 is a schematic diagram showing focus stop position information and zoom stop position information temporarily stored in a DRAM in a focus adjustment mode and a recording mode. フラッシュメモリに記憶されているフォーカスレンズ位置−距離変換テーブルと、フォーカス位置補正データの構成を示す模式図である。It is a schematic diagram which shows the structure of the focus lens position-distance conversion table memorize | stored in flash memory, and focus position correction data. フォーカス調整モードでのCPUの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of CPU in focus adjustment mode. 記録モードでのAF動作時におけるCPUの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of CPU at the time of AF operation | movement in recording mode. 図5に続くフローチャートである。It is a flowchart following FIG.

符号の説明Explanation of symbols

3 シャッター
4 絞り
5 ズームレンズ
6 フォーカスレンズ
7 シャッター用アクチュエータ
8 絞り用アクチュエータ
9 ズームモータ
10 フォーカスモータ
11 ズーム位置検出センサ
12 フォーカス位置検出センサ
19 CCD
23 CPU
25 画像表示部
28 画像記録部
29 レンズコントロールブロック
30 フラッシュメモリ
101 フォーカスレンズ位置−距離変換テーブル
102 フォーカス位置補正データ
3 Shutter 4 Aperture 5 Zoom Lens 6 Focus Lens 7 Shutter Actuator 8 Aperture Actuator 9 Zoom Motor 10 Focus Motor 11 Zoom Position Detection Sensor 12 Focus Position Detection Sensor 19 CCD
23 CPU
25 Image display unit 28 Image recording unit 29 Lens control block 30 Flash memory 101 Focus lens position-distance conversion table 102 Focus position correction data

Claims (6)

被写体を撮像する撮像手段と、
この撮像手段により撮像された被写体の画像情報に基づきフォーカスレンズを合焦ポイントに移動させるフォーカスレンズ位置制御手段と、
このフォーカスレンズ位置制御手段によってフォーカスレンズが合焦ポイントに移動されたときのフォーカス位置を補正する情報を取得ためのフォーカス調整モードを設定するモード設定手段と、
を備える電子カメラ装置であって、
ズームレンズを各ズーム位置に移動させるズームレンズ位置制御手段と、
前記モード設定手段により前記フォーカス調整モードに設定されている状態において、前記ズームレンズ位置制御手段によってズームレンズが複数のズーム位置に移動された状態での絞りの開度を複数の開度に制御するとともに、ズームレンズが各ズーム位置に移動した状態で前記フォーカスレンズ位置制御手段によってフォーカスレンズが被写体距離が既知である被写体に応じた合焦ポイントに移動されたときのフォーカス位置と、前記被写体距離に対応する設計上のフォーカス位置との違いに基づく補正値であって、絞りの開度の違いに応じた絞り補正値を外部のフォーカス位置調整用装置により計測された値から取得する補正情報取得手段と、
この補正情報取得手段により取得された絞り補正値を各ズーム位置に対応させて記憶する記憶手段と、
前記フォーカスレンズ位置制御手段によってフォーカスレンズが合焦ポイントに移動されたときのフォーカス位置、及びそのときのズームレンズのズーム位置と絞りの開度とに対応して前記記憶手段に記憶されている絞り補正値とに基づいて被写体距離を算出する算出手段と
を備えたことを特徴とする電子カメラ装置。
Imaging means for imaging a subject;
Focus lens position control means for moving the focus lens to the in-focus point based on the image information of the subject imaged by the imaging means;
Mode setting means for setting a focus adjustment mode for acquiring information for correcting the focus position when the focus lens is moved to the in-focus point by the focus lens position control means;
An electronic camera device comprising:
Zoom lens position control means for moving the zoom lens to each zoom position;
In a state in which the focus adjustment mode is set by the mode setting unit , the aperture of the diaphragm when the zoom lens is moved to a plurality of zoom positions by the zoom lens position control unit is controlled to a plurality of apertures. together with the focus position of the zoom lens is the focusing lens by said focus lens position control means in a state of being moved to the zoom position, it is moved to the focusing points corresponding to the subject the subject distance is known, the object distance a compensation values that is based on the difference between the focus position of the design which corresponds to, to obtain the aperture correction value corresponding to the difference of the throttle opening degree from the values measured by an external focus position adjusting device correction Information acquisition means;
Storage means for storing the aperture correction value acquired by the correction information acquisition means in association with each zoom position;
The aperture stored in the storage unit corresponding to the focus position when the focus lens is moved to the in-focus point by the focus lens position control unit, and the zoom position and aperture of the zoom lens at that time An electronic camera apparatus comprising: a calculation unit that calculates a subject distance based on the correction value.
前記補正情報取得手段は、絞りの開度を第1の開度と、それ以外の第2の開度とに制御するとともに、絞りの開度を前記第2の開度に制御したときの絞り補正値を、絞りの開度を第1の開度に制御したとき取得した絞り補正値に対する差分として取得することを特徴とする請求項記載の電子カメラ装置。 The correction information acquisition means controls the aperture of the aperture to a first aperture and a second aperture other than that, and the aperture when the aperture of the aperture is controlled to the second aperture. the correction value, the electronic camera apparatus according to claim 1, wherein the obtaining the difference from the acquired iris correction value when controlling the throttle opening to the first opening. 前記補正情報取得手段は、前記ズームレンズ位置制御手段がズームレンズを複数のズーム位置へ向けてテレ方向とワイド方向とに移動させるとともに、前記補正値として、各ズーム位置へのズームレンズの移動方向がテレ方向であったときのテレ方向補正値と、各ズーム位置へのズームレンズの移動方向がワイド方向であったときのワイド方向補正値とを取得し、The correction information acquisition unit moves the zoom lens to a plurality of zoom positions in a tele direction and a wide direction, and the zoom lens position control unit moves the zoom lens to each zoom position as the correction value. The tele direction correction value when is in the tele direction and the wide direction correction value when the moving direction of the zoom lens to each zoom position is the wide direction,
前記記憶手段は、前記補正情報取得手段により取得されたテレ方向補正値とワイド方向補正値とを各ズーム位置に対応させて記憶し、The storage means stores the tele direction correction value and the wide direction correction value acquired by the correction information acquisition means in association with each zoom position,
前記算出手段は、前記フォーカスレンズ位置制御手段によってフォーカスレンズが合焦ポイントに移動されたときのフォーカス位置と、そのときのズームレンズのズーム位置と当該ズーム位置へのズームレンズの移動方向とに対応して前記記憶手段に記憶されているテレ方向補正値又はワイド方向補正値とに基づいて被写体距離を算出するThe calculation means corresponds to the focus position when the focus lens is moved to the in-focus point by the focus lens position control means, the zoom position of the zoom lens at that time, and the movement direction of the zoom lens to the zoom position. The subject distance is calculated based on the tele direction correction value or the wide direction correction value stored in the storage means.
ことを特徴とする請求項1記載の電子カメラ装置。The electronic camera device according to claim 1.
被写体を撮像する撮像手段と、
この撮像手段により撮像された被写体の画像情報に基づきフォーカスレンズを合焦ポイントに移動させるフォーカスレンズ位置制御手段と、
このフォーカスレンズ位置制御手段によってフォーカスレンズが合焦ポイントに移動されたときのフォーカス位置を補正する情報を取得ためのフォーカス調整モードを設定するモード設定手段と、
を備える電子カメラ装置であって、
ズームレンズを各ズーム位置に移動させるズームレンズ位置制御手段と、
前記モード設定手段により前記フォーカス調整モードに設定されている状態において、前記ズームレンズ位置制御手段によってズームレンズが複数のズーム位置に移動された状態での絞りの開度を複数の開度に制御するとともに、ズームレンズが各ズーム位置に移動した状態で前記フォーカスレンズ位置制御手段によってフォーカスレンズが被写体距離が既知である被写体に応じた合焦ポイントに移動されたときのフォーカス位置と、前記被写体距離に対応する設計上のフォーカス位置との違いに基づく補正値であって、絞りの開度の違いに応じた絞り補正値を外部のフォーカス位置調整用装置により計測された値から取得する補正情報取得手段と、
この補正情報取得手段により取得された絞り補正値を各ズーム位置に対応させて記憶する記憶手段と、
被写体距離を取得する被写体距離取得手段と、
この被写体距離取得手段により取得された被写体距離に対応する設計上のフォーカス位置、及びズームレンズのズーム位置と絞りの開度とに対応して前記記憶手段に記憶されている絞り補正値に基づいて制御用のフォーカス位置を算出する算出手段と、
この算出手段により算出されたフォーカス位置へ前記フォーカスレンズを移動する第2のフォーカスレンズ位置制御手段と
を備えたことを特徴とする電子カメラ装置。
Imaging means for imaging a subject;
Focus lens position control means for moving the focus lens to the in-focus point based on the image information of the subject imaged by the imaging means;
Mode setting means for setting a focus adjustment mode for acquiring information for correcting the focus position when the focus lens is moved to the in-focus point by the focus lens position control means;
An electronic camera device comprising:
Zoom lens position control means for moving the zoom lens to each zoom position;
In a state in which the focus adjustment mode is set by the mode setting unit , the aperture of the diaphragm when the zoom lens is moved to a plurality of zoom positions by the zoom lens position control unit is controlled to a plurality of apertures. together with the focus position of the zoom lens is the focusing lens by said focus lens position control means in a state of being moved to the zoom position, it is moved to the focusing points corresponding to the subject the subject distance is known, the object distance a difference in the brute based correction value of the focus position of the design which corresponds to, to obtain the aperture correction value corresponding to the difference of the throttle opening degree from the values measured by an external focus position adjusting device correction information Acquisition means;
Storage means for storing the aperture correction value acquired by the correction information acquisition means in association with each zoom position;
Subject distance acquisition means for acquiring the subject distance;
Based on the designed focus position corresponding to the subject distance acquired by the subject distance acquisition means, and the aperture correction value stored in the storage means corresponding to the zoom position of the zoom lens and the aperture of the aperture. Calculating means for calculating a focus position for control;
An electronic camera apparatus comprising: a second focus lens position control unit that moves the focus lens to the focus position calculated by the calculation unit.
電子カメラ装置において、撮影モードでのオートフォーカス動作において取得する被写体に応じた所定のフォーカス情報を補正する方法であって、
フォーカス位置を補正する情報を取得するためのフォーカス調整モードで、ズームレンズを複数のズーム位置に移動された状態での絞りの開度を複数の開度に制御するとともに、ズームレンズを各ズーム位置に移動させた状態で、被写体距離が既知である被写体を撮像して得られた画像情報に基づきフォーカスレンズを前記被写体に応じた合焦ポイントに移動させ、そのときのフォーカス位置と前記被写体距離に対応する設計上のフォーカス位置との違いに基づく補正値であって、絞りの開度の違いに応じた絞り補正値を外部のフォーカス位置調整用装置により計測された値から取得し、各ズーム位置に対応させて記憶手段に記憶させる第1の工程と、
撮影モードでのオートフォーカス動作に際し、前記フォーカス情報を、そのときのズームレンズのズーム位置と当該ズーム位置へのズームレンズの移動方向とに対応して前記記憶手段に記憶されている絞り補正値を用いて補正する第2の工程と
を含むことを特徴とするフォーカス情報補正方法。
In an electronic camera device, a method of correcting predetermined focus information according to a subject acquired in an autofocus operation in a shooting mode,
In the focus adjustment mode for acquiring information to correct the focus position , the aperture of the aperture when the zoom lens is moved to multiple zoom positions is controlled to multiple open positions, and the zoom lens is set to each zoom position. The focus lens is moved to a focus point corresponding to the subject based on image information obtained by imaging a subject whose subject distance is known, and the focus position and the subject distance at that time are moved. It is a correction value based on the difference from the corresponding design focus position, and the aperture correction value according to the difference in aperture opening is obtained from the value measured by the external focus position adjustment device , and each zoom position A first step of storing in the storage means corresponding to
In the autofocus operation in the shooting mode, the focus information includes the aperture correction value stored in the storage unit corresponding to the zoom position of the zoom lens at that time and the movement direction of the zoom lens to the zoom position. And a second step of correcting using the focus information correcting method.
ズーム機能及びオートフォーカス機能を備えた電子カメラ装置が有するコンピュータに、
フォーカス位置を補正する情報を取得するためのフォーカス調整モードで、ズームレンズを複数のズーム位置に移動された状態での絞りの開度を複数の開度に制御するとともに、ズームレンズを各ズーム位置に移動させた状態で、被写体距離が既知である被写体を撮像して得られた画像情報に基づきフォーカスレンズを前記被写体に応じた合焦ポイントに移動させ、そのときのフォーカス位置と前記被写体距離に対応する設計上のフォーカス位置との違いに基づく補正値であって、絞りの開度の違いに応じた絞り補正値を外部のフォーカス位置調整用装置により計測された値から取得し、各ズーム位置に対応させて記憶手段に記憶させる処理と、
撮影モードでのオートフォーカス動作に際し、前記フォーカス情報を、そのときのズームレンズのズーム位置と当該ズーム位置へのズームレンズの移動方向とに対応して前記記憶手段に記憶されている絞り補正値を用いて補正する処理と
を実行させるためのプログラム。
In a computer of an electronic camera device having a zoom function and an autofocus function,
In the focus adjustment mode for acquiring information to correct the focus position , the aperture of the aperture when the zoom lens is moved to multiple zoom positions is controlled to multiple open positions, and the zoom lens is set to each zoom position. The focus lens is moved to a focus point corresponding to the subject based on image information obtained by imaging a subject whose subject distance is known, and the focus position and the subject distance at that time are moved. It is a correction value based on the difference from the corresponding design focus position, and the aperture correction value according to the difference in aperture opening is obtained from the value measured by the external focus position adjustment device , and each zoom position Storing in the storage means in correspondence with
In the autofocus operation in the shooting mode, the focus information includes the aperture correction value stored in the storage unit corresponding to the zoom position of the zoom lens at that time and the movement direction of the zoom lens to the zoom position. A program for executing correction processing using and.
JP2004026171A 2004-02-03 2004-02-03 Electronic camera device and focus information correction method Expired - Fee Related JP4848618B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004026171A JP4848618B2 (en) 2004-02-03 2004-02-03 Electronic camera device and focus information correction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004026171A JP4848618B2 (en) 2004-02-03 2004-02-03 Electronic camera device and focus information correction method

Publications (2)

Publication Number Publication Date
JP2005221517A JP2005221517A (en) 2005-08-18
JP4848618B2 true JP4848618B2 (en) 2011-12-28

Family

ID=34997240

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004026171A Expired - Fee Related JP4848618B2 (en) 2004-02-03 2004-02-03 Electronic camera device and focus information correction method

Country Status (1)

Country Link
JP (1) JP4848618B2 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006072016A (en) * 2004-09-02 2006-03-16 Victor Co Of Japan Ltd Autofocus device
JP5106064B2 (en) * 2007-11-27 2012-12-26 キヤノン株式会社 Imaging device and lens unit
JP5103637B2 (en) * 2008-09-30 2012-12-19 富士フイルム株式会社 Imaging apparatus, imaging method, and program
KR101720192B1 (en) * 2011-01-19 2017-03-27 삼성전자주식회사 Auto focusing apparatus
JP6362310B2 (en) * 2013-08-21 2018-07-25 キヤノン株式会社 IMAGING DEVICE, IMAGING SYSTEM, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP6351310B2 (en) * 2014-03-10 2018-07-04 キヤノン株式会社 Imaging apparatus, control method therefor, program, and storage medium
CN115379109A (en) * 2018-11-20 2022-11-22 中山市远尚光电科技有限公司 Method for measuring distance of telephoto lens with automatic distance measuring function
JP7243188B2 (en) * 2018-12-28 2023-03-22 株式会社ニコン lens barrel
CN115150593B (en) * 2021-03-29 2024-06-07 中强光电股份有限公司 Projection device and correction method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05134163A (en) * 1991-11-12 1993-05-28 Sanyo Electric Co Ltd Focus control device
JPH05307138A (en) * 1992-04-30 1993-11-19 Olympus Optical Co Ltd Camera
JPH0961703A (en) * 1995-08-23 1997-03-07 Nikon Corp Focus position correcting device
KR100192034B1 (en) * 1996-12-23 1999-06-15 이해규 Zooming device of camera

Also Published As

Publication number Publication date
JP2005221517A (en) 2005-08-18

Similar Documents

Publication Publication Date Title
JP4552974B2 (en) Camera device, focus control method and program
JP5604293B2 (en) Camera system
KR100819809B1 (en) Image pickup apparatus and Method of picking up images
JP4985808B2 (en) Imaging apparatus and program
KR100584845B1 (en) Auto-Focusing Device, Electronic Camera, And Auto-Focusing Method
US8229292B2 (en) Auto focus adjusting apparatus and camera system
JP4797522B2 (en) Imaging apparatus and program thereof
JPH1010405A (en) Lens device and image pickup device
EP2401860A1 (en) Imaging apparatus, image display apparatus, imaging method, method of displaying image and method of correcting position of focusing-area frame
US7557831B2 (en) Optical apparatus provided with image-shake correction function
JP5513024B2 (en) Imaging apparatus, zoom correction information creation method, and program
JP5644882B2 (en) Imaging apparatus, field angle correction method, and program
JP2006162991A (en) Stereoscopic image photographing apparatus
JP4848618B2 (en) Electronic camera device and focus information correction method
JP4983516B2 (en) Imaging device, focus state display method, focus state display program
JP5744501B2 (en) Focus adjustment apparatus, control method thereof, and program
JP4025836B2 (en) Imaging device and portable communication device
JP2006163279A (en) Camera device and lens control method
JP2015049251A (en) Imaging device and control program
JP2007116305A (en) Imaging apparatus and zoom magnification control method
JP5655804B2 (en) Imaging apparatus and program
JP5482454B2 (en) Imaging apparatus, focus control method, and program
JP6971808B2 (en) Image shake correction device, image pickup device and control method
JP2008020528A (en) Imaging apparatus
JP4159557B2 (en) Electronic still camera

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061206

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091109

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091117

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101214

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110119

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110920

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111003

R150 Certificate of patent or registration of utility model

Ref document number: 4848618

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141028

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees