JP5446660B2 - Image recognition apparatus and imaging apparatus - Google Patents

Image recognition apparatus and imaging apparatus Download PDF

Info

Publication number
JP5446660B2
JP5446660B2 JP2009219952A JP2009219952A JP5446660B2 JP 5446660 B2 JP5446660 B2 JP 5446660B2 JP 2009219952 A JP2009219952 A JP 2009219952A JP 2009219952 A JP2009219952 A JP 2009219952A JP 5446660 B2 JP5446660 B2 JP 5446660B2
Authority
JP
Japan
Prior art keywords
image
unit
recognition
focus detection
specific target
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.)
Active
Application number
JP2009219952A
Other languages
Japanese (ja)
Other versions
JP2011071671A (en
Inventor
慶子 村松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nikon Corp
Original Assignee
Nikon Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nikon Corp filed Critical Nikon Corp
Priority to JP2009219952A priority Critical patent/JP5446660B2/en
Publication of JP2011071671A publication Critical patent/JP2011071671A/en
Application granted granted Critical
Publication of JP5446660B2 publication Critical patent/JP5446660B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)

Description

本発明は、画像認識装置、および、当該画像認識装置を備える撮像装置に関する。   The present invention relates to an image recognition device and an imaging device including the image recognition device.

従来から、移動する被写体を撮影する際に、指示位置にある被写体像をテンプレート画像として取得し、繰り返し取得する画像中でテンプレート画像と類似した像の位置を検索(テンプレートマッチング)することで、画面を移動する被写体を追尾する画像認識装置を備えるカメラが提案されている。   Conventionally, when shooting a moving subject, the subject image at the indicated position is acquired as a template image, and the image position that is similar to the template image is searched (template matching) in the repeatedly acquired image, thereby displaying the screen. There has been proposed a camera including an image recognition device that tracks a subject that moves the camera.

このような画像認識装置においては、最初に目標被写体にてテンプレート画像を取得したあと、被写体が動くことや、輝度条件が変化する場合に、最新の被写体の形状が、テンプレート画像取得時に対して変化してしまうことがある。このような場合に対応するため、テンプレート画像との差分演算結果によって、テンプレート画像に新たな被写体画像の情報を加えて変更する手法が提案されている(例えば、特許文献1参照)。   In such an image recognition device, after the template image is first acquired with the target subject, the shape of the latest subject changes with respect to the template image acquisition when the subject moves or the luminance condition changes. May end up. In order to cope with such a case, a method has been proposed in which information about a new subject image is added to the template image and changed based on a difference calculation result with the template image (see, for example, Patent Document 1).

特許第3704045号公報Japanese Patent No. 3770445

しかしながら、差分演算結果によってテンプレート画像を変更する場合、誤って背景へ追尾してしまった場合でも、テンプレート画像を変更するための条件を満たす場合には、その背景情報をテンプレート画像に加えていくこととなる。このような場合、テンプレート画像は、少しずつ本来の被写体情報とは異なる情報となってしまう可能性がある。   However, if the template image is changed according to the difference calculation result, even if the background image is mistakenly tracked, if the condition for changing the template image is satisfied, the background information is added to the template image. It becomes. In such a case, there is a possibility that the template image is gradually different from the original subject information.

このように、従来の技術にあっては、正確な被写体位置でテンプレート画像を変更することができない可能性があるため、精度よく被写体位置の変化に追従して追尾することができなくなる可能性があるという問題があった。   As described above, according to the conventional technique, there is a possibility that the template image cannot be changed at an accurate subject position. Therefore, there is a possibility that the tracking cannot be performed accurately following the change in the subject position. There was a problem that there was.

本発明は、このような事情に鑑みてなされたもので、その目的は、より正確な被写体位置でテンプレート画像を変更することができ、精度よく被写体位置の変化に追従して追尾することができる画像認識装置、および、撮像装置を提供することにある。   The present invention has been made in view of such circumstances, and an object of the present invention is to change a template image at a more accurate subject position and to accurately track and follow the change in the subject position. An object is to provide an image recognition device and an imaging device.

この発明は上述した課題を解決するためになされたもので、を撮像する撮像部と、基準とする像に関する基準画像を設定し、前記撮像部によって撮像した画像の中から前記基準画像に相当する特定の対象の像の位置を認識する認識部と、数の焦点検出位置に対する焦点状態を検出する焦点検出部と、記複数の焦点検出位置のいずれかを選択する選択部と、前記選択部によって選択された焦点検出位置、前記認識部によって認識された前記特定の対象の像の位置、及び前記特定の対象の像のサイズに基づいて定められる距離に基づいて、前記基準画像を変更する変更部とを備えることを特徴とする画像認識装置である。
The present invention has been made to solve the problems described above, and setting an imaging unit that captures an image, the reference image relating to the image as a reference, corresponds to the reference image from the image captured by the imaging unit specific recognition unit for recognizing position of the target image and the selection unit for selecting a focus detection unit for detecting the that focal state against the focus detection position of the multiple, either before Symbol plurality of focus detection positions And the focus detection position selected by the selection unit, the position of the image of the specific target recognized by the recognition unit, and the distance determined based on the size of the image of the specific target, an image recognition apparatus characterized by comprising a changing unit for changing the image.

また、この発明は、上記画像認識装置を備えることを特徴とする撮像装置である。   In addition, the present invention is an image pickup apparatus including the image recognition apparatus.

この発明によれば、より正確な被写体位置でテンプレート画像を変更することができ、精度よく被写体位置の変化に追従して追尾することが可能となる。   According to the present invention, the template image can be changed at a more accurate subject position, and tracking can be performed following the change in the subject position with high accuracy.

この発明の一実施形態によるカメラの構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of the camera by one Embodiment of this invention. 図1の制御部の構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of the control part of FIG. 図1の撮像素子の構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of the image pick-up element of FIG. 図3の撮像素子において、1つの撮像素子の構成の一例を示すブロック図である。FIG. 4 is a block diagram illustrating an example of a configuration of one image sensor in the image sensor of FIG. 3. この発明の一実施形態によるカメラの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the camera by one Embodiment of this invention. 図5のステップS2の動作を詳細に示すフローチャートである。It is a flowchart which shows the operation | movement of step S2 of FIG. 5 in detail. 図5のステップS4の動作を詳細に示すフローチャートである。It is a flowchart which shows the operation | movement of step S4 of FIG. 5 in detail. 焦点検出エリアの一例を示す説明図である。It is explanatory drawing which shows an example of a focus detection area. 追尾被写体領域の一例を示す説明図である。It is explanatory drawing which shows an example of a tracking subject area | region. 追尾エリアに対して、採用した焦点検出エリアが中央付近にある場合の一例を示す説明図である。It is explanatory drawing which shows an example in case the employ | adopted focus detection area exists in the center vicinity with respect to a tracking area. 本実施形態によるテンプレート差分演算処理の一例を説明する説明図である。It is explanatory drawing explaining an example of the template difference calculation process by this embodiment. 追尾演算とAF演算とが直列に実行される場合の動作の一例を示すタイミングチャートである。It is a timing chart which shows an example of operation in case tracking operation and AF operation are performed in series. 追尾演算とAF演算とが非同期に実行される場合の動作の一例を示すタイミングチャートである。It is a timing chart which shows an example of operation in case tracking operation and AF operation are performed asynchronously.

以下、図面を参照して、本発明の実施の形態について説明する。図1は、この発明の一実施形態による画像認識装置を備える撮像装置の構成を示す概略ブロック図である。ここでは、撮像装置として、一眼レフデジタルスチルカメラ(以下、カメラとする)の場合について説明する。   Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a schematic block diagram showing a configuration of an imaging apparatus including an image recognition apparatus according to an embodiment of the present invention. Here, a case of a single-lens reflex digital still camera (hereinafter referred to as a camera) will be described as an imaging device.

図1に示すように、カメラは、カメラ本体10と、このカメラ本体10に着脱されるレンズ22とを備えている。このレンズ22は、たとえば、交換レンズである。このレンズ22は、たとえば、焦点調節用レンズを備えている。   As shown in FIG. 1, the camera includes a camera body 10 and a lens 22 that is attached to and detached from the camera body 10. This lens 22 is, for example, an interchangeable lens. The lens 22 includes, for example, a focus adjustment lens.

このカメラにおいて、被写体光はレンズ22を通って、カメラ本体10に入射する。図示しないレリーズボタンが全押しされていない状態においては、レンズ22を通った被写体光は、図1において点線で示す位置にあるクイックリターンミラー11により反射されて焦点版13に結像し、さらにペンタプリズム14で接眼レンズ15に導かれる。   In this camera, the subject light enters the camera body 10 through the lens 22. In a state where the release button (not shown) is not fully pressed, the subject light that has passed through the lens 22 is reflected by the quick return mirror 11 at the position indicated by the dotted line in FIG. The prism 14 guides the eyepiece lens 15.

また、クイックリターンミラー11により反射されて焦点版13に結像した被写体光は、プリズム17と結像レンズ18を通って、撮像素子(撮像部)19に入射して被写体像を結像する。そして、この撮像素子19は、光学系による被写体像を撮像する。   The subject light reflected by the quick return mirror 11 and imaged on the focal plane 13 passes through the prism 17 and the imaging lens 18 and enters the image sensor (imaging unit) 19 to form a subject image. The image sensor 19 captures a subject image by the optical system.

また、レンズ22を通った被写体光は、図1において点線で示す位置にあるクイックリターンミラー11のハーフミラー部分を透過し、ミラー23により反射されて、レンズ22を介して測距素子25に入射する。   Further, the subject light passing through the lens 22 passes through the half mirror portion of the quick return mirror 11 located at the position indicated by the dotted line in FIG. 1, is reflected by the mirror 23, and enters the distance measuring element 25 through the lens 22. To do.

測距素子25は、レリーズボタンの半押しスイッチが操作され半押し信号が入力されたことに応じて、入射された被写体光に基づいて測距し、測距した結果を焦点検出信号として制御部29に出力する。この測距素子25は、たとえば、焦点検出エリアに対応する一対のCCDラインセンサを複数有している。   The distance measuring element 25 measures the distance based on the incident subject light in response to the operation of the half-press switch of the release button and the input of the half-press signal, and the control unit uses the distance measurement result as a focus detection signal. 29. The distance measuring element 25 has a plurality of a pair of CCD line sensors corresponding to the focus detection area, for example.

制御部29は、測距素子25からの焦点検出信号と、撮像素子19からの被写体像とに基づいて、レンズ22の焦点状態を検出し、当該検出した焦点状態に基づいて、レンズ22の焦点を調節する。たとえば、制御部29は、レンズ22が備えるアクチュエータなどの駆動部を介して、レンズ22の焦点調節用レンズの位置を調整する。   The control unit 29 detects the focus state of the lens 22 based on the focus detection signal from the distance measuring element 25 and the subject image from the image sensor 19, and the focus of the lens 22 based on the detected focus state. Adjust. For example, the control unit 29 adjusts the position of the focus adjustment lens of the lens 22 via a driving unit such as an actuator provided in the lens 22.

一方、レリーズボタン全押しにより撮影制御が実行される場合には、クイックリターンミラー11が図1において実線で示す位置に回動して、クイックリターンミラー11は、撮影用撮像素子21への光路上から退避される。そのため、被写体光は、シャッタ20を介してCCD(Charge Coupled Devices)などで構成される撮影用撮像素子21上に結像する。そして、この撮影用撮像素子21は、結像した被写体光を撮像する。   On the other hand, when shooting control is executed by fully pressing the release button, the quick return mirror 11 rotates to the position indicated by the solid line in FIG. 1, and the quick return mirror 11 is on the optical path to the imaging element 21 for shooting. Evacuated from. For this reason, the subject light forms an image on the image pickup device 21 for imaging constituted by a CCD (Charge Coupled Devices) or the like via the shutter 20. The imaging element 21 for imaging images the imaged subject light.

次に、図2を用いて、図1に示した制御部29の構成の一例について説明する。なお、同図において図1の各部に対応する部分には同一の符号を付け、その説明を省略する。   Next, an example of the configuration of the control unit 29 illustrated in FIG. 1 will be described with reference to FIG. In the figure, portions corresponding to those in FIG. 1 are denoted by the same reference numerals, and description thereof is omitted.

焦点検出部34は、測距素子25からの焦点検出信号、すなわち、焦点検出エリアに対応する一対のCCDラインセンサから出力される焦点検出信号に基づいて、デフォーカス量など、光学系の焦点調節状態を検出し、焦点調節量を算出する。このようにして、この焦点検出部34は、画像内の複数の位置に対応して設定された複数の焦点検出位置に対する光学系の焦点状態を検出する。   The focus detection unit 34 adjusts the focus of the optical system such as the defocus amount based on the focus detection signal from the distance measuring element 25, that is, the focus detection signal output from the pair of CCD line sensors corresponding to the focus detection area. The state is detected and the focus adjustment amount is calculated. In this way, the focus detection unit 34 detects the focus state of the optical system with respect to a plurality of focus detection positions set corresponding to the plurality of positions in the image.

この焦点検出部34は、一例としては、選択部341を備えている。選択部341は、焦点状態に基づいて、測距素子25における複数の焦点検出位置のいずれかを選択する。たとえば、選択部341は、後述する追尾制御部32の認識部321によって認識された位置と光学系の焦点状態とに基づいて、複数の焦点検出位置のいずれかを選択する。   For example, the focus detection unit 34 includes a selection unit 341. The selection unit 341 selects one of a plurality of focus detection positions in the distance measuring element 25 based on the focus state. For example, the selection unit 341 selects one of a plurality of focus detection positions based on the position recognized by the recognition unit 321 of the tracking control unit 32 described later and the focus state of the optical system.

レンズ駆動部35は、焦点検出部34からの焦点調節量に基づき、レンズ22に入射する被写体光が撮影用撮像素子21上で結像するように、レンズ22を合焦位置へ駆動する。なお、レンズ22の焦点や絞り値などのレンズ情報は、たとえば、レンズ22がカメラ本体10に取り付けられる場合に、記憶部33のレンズ情報記憶部331に記憶される。このレンズ駆動部35は、たとえば、焦点検出部34からの焦点調節量に、記憶部33のレンズ情報記憶部331から読み出したレンズ情報に基づいて定められる係数を乗じて、レンズ22を合焦位置へ駆動する駆動量を算出する。そして、レンズ駆動部35は、この算出した駆動量に基づいて、レンズ22を合焦位置へ駆動する。   The lens driving unit 35 drives the lens 22 to the in-focus position so that the subject light incident on the lens 22 forms an image on the image pickup device 21 based on the focus adjustment amount from the focus detection unit 34. Note that lens information such as the focus and aperture value of the lens 22 is stored in the lens information storage unit 331 of the storage unit 33 when the lens 22 is attached to the camera body 10, for example. For example, the lens driving unit 35 multiplies the focus adjustment amount from the focus detection unit 34 by a coefficient determined based on the lens information read from the lens information storage unit 331 of the storage unit 33, and moves the lens 22 to the in-focus position. The drive amount to drive to is calculated. Then, the lens driving unit 35 drives the lens 22 to the in-focus position based on the calculated driving amount.

CCD制御部30は、撮像素子19を制御して、撮像素子19に被写体像を撮像させる。ここで、レリーズボタンの半押しスイッチが操作され、レリーズボタンから半押し信号が出力されている間は、クイックリターンミラー11が図1の点線位置の状態にあり、撮像素子19には、レンズ22を介した被写体像が結像されている。そのため、レリーズボタンから半押し信号が出力されている間は、撮像素子19は、常にレンズ22を通って入射される被写体像を取得することができる。よって、例えば半押しスイッチオンにより、CCD制御部30は、撮像素子19を介して追尾被写体の捕捉を開始し、以降この半押し信号が入力されている間は、繰り返し被写体像の画像を取得する事が可能である。   The CCD control unit 30 controls the image sensor 19 to cause the image sensor 19 to capture a subject image. Here, while the half-press switch of the release button is operated and a half-press signal is output from the release button, the quick return mirror 11 is in the state of the dotted line in FIG. A subject image is formed through the. Therefore, while the half-press signal is output from the release button, the image sensor 19 can always acquire the subject image incident through the lens 22. Therefore, for example, when the half-push switch is turned on, the CCD control unit 30 starts capturing the tracking subject via the image sensor 19, and thereafter, while this half-push signal is input, repeatedly acquires the subject image. Things are possible.

A/D変換部31は、撮像素子19からの出力信号を、アナログデジタル変換して、追尾制御部32および露出演算部36に出力する。   The A / D converter 31 converts the output signal from the image sensor 19 from analog to digital, and outputs it to the tracking controller 32 and the exposure calculator 36.

追尾制御部32は、A/D変換部31からの信号、すなわち、撮像素子19によって撮像した画像の中から、特定の対象の像の位置を認識し、認識した位置を焦点検出部34に出力する。   The tracking control unit 32 recognizes the position of a specific target image from the signal from the A / D conversion unit 31, that is, the image captured by the image sensor 19, and outputs the recognized position to the focus detection unit 34. To do.

この追尾制御部32は、一例としては、認識部321と変更部322とを備えている。認識部321は、撮像素子19によって撮像した画像の中から特定の対象の像の位置を認識する。この特定の対象の像とは、たとえば、追尾処理が開始される場合に、ユーザによる操作部の操作に応じて被写体像の中から選択された被写体像、または、顔認識技術等により選択された被写体像である。なお、追尾制御部32は、この特定の対象の像、すなわち、追尾処理が開始される場合に選択された被写体像を、たとえば、テンプレート画像記憶部332に記憶する。   As an example, the tracking control unit 32 includes a recognition unit 321 and a change unit 322. The recognition unit 321 recognizes the position of an image of a specific target from the images captured by the image sensor 19. For example, when the tracking process is started, the specific target image is selected by the subject image selected from the subject images or the face recognition technique according to the operation of the operation unit by the user. It is a subject image. The tracking control unit 32 stores the image of the specific target, that is, the subject image selected when the tracking process is started, in the template image storage unit 332, for example.

変更部322は、認識部321が認識した特定の対象の像の位置と、選択部341が選択した焦点検出位置との位置関係に基づいて、テンプレート画像記憶部332に記憶されている特定の対象の像を変更する。たとえば、変更部322は、選択部341によって選択された焦点検出位置が、認識部321によって認識された特定の対象の像の位置に対応する場合に、特定の対象の像を変更する。一例としては、変更部322は、選択部341によって選択された焦点検出位置が、認識部321によって認識された特定の対象の像の位置の中心位置に対応する場合に、テンプレート画像記憶部332に記憶されている特定の対象の像を変更する。   Based on the positional relationship between the position of the specific target image recognized by the recognition unit 321 and the focus detection position selected by the selection unit 341, the changing unit 322 stores the specific target stored in the template image storage unit 332. Change the image. For example, when the focus detection position selected by the selection unit 341 corresponds to the position of the specific target image recognized by the recognition unit 321, the changing unit 322 changes the specific target image. As an example, the changing unit 322 stores the template image storage unit 332 in the case where the focus detection position selected by the selection unit 341 corresponds to the center position of the position of the specific target image recognized by the recognition unit 321. Change the stored image of a specific object.

また、変更部322は、選択部341によって選択された焦点検出位置と、認識部321によって認識された特定の対象の像の位置との間隔が、認識部321によって認識された特定の対象の像のサイズに基づいて定められる距離以下である場合に、選択部341によって選択された焦点検出位置が、認識部321によって認識された特定の対象の像の位置の中心位置に対応すると判定し、テンプレート画像記憶部332に記憶されている特定の対象の像を変更する。   In addition, the changing unit 322 determines whether the interval between the focus detection position selected by the selection unit 341 and the position of the specific target image recognized by the recognition unit 321 is the specific target image recognized by the recognition unit 321. The focus detection position selected by the selection unit 341 is determined to correspond to the center position of the position of the specific target image recognized by the recognition unit 321 when the distance is less than or equal to the distance determined based on the size of the template The image of the specific target stored in the image storage unit 332 is changed.

また、変更部322は、特定の対象の像の情報と、認識部321によって認識された位置における像の情報とに基づいて、テンプレート画像記憶部332に記憶されている特定の対象の像を変更する。   Further, the changing unit 322 changes the image of the specific target stored in the template image storage unit 332 based on the information on the image of the specific target and the information on the image at the position recognized by the recognition unit 321. To do.

また、変更部322は、テンプレート画像記憶部332に記憶されている特定の対象の像を変更する場合に、特定の対象の像の情報量よりも、認識部321によって認識された像の情報量を多くする。   Further, when changing the image of the specific target stored in the template image storage unit 332, the changing unit 322 has an information amount of the image recognized by the recognition unit 321 rather than an information amount of the specific target image. To increase.

なお、上述した認識部321は、撮像素子19によって撮像した画像の中から、テンプレート画像記憶部332に記憶されている特定の対象の像と一致する位置を検出することにより、撮像素子19によって撮像した画像の中から特定の対象の像の位置を認識する。そして、認識部321は、認識した特定の対象の像の位置を、焦点検出部34に出力する。   Note that the recognition unit 321 described above detects an image captured by the image sensor 19 by detecting a position that matches the image of the specific target stored in the template image storage unit 332 from the images captured by the image sensor 19. The position of a specific target image is recognized from the obtained images. The recognition unit 321 then outputs the recognized position of the specific target image to the focus detection unit 34.

露出演算部36は、A/D変換部31からの出力信号に基づいて露出を決定し、この決定した露出を露出制御制御信号として撮像制御部37へ出力する。この露出演算部36は、露出を決定する場合に、A/D変換部31からの出力信号において、追尾制御部32の認識部321によって認識された位置に対応する出力信号に基づいて、露出を決めてもよい。   The exposure calculation unit 36 determines the exposure based on the output signal from the A / D conversion unit 31 and outputs the determined exposure to the imaging control unit 37 as an exposure control control signal. When determining the exposure, the exposure calculation unit 36 calculates the exposure based on the output signal corresponding to the position recognized by the recognition unit 321 of the tracking control unit 32 in the output signal from the A / D conversion unit 31. You may decide.

撮像制御部37は、露出演算部36からの露出制御制御信号に基づいて、シャッタ20の開閉を制御するとともに、撮影用撮像素子21による撮像を制御して、レンズ22からの被写体像を撮像する。   The imaging control unit 37 controls the opening and closing of the shutter 20 based on the exposure control control signal from the exposure calculation unit 36 and controls the imaging by the imaging imaging device 21 to capture the subject image from the lens 22. .

なお、上述した追尾制御部32と、記憶部33と、焦点検出部34とにより、画像認識装置39が構成されている。   The tracking control unit 32, the storage unit 33, and the focus detection unit 34 described above constitute an image recognition device 39.

図3、4は、撮像素子19の構成の一例を示す図である。撮像素子19はマトリクス状に配列された複数(図3の場合は16×12)の画素を備えている。このひとつの画素は、たとえば図4に示すように、3つの要素a、b、および、cから構成されており、この各要素に対応させてR、G、および、Bの原色フィルターを設けられることにより、結像画像のRGBの各色情報を得ることが可能である。   3 and 4 are diagrams illustrating an example of the configuration of the image sensor 19. The image sensor 19 includes a plurality of pixels (16 × 12 in the case of FIG. 3) arranged in a matrix. For example, as shown in FIG. 4, the one pixel is composed of three elements a, b, and c, and R, G, and B primary color filters are provided corresponding to the respective elements. Thus, it is possible to obtain RGB color information of the formed image.

次に、図5から図7のフローチャート、および、図8から図11の図に基づき、本実施形態によるカメラの動作を説明する。   Next, the operation of the camera according to the present embodiment will be described based on the flowcharts of FIGS. 5 to 7 and the diagrams of FIGS. 8 to 11.

<初期画像取得>
まず、図5のステップS1において、追尾制御部32および露出演算部36は、A/D変換部31を介して、撮像素子19に結像した画像を初期画像として取得する。
<Initial image acquisition>
First, in step S <b> 1 of FIG. 5, the tracking control unit 32 and the exposure calculation unit 36 acquire an image formed on the image sensor 19 as an initial image via the A / D conversion unit 31.

たとえば、この画像取得タイミングは、ファインダ16上に表示されている焦点検出エリア45を、撮影者が不図示の焦点検出エリア操作部を操作することで追尾被写体に対応するエリアを点灯させ、その状態で不図示のカメラのレリーズボタンを半押しすることで画像の取得制御が開始される(図8参照)。   For example, in this image acquisition timing, the focus detection area 45 displayed on the finder 16 is turned on by turning on the area corresponding to the tracking subject by the photographer operating a focus detection area operation unit (not shown). Then, the image acquisition control is started by half-pressing a release button of a camera (not shown) (see FIG. 8).

ここでは、撮影者自身が焦点検出エリアにて追尾被写体を指定する方法を述べたが、この方法にはよらない。たとえば、顔認識技術や移動体検出技術を用いた被写体検出技術により被写体を追尾被写体として検出し、この検出した追尾被写体に対応するエリアが選択されてもよい。   Here, a method has been described in which the photographer himself designates the tracking subject in the focus detection area, but this method is not. For example, a subject may be detected as a tracking subject by subject detection technology using face recognition technology or moving body detection technology, and an area corresponding to the detected tracking subject may be selected.

ここで得た画像情報を、画素毎に下記RGB値で表す。   The image information obtained here is represented by the following RGB values for each pixel.

R[x,y]、G[x,y]、B[x,y] ( x=1〜16, y=1〜12 )       R [x, y], G [x, y], B [x, y] (x = 1-16, y = 1-12)

たとえば、露出演算部36は、このRGB値を元に、各画素の色情報RG、BGおよび、画像を取得した際の露光時間T、ゲインG、色合成係数Kr、Kg、Kbから、輝度情報Lを、次の(式1)から(式3)により算出する。   For example, based on the RGB values, the exposure calculation unit 36 obtains luminance information from the color information RG and BG of each pixel and the exposure time T, gain G, and color composition coefficients Kr, Kg, and Kb when the image is acquired. L is calculated by the following (Expression 1) to (Expression 3).

RG[x,y]=Log2(R[x,y])-Log2(G[x,y]) … (式1)
BG[x,y]=Log2(B[x,y])-Log2(G[x,y]) … (式2)
L[x,y]=Log2(Kr×R[x,y]+Kg×G[x,y]+Kb×B[x,y])−Log2(T)−Log2(G) … (式3)
RG [x, y] = Log2 (R [x, y])-Log2 (G [x, y]) (Formula 1)
BG [x, y] = Log2 (B [x, y])-Log2 (G [x, y]) (Formula 2)
L [x, y] = Log2 (Kr × R [x, y] + Kg × G [x, y] + Kb × B [x, y]) − Log2 (T) −Log2 (G) (Formula 3)

<追尾初期処理>
次に、追尾制御部32は、追尾制御の初期処理を行う(ステップS2)。このステップS2の処理を、図6を用いて詳細に説明する。
<Initial tracking processing>
Next, the tracking control unit 32 performs an initial process of tracking control (step S2). The process of step S2 will be described in detail with reference to FIG.

ステップS1にて取得した追尾初期画像より、追尾制御部32の認識部321は、撮影者が指示した位置(図8では焦点検出エリア45c)に対応する位置の撮像素子19の画像情報を、被写体色情報として、たとえば、記憶部33の被写体色情報記憶部333に記憶する(ステップS201)。   From the initial tracking image acquired in step S1, the recognition unit 321 of the tracking control unit 32 uses the image information of the image sensor 19 at the position corresponding to the position (focus detection area 45c in FIG. 8) designated by the photographer as the subject. For example, the color information is stored in the subject color information storage unit 333 of the storage unit 33 (step S201).

次にステップS202にて、追尾制御部32の認識部321は、被写体色情報に似た色情報を持つ同色情報領域を追尾初期画像から検出し、その同色情報領域を追尾被写体領域47とする(ステップS203)。   Next, in step S202, the recognition unit 321 of the tracking control unit 32 detects the same color information area having color information similar to the subject color information from the tracking initial image, and sets the same color information area as the tracking subject area 47 ( Step S203).

次にステップS203にて、追尾制御部32の認識部321は、決定した追尾初期画像における追尾被写体領域47をテンプレート画像48として、記憶部33のテンプレート画像記憶部332に、記憶する(ステップS204)。   Next, in step S203, the recognition unit 321 of the tracking control unit 32 stores the tracking subject region 47 in the determined tracking initial image in the template image storage unit 332 of the storage unit 33 as the template image 48 (step S204). .

たとえば図9のように追尾被写体領域47の大きさが4×4画素、始点位置が(x、y)=(7、5)の場合は、テンプレート画像48の色情報は下記のように表される。   For example, as shown in FIG. 9, when the size of the tracking subject area 47 is 4 × 4 pixels and the start point position is (x, y) = (7, 5), the color information of the template image 48 is expressed as follows. The

RGref[rx,ry]=RG[x,y]
BGref[rx,ry]=BG[x,y]
Lref[rx,ry] =L[x,y] (ただし、rx,ry=1〜4、x=7〜10、y=5〜8)
RGref [rx, ry] = RG [x, y]
BGref [rx, ry] = BG [x, y]
Lref [rx, ry] = L [x, y] (where rx, ry = 1 to 4, x = 7 to 10, y = 5 to 8)

なお、ここでは被写体色情報をもとに追尾被写体領域47を決定しているが、処理を簡易にするために、一律4×4画素のように固定された領域サイズとして追尾被写体領域47を決定してもよい。また、色情報を用いず、レンズの距離情報に応じて領域サイズを可変としてもよい。   Here, the tracking subject region 47 is determined based on the subject color information. However, in order to simplify the processing, the tracking subject region 47 is determined as a fixed region size such as a uniform 4 × 4 pixel. May be. Further, the area size may be made variable according to the lens distance information without using the color information.

次に、追尾制御部32の認識部321は、追尾被写体領域47を予め定められた画素分だけ拡大した領域、たとえば、追尾被写体領域47とこの追尾被写体領域47の周囲3画素の範囲を含めた領域を、図9に示すように、探索領域49として設定する(ステップS205)。   Next, the recognition unit 321 of the tracking control unit 32 includes an area obtained by enlarging the tracking subject area 47 by a predetermined number of pixels, for example, a tracking subject area 47 and a range of three pixels around the tracking subject area 47. The area is set as a search area 49 as shown in FIG. 9 (step S205).

以上説明した図6の処理により、たとえば、図9における探索領域49は、x=4〜13、y=2〜11の領域となる。その後、図6の処理をリターンして、以降、図5のステップS3からの処理が実行される。   By the process of FIG. 6 described above, for example, the search area 49 in FIG. 9 becomes an area of x = 4 to 13 and y = 2 to 11. Thereafter, the processing of FIG. 6 is returned, and the processing from step S3 of FIG. 5 is subsequently executed.

次に、図5に戻り、制御部29は、レリーズボタンの全押しスイッチが押されているかを判定し、レリーズボタンの全押しスイッチが押されている場合にはステップS10に処理を進め、レリーズボタンの全押しスイッチが押されていない場合にはステップS4に処理を進める(ステップS3)。
このステップS4に続く処理サイクルは、ステップS3に戻る。このようにして、レリーズの全押しが押されるまでの間、ステップS4に続く処理サイクルが実行される(ステップS3のN)。
Next, returning to FIG. 5, the control unit 29 determines whether or not the release button full-press switch has been pressed. If the release button full-press switch has been pressed, the process proceeds to step S <b> 10 to release the release button. If the button full-press switch has not been pressed, the process proceeds to step S4 (step S3).
The processing cycle following step S4 returns to step S3. In this way, the processing cycle subsequent to step S4 is executed until the release is fully pressed (N in step S3).

<テンプレート変更処理>
上述したステップS3において、レリーズボタンの全押しスイッチが押されていない場合には、追尾制御部32の認識部321は、ステップS4からの追尾処理のサイクルを開始する。まず、追尾制御部32の認識部321は、テンプレート画像の変更処理を実行する(ステップS4)。なお、上述したステップS4における追尾制御の初期処理を行った直後の場合(初回の実行時)には、追尾制御部32の認識部321は、このステップS4の処理を実行しない。
<Template change processing>
In step S3 described above, when the full-press switch of the release button is not pressed, the recognition unit 321 of the tracking control unit 32 starts a tracking process cycle from step S4. First, the recognition unit 321 of the tracking control unit 32 executes a template image change process (step S4). Note that, immediately after the initial tracking control process in step S4 described above (first time execution), the recognition unit 321 of the tracking control unit 32 does not execute the process in step S4.

ここでは、追尾制御部32の変更部322は、直前のAF制御による結果により、記憶部33のテンプレート画像記憶部332に記憶されているテンプレート画像を、変更する。なお、本実施形態でいうAF制御とは、焦点検出部34による焦点検出の制御のことである。   Here, the change part 322 of the tracking control part 32 changes the template image memorize | stored in the template image memory | storage part 332 of the memory | storage part 33 with the result by the last AF control. The AF control referred to in the present embodiment is focus detection control by the focus detection unit 34.

このテンプレート画像の変更の方法は、たとえば元のテンプレート画像48の画像情報に、新被写体領域47の画像情報を特定の比率で加えて、変更する。このように変更することにより、テンプレート画像に最新の画像情報を少しずつ変更されるため、追尾被写体の位置の変化に追従しやすくなるようになる。   For example, the template image is changed by adding the image information of the new subject area 47 at a specific ratio to the image information of the original template image 48. By changing in this way, the latest image information is gradually changed in the template image, so that it becomes easier to follow the change in the position of the tracking subject.

この追尾制御部32の変更部322におけるテンプレート画像48の変更の演算は、たとえば、下記の(式5)から(式7)となる。この式中において、変更割合Kupを変化させて、変更割合Kupの値を0〜1の間で設定することによって、すでに持っているテンプレート情報、または新被写体位置の情報のどちらを多く残して変更するかの調節が可能である。   The calculation for changing the template image 48 in the changing unit 322 of the tracking control unit 32 is, for example, the following (Expression 5) to (Expression 7). In this equation, the change ratio Kup is changed and the value of the change ratio Kup is set between 0 and 1, so that either the template information already held or the new subject position information is left to be changed. It is possible to adjust whether to do.

RGref[rx,ry]=(1-Kup)×RGref[rx,ry] + Kup×RG[x,y] … (式5)
BGref[rx,ry]=(1-Kup)×BGref[rx,ry] + Kup×BG[x,y] … (式6)
Lref[rx,ry]=(1-Kup)× Lref[rx,ry] + Kup× L[x,y] … (式7)
(ただし、rx,ry=1〜4)
RGref [rx, ry] = (1-Kup) × RGref [rx, ry] + Kup × RG [x, y] (Formula 5)
BGref [rx, ry] = (1-Kup) × BGref [rx, ry] + Kup × BG [x, y] (Formula 6)
Lref [rx, ry] = (1-Kup) × Lref [rx, ry] + Kup × L [x, y] (Formula 7)
(However, rx, ry = 1 to 4)

ここで、このステップS4の処理を、図7を用いて詳細に説明する。まず、ステップS401にて、追尾制御部32の変更部322は、前回の追尾演算にて出力した追尾エリアに対し、焦点検出部34により合焦制御を行うエリアとして採用した焦点検出エリアが対応するか否かを判定する。   Here, the process of step S4 will be described in detail with reference to FIG. First, in step S401, the change unit 322 of the tracking control unit 32 corresponds to the focus detection area adopted as an area for performing focus control by the focus detection unit 34 with respect to the tracking area output in the previous tracking calculation. It is determined whether or not.

追尾制御部32の変更部322は、対応するエリアがあると判断するのは、下記の2つのパターンのうち、いずれかのパターンを用いる。
・追尾エリアに対し、AF制御が採用した焦点検出エリアが1対1で対応する場合
・追尾エリアに対して、採用した焦点検出エリアが中央付近にある場合
The changing unit 322 of the tracking control unit 32 uses one of the following two patterns to determine that there is a corresponding area.
-When the focus detection area adopted by AF control corresponds to the tracking area on a one-to-one basis-When the focus detection area adopted by the tracking area is near the center

上述した「追尾エリアに対して、採用した焦点検出エリアが中央付近にある場合」を判断する方法として、たとえば次の方法がある。
まず、追尾エリアの中心と採用した焦点検出エリアの中心の距離Dとを算出し、この距離が追尾エリアの大きさFrmに対して、たとえば5割以下の場合(D≦0.5×Frm/2)は、エリアの中央付近にあると判定する(図10参照)。
As a method for determining the above-mentioned “when the adopted focus detection area is near the center with respect to the tracking area”, for example, there is the following method.
First, calculate the distance D between the center of the tracking area and the center of the selected focus detection area, and if this distance is 50% or less of the size Frm of the tracking area (D ≦ 0.5 × Frm / 2) Is determined to be near the center of the area (see FIG. 10).

追尾制御部32の変更部322は、追尾エリアと採用した焦点検出エリアが対応すると判定した場合(ステップS401でYの場合)、上記変更式における変更割合Kupを、所定の値NewRatio(固定値)として、上述した(式5)から(式7)の変更の演算を行う(ステップS403、404)。   When the change unit 322 of the tracking control unit 32 determines that the tracking area corresponds to the adopted focus detection area (Y in step S401), the change rate Kup in the change formula is set to a predetermined value NewRatio (fixed value). As described above, the calculation for changing the above (Formula 5) to (Formula 7) is performed (Steps S403 and 404).

このときの所定の値NewRatioは、たとえば0.6〜1.0の値として、現在のテンプレート情報に対して新被写体位置の情報を多く含ませて変更を行う。このようにすると、被写体の急激な変化でも対応可能なテンプレート画像とすることができる。   The predetermined value NewRatio at this time is changed, for example, as a value of 0.6 to 1.0 by including much information on the new subject position with respect to the current template information. In this way, it is possible to obtain a template image that can cope with a sudden change in the subject.

なお、所定の変更割合値NewRatio=1.0とすると、テンプレート画像は完全に新画像情報のみとなり、過去の色情報は残らなくなる。この場合、たとえばAF制御によって誤検出された場合などには、被写体位置とは異なるところでの色情報となってしまい、その後本来の追尾被写体の位置には戻れなくなってしまう可能性がある。そのため、所定の変更割合値NewRatio<1.0として、過去のテンプレート画像も数割残しておく方が望ましい。   If the predetermined change ratio value NewRatio = 1.0, the template image is completely new image information and no past color information remains. In this case, for example, when erroneously detected by AF control, the color information is different from the subject position, and it may not be possible to return to the original tracking subject position thereafter. For this reason, it is desirable to leave several percent of past template images with a predetermined change ratio value NewRatio <1.0.

<追尾演算処理>
図5の説明に戻り、ステップS5で、追尾制御部32の認識部321は、撮像素子19による画像取得タイミングで次画像を取得し、ステップS1の場合と同様に、色情報RG[x,y]、BG[x,y]および輝度情報 L[x,y]を算出する。
<Tracking calculation processing>
Returning to the description of FIG. 5, in step S <b> 5, the recognition unit 321 of the tracking control unit 32 acquires the next image at the image acquisition timing by the image sensor 19, and the color information RG [x, y as in step S <b> 1. ], BG [x, y] and luminance information L [x, y] are calculated.

続けて、ステップS6にて、追尾制御部32の認識部321は、テンプレート差分演算処理を行う。
追尾制御部32の認識部321は、先に設定された探索領域49に対して、その中でテンプレート画像48と同サイズの領域を順次切り出し、切り出し画像とテンプレート画像48の対応する画素毎に画像情報の差分値Diffを算出する。たとえば、追尾制御部32の認識部321は、図11(1)の点線太枠のように、探索領域49の中で一画素ずつ領域をずらしながら、テンプレート画像48との差分を取っていく。
Subsequently, in step S6, the recognition unit 321 of the tracking control unit 32 performs template difference calculation processing.
The recognizing unit 321 of the tracking control unit 32 sequentially cuts out a region having the same size as the template image 48 in the previously set search region 49, and outputs an image for each corresponding pixel of the cut-out image and the template image 48. The difference value Diff of information is calculated. For example, the recognizing unit 321 of the tracking control unit 32 takes a difference from the template image 48 while shifting the region by one pixel in the search region 49 as shown by a dotted thick frame in FIG.

この差分値Diffの演算は、探索領域49の始点位置を(scx、scy)=(4、2)とすると、下記の(式8)により算出できる。この差分値Diffの値が小さい位置が、テンプレート画像と類似している、ということとなる。   The calculation of the difference value Diff can be calculated by the following (Equation 8) when the starting point position of the search area 49 is (scx, scy) = (4, 2). The position where the difference value Diff is small is similar to the template image.

Diff[dx,dy] = Σ Σ{ABS(RG[scx+dx-1+rx, scy+dy-1+ry]−RGref[rx,ry])+
ABS(BG[scx+dx-1+rx, scy+dy-1+ry]−BGref[rx,ry])+
ABS( L[scx+dx-1+rx, scy+dy-1+ry]− Lref[rx,ry])} … (式8)
(ただし、dx,dy=1〜7、rx,ry=1〜4、scx=4、scy=2)
Diff [dx, dy] = Σ Σ {ABS (RG [scx + dx-1 + rx, scy + dy-1 + ry] −RGref [rx, ry]) +
ABS (BG [scx + dx-1 + rx, scy + dy-1 + ry] −BGref [rx, ry]) +
ABS (L [scx + dx-1 + rx, scy + dy-1 + ry] − Lref [rx, ry])}… (Formula 8)
(However, dx, dy = 1-7, rx, ry = 1-4, scx = 4, scy = 2)

この(式8)において、最初のΣは、rx=1から4の合計であり、2つ目のΣは、ry=1から4の合計である。   In (Equation 8), the first Σ is the sum of rx = 1 to 4, and the second Σ is the sum of ry = 1 to 4.

<追尾エリア決定処理>
次に、ステップS7にて、追尾制御部32の認識部321は、新しい追尾被写体位置(追尾エリア)を決定する。
次に、追尾制御部32の認識部321は、ステップS6にて算出した差分値Diffの中で、最小(または極小)となる最小差分値MinDiffを検出し、この最小差分値MinDiffの位置を新被写体位置47とする(ステップS7)。
<Tracking area determination process>
Next, in step S7, the recognition unit 321 of the tracking control unit 32 determines a new tracking subject position (tracking area).
Next, the recognizing unit 321 of the tracking control unit 32 detects the minimum (or minimum) minimum difference value MinDiff among the difference values Diff calculated in step S6, and newly sets the position of the minimum difference value MinDiff. The subject position 47 is set (step S7).

<類似判定>
次に、追尾制御部32の認識部321は、あらかじめ決められた類似閾値Dthをもとに、本結果がテンプレート画像に類似しているか否かの判定を行う(ステップS8)。この判定結果は、たとえば追尾結果を応用したAF制御、AE制御などにおいて用いられる。
<Similarity judgment>
Next, the recognition unit 321 of the tracking control unit 32 determines whether or not the result is similar to the template image based on a predetermined similarity threshold Dth (step S8). This determination result is used, for example, in AF control, AE control, etc. applying the tracking result.

<探索領域決定>
次に、追尾制御部32の認識部321は、ステップS205と同様に新追尾被写体領域47の周辺に探索領域49を設定し(ステップS9)、本処理をリターンする。
上述したステップS4からステップS9の処理により、半押し中の1回の追尾処理は終了する。
<Search area determination>
Next, the recognizing unit 321 of the tracking control unit 32 sets the search area 49 around the new tracking subject area 47 (step S9) similarly to step S205, and returns this process.
By the processing from step S4 to step S9 described above, one tracking process during half-pressing is completed.

その後、制御部29は、上述したステップS4からステップS9の半押し中の追尾処理(追尾処理サイクル)を、レリーズの全押しを検出するまで繰り返し実行する。そして、制御部29は、レリーズの全押しが検出された場合(ステップS3でYの場合)、この追尾処理サイクルを終了し、撮影制御を実行し(ステップS10)、追尾制御された被写体を撮像する。   Thereafter, the control unit 29 repeatedly executes the tracking process (tracking process cycle) during the half-pressing of the above-described steps S4 to S9 until the full-pressing of the release is detected. Then, when full release pressing is detected (Y in step S3), the control unit 29 ends the tracking processing cycle, executes shooting control (step S10), and images the subject subjected to the tracking control. To do.

以上説明したように、本実施形態によれば、画像に基づいた追尾演算の結果をAF制御(焦点検出部34)へ渡し、AF制御では追尾演算結果とDef量の両方を用いて最終的な合焦エリアを決めるシステムにおいて、AF制御が追尾結果を採用した場合に、テンプレート画像を変更する。   As described above, according to the present embodiment, the result of the tracking calculation based on the image is passed to the AF control (focus detection unit 34), and the AF control finally uses both the tracking calculation result and the Def amount. In the system for determining the focusing area, the template image is changed when the AF control adopts the tracking result.

これにより、より正確な被写体位置でテンプレート画像を変更することができ、精度よく被写体位置の変化に追従して追尾することが可能となる。   Thus, the template image can be changed at a more accurate subject position, and tracking can be performed following the change in the subject position with high accuracy.

ところで、認識部321による特定の対象の像の位置を認識する処理を繰り返し実行する間に、選択部341による複数の焦点検出位置のいずれかを選択する処理が実行される。この場合、変更部322は、認識部321による認識処理の直前の認識処理において認識した特定の対象の像の位置と、認識部321による連続した認識処理の間に選択部341により選択された焦点検出位置とに基づいて、特定の対象の像を変更する。   By the way, while the process of recognizing the position of the image of the specific target by the recognition unit 321 is repeatedly executed, the process of selecting one of a plurality of focus detection positions by the selection unit 341 is executed. In this case, the changing unit 322 includes the position of the specific target image recognized in the recognition process immediately before the recognition process performed by the recognition unit 321 and the focus selected by the selection unit 341 between successive recognition processes performed by the recognition unit 321. Based on the detection position, the image of the specific object is changed.

たとえば、追尾演算とAF演算の関係は、その制御方法により、両方の演算を交互に行う場合と(図12)、それぞれを非同期に実行する場合(図13)がある。なお、ここでいう追尾演算とは追尾制御部32による被写体の追尾であり、AF演算とは焦点検出部34による被写体の検出(追尾)である。   For example, the relationship between the tracking calculation and the AF calculation is determined depending on the control method in which both calculations are alternately performed (FIG. 12) and each is executed asynchronously (FIG. 13). The tracking calculation here is tracking of the subject by the tracking control unit 32, and the AF calculation is detection (tracking) of the subject by the focus detection unit 34.

図12のように、それぞれの演算を交互に行う場合は、変更部322は、直前にAFが採用した焦点検出エリアと、前回の追尾結果の位置との対応により、テンプレート変更を行うか否かの判定を行う。   As shown in FIG. 12, when each calculation is performed alternately, the changing unit 322 determines whether to change the template based on the correspondence between the focus detection area adopted by the AF immediately before and the position of the previous tracking result. Judgment is made.

一方、図13のようにそれぞれを非同期に実行する場合やお互いの演算サイクルが異なる場合は、変更部322は、追尾演算を繰り返し行うサイクルの間に、AF演算が複数回実行される場合がある(図13参照)。
このようなときには、変更部322は、たとえば、前回の追尾演算終了後に実行された複数回のAF演算において採用した各焦点検出エリア情報のうち、1つでも前回の追尾結果に対応したエリアを採用していれば、テンプレート変更を行うと判定する。
On the other hand, when each is executed asynchronously as shown in FIG. 13 or when the calculation cycles are different from each other, the changing unit 322 may execute the AF calculation a plurality of times during the cycle in which the tracking calculation is repeated. (See FIG. 13).
In such a case, for example, the changing unit 322 employs at least one area corresponding to the previous tracking result among the focus detection area information employed in a plurality of AF calculations executed after the previous tracking calculation is completed. If so, it is determined to change the template.

図12と図13とを用いて説明したように、認識部321による特定の対象の像の位置を認識する処理を繰り返し実行する間に、選択部341による複数の焦点検出位置のいずれかを選択する処理が実行される場合であっても、変更部322は、特定の対象の像を変更することができる。   As described with reference to FIGS. 12 and 13, while the process of recognizing the position of the image of a specific target by the recognizing unit 321 is repeatedly executed, one of a plurality of focus detection positions is selected by the selecting unit 341 Even when the process to be executed is executed, the changing unit 322 can change the image of the specific target.

なお、上記の説明においては、撮像装置として、一眼レフデジタルスチルカメラの場合について説明したが、本実施形態による画像認識装置は、一眼レフデジタルスチルカメラの場合に限られるものではなく、デジタルスチルカメラ、ビデオカメラなど任意の撮像装置に用いることも可能である。また、画像認識装置のみを用いて、被写体を追尾することも可能である。   In the above description, the case of a single-lens reflex digital still camera has been described as the imaging device. However, the image recognition apparatus according to the present embodiment is not limited to the case of a single-lens reflex digital still camera, but a digital still camera. It can also be used for any imaging device such as a video camera. It is also possible to track the subject using only the image recognition device.

また、記憶部33は、ハードディスク装置や光磁気ディスク装置、フラッシュメモリ等の不揮発性のメモリや、CD−ROM等の読み出しのみが可能な記憶媒体、RAM(Random Access Memory)のような揮発性のメモリ、あるいはこれらの組み合わせにより構成されるものとする。   The storage unit 33 is a nonvolatile memory such as a hard disk device, a magneto-optical disk device, or a flash memory, a storage medium such as a CD-ROM that can only be read, and a volatile memory such as a RAM (Random Access Memory). It is assumed to be configured by a memory or a combination thereof.

なお、この制御部29および制御部29の各構成は専用のハードウェアにより実現されるものであってもよく、また、この制御部29および制御部29の各構成はメモリおよびCPU(中央演算装置)により構成され、制御部29および制御部29の各構成の機能を実現するためのプログラムをメモリにロードして実行することによりその機能を実現させるものであってもよい。   Each configuration of the control unit 29 and the control unit 29 may be realized by dedicated hardware, and each configuration of the control unit 29 and the control unit 29 includes a memory and a CPU (central processing unit). ), And a program for realizing the functions of each component of the control unit 29 and the control unit 29 may be loaded into a memory and executed to implement the functions.

また、図2における制御部29および制御部29の各構成の機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することにより制御部29および制御部29の各構成による処理を行ってもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。   2 is recorded on a computer-readable recording medium, and the program recorded on the recording medium is read into a computer system, and the program for realizing the functions of the components of the control unit 29 and the control unit 29 in FIG. By executing, processing by each configuration of the control unit 29 and the control unit 29 may be performed. Here, the “computer system” includes an OS and hardware such as peripheral devices.

また、「コンピュータシステム」は、WWWシステムを利用している場合であれば、ホームページ提供環境(あるいは表示環境)も含むものとする。
また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間の間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリのように、一定時間プログラムを保持しているものも含むものとする。また上記プログラムは、前述した機能の一部を実現するためのものであっても良く、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであっても良い。
Further, the “computer system” includes a homepage providing environment (or display environment) if a WWW system is used.
The “computer-readable recording medium” refers to a storage device such as a flexible medium, a magneto-optical disk, a portable medium such as a ROM and a CD-ROM, and a hard disk incorporated in a computer system. Furthermore, the “computer-readable recording medium” dynamically holds a program for a short time like a communication line when transmitting a program via a network such as the Internet or a communication line such as a telephone line. In this case, a volatile memory in a computer system serving as a server or a client in that case, and a program that holds a program for a certain period of time are also included. The program may be a program for realizing a part of the functions described above, and may be a program capable of realizing the functions described above in combination with a program already recorded in a computer system.

以上、この発明の実施形態を図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。   The embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to this embodiment, and includes design and the like within a scope not departing from the gist of the present invention.

10…カメラ本体、22…レンズ、11…クイックリターンミラー、13…焦点版、14…ペンタプリズム、15…接眼レンズ、17…プリズム、18…結像レンズ、19…撮像素子、20…シャッタ、21…撮影用撮像素子、25…測距素子、29…制御部、30…CCD制御部、31…A/D変換部、32…追尾制御部、321…認識部、322…変更部、33…記憶部、34…焦点検出部、341…選択部、35…レンズ駆動部、36…露出演算部、37…撮像制御部、331…レンズ情報記憶部、332…テンプレート画像記憶部、333…被写体色情報記憶部   DESCRIPTION OF SYMBOLS 10 ... Camera body, 22 ... Lens, 11 ... Quick return mirror, 13 ... Focus plate, 14 ... Pentaprism, 15 ... Eyepiece lens, 17 ... Prism, 18 ... Imaging lens, 19 ... Imaging element, 20 ... Shutter, 21 Image capturing element for photographing, 25 Distance measuring element, 29 Control unit, 30 CCD control unit, 31 A / D conversion unit, 32 Tracking control unit, 321 Recognition unit, 322 Change unit, 33 Storage 34: Focus detection unit, 341 ... Selection unit, 35 ... Lens drive unit, 36 ... Exposure calculation unit, 37 ... Imaging control unit, 331 ... Lens information storage unit, 332 ... Template image storage unit, 333 ... Subject color information Storage

Claims (9)

を撮像する撮像部と、
基準とする像に関する基準画像を設定し、前記撮像部によって撮像した画像の中から前記基準画像に相当する特定の対象の像の位置を認識する認識部と、
数の焦点検出位置に対する焦点状態を検出する焦点検出部と、
記複数の焦点検出位置のいずれかを選択する選択部と、
前記選択部によって選択された焦点検出位置、前記認識部によって認識された前記特定の対象の像の位置、及び前記特定の対象の像のサイズに基づいて定められる距離に基づいて、前記基準画像を変更する変更部とを備えることを特徴とする画像認識装置。
An imaging unit that captures an image,
A recognition unit that sets a reference image related to an image to be used as a reference, and recognizes the position of a specific target image corresponding to the reference image from the images captured by the imaging unit;
A focus detection unit for detecting the that focal state against the focus detection position of multiple,
A selector for selecting either before Symbol plurality of focus detection positions,
Based on the focus detection position selected by the selection unit, the position of the image of the specific target recognized by the recognition unit, and a distance determined based on the size of the image of the specific target, image recognition apparatus characterized by comprising a changing unit that changes.
請求項1に記載の画像認識装置において、  The image recognition apparatus according to claim 1,
前記変更部は、前記特定の対象の像のサイズに基づいて定められる距離を、前記特定の対象の像のサイズに対する所定の割合により定められる距離とすることを特徴とする画像認識装置。  The change unit, wherein the distance determined based on the size of the image of the specific target is a distance determined by a predetermined ratio with respect to the size of the image of the specific target.
請求項1または請求項2に記載の画像認識装置において、  The image recognition apparatus according to claim 1 or 2,
前記変更部は、  The changing unit is
前記選択部によって選択された焦点検出位置と、前記認識部によって認識された前記特定の対象の像の位置との間隔が、前記認識部によって認識された前記特定の対象の像のサイズに基づいて定められる距離以下である場合に、前記基準画像を変更することを特徴とする画像認識装置。  An interval between the focus detection position selected by the selection unit and the position of the specific target image recognized by the recognition unit is based on the size of the specific target image recognized by the recognition unit. An image recognition apparatus that changes the reference image when the distance is equal to or less than a predetermined distance.
請求項1から請求項3のいずれか1項に記載の画像認識装置において、
前記選択部は、
前記認識部によって認識された位置と前記焦点状態とに基づいて、前記複数の焦点検出位置のいずれかを選択することを特徴とする画像認識装置。
In the image recognition device according to any one of claims 1 to 3 ,
The selection unit includes:
Wherein based on the recognized position and the front Kiase point state by the recognition unit, an image recognition apparatus characterized by selecting one of the plurality of focus detection positions.
請求項1から請求項4のいずれか1項に記載の画像認識装置において、
前記変更部は、
前記選択部によって選択された焦点検出位置が、前記認識部によって認識された前記特定の対象の像の位置に対応する場合に、前記基準画像を変更することを特徴とする画像認識装置。
The image recognition apparatus according to any one of claims 1 to 4 ,
The changing unit is
The image recognition apparatus, wherein the reference image is changed when a focus detection position selected by the selection unit corresponds to a position of the specific target image recognized by the recognition unit.
請求項1から請求項5のいずれか1項に記載の画像認識装置において、
前記変更部は、
前記基準画像の情報と、前記認識部によって認識された前記特定の対象の像の情報とに基づいて、前記基準画像を変更することを特徴とする画像認識装置。
The image recognition apparatus according to any one of claims 1 to 5,
The changing unit is
And information of the reference image, on the basis of the information of the recognized the particular subject of the image by the recognition unit, an image recognition apparatus characterized by changing the reference image.
請求項6に記載の画像認識装置において、
前記変更部は、
前記基準画像の情報量よりも、前記認識部によって認識された前記特定の対象の像の情報量を多くすることを特徴とする画像認識装置。
The image recognition device according to claim 6.
The changing unit is
An image recognition apparatus characterized in that the information amount of the image of the specific target recognized by the recognition unit is larger than the information amount of the reference image .
請求項1から請求項7のいずれか1項に記載の画像認識装置において、
前記認識部による前記特定の対象の像の位置を認識する処理を繰り返し実行する間に、前記選択部による前記複数の焦点検出位置のいずれかを選択する処理が実行される場合には、
前記変更部は、
前記認識部による認識処理の直前の認識処理において認識した前記特定の対象の像の位置と、前記認識部による連続した認識処理の間に前記選択部により選択された焦点検出位置とに基づいて、前記基準画像を変更することを特徴とする画像認識装置。
The image recognition apparatus according to any one of claims 1 to 7,
When the process of selecting any of the plurality of focus detection positions by the selection unit is repeatedly performed while the process of recognizing the position of the image of the specific target by the recognition unit is performed,
The changing unit is
Based on the position of the image of the specific object recognized in the recognition process immediately before the recognition process by the recognition unit, and the focus detection position selected by the selection unit during the continuous recognition process by the recognition unit, An image recognition apparatus that changes the reference image .
請求項1から請求項8のいずれか1項に記載の画像認識装置を備えることを特徴とする撮像装置。   An image pickup apparatus comprising the image recognition apparatus according to any one of claims 1 to 8.
JP2009219952A 2009-09-25 2009-09-25 Image recognition apparatus and imaging apparatus Active JP5446660B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009219952A JP5446660B2 (en) 2009-09-25 2009-09-25 Image recognition apparatus and imaging apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009219952A JP5446660B2 (en) 2009-09-25 2009-09-25 Image recognition apparatus and imaging apparatus

Publications (2)

Publication Number Publication Date
JP2011071671A JP2011071671A (en) 2011-04-07
JP5446660B2 true JP5446660B2 (en) 2014-03-19

Family

ID=44016522

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009219952A Active JP5446660B2 (en) 2009-09-25 2009-09-25 Image recognition apparatus and imaging apparatus

Country Status (1)

Country Link
JP (1) JP5446660B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5873378B2 (en) * 2012-04-10 2016-03-01 キヤノン株式会社 Imaging apparatus and control method thereof
JP6492557B2 (en) * 2014-11-07 2019-04-03 株式会社ニコン Focus adjustment device and camera

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5082631B2 (en) * 2007-07-06 2012-11-28 株式会社ニコン Imaging device
JP4967992B2 (en) * 2007-10-30 2012-07-04 株式会社ニコン Image recognition device, focus detection device, and imaging device
JP2009109839A (en) * 2007-10-31 2009-05-21 Nikon Corp Image tracking device and imaging device
JP2009123081A (en) * 2007-11-16 2009-06-04 Fujifilm Corp Face detection method and photographing apparatus

Also Published As

Publication number Publication date
JP2011071671A (en) 2011-04-07

Similar Documents

Publication Publication Date Title
JP5564987B2 (en) Subject tracking device and imaging device
JP4872834B2 (en) Image recognition device, focus adjustment device, and imaging device
JP5247076B2 (en) Image tracking device, focus adjustment device, and imaging device
JP5157256B2 (en) Image tracking device and imaging device
JP2009033238A (en) Imaging apparatus
JP2017211487A (en) Imaging apparatus and automatic focus adjustment method
JP2005215373A (en) Imaging apparatus
JP5056136B2 (en) Image tracking device
JP2013254166A (en) Imaging device and control method of the same
JP4888249B2 (en) Focus detection apparatus and imaging apparatus
JP6140945B2 (en) Focus adjustment device and imaging device
JP5446660B2 (en) Image recognition apparatus and imaging apparatus
JP4985155B2 (en) Focus adjustment device and imaging device
JP5070856B2 (en) Imaging device
JP4935380B2 (en) Image tracking device and imaging device
JP2010200138A (en) Photographic subject tracking device
JP5541396B2 (en) Image tracking device
JP2011013499A (en) Imaging apparatus
JP2010050527A (en) Image device
JP6568448B2 (en) Automatic focusing apparatus, control method therefor, and imaging apparatus
JP5176845B2 (en) Image tracking device and imaging device
JP5233646B2 (en) Image tracking device, imaging device, and image tracking method
JP5347834B2 (en) Image tracking device
JP2010054586A (en) Focusing device and imaging apparatus
JP2010113130A (en) Focus detecting device, imaging apparatus, focus detecting method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120914

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130725

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130806

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131007

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20131203

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131216

R150 Certificate of patent or registration of utility model

Ref document number: 5446660

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250