JP2012013809A - Camera device, caf control method thereof, control program, readable storage medium, and electronic information apparatus - Google Patents

Camera device, caf control method thereof, control program, readable storage medium, and electronic information apparatus Download PDF

Info

Publication number
JP2012013809A
JP2012013809A JP2010148335A JP2010148335A JP2012013809A JP 2012013809 A JP2012013809 A JP 2012013809A JP 2010148335 A JP2010148335 A JP 2010148335A JP 2010148335 A JP2010148335 A JP 2010148335A JP 2012013809 A JP2012013809 A JP 2012013809A
Authority
JP
Japan
Prior art keywords
evaluation value
area
focus
sub
main area
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
JP2010148335A
Other languages
Japanese (ja)
Inventor
Toshiyuki Miyake
俊行 三宅
Masakazu Hashimoto
正和 橋本
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2010148335A priority Critical patent/JP2012013809A/en
Publication of JP2012013809A publication Critical patent/JP2012013809A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To focus a camera with a natural movement by operating a lens scan without any sense of incongruity immediately after starting or setting to CAF.SOLUTION: The camera device includes: a main area for detecting a focusing state; and one or more sub areas 83 disposed around the periphery of the main area 82. When an AF evaluation value of the main area 82 is smaller than a prescribed threshold, a control unit 4 selects a sub area 83 whose AF evaluation value exceeds the prescribed threshold to be the maximum, from among the sub areas 83, as a focusing evaluation object area and conducts control to search for the focal point.

Description

本発明は、コントラスト方式でオートフォーカス動作を行い、シャッタ半押しなどによる指示がなくても自動焦点調節を行うコンティニュアスオートフォーカス(以下「CAF」と略記する)機能を有するカメラ装置およびそのCAF制御方法、このカメラ装置のCAF制御方法をコンピュータに実行させるための制御プログラム、この制御プログラムが格納されたコンピュータ読み取り可能な可読記憶媒体、このカメラ装置を画像入力デバイスとして撮像部に用いた例えばデジタルビデオカメラおよびデジタルスチルカメラなどのデジタルカメラや、監視カメラなどの画像入力カメラ、スキャナ装置、ファクシミリ装置、テレビジョン電話装置、カメラ付き携帯電話装置などの電子情報機器に関する。   The present invention relates to a camera device having a continuous autofocus (hereinafter abbreviated as “CAF”) function for performing autofocus operation by a contrast method and performing autofocus adjustment without an instruction by half-pressing a shutter or the like, and its CAF. A control method, a control program for causing a computer to execute the CAF control method of the camera device, a computer-readable readable storage medium storing the control program, for example, a digital device using the camera device as an image input device in an imaging unit The present invention relates to an electronic information device such as a digital camera such as a video camera and a digital still camera, an image input camera such as a surveillance camera, a scanner device, a facsimile device, a television phone device, and a camera-equipped mobile phone device.

従来、カメラ装置のAF(オートフォーカス)方式の一つとしてコントラスト方式と呼ばれるものがある。このAF方式は、被写体をCCDイメージセンサやCMOSイメージセンサなどの固体撮像素子で撮像し、フォーカスエリア内の撮像信号を用いて焦点評価値を演算し、その焦点評価値に基づいて合焦位置を決定する。また、AF動作モードとしては、シャッタボタンの半押し操作により合焦動作を行うシングルAFモード(SAF)と、半押し操作に関係なく合焦動作を所定間隔で繰り返し行うCAFモードとがある。   Conventionally, there is a so-called contrast method as one of AF (autofocus) methods of a camera device. In this AF method, a subject is imaged by a solid-state imaging device such as a CCD image sensor or a CMOS image sensor, a focus evaluation value is calculated using an imaging signal in a focus area, and a focus position is determined based on the focus evaluation value. decide. The AF operation mode includes a single AF mode (SAF) in which a focusing operation is performed by half-pressing the shutter button, and a CAF mode in which the focusing operation is repeatedly performed at a predetermined interval regardless of the half-pressing operation.

一般的に、コントラスト方式のカメラ装置の場合、CAFモードに関しては、「山登り方式」と呼ばれる合焦動作が採用されている。この山登り方式の合焦動作では、フォーカスレンズを所定量移動して、その移動前後の焦点評価値の大きさを比較してその評価値が増加する方向にさらに所定量移動し同様の処理を行う。このような処理を繰り返して実行することにより、焦点評価値がピークとなる位置にフォーカスレンズを移動させる。   In general, in the case of a contrast-type camera device, a focusing operation called a “mountain climbing method” is employed for the CAF mode. In this hill-climbing focusing operation, the focus lens is moved by a predetermined amount, the magnitudes of the focus evaluation values before and after the movement are compared, and further moved by a predetermined amount in the direction in which the evaluation value increases, and the same processing is performed. . By repeatedly executing such processing, the focus lens is moved to a position where the focus evaluation value reaches a peak.

一方で、山登り合焦動作開始時点では、フォーカスレンズ位置の近くに焦点評価値のピーク位置があるとは限らない。このため、フォーカスレンズ位置とピーク位置とが大きく隔たっている場合には、合焦するまでに時間がかり、シャッタチャンスを逃してしまうという虞があった。   On the other hand, the peak position of the focus evaluation value is not always near the focus lens position at the start of the hill-climbing focusing operation. For this reason, when the focus lens position and the peak position are largely separated, it takes time to focus, and there is a possibility that a photo opportunity will be missed.

これを回避する手法として、特許文献1が提案されている。特許文献1では、カメラ装置の電源がONされたり、スリープ状態が解除されて再起動されたときに、CAF撮影モードに設定されている場合、最初の合焦動作では全域にスキャンを行い、焦点評価値のピーク位置をサーチする。全域スキャンで検出されたピーク位置から山登り合焦動作を行わせるようにしている。   As a technique for avoiding this, Patent Document 1 is proposed. In Patent Document 1, when the camera apparatus is turned on, or when the sleep state is canceled and the camera is restarted, when the CAF shooting mode is set, the first focusing operation scans the entire area, and the focus is set. Search for the peak position of the evaluation value. The hill-climbing focusing operation is performed from the peak position detected by the whole area scan.

即ち、このカメラ装置は、コンティニュアスAF撮影モードでカメラ起動が行われると、フォーカシングレンズをその可動範囲の所定領域内の一端から他端まで一方向に移動させて評価値演算手段による焦点評価値を複数取得し、この取得された焦点評価値に基づいて算出される焦点評価値のピーク位置にフォーカシングレンズを移動制御するようにしている。   That is, in this camera apparatus, when the camera is activated in the continuous AF shooting mode, the focusing lens is moved in one direction from one end to the other end in a predetermined area of the movable range, and the focus evaluation by the evaluation value calculating means is performed. A plurality of values are acquired, and the focusing lens is controlled to move to the peak position of the focus evaluation value calculated based on the acquired focus evaluation value.

特開2003−295040号公報JP 2003-295040 A

しかしながら、上記従来の構成では、起動またはCAF設定時にフォーカスレンズが焦点評価値のピーク付近にあり、ピントが合っているかまたはピントがほぼ合っている状態で、全域スキャンを行うと、ピントが外れた画像が表示画面上に表示されてしまうことになる。   However, in the above conventional configuration, the focus lens is in the vicinity of the peak of the focus evaluation value at the time of start-up or CAF setting, and when the whole area scan is performed in a state where the focus is in focus or almost in focus, the focus is lost. The image will be displayed on the display screen.

また、ピントが合っていない状態において全域スキャンを行った場合でも、焦点評価値のピーク位置を通り過ぎて探索が行われるため、一旦ピントが合った後に再びピントが外れた画像が表示画面上に表示されてしまう場合がある。これらの問題は特に動画撮影中に問題となる。したがって、対象とする被写体について、自然な動作でピントを合わせることができない。   In addition, even when a whole area scan is performed in an out-of-focus state, the search is performed past the peak position of the focus evaluation value, so an image that is once out of focus and then out of focus is displayed on the display screen. It may be done. These problems are particularly problematic during movie shooting. Therefore, it is not possible to focus on the target subject with a natural motion.

本発明は、上記従来の問題を解決するもので、起動またはCAF設定直後、レンズスキャンを違和感なく動作させて、自然な動作でピントを合わせることができるカメラ装置およびそのCAF制御方法、このカメラ装置のCAF制御方法をコンピュータに実行させるための制御プログラム、この制御プログラムが格納されたコンピュータ読み取り可能な可読記憶媒体、このカメラ装置を画像入力デバイスとして撮像部に用いた例えばカメラ付き携帯電話装置などの電子情報機器を提供することを目的とする。   The present invention solves the above-described conventional problems. A camera device that can operate a lens scan without a sense of incongruity immediately after activation or CAF setting, and can focus with a natural operation, its CAF control method, and this camera device A control program for causing a computer to execute the CAF control method, a computer-readable readable storage medium storing the control program, and a camera-equipped mobile phone device using the camera device as an image input device in an imaging unit An object is to provide electronic information equipment.

本発明のカメラ装置は、結像面に結像される光学像を画像データに変換する撮像手段と、該光学像の焦点調節を行うためにフォーカスレンズを移動させて合焦位置を検出し、検出した合焦位置に該フォーカスレンズを停止させる焦点調節を連続的に行う制御部とを備えたカメラ装置において、該光学像の合焦状態を検出するためのメインエリアと、該メインエリアの周辺に配置された一つ以上のサブエリアとが撮影画面上に配置され、該制御部は、前記メインエリアのAF評価値が所定閾値よりも小さいことを検出した場合に、該サブエリアのうちAF評価値が所定閾値を超え、最大となるサブエリアを合焦評価対象エリアとして選択して該フォーカスレンズの合焦位置探索を行うように制御するものであり、そのことにより上記目的が達成される。   The camera device of the present invention detects an in-focus position by moving an imaging unit that converts an optical image formed on an imaging surface into image data, and moving a focus lens to adjust the focus of the optical image. In a camera apparatus comprising a control unit that continuously performs focus adjustment to stop the focus lens at the detected focus position, a main area for detecting a focus state of the optical image, and a periphery of the main area One or more sub-areas arranged on the imaging screen, and when the control unit detects that the AF evaluation value of the main area is smaller than a predetermined threshold, The evaluation value exceeds a predetermined threshold value, and the control is performed so that the sub area where the evaluation value is the largest is selected as a focus evaluation target area and the focus position search of the focus lens is performed. It is.

また、好ましくは、本発明のカメラ装置における制御部は、前記フォーカスレンズの合焦位置探索中に前記メインエリアのAF評価値が所定閾値を超えたことを検出した場合、該メインエリアを前記合焦評価対象エリアとして前記サブエリアから切り替えて該フォーカスレンズの合焦位置探索を行うように制御する。   Preferably, when the control unit in the camera device of the present invention detects that the AF evaluation value of the main area exceeds a predetermined threshold during the focus position search of the focus lens, the control unit detects the alignment of the main area. Control is performed so as to perform a focus position search of the focus lens by switching from the sub-area as the focus evaluation target area.

さらに、好ましくは、本発明のカメラ装置における制御部は、前記メインエリアのAF評価値が所定閾値を超えない状態のまま、前記サブエリアで合焦位置に到達したことを検出した場合、その到達した位置を合焦位置とする。   Further preferably, when the control unit in the camera device of the present invention detects that the in-focus position has been reached in the sub area while the AF evaluation value of the main area does not exceed a predetermined threshold value, the arrival is reached. This position is set as the in-focus position.

さらに、好ましくは、本発明のカメラ装置における制御部は、前記メインエリアおよび前記サブエリア全てのAF評価値に対して各AF評価値が所定の閾値よりも大きいかどうかを決定し、該メインエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、該メインエリアの評価値をCAF合焦位置計算用にメモリ内に保存し、該メインエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、該サブエリアの評価値をCAF合焦位置計算用に該メモリ内に保存するAF評価値選択手段を有する。   Further preferably, the control unit in the camera device of the present invention determines whether or not each AF evaluation value is larger than a predetermined threshold with respect to the AF evaluation values of all of the main area and the sub area, and the main area When it is detected that the AF evaluation value of the main area is larger than a predetermined threshold value, the evaluation value of the main area is stored in the memory for CAF focus position calculation, and the AF evaluation value of the main area exceeds the predetermined threshold value. If it is detected that the sub-area is smaller, the AF evaluation value selection means for storing the evaluation value of the sub-area in the memory for CAF focus position calculation is provided.

さらに、好ましくは、本発明のカメラ装置におけるAF評価値選択手段は、前記メインエリアおよび前記サブエリア全てのAF評価値に対して各AF評価値が所定の閾値よりも大きいかどうかを決定するAF評価値判定手段と、該メインエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、該メインエリアの評価値をCAF合焦位置計算用にメモリ内に保存するメインエリア選択手段と、該メインエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、該サブエリアの評価値をCAF合焦位置計算用に該メモリ内に保存するサブエリア選択手段とを有する。   Further preferably, the AF evaluation value selection means in the camera apparatus of the present invention determines whether or not each AF evaluation value is greater than a predetermined threshold value for all AF evaluation values of the main area and the sub-area. Evaluation value determination means and main area selection means for saving the evaluation value of the main area in the memory for CAF focus position calculation when it is detected that the AF evaluation value of the main area is greater than a predetermined threshold value And sub-area selection means for storing the evaluation value of the sub-area in the memory for CAF focus position calculation when it is detected that the AF evaluation value of the main area is smaller than a predetermined threshold value. .

さらに、好ましくは、本発明のカメラ装置におけるAF評価値選択手段は、前記メインエリアのAF評価値が所定の閾値よりも大きいかどうかを決定するメインエリアAF評価値判定手段と、該メインエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、該メインエリアの評価値をCAF合焦位置計算用にメモリ内に保存するメインエリア選択手段と、該メインエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、前記サブエリアのAF評価値が所定の閾値よりも大きいかどうかを決定するサブエリアAF評価値判定手段と、該サブエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、該サブエリアの評価値をCAF合焦位置計算用にメモリ内に保存するサブエリア選択手段と、該サブエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、レンズ駆動を停止する非合焦レンズ移動停止手段とを有する。   Further preferably, the AF evaluation value selection means in the camera device of the present invention comprises: main area AF evaluation value determination means for determining whether or not the AF evaluation value of the main area is greater than a predetermined threshold; When it is detected that the AF evaluation value is larger than a predetermined threshold, the main area selection means for storing the evaluation value of the main area in the memory for CAF focus position calculation, and the AF evaluation value of the main area Sub-area AF evaluation value determining means for determining whether or not the AF evaluation value of the sub-area is larger than a predetermined threshold when it is detected that the AF evaluation value of the sub-area is smaller than a predetermined threshold; Sub-area selection means for storing the evaluation value of the sub-area in the memory for CAF focus position calculation when it is detected that the sub-area is greater than If the AF evaluation value of A is detected to be smaller than a predetermined threshold value, and a non-focused lens movement stop means for stopping the lens drive.

さらに、好ましくは、本発明のカメラ装置におけるAF評価値選択手段の前段に、前記制御部として、前記フォーカスレンズを初期位置に移動させるように制御する初期位置移動手段と、該フォーカスレンズの初期位置からの移動方向として無限遠端方向かまたは至近端方向かを決定するレンズ移動方向決定手段と、該フォーカスレンズを所定決定方向に1ステップ分の移動を行うフォーカスレンズ移動手段と、前記メインエリアおよび前記サブエリア全てのAF評価値を求めるAF評価値獲得手段とを有する。   Further preferably, in the preceding stage of the AF evaluation value selection means in the camera apparatus of the present invention, as the control unit, an initial position moving means for controlling the focus lens to move to an initial position, and an initial position of the focus lens Lens moving direction determining means for determining whether the moving direction from the infinity end direction or the close end direction is a moving direction from the lens, focus lens moving means for moving the focus lens in a predetermined determining direction, and the main area And AF evaluation value acquisition means for obtaining AF evaluation values of all the sub-areas.

さらに、好ましくは、本発明のカメラ装置におけるAF評価値選択手段の後段に、前記制御部として、前記フォーカスレンズが合焦位置にあるかどうかを決定する合焦位置決定手段と、該合焦位置決定手段で合焦していると判定された場合にレンズ駆動を停止する合焦レンズ移動停止手段と、該合焦位置決定手段で合焦していないと判定された場合に、該フォーカスレンズのAF評価値の変動量の正負を決定して、該AF評価値の変動量が正の場合に移動方向を至近方向に設定し、該AF評価値の変動量が正よりも小さい場合に移動方向を無限遠方向と設定するレンズ移動方向設定手段とを有する。   Further preferably, at the subsequent stage of the AF evaluation value selection means in the camera apparatus of the present invention, as the control unit, a focus position determination means for determining whether or not the focus lens is in a focus position, and the focus position A focusing lens movement stopping unit that stops driving the lens when it is determined by the determining unit to be in focus; and a focus lens determining unit that stops focusing when the focusing position determining unit determines that the lens is not focused. The sign of the fluctuation amount of the AF evaluation value is determined, the movement direction is set to the closest direction when the fluctuation amount of the AF evaluation value is positive, and the movement direction when the fluctuation amount of the AF evaluation value is smaller than positive. Lens moving direction setting means for setting the direction to infinity.

さらに、好ましくは、本発明のカメラ装置において、前記メインエリアは前記撮影画面の中央位置に一つ配置され、前記サブエリアは該メインエリアの周辺に1〜8つ配置されている。   Further preferably, in the camera device of the present invention, one main area is arranged at a center position of the photographing screen, and 1 to 8 sub areas are arranged around the main area.

さらに、好ましくは、本発明のカメラ装置において、前記サブエリアは、前記メインエリアの周辺に配置されたサブエリアの更に周囲にも配置されている。   Still preferably, in a camera device according to the present invention, the sub-area is arranged further around the sub-area arranged around the main area.

本発明のカメラ装置のCAF制御方法は、撮像手段が、結像面に結像される光学像を画像データに変換する撮像ステップと、制御部が、該光学像の焦点調節を行うためにフォーカスレンズを移動させて合焦位置を検出し、検出した合焦位置に該フォーカスレンズを停止させる焦点調節を連続的に行う制御ステップとを有するカメラ装置のCAF制御方法において、該光学像の合焦状態を検出するためのメインエリアと、該メインエリアの周辺に配置された一つ以上のサブエリアとが撮影画面上に配置され、該制御ステップは、該制御部が、前記メインエリアのAF評価値が所定閾値よりも小さいことを検出した場合に、該サブエリアのうちAF評価値が所定閾値を超え、最大となるサブエリアを合焦評価対象エリアとして選択して該フォーカスレンズの合焦位置探索を行うように制御するものであり、そのことにより上記目的が達成される。   According to the CAF control method of the camera device of the present invention, an imaging unit converts an optical image formed on an imaging plane into image data, and a control unit performs focusing to adjust the focus of the optical image. In a CAF control method for a camera apparatus, the method further includes a control step of detecting a focus position by moving a lens, and continuously performing focus adjustment to stop the focus lens at the detected focus position. A main area for detecting a state and one or more sub-areas arranged around the main area are arranged on the photographing screen, and the control step is configured such that the control unit performs AF evaluation of the main area. When it is detected that the value is smaller than a predetermined threshold value, the sub-area where the AF evaluation value exceeds the predetermined threshold value and the largest sub-area is selected as the focus evaluation target area and the focus area is selected. Is intended to control so as to perform the focus position searching of the lens, the objects can be achieved.

また、好ましくは、本発明のカメラ装置のCAF制御方法における制御ステップは、前記制御部が、前記フォーカスレンズの合焦位置探索中に前記メインエリアのAF評価値が所定閾値を超えたことを検出した場合、該メインエリアを前記合焦評価対象エリアとして前記サブエリアから切り替えて該フォーカスレンズの合焦位置探索を行うように制御する。   Preferably, in the CAF control method of the camera device of the present invention, the control step detects that the AF evaluation value of the main area exceeds a predetermined threshold during the focus lens position search of the focus lens. In this case, the main area is switched from the sub area as the focus evaluation target area, and control is performed so as to search the focus position of the focus lens.

さらに、好ましくは、本発明のカメラ装置のCAF制御方法における制御ステップは、前記制御部が、前記メインエリアのAF評価値が所定閾値を超えない状態のまま、前記サブエリアで合焦位置に到達したことを検出した場合、その到達した位置を合焦位置とする。   Still preferably, in a CAF control method for a camera apparatus according to the present invention, the control unit reaches the in-focus position in the sub-area while the control unit does not exceed the predetermined threshold AF evaluation value. If it is detected, the position that has been reached is set as the in-focus position.

さらに、好ましくは、本発明のカメラ装置のCAF制御方法における制御ステップは、 AF評価値選択手段が、前記メインエリアおよび前記サブエリア全てのAF評価値に対して各AF評価値が所定の閾値よりも大きいかどうかを決定し、該メインエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、該メインエリアの評価値をCAF合焦位置計算用にメモリ内に保存し、該メインエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、該サブエリアの評価値をCAF合焦位置計算用に該メモリ内に保存するAF評価値選択ステップを有する。   Further preferably, in the control step in the CAF control method of the camera device of the present invention, the AF evaluation value selection means is configured so that each AF evaluation value is lower than a predetermined threshold value with respect to the AF evaluation values of all the main area and the sub-area. If the AF evaluation value of the main area is detected to be larger than a predetermined threshold, the evaluation value of the main area is stored in a memory for CAF focusing position calculation, When it is detected that the AF evaluation value of the main area is smaller than a predetermined threshold value, an AF evaluation value selection step of storing the evaluation value of the sub area in the memory for CAF focus position calculation is provided.

さらに、好ましくは、本発明のカメラ装置のCAF制御方法におけるAF評価値選択ステップは、AF評価値判定手段が、前記メインエリアおよび前記サブエリア全てのAF評価値に対して各AF評価値が所定の閾値よりも大きいかどうかを決定するAF評価値判定ステップと、該メインエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、メインエリア選択手段が、該メインエリアの評価値をCAF合焦位置計算用にメモリ内に保存するメインエリア選択ステップと、該メインエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、サブエリア選択手段が、該サブエリアの評価値をCAF合焦位置計算用に該メモリ内に保存するサブエリア選択ステップとを有する。   Further preferably, in the AF evaluation value selection step in the CAF control method of the camera device of the present invention, the AF evaluation value determination means determines that each AF evaluation value is predetermined for all the AF evaluation values of the main area and the sub-area. An AF evaluation value determining step for determining whether or not the threshold value is greater than a threshold value of the main area, and when detecting that the AF evaluation value of the main area is greater than a predetermined threshold value, the main area selecting means detects the evaluation value of the main area. Main area selection step for storing the image in the memory for CAF focus position calculation, and when detecting that the AF evaluation value of the main area is smaller than a predetermined threshold, the sub area selection means And a sub-area selection step for storing the evaluation value in the memory for CAF focus position calculation.

さらに、好ましくは、本発明のカメラ装置のCAF制御方法におけるAF評価値選択ステップは、メインエリアAF評価値判定手段が、前記メインエリアのAF評価値が所定の閾値よりも大きいかどうかを決定するメインエリアAF評価値判定ステップと、該メインエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、メインエリア選択手段が、該メインエリアの評価値をCAF合焦位置計算用にメモリ内に保存するメインエリア選択ステップと、該メインエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、サブエリアAF評価値判定手段が、前記サブエリアのAF評価値が所定の閾値よりも大きいかどうかを決定するサブエリアAF評価値判定ステップと、該サブエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、サブエリア選択手段が、該サブエリアの評価値をCAF合焦位置計算用にメモリ内に保存するサブエリア選択ステップと、該サブエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、非合焦レンズ移動停止手段が、レンズ駆動を停止する非合焦レンズ移動停止ステップとを有する。   Further preferably, in the AF evaluation value selection step in the CAF control method of the camera device of the present invention, the main area AF evaluation value determination means determines whether or not the AF evaluation value of the main area is larger than a predetermined threshold value. When the main area AF evaluation value determining step and detecting that the AF evaluation value of the main area is larger than a predetermined threshold value, the main area selection means uses the evaluation value of the main area for CAF focus position calculation. When the main area selection step to be stored in the memory and the AF evaluation value of the main area is detected to be smaller than a predetermined threshold, the sub-area AF evaluation value determining means determines that the AF evaluation value of the sub-area is predetermined. A sub-area AF evaluation value determining step for determining whether or not the threshold is greater than a threshold value, and the AF evaluation value of the sub-area is greater than a predetermined threshold value A sub-area selection step in which the sub-area selection means stores the evaluation value of the sub-area in the memory for CAF focus position calculation when it is detected that it is large, and the AF evaluation value of the sub-area is a predetermined threshold value If it is detected that the distance is smaller than the defocusing lens movement, the defocusing lens movement stopping means has a nonfocusing lens movement stopping step for stopping the lens driving.

さらに、好ましくは、本発明のカメラ装置のCAF制御方法におけるAF評価値選択ステップの前段に、前記制御ステップとして、初期位置移動手段が、前記フォーカスレンズを初期位置に移動させるように制御する初期位置移動ステップと、レンズ移動方向決定手段が、該フォーカスレンズの初期位置からの移動方向として無限遠端方向かまたは至近端方向かを決定するレンズ移動方向決定ステップと、フォーカスレンズ移動手段が、該フォーカスレンズを所定決定方向に1ステップ分の移動を行うフォーカスレンズ移動ステップと、AF評価値獲得手段が、前記メインエリアおよび前記サブエリア全てのAF評価値を求めるAF評価値獲得ステップとを有する。   Further preferably, in the preceding stage of the AF evaluation value selection step in the CAF control method of the camera device of the present invention, as the control step, an initial position moving unit controls the focus lens to move to the initial position. A moving step, a lens moving direction determining means for determining whether the moving direction from the initial position of the focus lens is an infinity end direction or a close end direction, and a focus lens moving means, A focus lens moving step for moving the focus lens by one step in a predetermined determination direction, and an AF evaluation value acquisition means include an AF evaluation value acquisition step for obtaining AF evaluation values for all of the main area and the sub area.

さらに、好ましくは、本発明のカメラ装置のCAF制御方法におけるAF評価値選択ステップの後段に、前記制御ステップとして、合焦位置決定手段が、前記フォーカスレンズが合焦位置にあるかどうかを決定する合焦位置決定ステップと、該合焦位置決定手段で合焦していると判定された場合に、合焦レンズ移動停止手段がレンズ駆動を停止する合焦レンズ移動停止ステップと、該合焦位置決定手段で合焦していないと判定された場合に、レンズ移動方向設定手段が、該フォーカスレンズのAF評価値の変動量の正負を決定して、該AF評価値の変動量が正の場合に移動方向を至近方向に設定し、該AF評価値の変動量が正よりも小さい場合に移動方向を無限遠方向と設定するレンズ移動方向設定ステップとを有する。   Still preferably, in a subsequent stage of the AF evaluation value selection step in the CAF control method of the camera device of the present invention, as the control step, the focus position determination means determines whether or not the focus lens is in the focus position. An in-focus position determining step; an in-focus lens movement stopping step in which the in-focus lens movement stopping means stops driving the lens when it is determined that the in-focus position determining means is in focus; and the in-focus position When the determining unit determines that the in-focus state is not in focus, the lens movement direction setting unit determines whether the AF evaluation value variation amount of the focus lens is positive or negative, and the AF evaluation value variation amount is positive. And a lens moving direction setting step for setting the moving direction to the infinity direction when the moving direction is set to the closest direction and the fluctuation amount of the AF evaluation value is smaller than positive.

さらに、好ましくは、本発明のカメラ装置のCAF制御方法において、前記メインエリアは前記撮影画面の中央位置に一つ配置され、前記サブエリアは該メインエリアの周辺に1〜8つ配置されている。   Still preferably, in a CAF control method for a camera device according to the present invention, one main area is arranged at a center position of the photographing screen, and 1 to 8 subareas are arranged around the main area. .

さらに、好ましくは、本発明のカメラ装置のCAF制御方法において、前記サブエリアは、前記メインエリアの周辺に配置されたサブエリアの更にその周辺にも配置されている。   Still preferably, in a CAF control method for a camera device according to the present invention, the sub-area is further disposed in the periphery of the sub-area disposed in the periphery of the main area.

本発明の制御プログラムは、本発明の上記カメラ装置のCAF制御方法の各ステップをコンピュータに実行させるための処理手順が記述されたものであり、そのことにより上記目的が達成される。   The control program according to the present invention describes a processing procedure for causing a computer to execute each step of the CAF control method for the camera apparatus according to the present invention, thereby achieving the above object.

本発明の可読記憶媒体は、本発明の上記制御プログラムが格納されたコンピュータ読み取り可能なものであり、そのことにより上記目的が達成される。   The readable storage medium of the present invention is a computer-readable storage medium storing the control program of the present invention, thereby achieving the above object.

本発明の電子情報機器は、本発明の上記カメラ装置を画像入力デバイスとして撮像部に用いたものであり、そのことにより上記目的が達成される。   An electronic information device according to the present invention uses the camera device according to the present invention as an image input device in an imaging unit, and thereby achieves the above object.

上記構成により、以下、本発明の作用を説明する。   With the above configuration, the operation of the present invention will be described below.

本発明のカメラ装置においては、結像面に結像される光学像を画像データに変換する撮像手段と、該光学像の焦点調節を行うためにフォーカスレンズを移動させて合焦位置を検出し、検出した合焦位置に該フォーカスレンズを停止させる焦点調節を連続的に行う制御部とを備えたカメラ装置において、光学像の合焦状態を検出するためのメインエリアと、該メインエリアの周辺に配置された一つ以上のサブエリアとが撮影画面上に配置され、制御部は、メインエリアのAF評価値が所定閾値よりも小さいことを検出した場合に、サブエリアのうちAF評価値が所定閾値を超え、最大となるサブエリアを合焦評価対象エリアとして選択してフォーカスレンズの合焦位置探索を行うように制御する。   In the camera device of the present invention, an imaging means for converting an optical image formed on the imaging surface into image data, and a focus lens is moved to detect the in-focus position in order to adjust the focus of the optical image. A main unit for detecting an in-focus state of an optical image, and a periphery of the main area in a camera device including a control unit that continuously performs focus adjustment to stop the focus lens at a detected focus position One or more subareas arranged on the shooting screen and the control unit detects that the AF evaluation value of the main area is smaller than a predetermined threshold, the AF evaluation value of the subarea is Control is performed so as to perform a focus position search of the focus lens by selecting a sub-area that exceeds a predetermined threshold value and becomes the focus evaluation target area.

これによって、制御部は、メインエリアのAF評価値が所定閾値よりも小さい場合に、サブエリアのうちAF評価値が所定閾値を超え、最大となるサブエリアを、合焦評価対象エリアとして選択して焦点探索を行うので、起動またはCAF設定直後、レンズスキャンを違和感なく動作させて、対象被写体Pについて自然な動作でピントを合わせることが可能となる。   As a result, when the AF evaluation value of the main area is smaller than the predetermined threshold, the control unit selects the sub area where the AF evaluation value exceeds the predetermined threshold and becomes the largest among the sub areas as the focus evaluation target area. Therefore, immediately after activation or CAF setting, the lens scan can be operated without a sense of incongruity, and the target subject P can be brought into focus by a natural operation.

以上により、本発明によれば、合焦状態を検出するためのメインエリアと、このメインエリアの周辺に配置した一つ以上のサブエリアとを配置し、制御部が、メインエリアのAF評価値が所定閾値よりも小さい場合に、サブエリアのうちAF評価値が所定閾値を超え、最大となるサブエリアを、合焦評価対象エリアとして選択し、焦点探索を行うため、起動またはCAF設定直後、レンズスキャンを違和感なく動作させて、対象被写体Pについて自然な動作でピントを合わせることができるCAF探索方式を得ることができる。   As described above, according to the present invention, the main area for detecting the in-focus state and one or more sub-areas arranged around the main area are arranged, and the control unit determines the AF evaluation value of the main area. Is smaller than the predetermined threshold value, the sub-area AF evaluation value exceeds the predetermined threshold value, and the largest sub-area is selected as the focus evaluation target area to perform focus search. It is possible to obtain a CAF search method in which the lens scan can be operated without a sense of incongruity and the target subject P can be focused with a natural operation.

本発明の実施形態1におけるカメラ装置の要部構成例を示すブロック図である。It is a block diagram which shows the principal part structural example of the camera apparatus in Embodiment 1 of this invention. 図1のカメラ装置におけるCAF探索方式を示すフローチャートである。It is a flowchart which shows the CAF search system in the camera apparatus of FIG. 図2のステップS3で設定するCAFエリアの配置例を示す撮影画面図である。FIG. 3 is a shooting screen diagram showing an example of arrangement of CAF areas set in step S3 of FIG. 2. 図2のステップS3におけるCAFエリアを図3で配置した場合の、フォーカスレンズ位置におけるAF評価値を模式的にグラフ化した図である。FIG. 4 is a graph schematically showing AF evaluation values at focus lens positions when the CAF area in step S3 of FIG. 2 is arranged in FIG. 3; 図2のカメラ装置のCAF探索方式の特徴部分をより簡潔に示すフローチャートである。FIG. 3 is a flowchart showing the characteristic part of the CAF search method of the camera apparatus of FIG. 本発明の実施形態2として、本発明の実施形態1のカメラ装置を撮像部に用いた電子情報機器の概略構成例を示すブロック図である。It is a block diagram which shows the example of schematic structure of the electronic information device which used the camera apparatus of Embodiment 1 of this invention for the imaging part as Embodiment 2 of this invention.

以下に、本発明のカメラ装置およびそのCAF制御方法の実施形態1および、このカメラ装置の実施形態1を画像入力デバイスとして撮像部に用いた例えばカメラ付き携帯電話装置などの電子情報機器の実施形態2について図面を参照しながら詳細に説明する。   Embodiment 1 of a camera apparatus and a CAF control method thereof according to the present invention, and an embodiment of an electronic information device such as a camera-equipped mobile phone apparatus using Embodiment 1 of the camera apparatus as an image input device in an imaging unit will be described below. 2 will be described in detail with reference to the drawings.

(実施形態1)
図1は、本発明の実施形態1におけるカメラ装置の要部構成例を示すブロック図である。
(Embodiment 1)
FIG. 1 is a block diagram illustrating a configuration example of a main part of the camera device according to the first embodiment of the present invention.

図1において、本実施形態1のカメラ装置10において、被写体光はフォーカスレンズ1を通して、イメージセンサ2に入射される。フォーカスレンズ1は、モータドライバ3により駆動し、光軸方向に移動することにより被写体光像の焦点調節を行う。   In FIG. 1, in the camera apparatus 10 according to the first embodiment, subject light is incident on an image sensor 2 through a focus lens 1. The focus lens 1 is driven by the motor driver 3 and adjusts the focus of the subject light image by moving in the optical axis direction.

モータドライバ3はフォーカスレンズ1を駆動する駆動機構とその駆動回路とをそれぞれ備えており、制御部(CPU)4により制御される。本発明の説明に必要なフォーカスレンズ1のみを図示しているが、ズームレンズやメカシャッタ、絞りなどの光量調節機構を有しても構わない。その場合、それぞれの機構を1つ以上のドライバで駆動し、制御部(CPU)4により制御される。   The motor driver 3 includes a drive mechanism that drives the focus lens 1 and a drive circuit thereof, and is controlled by a control unit (CPU) 4. Although only the focus lens 1 necessary for the description of the present invention is illustrated, a light amount adjustment mechanism such as a zoom lens, a mechanical shutter, and a diaphragm may be provided. In this case, each mechanism is driven by one or more drivers and controlled by a control unit (CPU) 4.

イメージセンサ2は、CCD型固体撮像素子やMOS型固体撮像素子が二次元状に配列された撮像面を有している。撮像面上に結像された被写体像の光強度に応じた電気信号を生成する。イメージセンサ2は、固体撮像素子の他にアナログ信号処理回路やA/D変換器、これらを制御するタイミング発生回路を有しているが本発明の説明に不要であるためこれらはここでは図示しない。イメージセンサ2からはデジタル信号処理回路5に、撮像されたデジタル信号が出力される。   The image sensor 2 has an imaging surface on which a CCD solid-state imaging device and a MOS solid-state imaging device are two-dimensionally arranged. An electrical signal corresponding to the light intensity of the subject image formed on the imaging surface is generated. The image sensor 2 includes an analog signal processing circuit, an A / D converter, and a timing generation circuit for controlling these in addition to the solid-state imaging device, but these are not shown here because they are not necessary for the description of the present invention. . The image sensor 2 outputs the captured digital signal to the digital signal processing circuit 5.

デジタル信号処理回路5では、ゲイン制御回路、輝度信号生成回路および色差信号生成回路など、各種の信号処理回路を備えており、この他に、入力された撮像信号に対して、露出制御回路、ガンマ補正回路、レンズシェーディング補正回路、ホワイトバランス調整回路および輪郭強調回路など種々の画像処理を行う。この露出制御回路においては、撮像画像が適切な明るさになるようイメージセンサ2にフィードバックを行い、撮像素子に入射される光強度を露出時間で調節している。   The digital signal processing circuit 5 includes various signal processing circuits such as a gain control circuit, a luminance signal generation circuit, and a color difference signal generation circuit. In addition to this, an exposure control circuit, gamma Various image processes such as a correction circuit, a lens shading correction circuit, a white balance adjustment circuit, and an edge enhancement circuit are performed. In this exposure control circuit, the image sensor 2 is fed back so that the captured image has appropriate brightness, and the light intensity incident on the image sensor is adjusted by the exposure time.

制御部(CPU)4は、モータードライバ3に対して駆動制御を行い、デジタル信号処理回路5に対しては、AFエリアの座標の計算および設定など、SAF駆動やCAF駆動に必要な制御を行う。また、制御部(CPU)4は、カメラ装置全体の制御を行い、デジタル信号処理回路5から参照されるAE、WBなどの各種情報を用いて画像処理なども行う。   The control unit (CPU) 4 performs drive control on the motor driver 3, and performs control necessary for SAF drive and CAF drive, such as calculation and setting of AF area coordinates, on the digital signal processing circuit 5. . The control unit (CPU) 4 controls the entire camera device, and also performs image processing using various information such as AE and WB referred to from the digital signal processing circuit 5.

制御部(CPU)4は、ワークメモリとして働く揮発性メモリのRAM6を有しており、デジタル信号処理回路5から取得したデータの一時保存などを行う。   The control unit (CPU) 4 has a volatile memory RAM 6 serving as a work memory, and temporarily stores data acquired from the digital signal processing circuit 5.

カメラ装置10に対する外部から設定については、入力装置7から行われる。この外部からの設定は、電源ONやシャッタボタン押下、メニュの選択などが含まれる。入力装置7からの設定はデジタル信号処理回路5を通して制御部(CPU)4に伝達され、実行中の制御プログラムが設定に応じた処理を行う。   The external setting for the camera device 10 is performed from the input device 7. This external setting includes power ON, shutter button press, menu selection, and the like. The setting from the input device 7 is transmitted to the control unit (CPU) 4 through the digital signal processing circuit 5, and the control program being executed performs processing according to the setting.

デジタル信号処理回路5および制御部(CPU)4で画像処理された画像データは、LCDなどへ表示、またはSDカードなど不揮発性メモリへ記録保存するために表示装置・記録媒体8に出力される。   Image data subjected to image processing by the digital signal processing circuit 5 and the control unit (CPU) 4 is output to a display device / recording medium 8 for display on an LCD or the like, or recording and storage in a nonvolatile memory such as an SD card.

したがって、本実施形態1のカメラ装置10は、結像面に結像される光学像を画像データに変換する撮像手段としてのイメージセンサ2と、光学像の焦点調節を行うためにフォーカスレンズ1を移動させて合焦位置を検出し、検出した合焦位置にフォーカスレンズ1を停止させる焦点調節を連続的に行う焦点調節手段を持つモータドライバ3および制御部4とを備え、焦点調節手段を持つモータドライバ3および制御部4は、合焦状態を検出するためのメインエリアと、メインエリアの周辺に配置した一つ以上のサブエリアとを配置し、メインエリアのAF評価値が所定閾値よりも小さい場合に、サブエリアのうちAF評価値が所定閾値を超え、最大となるサブAFエリアを、合焦評価対象エリアとして探索を行うように制御する。   Therefore, the camera apparatus 10 according to the first embodiment includes an image sensor 2 as an imaging unit that converts an optical image formed on the imaging surface into image data, and a focus lens 1 for performing focus adjustment of the optical image. A motor driver 3 having a focus adjusting means for continuously performing focus adjustment for detecting the in-focus position by moving the focus lens 1 and stopping the focus lens 1 at the detected in-focus position, and a control unit 4 are provided. The motor driver 3 and the control unit 4 arrange a main area for detecting the in-focus state and one or more sub areas arranged around the main area, and the AF evaluation value of the main area is lower than a predetermined threshold value. If the sub-area is small, the control is performed so that the sub-AF area in which the AF evaluation value exceeds the predetermined threshold and becomes the maximum is searched as the focus evaluation target area.

制御部4は、合焦位置探索中にメインエリアのAF評価値が所定閾値を超えた場合、メインエリアを合焦評価対象エリアに切り替えて探索を行う。また、制御部4は、メインエリアの評価値が所定閾値を超えない状態のまま、サブAFエリアで合焦位置に到達した場合、その位置を合焦位置とする。   When the AF evaluation value of the main area exceeds a predetermined threshold during the focus position search, the control unit 4 performs the search by switching the main area to the focus evaluation target area. In addition, when the evaluation value of the main area does not exceed the predetermined threshold value and reaches the focus position in the sub AF area, the control unit 4 sets the position as the focus position.

ここで、本実施形態1のカメラ装置10における制御部4のソフトウェア構成について説明する。   Here, the software configuration of the control unit 4 in the camera apparatus 10 according to the first embodiment will be described.

本実施形態1のカメラ装置10における制御部4は、モータドライバ3を介してフォーカスレンズ1を初期位置に移動させるように制御する初期位置移動手段41と、フォーカスレンズ1の初期位置からの移動方向として無限遠端方向かまたは至近端方向かを決定するレンズ移動方向決定手段42と、モータドライバ3を介してフォーカスレンズ1を所定決定方向に1ステップ分の移動を行うフォーカスレンズ移動手段43と、メインエリアおよびその周辺のサブエリア全てのAF評価値を求めるAF評価値獲得手段44と、メインエリアおよびその周辺のサブエリア全てのAF評価値が所定の閾値よりも大きいかどうかを決定し、メインエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、メインエリアの評価値をCAF合焦位置計算用にRAM6内に保存し、メインエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、サブエリアの評価値をCAF合焦位置計算用にRAM6内に保存するAF評価値選択手段45と、フォーカスレンズ1が合焦位置にあるかどうかを決定する合焦位置決定手段46と、合焦位置決定手段46で合焦していると判定された場合にレンズ駆動を停止する合焦レンズ移動停止手段47と、合焦位置決定手段46で合焦していないと判定された場合に、フォーカスレンズ1のAF評価値の変動量の正負を決定して、そのAF評価値の変動量が正の場合に移動方向を至近方向に設定し、そのAF評価値の変動量が正よりも小さい場合に移動方向を無限遠方向と設定するレンズ移動方向設定手段48とを有し、フォーカスレンズ移動手段43の処理に戻って繰り返して焦点調節を連続的に行う。   The control unit 4 in the camera apparatus 10 according to the first embodiment includes an initial position moving unit 41 that controls the focus lens 1 to move to an initial position via the motor driver 3, and a moving direction from the initial position of the focus lens 1. A lens moving direction determining means 42 for determining whether the direction is the infinity end direction or the closest end direction, and a focus lens moving means 43 for moving the focus lens 1 in a predetermined determining direction via the motor driver 3; AF evaluation value acquisition means 44 for obtaining AF evaluation values of all of the main area and its surrounding sub-areas, and determining whether AF evaluation values of all of the main area and its surrounding sub-areas are larger than a predetermined threshold value, When it is detected that the AF evaluation value of the main area is larger than a predetermined threshold, the evaluation value of the main area is set to CAF. The AF is stored in the RAM 6 for calculating the focal position, and the sub-area evaluation value is stored in the RAM 6 for calculating the CAF focus position when it is detected that the AF evaluation value of the main area is smaller than a predetermined threshold. When the evaluation value selection means 45, the focus position determination means 46 for determining whether or not the focus lens 1 is in the focus position, and the focus position determination means 46 determine that the focus is achieved, the lens is driven. When the focusing lens movement stopping means 47 to stop and the focusing position determining means 46 determine that the in-focus state is not in focus, the sign of the AF evaluation value fluctuation amount of the focus lens 1 is determined and the AF evaluation is performed. Lens movement direction setting means 48 is provided for setting the movement direction to the closest direction when the fluctuation amount of the value is positive and setting the movement direction to the infinity direction when the fluctuation amount of the AF evaluation value is smaller than positive. And focus Continuously adjusting the focus repeatedly returns to the processing of lens moving means 43.

AF評価値選択手段45は、メインエリアのAF評価値が所定の閾値よりも大きいかどうかを決定するメインエリアAF評価値判定手段451と、メインエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、メインエリアの評価値をCAF合焦位置計算用にメモリ内に保存するメインエリア選択手段452と、メインエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、サブエリアのAF評価値が所定の閾値よりも大きいかどうかを決定するサブエリアAF評価値判定手段453と、サブエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、サブエリアの評価値をCAF合焦位置計算用にメモリ内に保存するサブエリア選択手段454と、サブエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、レンズ駆動を停止する非合焦レンズ移動停止手段455とを有している。   The AF evaluation value selection means 45 includes a main area AF evaluation value determination means 451 for determining whether or not the AF evaluation value for the main area is greater than a predetermined threshold, and the AF evaluation value for the main area is greater than a predetermined threshold. Is detected, the main area selecting means 452 for storing the evaluation value of the main area in the memory for CAF focus position calculation, and the detection of the AF evaluation value of the main area being smaller than a predetermined threshold value. Sub-area AF evaluation value determining means 453 for determining whether or not the AF evaluation value of the sub-area is larger than a predetermined threshold, and when detecting that the AF evaluation value of the sub-area is larger than the predetermined threshold, Sub-area selection means 454 for storing the evaluation value of the area in the memory for CAF focus position calculation, and the AF evaluation value of the sub-area is smaller than a predetermined threshold value When it is detected that, and a non-focused lens movement stop means 455 for stopping the lens drive.

一方、本実施形態1のカメラ装置10ののCAF制御方法は、図示しない可読記録媒体としてのROMからワークメモリとして働くRAM6内に起動時に読み出された制御プログラムおよびそのデータに基づいて、初期位置移動手段41が、モータドライバ3を介してフォーカスレンズ1を初期位置に移動させるように制御する初期位置移動ステップと、レンズ移動方向決定手段42が、フォーカスレンズ1の初期位置からの移動方向として無限遠端方向かまたは至近端方向かを決定するレンズ移動方向決定ステップと、フォーカスレンズ移動手段43が、モータドライバ3を介してフォーカスレンズ1を所定決定方向に1ステップ分の移動を行うフォーカスレンズ移動ステップと、AF評価値獲得手段44が、メインエリアおよびその周辺のサブエリア全てのAF評価値を求めるAF評価値獲得ステップと、AF評価値選択手段45が、メインエリアおよびその周辺のサブエリア全てのAF評価値が所定の閾値よりも大きいかどうかを決定し、メインエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、メインエリアの評価値をCAF合焦位置計算用にRAM6内に保存し、メインエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、サブエリアの評価値をCAF合焦位置計算用にRAM6内に保存するAF評価値選択ステップと、合焦位置決定手段46が、フォーカスレンズ1が合焦位置にあるかどうかを決定する合焦位置決定ステップと、合焦レンズ移動停止手段47が、合焦位置決定手段46で合焦していると判定された場合にレンズ駆動を停止する合焦レンズ移動停止ステップと、レンズ移動方向設定手段48が、合焦位置決定手段46で合焦していないと判定された場合に、フォーカスレンズ1のAF評価値の変動量の正負を決定して、そのAF評価値の変動量が正の場合に移動方向を至近方向に設定し、そのAF評価値の変動量が正よりも小さい場合に移動方向を無限遠方向と設定するレンズ移動方向設定ステップとを実行し、フォーカスレンズ移動手段43の処理に戻って繰り返して焦点調節を連続的に行う。   On the other hand, the CAF control method of the camera apparatus 10 according to the first embodiment is based on a control program and its data read at startup from a ROM as a readable recording medium (not shown) into a RAM 6 serving as a work memory. An initial position moving step for controlling the moving means 41 to move the focus lens 1 to the initial position via the motor driver 3 and the lens moving direction determining means 42 are infinite as moving directions from the initial position of the focus lens 1. A lens moving direction determining step for determining whether the lens is in the far end direction or the near end direction, and a focus lens in which the focus lens moving unit 43 moves the focus lens 1 by one step in a predetermined determining direction via the motor driver 3. The moving step and the AF evaluation value acquisition means 44 are arranged in the main area and its surroundings. AF evaluation value acquisition step for obtaining AF evaluation values for all sub-areas, and AF evaluation value selection means 45 determine whether or not the AF evaluation values for all of the main area and its surrounding sub-areas are greater than a predetermined threshold, When it is detected that the AF evaluation value of the main area is larger than a predetermined threshold value, the evaluation value of the main area is stored in the RAM 6 for CAF focus position calculation, and the AF evaluation value of the main area is larger than the predetermined threshold value. The AF evaluation value selection step for storing the evaluation value of the sub-area in the RAM 6 for CAF focus position calculation, and the focus position determination means 46, the focus lens 1 is brought to the focus position. When the in-focus position determining step for determining whether or not the in-focus lens moving stop means 47 is determined to be in focus by the in-focus position determining means 46, the lens drive is determined. When the focus position determination unit 46 determines that the in-focus lens movement stop step and the lens movement direction setting unit 48 are not focused, the sign of the amount of change in the AF evaluation value of the focus lens 1 is positive or negative. And the moving direction is set to the closest direction when the fluctuation amount of the AF evaluation value is positive, and the moving direction is set to the infinity direction when the fluctuation amount of the AF evaluation value is smaller than positive. The moving direction setting step is executed, and the process returns to the processing of the focus lens moving unit 43 and is repeatedly performed to perform the focus adjustment continuously.

AF評価値選択ステップは、メインエリアAF評価値判定手段451が、メインエリアのAF評価値が所定の閾値よりも大きいかどうかを決定するメインエリアAF評価値判定ステップと、メインエリア選択手段452が、メインエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、メインエリアの評価値をCAF合焦位置計算用にメモリ内に保存するメインエリア選択ステップと、サブエリアAF評価値判定手段453が、メインエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、サブエリアのAF評価値が所定の閾値よりも大きいかどうかを決定するサブエリアAF評価値判定ステップと、サブエリア選択手段454が、サブエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、サブエリアの評価値をCAF合焦位置計算用にメモリ内に保存するサブエリア選択ステップと、非合焦レンズ移動停止手段455が、サブエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、レンズ駆動を停止する非合焦レンズ移動停止ステップとを有している。   In the AF evaluation value selection step, the main area AF evaluation value determination unit 451 determines whether the main area AF evaluation value is larger than a predetermined threshold value. A main area selection step for storing the evaluation value of the main area in the memory for CAF focus position calculation when it is detected that the AF evaluation value of the main area is greater than a predetermined threshold; and a sub-area AF evaluation value Sub-area AF evaluation value determination step for determining whether or not the AF evaluation value of the sub-area is larger than the predetermined threshold when the determination unit 453 detects that the AF evaluation value of the main area is smaller than the predetermined threshold. When the sub area selection unit 454 detects that the AF evaluation value of the sub area is larger than a predetermined threshold, The sub-area selection step for storing the evaluation value of the area in the memory for CAF in-focus position calculation and the non-focus lens movement stopping means 455 detected that the AF evaluation value of the sub-area is smaller than a predetermined threshold value. A defocusing lens movement stop step for stopping lens driving.

可読記録媒体としてのROM(図示せず)としては、ハードディスクの他、形態自在な光ディスク、光磁気ディスク、磁気ディスクおよびICメモリなどで構成されていてもよい。この制御プログラムおよびそのデータなどがROMに記憶されるが、この制御プログラムおよびそのデータは、他の可読記録媒体から、または、無線、有線またはインターネットなどを介してROMにダウンロードされてもよい。   A ROM (not shown) as a readable recording medium may be composed of a hard disk, a formable optical disk, a magneto-optical disk, a magnetic disk, an IC memory, and the like. This control program and its data are stored in the ROM, but this control program and its data may be downloaded to the ROM from another readable recording medium or via wireless, wired or the Internet.

上記構成により、本実施形態1のカメラ装置10のCAF制御フローについて、図2に基づいて説明する。   With the above configuration, the CAF control flow of the camera apparatus 10 according to the first embodiment will be described with reference to FIG.

図2は、図1のカメラ装置10におけるCAF探索方式を示すフローチャートである。   FIG. 2 is a flowchart showing a CAF search method in the camera apparatus 10 of FIG.

図2に示すように、まず、ステップS1で、外部の入力装置7から、カメラ起動、スリープ状態からの復帰、AF動作モードの変更などの設定が通知される。   As shown in FIG. 2, first, in step S1, settings such as camera activation, return from sleep state, and change of AF operation mode are notified from the external input device 7.

次に、ステップS2でCAF設定状態かどうかを判定する。CAF設定状態の場合(YES)、ステップS3の処理に進み、そうでない場合(NO)は、ステップS4のSAF動作処理に移行する。ステップS4のSAF動作処理は、CAF以外の処理を意味するが、本発明の説明に必要ではないためここではその説明を省略する。   Next, in step S2, it is determined whether or not the CAF is set. If it is in the CAF setting state (YES), the process proceeds to step S3. If not (NO), the process proceeds to the SAF operation process in step S4. The SAF operation process in step S4 means a process other than CAF, but is not necessary for the description of the present invention, so that the description thereof is omitted here.

続いて、ステップS3のCAFエリア設定から、本発明のCAF方式となる。このCAFエリアは、ユーザから指定されるかまたは中央など予め用意された位置をメインエリアとし、その周辺に1つ以上配置したサブエリアとで構成する。制御部(CPU)4で各エリアの座標を計算し、デジタル信号処理回路5に算出された座標を設定する。   Subsequently, the CAF method of the present invention is established from the CAF area setting in step S3. This CAF area is composed of a sub-area that is designated by the user or prepared in advance in the center or the like as a main area, and one or more sub-areas arranged around the main area. The control unit (CPU) 4 calculates the coordinates of each area, and sets the calculated coordinates in the digital signal processing circuit 5.

その後、ステップS5で、レンズ移動位置を初期位置の無限遠側の探索端として、モータドライバ3に設定する。なお、移動位置はRAM6のバッファメモリ61に保存する。次のステップS6でレンズ移動方向を至近方向としてバッファメモリ61に保存する。   Thereafter, in step S5, the lens movement position is set in the motor driver 3 as a search end on the infinity side of the initial position. The moving position is stored in the buffer memory 61 of the RAM 6. In the next step S6, the lens moving direction is stored in the buffer memory 61 as the closest direction.

さらに、ステップS7で、バッファメモリ61内のAF評価値を初期化するために、「0」にクリアする。ここまでが本発明のCAF方式の初期設定処理となる。   In step S7, the AF evaluation value in the buffer memory 61 is cleared to “0” in order to initialize it. This is the initial setting process of the CAF method of the present invention.

ステップS8のレンズ駆動からは、本発明のCAF中のレンズ駆動毎に実行されるフローを示している。   From the lens driving in step S8, a flow executed for each lens driving in the CAF of the present invention is shown.

まず、ステップS8で制御部4はモータドライバ3に1ステップのレンズ駆動の指示を行う。   First, in step S8, the control unit 4 instructs the motor driver 3 to drive the lens in one step.

次に、ステップS9では、ステップS3で設定したCAFエリア全てのAF評価値をデジタル信号処理回路5から取得し、この取得したAF評価値をバッファメモリ61内に保存する。   Next, in step S9, the AF evaluation values of all the CAF areas set in step S3 are acquired from the digital signal processing circuit 5, and the acquired AF evaluation values are stored in the buffer memory 61.

さらに、ステップS10では、ステップS9で保存したメインAF評価値を用い、所定の閾値を超えたかどうかを判定する。閾値は事前に調整された固定の値でもよいし、AFエリアサイズや評価値の大きさなどで固定の値を正規化しても構わない。   In step S10, the main AF evaluation value stored in step S9 is used to determine whether a predetermined threshold has been exceeded. The threshold value may be a fixed value adjusted in advance, or the fixed value may be normalized by the AF area size or the evaluation value.

ステップS10でメインAF評価値が閾値を超えた場合(YES)はステップS13の処理に移行し、ステップS10でメインAF評価値が閾値を超えない場合(NO)はステップS11の処理に移行してサブAF評価値を判定する。   If the main AF evaluation value exceeds the threshold value in step S10 (YES), the process proceeds to step S13. If the main AF evaluation value does not exceed the threshold value in step S10 (NO), the process proceeds to step S11. A sub AF evaluation value is determined.

さらに、ステップS11では、ステップS9で保存したサブAF評価値のうち、最大となるサブエリアのAF評価値を用い、その最大となるサブエリアのAF評価値が所定の閾値を超えたかどうかを判定する。ここで、閾値はステップS10で使用した閾値と同じものを用いる。   Further, in step S11, among the sub AF evaluation values stored in step S9, the AF evaluation value of the maximum sub area is used to determine whether or not the AF evaluation value of the maximum sub area exceeds a predetermined threshold. To do. Here, the threshold value is the same as the threshold value used in step S10.

ステップS11でサブAF評価値が閾値を超えた場合(YES)はステップS13の処理に進み、ステップS11でサブAF評価値が閾値を超えない場合(NO)はステップS12の処理に進んで、ステップS12で非合焦としてレンズ駆動を停止処理する。   If the sub AF evaluation value exceeds the threshold value in step S11 (YES), the process proceeds to step S13. If the sub AF evaluation value does not exceed the threshold value in step S11 (NO), the process proceeds to step S12. In S12, the lens drive is stopped as out of focus.

さらに、ステップS13では、ステップS10またはステップS11で判定に使用されたAF評価値のエリア番号をバッファメモリ61に保存する。この保存するエリア番号はステップS3でCAFエリアを設定したときに連番が割り付けられている。   In step S13, the area number of the AF evaluation value used for the determination in step S10 or step S11 is stored in the buffer memory 61. The area numbers to be stored are assigned serial numbers when the CAF area is set in step S3.

さらに、ステップS14では、ステップS10またはステップS11で判定に使用されたAF評価値の変動量を算出し、この算出したAF評価値の変動量をバッファメモリ61に保存する。この保存したAF評価値の変動量は、ステップS13で保存したエリア番号をキーとしてAF評価値を参照し、AFエリアの現在のAF評価値から、1つ前のAF評価値を減算して算出する。   Further, in step S14, the fluctuation amount of the AF evaluation value used for the determination in step S10 or step S11 is calculated, and the calculated fluctuation amount of the AF evaluation value is stored in the buffer memory 61. The variation amount of the stored AF evaluation value is calculated by referring to the AF evaluation value using the area number stored in step S13 as a key and subtracting the previous AF evaluation value from the current AF evaluation value of the AF area. To do.

さらに、ステップS15は、これまで保存したAF評価値、AF評価値の変動量、移動方向、移動位置を使用して合焦状態かどうかを判定する。合焦状態の判定方法は、ここでは、本発明の説明に重要でないため省略する。   In step S15, it is determined whether or not the in-focus state is obtained by using the AF evaluation value, the variation amount of the AF evaluation value, the moving direction, and the moving position that have been stored so far. The method for determining the in-focus state is omitted here because it is not important for the description of the present invention.

ステップS15で合焦していないと判定された場合(NO)は、ステップS17の処理に移行し、ステップS15で合焦していると判定された場合(YES)は、ステップS16の処理へと進んでレンズ駆動を停止処理する。   If it is determined in step S15 that focus is not achieved (NO), the process proceeds to step S17. If it is determined that focus is achieved in step S15 (YES), the process proceeds to step S16. Proceed to stop the lens drive.

さらに、ステップS17では、ステップS14で保存したAF評価値の変動量を用いて移動方向を計算する。このAF評価値の変動量が「0」よりも大きい場合(YES)は、移動方向を至近方向と設定してステップS18の処理に進み、AF評価値の変動量が「0」以下の場合(NO)は、移動方向を無限遠方向と設定してステップS19の処理に進む。これらのステップS18またはステップS19で設定した移動方向はバッファメモリ61内に保存する。   In step S17, the moving direction is calculated using the AF evaluation value variation stored in step S14. When the variation amount of the AF evaluation value is larger than “0” (YES), the moving direction is set as the closest direction and the process proceeds to step S18. When the variation amount of the AF evaluation value is “0” or less ( NO) sets the moving direction to the infinity direction and proceeds to the process of step S19. The moving direction set in step S18 or step S19 is stored in the buffer memory 61.

さらに、ステップS20では、制御部4は、現在位置と移動方向から次の移動位置を計算し、この計算した次の移動位置をモータードライバ3に設定する。この次の移動位置はバッファメモリ61に保存する。   In step S20, the control unit 4 calculates the next movement position from the current position and the movement direction, and sets the calculated next movement position in the motor driver 3. This next movement position is stored in the buffer memory 61.

続いて、ステップS8のレンズ駆動処理に戻り、上記ステップS8〜S20の処理を合焦状態または非合焦状態になるまで繰り返す。以上が、本発明のCAFの制御フローである。   Subsequently, returning to the lens driving process of step S8, the processes of steps S8 to S20 are repeated until the in-focus state or the out-of-focus state is reached. The above is the CAF control flow of the present invention.

図3は、図2のステップS3で設定するCAFエリアの配置の事例を示す撮影画面図である。   FIG. 3 is a shooting screen diagram showing an example of the arrangement of the CAF area set in step S3 of FIG.

図3において、撮影画面81は、イメージセンサ2で撮像されて表示装置8の表示画面上に表示される画像を示している。撮影画面81に撮影されている被写体84は、ピントを合わせたい対象の被写体で、人物などが該当する。撮影画面81のうち、対象被写体84以外の領域は背景を示しており、この背景は一般的に対象被写体84よりも後方に位置する。ピントを合わせたい対象被写体84の中央にメインエリア82が配置される。   In FIG. 3, a shooting screen 81 shows an image captured by the image sensor 2 and displayed on the display screen of the display device 8. A subject 84 photographed on the photographing screen 81 is a subject to be focused, and corresponds to a person or the like. In the shooting screen 81, an area other than the target subject 84 indicates a background, and this background is generally located behind the target subject 84. A main area 82 is arranged at the center of the subject 84 to be focused.

この事例では、メインエリア82は、撮影画面81の中央に位置している。メインエリア82は、ここでは人物の顔のみが配置されている。メインエリア82の周囲にサブエリア83が等間隔に8つ配置されている。レンズ1が無限遠側にある場合、メインエリア82のコントラストが低い状態にあり、また、フォーカスレンズ1を至近方向に移動させても、変化量が少なく、移動方向が正しく判定される可能性が低い。   In this example, the main area 82 is located at the center of the shooting screen 81. In the main area 82, only human faces are arranged here. Eight sub-areas 83 are arranged around the main area 82 at equal intervals. When the lens 1 is on the infinity side, the contrast of the main area 82 is low, and even if the focus lens 1 is moved in the closest direction, the amount of change is small and the moving direction may be correctly determined. Low.

しかし、このような場合でも、メインエリア82の周辺にサブエリア83を配置することにより、被写体84の境界やその外側の背景など、よりコントラストの高い被写体84がサブエリア83内に含まれる領域が多くなり、移動方向が正しく判定される可能性が高くなる。   However, even in such a case, by arranging the sub area 83 around the main area 82, an area in which the subject 84 with higher contrast, such as the boundary of the subject 84 and the background outside the subject 84, is included in the sub area 83 can be obtained. This increases the possibility that the moving direction is correctly determined.

図4は、図2のステップS3におけるCAFエリアを図3で配置した場合の、フォーカスレンズ位置におけるAF評価値を模式的にグラフ化した図である。なお、簡単にするために、サブエリア83のAF評価値情報は一つのみ図示している。図4の縦軸はAF評価値の量を示し、上方向はAF評価値が大きいことを示している。図4の横軸は、フォーカスレンズ位置を示し、グラフ左側が無限遠側、右側が至近側を示している。   FIG. 4 is a graph schematically showing the AF evaluation value at the focus lens position when the CAF area in step S3 in FIG. 2 is arranged in FIG. For simplicity, only one AF evaluation value information of the sub-area 83 is illustrated. The vertical axis in FIG. 4 indicates the amount of the AF evaluation value, and the upward direction indicates that the AF evaluation value is large. The horizontal axis in FIG. 4 indicates the focus lens position, the left side of the graph indicates the infinity side, and the right side indicates the close side.

図4において、縦破線E1はCAF時にフォーカスレンズ1を可動させる無限遠側の端を示し、縦破線E2は至近側の端を示している。実線L1は、メインエリア82のAF評価値の遷移状態を示しており、破線L2は、メインエリア82の周囲にあるサブエリア83のAF評価値の遷移状態を示している。縦破線P2はサブエリア83で最も評価値が高くなる位置L2mであり、サブエリア83でピントが合う位置はこの位置であることを示している。これと同様に、縦破線P3はメインエリア82で最も評価値が高くなる位置L1mであり、メインエリア82でピントが合う位置を示している。横点線A1は閾値を示しており、縦破線P1はメインエリア82のAF評価値が横点線に示す閾値A1を超える位置を示している。   In FIG. 4, a vertical broken line E1 indicates an end on the infinity side where the focus lens 1 is movable during CAF, and a vertical broken line E2 indicates an end on the closest side. The solid line L1 indicates the transition state of the AF evaluation value in the main area 82, and the broken line L2 indicates the transition state of the AF evaluation value in the sub area 83 around the main area 82. A vertical broken line P2 indicates a position L2m where the evaluation value is highest in the sub-area 83, and the position in focus in the sub-area 83 is this position. Similarly, the vertical broken line P3 is a position L1m where the evaluation value is highest in the main area 82, and indicates a position in focus in the main area 82. A horizontal dotted line A1 indicates a threshold, and a vertical broken line P1 indicates a position where the AF evaluation value of the main area 82 exceeds the threshold A1 indicated by the horizontal dotted line.

図4では、無限遠端を示す縦破線E1から至近側端を示す縦破線E2までの、各エリアのAF評価値の遷移状態を示しているが、CAFでは例えばピントの合う縦破線P3のAF評価値L1mの位置までフォーカスレンズ1が移動したら、それよりも至近側に移動することはない。   FIG. 4 shows the transition state of the AF evaluation value of each area from the vertical broken line E1 indicating the infinity end to the vertical broken line E2 indicating the closest end, but in CAF, for example, the AF of the vertical broken line P3 in focus is in focus. When the focus lens 1 moves to the position of the evaluation value L1m, it does not move closer to it.

この場合、メインエリア82では無限遠端を示す縦破線E1から至近方向の途中までほとんどAF評価値の変動がない。このような状態では、フォーカスレンズ1の移動方向が正しく判断できず、ピントが合わない状態が長く続いてしまう。   In this case, in the main area 82, there is almost no change in the AF evaluation value from the vertical broken line E1 indicating the end at infinity to the middle in the closest direction. In such a state, the moving direction of the focus lens 1 cannot be correctly determined, and the state where the focus is not achieved continues for a long time.

一点破線L3は、メインエリアのAF評価値の遷移状態を示しており、制御部4は、メインエリア82の評価値が所定閾値を超えない状態のまま、サブエリア83で合焦位置に到達した場合、その位置を合焦位置とする。   A one-dot broken line L3 indicates a transition state of the AF evaluation value of the main area, and the control unit 4 has reached the in-focus position in the sub area 83 while the evaluation value of the main area 82 does not exceed the predetermined threshold value. In this case, the position is set as a focus position.

しかし、本実施形態1の発明では、以下のように制御部1が制御し、前述した上記従来の問題を回避することができる。   However, in the invention of the first embodiment, the control unit 1 controls as follows, and the above-described conventional problems can be avoided.

図2のステップS8で、フォーカスレンズ1を無限遠端を示す縦破線E1に移動させる。ここから徐々に至近方向にフォーカスレンズ1を駆動させるが、メインエリア82のAF評価値は閾値を示す横点線A1を下回るため、ステップS10ではNOとなり、ステップS11でサブエリア83のAF評価値を用いて移動方向を判定する。サブエリア83には背景などが領域内にあり、無限遠側のコントラストは閾値を示す横点線A1を超えるため、ステップS11ではYESとなる。また、変動量も一定以上確保可能であるため、ステップS17での変動量の正負の判定により移動方向を至近方向として移動方向が正しく判定される。   In step S8 of FIG. 2, the focus lens 1 is moved to the vertical broken line E1 indicating the end at infinity. From this point, the focus lens 1 is gradually driven in the closest direction. Since the AF evaluation value of the main area 82 falls below the horizontal dotted line A1 indicating the threshold value, NO is determined in step S10, and the AF evaluation value of the sub area 83 is determined in step S11. To determine the direction of movement. The sub-area 83 has a background or the like in the region, and the contrast on the infinity side exceeds the horizontal dotted line A1 indicating the threshold value, so YES is determined in the step S11. Further, since the fluctuation amount can be secured above a certain level, the movement direction is correctly determined by setting the movement direction as the closest direction by determining whether the fluctuation amount is positive or negative in step S17.

サブエリア83のAF評価値を用いて、ステップS8からステップS20までの処理を繰り返し、フォーカスレンズ1を至近方向へ移動すると、サブエリア83のピントが合う位置を示す縦破線P2への到達前に、縦破線P1の時点で、メインエリア82のAF評価値が閾値を示す横点線A1を超える。このため、ここから至近方向へのフォーカスレンズ1の移動は、実線L1のメインエリア82のAF評価値を使用して、フォーカスレンズ1の至近方向への移動を行う。この至近方向への移動をメインエリア82のピントが合う位置を示す縦破線P3まで繰り返す。   Using the AF evaluation value of the sub-area 83, the processing from step S8 to step S20 is repeated, and when the focus lens 1 is moved in the closest direction, before reaching the vertical broken line P2 indicating the focus position of the sub-area 83. At the time of the vertical broken line P1, the AF evaluation value of the main area 82 exceeds the horizontal dotted line A1 indicating the threshold value. For this reason, the movement of the focus lens 1 from here to the closest direction uses the AF evaluation value of the main area 82 of the solid line L1 to move the focus lens 1 in the closest direction. This movement in the close direction is repeated up to a vertical broken line P3 indicating a position where the main area 82 is in focus.

ここで、図2のカメラ装置10のCAF探索方式を本実施形態1の動作原理として図5を参照して詳細に説明する。   Here, the CAF search method of the camera apparatus 10 of FIG. 2 will be described in detail with reference to FIG. 5 as the operation principle of the first embodiment.

図5は、図2のカメラ装置10のCAF探索方式の特徴部分をより簡潔に示すフローチャートである。   FIG. 5 is a flowchart showing the characteristic part of the CAF search method of the camera apparatus 10 of FIG. 2 more simply.

図5に示すように、まず、ステップS31において、制御部4は、モータドライバ3を介してフォーカスレンズ1を初期位置(無限遠端)に移動させるように制御する。   As shown in FIG. 5, first, in step S <b> 31, the control unit 4 controls the focus lens 1 to move to the initial position (infinity end) via the motor driver 3.

次に、ステップS32において、制御部4は、移動方向を決定する。制御部4が、移動方向として無限遠端から至近方向かまたはその逆方向かを決定する。   Next, in step S32, the control unit 4 determines the moving direction. The control unit 4 determines whether the moving direction is the close direction from the infinity end or the opposite direction.

続いて、ステップS33において、制御部4は、設定CAFエリア(AF対象エリアおよび周辺エリア)全てのAF評価値をデジタル信号処理回路5から取得し、この取得したAF評価値をRAM6のバッファメモリ61内に保存する。   Subsequently, in step S33, the control unit 4 acquires the AF evaluation values of all the set CAF areas (AF target area and peripheral area) from the digital signal processing circuit 5, and acquires the acquired AF evaluation values in the buffer memory 61 of the RAM 6. Save in.

さらに、ステップS34において、制御部4は、モータドライバ3を介してフォーカスレンズ1を所定方向に1ステップ分の移動を行う。   Further, in step S <b> 34, the control unit 4 moves the focus lens 1 by one step in a predetermined direction via the motor driver 3.

さらに、ステップS35において、制御部4は、設定CAFエリア(AF対象エリアおよび周辺エリア)全てのAF評価値をデジタル信号処理回路5から取得し、この取得したAF評価値をRAM6のバッファメモリ61内に保存する。   Further, in step S35, the control unit 4 acquires the AF evaluation values of all the set CAF areas (AF target area and peripheral area) from the digital signal processing circuit 5, and stores the acquired AF evaluation values in the buffer memory 61 of the RAM 6. Save to.

さらに、ステップS36において、制御部4は、AF対象エリア評価値が閾値よりも大きいかどうかを決定し、AF対象エリア評価値が閾値よりも大きければ(YES)、ステップS37の処理に移行し、AF対象エリアの評価値が閾値よりも小さければ(NO)、ステップS38の処理に移行する。   Furthermore, in step S36, the control unit 4 determines whether or not the AF target area evaluation value is larger than the threshold value. If the AF target area evaluation value is larger than the threshold value (YES), the process proceeds to step S37. If the evaluation value of the AF target area is smaller than the threshold value (NO), the process proceeds to step S38.

さらに、ステップS37において、制御部4は、AF対象エリア(メインエリア82)の評価値をCAF合焦位置計算用にRAM6のバッファメモリ61内に保存する。   Furthermore, in step S37, the control unit 4 stores the evaluation value of the AF target area (main area 82) in the buffer memory 61 of the RAM 6 for CAF focus position calculation.

さらに、ステップS38において、制御部4は、周辺エリア(サブエリア83)の評価値をCAF合焦位置計算用にRAM6のバッファメモリ61内に保存する。   Further, in step S38, the control unit 4 stores the evaluation value of the peripheral area (subarea 83) in the buffer memory 61 of the RAM 6 for CAF focus position calculation.

さらに、ステップS39において、制御部4は、これまで保存したAF評価値、AF評価値の変動量、移動方向、移動位置を使用してフォーカスレンズ1が合焦状態であるかどうかを決定する。ステップS39で合焦していると判定された場合(YES)は、ステップS40の処理へと進んでレンズ駆動を停止処理する。また、ステップS39で合焦していないと判定された場合(NO)は、ステップS41の処理に移行し、ステップS41でフォーカスレンズ1の移動方向を決定する。即ち、制御部4は、フォーカスレンズ1のAF評価値の変動量の正負を決定して、AF評価値の変動量が正の場合に移動方向を至近方向と設定し、AF評価値の変動量が正よりも小さい場合に移動方向を無限遠方向と設定する。   Further, in step S39, the control unit 4 determines whether or not the focus lens 1 is in an in-focus state using the AF evaluation value, the variation amount of the AF evaluation value, the moving direction, and the moving position that have been stored so far. If it is determined in step S39 that the subject is in focus (YES), the process proceeds to step S40 to stop the lens drive. If it is determined in step S39 that the subject is not in focus (NO), the process proceeds to step S41, and the moving direction of the focus lens 1 is determined in step S41. That is, the control unit 4 determines whether the AF evaluation value fluctuation amount of the focus lens 1 is positive or negative, sets the moving direction as the closest direction when the AF evaluation value fluctuation amount is positive, and changes the AF evaluation value fluctuation amount. When is smaller than positive, the moving direction is set to infinity.

したがって、本実施形態1のコンティニュアスAFの探索方式は、結像面に結像される光学像を画像データに変換するイメージセンサ2と、光学像の焦点調節を行うためにフォーカスレンズ1を移動させて合焦位置を検出し、検出した合焦位置にフォーカスレンズ1を停止させる焦点調節を連続的に行う制御部4およびこれによって制御されるモータドライバ3とを備えたカメラ装置10において、合焦状態を検出するためのメインエリアと、このメインエリア82の周辺に配置した一つ以上のサブエリア83とを配置し、制御部4は、メインエリア82のAF評価値が所定閾値よりも小さい場合に、サブエリア83のうちAF評価値が所定閾値を超え、最大となるサブエリア83を、合焦評価対象エリアとして選択し、焦点探索を行うように制御する。   Therefore, the search method for continuous AF according to the first embodiment includes an image sensor 2 that converts an optical image formed on the imaging surface into image data, and a focus lens 1 for adjusting the focus of the optical image. In the camera device 10 including the control unit 4 that continuously moves the focus position to detect the focus position and stops the focus lens 1 at the detected focus position, and the motor driver 3 controlled thereby. A main area for detecting the in-focus state and one or more sub areas 83 arranged around the main area 82 are arranged, and the control unit 4 determines that the AF evaluation value of the main area 82 is lower than a predetermined threshold value. When it is small, the sub-area 83 in which the AF evaluation value exceeds the predetermined threshold and becomes the maximum is selected as the focus evaluation target area, and the focus search is performed. Control to.

この場合に、制御部4は、合焦位置探索中にメインエリア82のAF評価値が所定閾値を超えた場合に、メインエリア82を合焦評価対象エリアとして切り替え、焦点探索を行うように制御する。   In this case, when the AF evaluation value of the main area 82 exceeds a predetermined threshold during the focus position search, the control unit 4 performs control so that the main area 82 is switched as the focus evaluation target area and the focus search is performed. To do.

また、制御部4は、メインエリア82のAF評価値が所定閾値を超えない状態のまま、サブエリア83で合焦位置に到達した場合、その到達した位置を合焦位置とする。   Further, when the AF evaluation value of the main area 82 does not exceed the predetermined threshold value and reaches the in-focus position in the sub-area 83, the control unit 4 sets the reached position as the in-focus position.

以上のように、本実施形態1によれば、合焦状態を検出するためのメインエリアと、このメインエリア82の周辺に配置した一つ以上のサブエリア83とを配置し、メインエリア82のAF評価値が所定閾値よりも小さい場合に、サブエリア83のうちAF評価値が所定閾値を超え、最大となるサブエリア83を、合焦評価対象エリアとして選択し、焦点探索を行うため、起動またはCAF設定直後、レンズスキャンを違和感なく動作させて、対象被写体Pについて自然な動作でピントを合わせることができるCAF探索方式を得ることができる。   As described above, according to the first embodiment, the main area for detecting the in-focus state and one or more sub-areas 83 arranged around the main area 82 are arranged. When the AF evaluation value is smaller than the predetermined threshold value, the sub-area 83 that has the AF evaluation value exceeding the predetermined threshold value and becomes the maximum is selected as the focus evaluation target area, and the focus search is performed. Alternatively, it is possible to obtain a CAF search method in which the lens scan can be operated without a sense of incongruity immediately after setting the CAF, and the target subject P can be focused with a natural operation.

なお、上記実施形態1では、カメラ装置10は、フォーカスレンズ1と、イメージセンサ2と、モータドライバ3と、制御部(CPU)4と、デジタル信号処理回路5と、RAM6と、入力装置7と、表示装置・記録媒体8とを有する場合について説明したが、これに限らず、被写体を撮像した各画素毎の撮像信号に対して所定の信号処理を行ってカラー画像信号を得るカメラ装置91として、フォーカスレンズ1と、イメージセンサ2と、モータドライバ3と、制御部(CPU)4と、デジタル信号処理回路5と、RAM6と、入力装置7とを有していてもよい。   In the first embodiment, the camera device 10 includes the focus lens 1, the image sensor 2, the motor driver 3, the control unit (CPU) 4, the digital signal processing circuit 5, the RAM 6, and the input device 7. However, the present invention is not limited to this, and the camera device 91 that obtains a color image signal by performing predetermined signal processing on an imaging signal for each pixel that images a subject is described. The focus lens 1, the image sensor 2, the motor driver 3, a control unit (CPU) 4, a digital signal processing circuit 5, a RAM 6, and an input device 7 may be included.

なお、上記実施形態1では、AF評価値選択手段45は、メインエリアのAF評価値が所定の閾値よりも大きいかどうかを決定するメインエリアAF評価値判定手段451と、メインエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、メインエリアの評価値をCAF合焦位置計算用にメモリ内に保存するメインエリア選択手段452と、メインエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、サブエリアのAF評価値が所定の閾値よりも大きいかどうかを決定するサブエリアAF評価値判定手段453と、サブエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、サブエリアの評価値をCAF合焦位置計算用にメモリ内に保存するサブエリア選択手段454と、サブエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、レンズ駆動を停止する非合焦レンズ移動停止手段455とを有する場合について説明したが、これに限らず、AF評価値選択手段は、メインエリアおよびサブエリア全てのAF評価値が所定の閾値よりも大きいかどうかを決定するAF評価値判定手段と、メインエリアのAF評価値が所定の閾値よりも大きい場合に、メインエリアの評価値をCAF合焦位置計算用にメモリ内に保存するメインエリア選択手段と、メインエリアのAF評価値が所定の閾値よりも小さい場合に、サブエリアの評価値をCAF合焦位置計算用に該メモリ内に保存するサブエリア選択手段とを有する場合であってもよい。   In the first embodiment, the AF evaluation value selection unit 45 includes the main area AF evaluation value determination unit 451 that determines whether the AF evaluation value of the main area is greater than a predetermined threshold value, and the AF evaluation value of the main area. Is detected to be larger than a predetermined threshold, the main area selection means 452 for storing the evaluation value of the main area in the memory for CAF focus position calculation, and the AF evaluation value of the main area is lower than the predetermined threshold. Is detected, the sub-area AF evaluation value determining means 453 determines whether or not the sub-area AF evaluation value is larger than a predetermined threshold, and the sub-area AF evaluation value is larger than the predetermined threshold. The sub-area selection means 454 for storing the evaluation value of the sub-area in the memory for CAF focus position calculation, and the AF evaluation of the sub-area. Although it has been described that the lens has the non-focus lens movement stop means 455 for stopping the lens drive when it is detected that the value is smaller than a predetermined threshold value, the AF evaluation value selection means is not limited to this. AF evaluation value determining means for determining whether or not the AF evaluation values of all areas and sub-areas are larger than a predetermined threshold value, and when the AF evaluation value of the main area is larger than a predetermined threshold value, the evaluation value of the main area is Main area selecting means for storing in the memory for calculating the CAF focus position, and when the AF evaluation value of the main area is smaller than a predetermined threshold, the evaluation value of the sub area is stored in the memory for calculating the CAF focus position. And a sub-area selection means for storing the data.

(実施形態2)
図6は、本発明の実施形態2として、本発明の実施形態1のカメラ装置を撮像部に用いた電子情報機器の概略構成例を示すブロック図である。
(Embodiment 2)
FIG. 6 is a block diagram illustrating a schematic configuration example of an electronic information device using the camera apparatus according to the first embodiment of the present invention as an imaging unit as the second embodiment of the present invention.

図6において、本実施形態2の電子情報機器90は、上記実施形態1において、カメラ装置10の代わりに、被写体を撮像した各画素毎の撮像信号に対して所定の信号処理を行ってカラー画像信号を得るカメラ装置91と、このカメラ装置91からのカラー画像信号を記録用に所定の信号処理した後にデータ記録可能とする記録メディアなどのメモリ部92と、このカメラ装置91からのカラー画像信号を表示用に所定の信号処理した後に液晶表示画面などの表示画面上に表示可能とする液晶表示装置などの表示部93と、このカメラ装置91からのカラー画像信号を通信用に所定の信号処理をした後に通信処理可能とする送受信装置などの通信部94と、このカメラ装置91からのカラー画像信号を印刷用に所定の印刷信号処理をした後に印刷処理可能とするプリンタなどの画像出力部95とを有している。なお、この電子情報機器90として、これに限らず、カメラ装置91の他に、メモリ部92と、表示部93と、通信部94と、プリンタなどの画像出力部95とのうちの少なくともいずれかを有していてもよい。   In FIG. 6, the electronic information device 90 according to the second embodiment performs color signal images by performing predetermined signal processing on an imaging signal for each pixel in which a subject is imaged instead of the camera device 10 in the first embodiment. A camera device 91 for obtaining a signal, a memory unit 92 such as a recording medium that enables data recording after a predetermined signal processing is performed on the color image signal from the camera device 91 for recording, and a color image signal from the camera device 91 Display unit 93 such as a liquid crystal display device that can display the image on a display screen such as a liquid crystal display screen after predetermined signal processing for display, and predetermined signal processing for color image signals from this camera device 91 for communication After performing a predetermined print signal processing for printing the color image signal from the communication device 94 such as a transmission / reception device and the camera device 91 that can perform communication processing after printing And an image output unit 95 such as a printer which allows printing process. The electronic information device 90 is not limited to this, and in addition to the camera device 91, at least one of a memory unit 92, a display unit 93, a communication unit 94, and an image output unit 95 such as a printer. You may have.

この電子情報機器90としては、前述したように例えばデジタルビデオカメラ、デジタルスチルカメラなどのデジタルカメラや、監視カメラ、ドアホンカメラ、車載用後方監視カメラなどの車載用カメラおよびテレビジョン電話用カメラなどの画像入力カメラ、スキャナ装置、ファクシミリ装置、カメラ付き携帯電話装置および携帯端末装置(PDA)などの画像入力デバイスを有した電子機器が考えられる。   As described above, the electronic information device 90 includes, for example, a digital camera such as a digital video camera and a digital still camera, an in-vehicle camera such as a surveillance camera, a door phone camera, and an in-vehicle rear surveillance camera, and a video phone camera. An electronic device having an image input device such as an image input camera, a scanner device, a facsimile device, a camera-equipped mobile phone device, and a portable terminal device (PDA) is conceivable.

したがって、本実施形態2によれば、このカメラ装置91からのカラー画像信号に基づいて、これを表示画面上に良好に表示したり、これを紙面にて画像出力部95により良好にプリントアウト(印刷)したり、これを通信データとして有線または無線にて良好に通信したり、これをメモリ部92に所定のデータ圧縮処理を行って良好に記憶したり、各種データ処理を良好に行うことができる。   Therefore, according to the second embodiment, based on the color image signal from the camera device 91, the image is displayed on the display screen, or is printed out by the image output unit 95 on the paper. Printing), communicating this as communication data in a wired or wireless manner, storing it in the memory unit 92 by performing predetermined data compression processing, and performing various data processing in good condition. it can.

以上のように、本発明の好ましい実施形態1、2を用いて本発明を例示してきたが、本発明は、この実施形態1、2に限定して解釈されるべきものではない。本発明は、特許請求の範囲によってのみその範囲が解釈されるべきであることが理解される。当業者は、本発明の具体的な好ましい実施形態1、2の記載から、本発明の記載および技術常識に基づいて等価な範囲を実施することができることが理解される。本明細書において引用した特許、特許出願および文献は、その内容自体が具体的に本明細書に記載されているのと同様にその内容が本明細書に対する参考として援用されるべきであることが理解される。   As mentioned above, although this invention was illustrated using preferable Embodiment 1, 2 of this invention, this invention should not be limited and limited to this Embodiment 1,2. It is understood that the scope of the present invention should be construed only by the claims. It is understood that those skilled in the art can implement an equivalent range based on the description of the present invention and the common general technical knowledge, from the description of specific preferred embodiments 1 and 2 of the present invention. Patents, patent applications, and documents cited herein should be incorporated by reference in their entirety, as if the contents themselves were specifically described herein. Understood.

本発明は、コントラスト方式でオートフォーカス動作を行い、シャッタ半押しなどによる指示がなくても自動焦点調節を行うコンティニュアスオートフォーカス(以下「CAF」と略記する)機能を有するカメラ装置およびそのCAF制御方法、このカメラ装置を画像入力デバイスとして撮像部に用いた例えばデジタルビデオカメラおよびデジタルスチルカメラなどのデジタルカメラや、監視カメラなどの画像入力カメラ、スキャナ装置、ファクシミリ装置、テレビジョン電話装置、カメラ付き携帯電話装置などの電子情報機器の分野において、合焦状態を検出するためのメインエリアと、このメインエリアの周辺に配置した一つ以上のサブエリアとを配置し、制御部が、メインエリアのAF評価値が所定閾値よりも小さい場合に、サブエリアのうちAF評価値が所定閾値を超え、最大となるサブエリアを、合焦評価対象エリアとして選択し、焦点探索を行うため、起動またはCAF設定直後、レンズスキャンを違和感なく動作させて、対象被写体Pについて自然な動作でピントを合わせることができるCAF探索方式を得ることができる。   The present invention relates to a camera device having a continuous autofocus (hereinafter abbreviated as “CAF”) function for performing autofocus operation by a contrast method and performing autofocus adjustment without an instruction by half-pressing a shutter or the like, and its CAF. Control method, digital camera such as a digital video camera and a digital still camera using this camera device as an image input device in an imaging unit, an image input camera such as a surveillance camera, a scanner device, a facsimile device, a television phone device, a camera In the field of electronic information devices such as mobile phone devices with a mobile phone, a main area for detecting the in-focus state and one or more sub-areas arranged around the main area are arranged. If the AF evaluation value is smaller than the predetermined threshold, In order to select the sub-area where the AF evaluation value exceeds the predetermined threshold and becomes the largest as the focus evaluation target area and perform the focus search, the lens scan is operated without any sense of incongruity immediately after activation or CAF setting. It is possible to obtain a CAF search method capable of focusing on P with a natural operation.

1 フォーカスレンズ
2 イメージセンサ
3 モータドライバ
4 制御部(CPU)
41 初期位置移動手段
42 レンズ移動方向決定手段
43 フォーカスレンズ移動手段
44 AF評価値獲得手段
45 AF評価値選択手段
451 メインエリアAF評価値判定手段
452 メインエリア選択手段
453 サブエリアAF評価値判定手段
454 サブエリア選択手段
455 非合焦レンズ移動停止手段
46 合焦位置決定手段
47 合焦レンズ移動停止手段
48 レンズ移動方向設定手段
5 デジタル信号処理回路
6 RAM
7 入力装置
8 表示装置・記録媒体
10 カメラ装置
81 撮影画面
82 メインエリア
83 サブエリア
84 被写体
L1 実線(メインエリアのAF評価値の遷移状態)
L1m 実線L1で最も評価値が高くなる位置
L2 破線(サブエリアのAF評価値の遷移状態)
L2m 破線L2で最も評価値が高くなる位置
L3 一点破線(メインエリアのAF評価値の遷移状態)
E1 無限遠端を示す縦破線
E2 至近側端を示す縦破線
P1 閾値を示す横点線A1を超える位置を示す縦破線
P2 破線L2でピントの合う縦破線
P3 実線L1でピントの合う縦破線
A1 横点線に示す閾値
90 電子情報機器
91 カメラ装置
92 メモリ部
93 表示部
94 通信部
95 画像出力部
DESCRIPTION OF SYMBOLS 1 Focus lens 2 Image sensor 3 Motor driver 4 Control part (CPU)
41 Initial position moving means 42 Lens moving direction determining means 43 Focus lens moving means 44 AF evaluation value acquiring means 45 AF evaluation value selecting means 451 Main area AF evaluation value determining means 452 Main area selecting means 453 Sub area AF evaluation value determining means 454 Sub-area selection means 455 Non-focus lens movement stop means 46 Focus position determination means 47 Focus lens movement stop means 48 Lens movement direction setting means 5 Digital signal processing circuit 6 RAM
7 Input device 8 Display device / Recording medium 10 Camera device 81 Shooting screen 82 Main area 83 Sub area 84 Subject L1 Solid line (transition state of AF evaluation value of main area)
L1m The position where the evaluation value is highest on the solid line L1
L2m Position where the evaluation value is highest at the broken line L2 L3 One-point broken line (transition state of AF evaluation value of the main area)
E1 Vertical broken line indicating the end at infinity E2 Vertical broken line indicating the near end P1 Vertical broken line indicating the position exceeding the horizontal dotted line A1 indicating the threshold value P2 Vertical broken line in focus at the broken line L2 Vertical broken line in focus at the solid line L1 A1 Horizontal Threshold value indicated by dotted line 90 Electronic information device 91 Camera device 92 Memory unit 93 Display unit 94 Communication unit 95 Image output unit

Claims (23)

結像面に結像される光学像を画像データに変換する撮像手段と、該光学像の焦点調節を行うためにフォーカスレンズを移動させて合焦位置を検出し、検出した合焦位置に該フォーカスレンズを停止させる焦点調節を連続的に行う制御部とを備えたカメラ装置において、
該光学像の合焦状態を検出するためのメインエリアと、該メインエリアの周辺に配置された一つ以上のサブエリアとが撮影画面上に配置され、
該制御部は、
前記メインエリアのAF評価値が所定閾値よりも小さいことを検出した場合に、該サブエリアのうちAF評価値が所定閾値を超え、最大となるサブエリアを合焦評価対象エリアとして選択して該フォーカスレンズの合焦位置探索を行うように制御するカメラ装置。
An imaging unit that converts an optical image formed on the imaging surface into image data, and a focus lens is moved to adjust the focus of the optical image, and the focus position is detected. In a camera device including a control unit that continuously performs focus adjustment to stop the focus lens,
A main area for detecting the in-focus state of the optical image, and one or more sub-areas arranged around the main area are arranged on the photographing screen,
The control unit
When it is detected that the AF evaluation value of the main area is smaller than a predetermined threshold, the sub-area where the AF evaluation value exceeds the predetermined threshold and becomes the largest among the sub-areas is selected as the focus evaluation target area and the A camera device that controls to perform a focus position search of a focus lens.
前記制御部は、前記フォーカスレンズの合焦位置探索中に前記メインエリアのAF評価値が所定閾値を超えたことを検出した場合、該メインエリアを前記合焦評価対象エリアとして前記サブエリアから切り替えて該フォーカスレンズの合焦位置探索を行うように制御する請求項1に記載のカメラ装置。   When the control unit detects that the AF evaluation value of the main area exceeds a predetermined threshold during the focus position search of the focus lens, the control unit switches the main area from the sub area as the focus evaluation target area. The camera device according to claim 1, wherein control is performed so as to perform a focus position search of the focus lens. 前記制御部は、前記メインエリアのAF評価値が所定閾値を超えない状態のまま、前記サブエリアで合焦位置に到達したことを検出した場合、その到達した位置を合焦位置とする請求項1に記載のカメラ装置。   The control unit, when detecting that the in-focus position has been reached in the sub-area while the AF evaluation value of the main area does not exceed a predetermined threshold value, sets the reached position as the in-focus position. The camera device according to 1. 前記制御部は、
前記メインエリアおよび前記サブエリア全てのAF評価値に対して各AF評価値が所定の閾値よりも大きいかどうかを決定し、該メインエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、該メインエリアの評価値をCAF合焦位置計算用にメモリ内に保存し、該メインエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、該サブエリアの評価値をCAF合焦位置計算用に該メモリ内に保存するAF評価値選択手段を有する請求項1に記載のカメラ装置。
The controller is
It is determined whether or not each AF evaluation value is larger than a predetermined threshold for the AF evaluation values of all the main area and the sub-area, and it is detected that the AF evaluation value of the main area is larger than the predetermined threshold. The evaluation value of the main area is stored in the memory for CAF focus position calculation, and the evaluation value of the sub area is detected when it is detected that the AF evaluation value of the main area is smaller than a predetermined threshold value. The camera apparatus according to claim 1, further comprising an AF evaluation value selection unit that stores the image in the memory for CAF focus position calculation.
前記AF評価値選択手段は、
前記メインエリアおよび前記サブエリア全てのAF評価値に対して各AF評価値が所定の閾値よりも大きいかどうかを決定するAF評価値判定手段と、
該メインエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、該メインエリアの評価値をCAF合焦位置計算用にメモリ内に保存するメインエリア選択手段と、
該メインエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、該サブエリアの評価値をCAF合焦位置計算用に該メモリ内に保存するサブエリア選択手段とを有する請求項4に記載のカメラ装置。
The AF evaluation value selection means includes
AF evaluation value determination means for determining whether or not each AF evaluation value is greater than a predetermined threshold for all the AF evaluation values of the main area and the sub-area;
Main area selection means for storing the evaluation value of the main area in a memory for CAF focus position calculation when it is detected that the AF evaluation value of the main area is greater than a predetermined threshold;
A sub-area selection unit that stores the evaluation value of the sub area in the memory for CAF focus position calculation when it is detected that the AF evaluation value of the main area is smaller than a predetermined threshold. 5. The camera device according to 4.
前記AF評価値選択手段は、
前記メインエリアのAF評価値が所定の閾値よりも大きいかどうかを決定するメインエリアAF評価値判定手段と、
該メインエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、該メインエリアの評価値をCAF合焦位置計算用にメモリ内に保存するメインエリア選択手段と、
該メインエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、前記サブエリアのAF評価値が所定の閾値よりも大きいかどうかを決定するサブエリアAF評価値判定手段と、
該サブエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、該サブエリアの評価値をCAF合焦位置計算用にメモリ内に保存するサブエリア選択手段と、
該サブエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、レンズ駆動を停止する非合焦レンズ移動停止手段とを有する請求項4に記載のカメラ装置。
The AF evaluation value selection means includes
Main area AF evaluation value determining means for determining whether the AF evaluation value of the main area is larger than a predetermined threshold;
Main area selection means for storing the evaluation value of the main area in a memory for CAF focus position calculation when it is detected that the AF evaluation value of the main area is greater than a predetermined threshold;
Sub-area AF evaluation value determining means for determining whether or not the AF evaluation value of the sub-area is larger than a predetermined threshold when it is detected that the AF evaluation value of the main area is smaller than a predetermined threshold;
Sub-area selection means for storing the evaluation value of the sub-area in a memory for CAF focus position calculation when it is detected that the AF evaluation value of the sub-area is larger than a predetermined threshold;
The camera apparatus according to claim 4, further comprising a non-focus lens movement stop unit that stops the lens drive when detecting that the AF evaluation value of the sub-area is smaller than a predetermined threshold value.
前記AF評価値選択手段の前段に、前記制御部として、
前記フォーカスレンズを初期位置に移動させるように制御する初期位置移動手段と、
該フォーカスレンズの初期位置からの移動方向として無限遠端方向かまたは至近端方向かを決定するレンズ移動方向決定手段と、
該フォーカスレンズを所定決定方向に1ステップ分の移動を行うフォーカスレンズ移動手段と、
前記メインエリアおよび前記サブエリア全てのAF評価値を求めるAF評価値獲得手段とを有する請求項4に記載のカメラ装置。
Before the AF evaluation value selection means, as the control unit,
An initial position moving means for controlling the focus lens to move to an initial position;
A lens moving direction determining means for determining whether the focus lens is moving from the initial position to the infinity end direction or the close end direction;
Focus lens moving means for moving the focus lens by one step in a predetermined determination direction;
The camera apparatus according to claim 4, further comprising an AF evaluation value acquisition unit that calculates AF evaluation values for all of the main area and the sub area.
前記AF評価値選択手段の後段に、前記制御部として、
前記フォーカスレンズが合焦位置にあるかどうかを決定する合焦位置決定手段と、
該合焦位置決定手段で合焦していると判定された場合にレンズ駆動を停止する合焦レンズ移動停止手段と、
該合焦位置決定手段で合焦していないと判定された場合に、該フォーカスレンズのAF評価値の変動量の正負を決定して、該AF評価値の変動量が正の場合に移動方向を至近方向に設定し、該AF評価値の変動量が正よりも小さい場合に移動方向を無限遠方向と設定するレンズ移動方向設定手段とを有する請求項4に記載のカメラ装置。
As the control unit after the AF evaluation value selection means,
Focusing position determination means for determining whether or not the focus lens is in a focusing position;
A focusing lens movement stop means for stopping the lens drive when it is determined that the in-focus position determination means is in focus;
When the in-focus position determining means determines that the in-focus state is not in focus, the sign of the AF evaluation value variation amount of the focus lens is determined, and the movement direction when the AF evaluation value variation amount is positive The camera apparatus according to claim 4, further comprising: a lens movement direction setting unit that sets the movement direction to an infinite direction when the movement amount of the AF evaluation value is smaller than positive.
前記メインエリアは前記撮影画面の中央位置に一つ配置され、前記サブエリアは該メインエリアの周辺に1〜8つ配置されている請求項1に記載のカメラ装置。   The camera device according to claim 1, wherein one main area is arranged at a center position of the photographing screen, and 1 to 8 sub areas are arranged around the main area. 前記サブエリアは、前記メインエリアの周辺に配置されたサブエリアの更に周囲にも配置されている請求項9に記載のカメラ装置。   The camera device according to claim 9, wherein the sub area is also arranged around a sub area arranged around the main area. 撮像手段が、結像面に結像される光学像を画像データに変換する撮像ステップと、制御部が、該光学像の焦点調節を行うためにフォーカスレンズを移動させて合焦位置を検出し、検出した合焦位置に該フォーカスレンズを停止させる焦点調節を連続的に行う制御ステップとを有するカメラ装置のCAF制御方法において、
該光学像の合焦状態を検出するためのメインエリアと、該メインエリアの周辺に配置された一つ以上のサブエリアとが撮影画面上に配置され、
該制御ステップは、
該制御部が、前記メインエリアのAF評価値が所定閾値よりも小さいことを検出した場合に、該サブエリアのうちAF評価値が所定閾値を超え、最大となるサブエリアを合焦評価対象エリアとして選択して該フォーカスレンズの合焦位置探索を行うように制御するカメラ装置のCAF制御方法。
The imaging means converts the optical image formed on the imaging surface into image data, and the control unit detects the in-focus position by moving the focus lens to adjust the focus of the optical image. A CAF control method for a camera apparatus, comprising: a control step of continuously performing focus adjustment for stopping the focus lens at a detected in-focus position;
A main area for detecting the in-focus state of the optical image, and one or more sub-areas arranged around the main area are arranged on the photographing screen,
The control step includes:
When the control unit detects that the AF evaluation value of the main area is smaller than a predetermined threshold, the sub-area where the AF evaluation value exceeds the predetermined threshold and becomes the maximum among the sub areas is determined as the focus evaluation target area. CAF control method of a camera device that controls to perform a focus position search of the focus lens.
前記制御ステップは、前記制御部が、前記フォーカスレンズの合焦位置探索中に前記メインエリアのAF評価値が所定閾値を超えたことを検出した場合、該メインエリアを前記合焦評価対象エリアとして前記サブエリアから切り替えて該フォーカスレンズの合焦位置探索を行うように制御する請求項11に記載のカメラ装置のCAF制御方法。   In the control step, when the control unit detects that the AF evaluation value of the main area exceeds a predetermined threshold during the focus position search of the focus lens, the main area is set as the focus evaluation target area. The CAF control method for a camera device according to claim 11, wherein control is performed such that a focus position search of the focus lens is performed by switching from the sub area. 前記制御ステップは、前記制御部が、前記メインエリアのAF評価値が所定閾値を超えない状態のまま、前記サブエリアで合焦位置に到達したことを検出した場合、その到達した位置を合焦位置とする請求項11に記載のカメラ装置のCAF制御方法。   In the control step, when the control unit detects that an in-focus position has been reached in the sub-area while the AF evaluation value of the main area does not exceed a predetermined threshold value, the control unit focuses the reached position. The CAF control method for a camera device according to claim 11, wherein the position is a position. 前記制御ステップは、
AF評価値選択手段が、前記メインエリアおよび前記サブエリア全てのAF評価値に対して各AF評価値が所定の閾値よりも大きいかどうかを決定し、該メインエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、該メインエリアの評価値をCAF合焦位置計算用にメモリ内に保存し、該メインエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、該サブエリアの評価値をCAF合焦位置計算用に該メモリ内に保存するAF評価値選択ステップを有する請求項11に記載のカメラ装置のCAF制御方法。
The control step includes
The AF evaluation value selection means determines whether each AF evaluation value is larger than a predetermined threshold with respect to the AF evaluation values of all the main area and the sub-area, and the AF evaluation value of the main area is a predetermined threshold Is detected in the memory for CAF focus position calculation, and it is detected that the AF evaluation value of the main area is smaller than a predetermined threshold. 12. The camera apparatus CAF control method according to claim 11, further comprising an AF evaluation value selection step of storing the evaluation value of the sub-area in the memory for CAF focus position calculation.
前記AF評価値選択ステップは、
AF評価値判定手段が、前記メインエリアおよび前記サブエリア全てのAF評価値に対して各AF評価値が所定の閾値よりも大きいかどうかを決定するAF評価値判定ステップと、
該メインエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、メインエリア選択手段が、該メインエリアの評価値をCAF合焦位置計算用にメモリ内に保存するメインエリア選択ステップと、
該メインエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、サブエリア選択手段が、該サブエリアの評価値をCAF合焦位置計算用に該メモリ内に保存するサブエリア選択ステップとを有する請求項14に記載のカメラ装置のCAF制御方法。
The AF evaluation value selection step includes:
An AF evaluation value determining means for determining whether or not each AF evaluation value is larger than a predetermined threshold for the AF evaluation values of all of the main area and the sub-area;
Main area selection step in which the main area selection means stores the evaluation value of the main area in the memory for CAF focus position calculation when it is detected that the AF evaluation value of the main area is greater than a predetermined threshold value. When,
A sub-area selection in which, when it is detected that the AF evaluation value of the main area is smaller than a predetermined threshold, the sub-area selection means stores the evaluation value of the sub-area in the memory for CAF focus position calculation The CAF control method for a camera device according to claim 14, further comprising a step.
前記AF評価値選択ステップは、
メインエリアAF評価値判定手段が、前記メインエリアのAF評価値が所定の閾値よりも大きいかどうかを決定するメインエリアAF評価値判定ステップと、
該メインエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、メインエリア選択手段が、該メインエリアの評価値をCAF合焦位置計算用にメモリ内に保存するメインエリア選択ステップと、
該メインエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、サブエリアAF評価値判定手段が、前記サブエリアのAF評価値が所定の閾値よりも大きいかどうかを決定するサブエリアAF評価値判定ステップと、
該サブエリアのAF評価値が所定の閾値よりも大きいことを検出した場合に、サブエリア選択手段が、該サブエリアの評価値をCAF合焦位置計算用にメモリ内に保存するサブエリア選択ステップと、
該サブエリアのAF評価値が所定の閾値よりも小さいことを検出した場合に、非合焦レンズ移動停止手段が、レンズ駆動を停止する非合焦レンズ移動停止ステップとを有する請求項14に記載のカメラ装置のCAF制御方法。
The AF evaluation value selection step includes:
A main area AF evaluation value determining means for determining whether an AF evaluation value of the main area is larger than a predetermined threshold;
Main area selection step in which the main area selection means stores the evaluation value of the main area in the memory for CAF focus position calculation when it is detected that the AF evaluation value of the main area is greater than a predetermined threshold value. When,
When it is detected that the AF evaluation value of the main area is smaller than a predetermined threshold, the sub-area AF evaluation value determination means determines whether the AF evaluation value of the sub-area is larger than a predetermined threshold. An area AF evaluation value determination step;
A sub-area selection step in which, when it is detected that the AF evaluation value of the sub-area is larger than a predetermined threshold, the sub-area selection unit stores the evaluation value of the sub-area in the memory for CAF focus position calculation When,
15. The non-focus lens movement stop unit includes a non-focus lens movement stop step of stopping lens driving when detecting that the AF evaluation value of the sub-area is smaller than a predetermined threshold value. CAF control method for the camera apparatus of the present invention.
前記AF評価値選択ステップの前段に、前記制御ステップとして、
初期位置移動手段が、前記フォーカスレンズを初期位置に移動させるように制御する初期位置移動ステップと、
レンズ移動方向決定手段が、該フォーカスレンズの初期位置からの移動方向として無限遠端方向かまたは至近端方向かを決定するレンズ移動方向決定ステップと、
フォーカスレンズ移動手段が、該フォーカスレンズを所定決定方向に1ステップ分の移動を行うフォーカスレンズ移動ステップと、
AF評価値獲得手段が、前記メインエリアおよび前記サブエリア全てのAF評価値を求めるAF評価値獲得ステップとを有する請求項14に記載のカメラ装置のCAF制御方法。
As the control step, before the AF evaluation value selection step,
An initial position moving means for controlling the initial position moving means to move the focus lens to the initial position;
A lens moving direction determining means, wherein the lens moving direction determining means determines whether the focus lens is moving from the initial position to the infinity end direction or the close end direction;
A focus lens moving means for moving the focus lens by one step in a predetermined direction;
15. The CAF control method for a camera device according to claim 14, wherein the AF evaluation value acquisition means includes an AF evaluation value acquisition step for obtaining AF evaluation values for all of the main area and the sub area.
前記AF評価値選択ステップの後段に、前記制御ステップとして、
合焦位置決定手段が、前記フォーカスレンズが合焦位置にあるかどうかを決定する合焦位置決定ステップと、
該合焦位置決定手段で合焦していると判定された場合に、合焦レンズ移動停止手段がレンズ駆動を停止する合焦レンズ移動停止ステップと、
該合焦位置決定手段で合焦していないと判定された場合に、レンズ移動方向設定手段が、該フォーカスレンズのAF評価値の変動量の正負を決定して、該AF評価値の変動量が正の場合に移動方向を至近方向に設定し、該AF評価値の変動量が正よりも小さい場合に移動方向を無限遠方向と設定するレンズ移動方向設定ステップとを有する請求項14に記載のカメラ装置のCAF制御方法。
After the AF evaluation value selection step, as the control step,
An in-focus position determining means for determining whether or not the focus lens is in the in-focus position; and
A focusing lens movement stopping step in which the focusing lens movement stopping unit stops driving the lens when it is determined that the in-focus position determining unit is in focus; and
When it is determined that the in-focus position determination means is not in focus, the lens movement direction setting means determines the amount of change in the AF evaluation value of the focus lens, and the amount of change in the AF evaluation value 15. The lens moving direction setting step of setting a moving direction to a close direction when A is positive, and setting a moving direction as an infinite direction when a fluctuation amount of the AF evaluation value is smaller than positive. CAF control method for the camera apparatus of the present invention.
前記メインエリアは前記撮影画面の中央位置に一つ配置され、前記サブエリアは該メインエリアの周辺に1〜8つ配置されている請求項11に記載のカメラ装置のCAF制御方法。   12. The CAF control method for a camera device according to claim 11, wherein one main area is arranged at a central position of the photographing screen, and 1 to 8 sub areas are arranged around the main area. 前記サブエリアは、前記メインエリアの周辺に配置されたサブエリアの更にその周辺にも配置されている請求項19に記載のカメラ装置のCAF制御方法。   The CAF control method for a camera device according to claim 19, wherein the sub-area is also arranged in the vicinity of the sub-area arranged around the main area. 請求項11〜20のいずれかに記載のカメラ装置のCAF制御方法の各ステップをコンピュータに実行させるための処理手順が記述された制御プログラム。   21. A control program in which a processing procedure for causing a computer to execute each step of the CAF control method for a camera device according to claim 11 is described. 請求項21に記載の制御プログラムが格納されたコンピュータ読み取り可能な可読記憶媒体。   A computer-readable storage medium storing the control program according to claim 21. 請求項1〜10のいずれかに記載のカメラ装置を画像入力デバイスとして撮像部に用いた電子情報機器。   The electronic information apparatus which used the camera apparatus in any one of Claims 1-10 as an image input device for the imaging part.
JP2010148335A 2010-06-29 2010-06-29 Camera device, caf control method thereof, control program, readable storage medium, and electronic information apparatus Pending JP2012013809A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010148335A JP2012013809A (en) 2010-06-29 2010-06-29 Camera device, caf control method thereof, control program, readable storage medium, and electronic information apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010148335A JP2012013809A (en) 2010-06-29 2010-06-29 Camera device, caf control method thereof, control program, readable storage medium, and electronic information apparatus

Publications (1)

Publication Number Publication Date
JP2012013809A true JP2012013809A (en) 2012-01-19

Family

ID=45600346

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010148335A Pending JP2012013809A (en) 2010-06-29 2010-06-29 Camera device, caf control method thereof, control program, readable storage medium, and electronic information apparatus

Country Status (1)

Country Link
JP (1) JP2012013809A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101438904B1 (en) 2012-09-13 2014-09-15 김민석 tri skateboard
WO2016098362A1 (en) * 2014-12-19 2016-06-23 オリンパス株式会社 Imaging device and imaging method
CN108055470A (en) * 2018-01-22 2018-05-18 努比亚技术有限公司 A kind of method of focusing, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0638089A (en) * 1992-07-20 1994-02-10 Konica Corp Automatic focusing device
JPH0646310A (en) * 1992-07-21 1994-02-18 Konica Corp Automatic focusing device
JP2003107328A (en) * 2001-09-28 2003-04-09 Nikon Corp Camera
JP2009069696A (en) * 2007-09-14 2009-04-02 Canon Inc Imaging device and focusing control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0638089A (en) * 1992-07-20 1994-02-10 Konica Corp Automatic focusing device
JPH0646310A (en) * 1992-07-21 1994-02-18 Konica Corp Automatic focusing device
JP2003107328A (en) * 2001-09-28 2003-04-09 Nikon Corp Camera
JP2009069696A (en) * 2007-09-14 2009-04-02 Canon Inc Imaging device and focusing control method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101438904B1 (en) 2012-09-13 2014-09-15 김민석 tri skateboard
WO2016098362A1 (en) * 2014-12-19 2016-06-23 オリンパス株式会社 Imaging device and imaging method
JP2016118634A (en) * 2014-12-19 2016-06-30 オリンパス株式会社 Imaging device and imaging method
CN107111103A (en) * 2014-12-19 2017-08-29 奥林巴斯株式会社 Camera and method for imaging
EP3236302A4 (en) * 2014-12-19 2018-08-22 Olympus Corporation Imaging device and imaging method
US10148866B2 (en) 2014-12-19 2018-12-04 Olympus Corporation Imaging device and imaging method
CN107111103B (en) * 2014-12-19 2019-09-13 奥林巴斯株式会社 Camera and method for imaging
CN108055470A (en) * 2018-01-22 2018-05-18 努比亚技术有限公司 A kind of method of focusing, terminal and storage medium

Similar Documents

Publication Publication Date Title
JP4761146B2 (en) Imaging apparatus and program thereof
JP4288612B2 (en) Image processing apparatus and method, and program
JP2007108412A (en) Autofocus device and its program
JP2007178576A (en) Imaging apparatus and program therefor
JP5051812B2 (en) Imaging apparatus, focusing method thereof, and recording medium
JP2008054177A (en) Imaging apparatus
JP2007133265A (en) Imaging apparatus and imaging method
JP2007052061A (en) Imaging device, focusing operation control method, and electronic information apparatus
KR20100039657A (en) Automatic controlling device of a continuous auto focus and automatic controlling method of the same
JP2008211843A (en) Imaging apparatus and imaging control program
JP6172973B2 (en) Image processing device
JP2008129371A (en) Imaging apparatus
JP2012013809A (en) Camera device, caf control method thereof, control program, readable storage medium, and electronic information apparatus
JP5257969B2 (en) Focus position control device, focus position control method, focus position control program
JP6435527B2 (en) Imaging device
JP2008113466A (en) Electronic camera
JP2007094023A (en) Focus adjustment method of focus lens and imaging apparatus
JP2011154194A (en) Imaging apparatus
JP2011002690A (en) Imaging apparatus, focusing method and program
JP2009198887A (en) Imaging apparatus and program for the same
CN106464783B (en) Image pickup control apparatus, image pickup apparatus, and image pickup control method
JP2011242796A (en) Imaging device, focusing method and program
JP2009194469A (en) Imaging apparatus
JP2018098764A (en) Imaging apparatus and image synthesis method
JP4326997B2 (en) Imaging apparatus, focusing method, control program, and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130401

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140206

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140212

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20140701