JP2023047764A - Imaging apparatus, imaging method, and program - Google Patents

Imaging apparatus, imaging method, and program Download PDF

Info

Publication number
JP2023047764A
JP2023047764A JP2021156863A JP2021156863A JP2023047764A JP 2023047764 A JP2023047764 A JP 2023047764A JP 2021156863 A JP2021156863 A JP 2021156863A JP 2021156863 A JP2021156863 A JP 2021156863A JP 2023047764 A JP2023047764 A JP 2023047764A
Authority
JP
Japan
Prior art keywords
target area
imaging
information
control unit
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
JP2021156863A
Other languages
Japanese (ja)
Inventor
伸基 中島
Nobumoto Nakajima
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.)
JVCKenwood Corp
Original Assignee
JVCKenwood 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 JVCKenwood Corp filed Critical JVCKenwood Corp
Priority to JP2021156863A priority Critical patent/JP2023047764A/en
Priority to PCT/JP2022/029298 priority patent/WO2023047802A1/en
Priority to PCT/JP2022/029384 priority patent/WO2023047804A1/en
Publication of JP2023047764A publication Critical patent/JP2023047764A/en
Pending legal-status Critical Current

Links

Images

Abstract

To properly adjust a focal position.SOLUTION: An imaging apparatus 100 comprises: an image pickup device; an object information acquisition unit for acquiring position information of an object existing in an image-pickup area R0 of the image pickup device; a target area acquisition unit for setting a target area AR to move within an image-pickup area AR0; and a focal position control unit which in a case where an object exists in the target area AR, controls the focal position of the imaging apparatus 100 so as to adjust the focal position on the object.SELECTED DRAWING: Figure 2

Description

本発明は、撮像装置、撮像方法及びプログラムに関する。 The present invention relates to an imaging device, an imaging method, and a program.

焦点位置を自動的に設定するオートフォーカス方式の撮像装置が知られている。例えば特許文献1には、ユーザが指定した所定の位置にフォーカスを合わせる旨が記載されている。 2. Description of the Related Art An autofocus imaging device that automatically sets a focal position is known. For example, Japanese Patent Application Laid-Open No. 2002-200002 describes that a predetermined position designated by a user is focused.

国際公開第2017/141746号WO2017/141746

オートフォーカス方式の撮像装置においては、フォーカスを適切に合わせることが求められている。 2. Description of the Related Art Autofocus imaging apparatuses are required to be properly focused.

本発明は、上記課題に鑑み、フォーカスを適切に合わせることが可能な撮像装置、撮像方法及びプログラムを提供することを目的とする。 In view of the above problems, an object of the present invention is to provide an imaging apparatus, an imaging method, and a program capable of appropriately adjusting the focus.

本発明の一態様にかかる撮像装置は、物体を撮像可能な撮像装置であって、撮像素子と、前記撮像素子の撮像領域に存在する物体の位置情報を取得する物体情報取得部と、対象領域を、前記撮像領域内で移動するように設定する対象領域取得部と、前記対象領域内に物体が存在する場合、その物体に焦点位置を合わせるように、前記撮像装置の焦点位置を制御する焦点位置制御部と、を有する。 An imaging device according to an aspect of the present invention is an imaging device capable of imaging an object, comprising: an imaging element; an object information acquisition unit that acquires position information of an object existing in an imaging area of the imaging element; is set to move within the imaging region; and when an object exists within the target region, the focal position of the imaging device is controlled so as to adjust the focal position to the object. and a position control unit.

本発明の一態様にかかる撮像方法は、物体を撮像する撮像方法であって、撮像領域に存在する物体の位置情報を取得するステップと、対象領域を、前記撮像領域内で移動するように設定するステップと、前記対象領域内に物体が存在する場合、その物体に焦点位置を合わせるように、撮像装置の焦点位置を制御するステップと、を含む。 An imaging method according to an aspect of the present invention is an imaging method for imaging an object, comprising a step of acquiring position information of an object existing in an imaging area, and setting a target area to move within the imaging area. and, if an object exists within the target area, controlling the focus position of the imaging device so as to focus on the object.

本発明の一態様にかかるプログラムは、物体を撮像する撮像方法をコンピュータに実行させるプログラムであって、撮像領域に存在する物体の位置情報を取得するステップと、対象領域を、前記撮像領域内で移動するように設定するステップと、前記対象領域内に物体が存在する場合、その物体に焦点位置を合わせるように、撮像装置の焦点位置を制御するステップと、を前記コンピュータに実行させる。 A program according to one aspect of the present invention is a program that causes a computer to execute an imaging method for imaging an object, the program comprising: acquiring position information of an object existing in an imaging area; The computer is caused to perform the steps of setting to move and, if an object exists within the target area, controlling the focal position of the imaging device so as to focus on the object.

本発明によれば、フォーカスを適切に合わせることができる。 According to the present invention, it is possible to appropriately focus.

図1は、第1実施形態に係る撮像装置の模式的なブロック図である。FIG. 1 is a schematic block diagram of an imaging device according to the first embodiment. 図2は、対象領域の一例を説明するための模式図である。FIG. 2 is a schematic diagram for explaining an example of the target area. 図3は、対象領域の一例を説明するための模式図である。FIG. 3 is a schematic diagram for explaining an example of the target area. 図4は、焦点位置の設定の処理フローを説明するフローチャートである。FIG. 4 is a flowchart for explaining the processing flow for setting the focal position. 図5は、第2実施形態に係る対象領域の一例を説明するための模式図である。FIG. 5 is a schematic diagram for explaining an example of a target area according to the second embodiment. 図6は、基準物体が複数設定された場合の例を示す模式図である。FIG. 6 is a schematic diagram showing an example when a plurality of reference objects are set. 図7は、焦点位置の設定の処理フローを説明するフローチャートである。FIG. 7 is a flowchart for explaining the processing flow for setting the focal position. 図8は、物体の運動を所定の条件とする場合の例を説明する模式図である。FIG. 8 is a schematic diagram illustrating an example in which motion of an object is set as a predetermined condition.

以下に、本発明の実施形態を図面に基づいて詳細に説明する。なお、以下に説明する実施形態により本発明が限定されるものではない。 BEST MODE FOR CARRYING OUT THE INVENTION Below, embodiments of the present invention will be described in detail based on the drawings. In addition, this invention is not limited by embodiment described below.

(第1実施形態)
(撮像装置の構成)
図1は、第1実施形態に係る撮像装置の模式的なブロック図である。第1実施形態に係る撮像装置100は、撮像範囲内の物体を撮像する撮像装置である。撮像装置100は、焦点位置を自動で設定可能なオートフォーカス方式のカメラである。撮像装置100は、所定のフレーム毎に撮像することで動画像を撮像するビデオカメラであってもよいし、静止画像を撮像するカメラであってもよい。撮像装置100は、任意の用途で用いられてよく、例えば設備内や屋外の所定の位置に設定される監視カメラとして用いられてよい。
(First embodiment)
(Configuration of imaging device)
FIG. 1 is a schematic block diagram of an imaging device according to the first embodiment. An imaging device 100 according to the first embodiment is an imaging device that images an object within an imaging range. The imaging device 100 is an autofocus camera capable of automatically setting a focal position. The imaging device 100 may be a video camera that captures a moving image by capturing each predetermined frame, or may be a camera that captures a still image. The imaging device 100 may be used for any purpose, and may be used, for example, as a monitoring camera set at a predetermined position inside a facility or outdoors.

図1に示すように、撮像装置100は、光学素子10と、撮像素子12と、画像処理回路13と、物体位置測定部14と、入力部16と、表示部18と、通信部20と、記憶部22と、制御部24とを有する。 As shown in FIG. 1, the imaging device 100 includes an optical element 10, an imaging element 12, an image processing circuit 13, an object position measuring unit 14, an input unit 16, a display unit 18, a communication unit 20, It has a storage unit 22 and a control unit 24 .

光学素子10は、例えばレンズなどの光学系の素子である。光学素子10は、1つであっても複数であってもよい。 The optical element 10 is an element of an optical system such as a lens. The number of optical elements 10 may be one or plural.

撮像素子12は、光学素子10を通して入射した光を電気信号である画像信号に変換する素子である。撮像素子12は、例えば、CCD(Charge COupled Device)センサやCMOS(Complementary Metal Oxide Semiconductor)センサなどである。 The imaging device 12 is a device that converts light incident through the optical device 10 into an image signal that is an electrical signal. The imaging element 12 is, for example, a CCD (Charge Coupled Device) sensor, a CMOS (Complementary Metal Oxide Semiconductor) sensor, or the like.

画像処理回路13は、撮像素子12が生成した画像信号から、1フレーム毎の画像データを生成する。画像データは、例えば1つのフレームにおける各画素の輝度や色の情報を含むデータであり、画素毎の階調が割り当てられるデータであってもよい。 The image processing circuit 13 generates image data for each frame from the image signal generated by the imaging device 12 . The image data is, for example, data including luminance and color information of each pixel in one frame, and may be data to which a gradation is assigned to each pixel.

物体位置測定部14は、測定対象となる物体の、撮像装置100に対する位置(物体の相対位置)を測定するセンサである。ここでの物体とは、任意の物であってよく、生物であっても無生物であってもよく、以降においても同様である。また、ここでの物体は、移動可能な物を指してもよいが、それに限られず移動しない物を指してもよい。 The object position measuring unit 14 is a sensor that measures the position of the object to be measured with respect to the imaging device 100 (relative position of the object). An object here may be any object, and may be a living thing or an inanimate object, and the same shall apply hereinafter. Also, the object here may refer to a movable object, but is not limited to that and may refer to an immovable object.

本実施形態では、物体位置測定部14は、物体の相対位置として、撮像装置100から物体までの距離を測定する。物体位置測定部14は、物体の相対位置を測定可能な任意のセンサであってよいが、例えば、TOF(Time Of Flight)センサであってよい。物体位置測定部14がTOFセンサである場合には、例えば、光を照射する発光素子(例えばLED(Light Emitting Diode)と、光を受光する受光部が設けられており、発光素子から物体に照射されて受光部に戻ってきた光の飛行時間により、物体までの距離を測定する。なお、物体位置測定部14は、物体の相対位置として、撮像装置100から物体までの距離を測定に加えて、例えば撮像装置100に対して物体が存在する方向も測定してよい。言い換えれば、物体位置測定部14は、撮像装置100を原点とする座標系における物体の位置(座標)を、物体の相対位置として測定してもよい。 In this embodiment, the object position measuring unit 14 measures the distance from the imaging device 100 to the object as the relative position of the object. The object position measuring unit 14 may be any sensor capable of measuring the relative position of an object, and may be, for example, a TOF (Time Of Flight) sensor. When the object position measuring unit 14 is a TOF sensor, for example, a light emitting element (e.g., LED (Light Emitting Diode)) that emits light and a light receiving unit that receives light are provided. The distance to the object is measured from the time of flight of the light that has returned to the light-receiving unit.The object position measuring unit 14 measures the distance from the imaging device 100 to the object as the relative position of the object. For example, the direction in which the object exists with respect to the imaging device 100 may also be measured.In other words, the object position measurement unit 14 measures the position (coordinates) of the object in a coordinate system having the imaging device 100 as the origin, and calculates the relative position of the object. May be measured as position.

入力部16は、ユーザからの入力(操作)を受け付ける機構であり、例えばボタン、キーボード、タッチパネルなどであってよい。 The input unit 16 is a mechanism for receiving input (operation) from the user, and may be, for example, buttons, a keyboard, a touch panel, or the like.

表示部18は、画像を表示する表示パネルである。表示部18は、撮像装置100が撮像した画像に加えて、後述の対象領域ARをユーザが設定するための画像も表示可能であってよい。 The display unit 18 is a display panel that displays images. The display unit 18 may be capable of displaying an image for the user to set a target area AR, which will be described later, in addition to the image captured by the imaging device 100 .

通信部20は、外部の装置と通信を行う通信モジュールであり、例えばアンテナやWi-Fi(登録商標)モジュールなどであってよい。撮像装置100は、無線通信で外部の装置と通信を行うが、有線通信でもよく、通信方式は任意であってよい。 The communication unit 20 is a communication module that communicates with an external device, and may be, for example, an antenna or a Wi-Fi (registered trademark) module. The imaging device 100 communicates with an external device by wireless communication, but may be wired communication, and any communication method may be used.

記憶部22は、撮像した画像データや、制御部24の演算内容やプログラムなどの各種情報を記憶するメモリであり、例えば、RAM(Random Access Memory)と、ROM(Read Only Memory)のような主記憶装置と、HDD(Hard Disk Drive)などの外部記憶装置とのうち、少なくとも1つ含む。記憶部22が記憶する制御部24用のプログラムは、撮像装置100が読み取り可能な記録媒体に記憶されていてもよい。 The storage unit 22 is a memory that stores various types of information such as captured image data, calculation contents of the control unit 24, and programs. At least one of a storage device and an external storage device such as a HDD (Hard Disk Drive) is included. The program for the control unit 24 stored in the storage unit 22 may be stored in a recording medium readable by the imaging device 100 .

制御部24は、演算装置であり、例えばCPU(Central Processing Unit)などの演算回路を含む。制御部24は、対象領域取得部30と、物体情報取得部32と、焦点位置制御部34と、撮像制御部36と、画像取得部38と、を含む。制御部24は、記憶部22からプログラム(ソフトウェア)を読み出して実行することで、対象領域取得部30と物体情報取得部32と焦点位置制御部34と撮像制御部36と画像取得部38とを実現して、それらの処理を実行する。なお、制御部24は、1つのCPUによってこれらの処理を実行してもよいし、複数のCPUを備えて、それらの複数のCPUで、処理を実行してもよい。また、対象領域取得部30と物体情報取得部32と焦点位置制御部34と撮像制御部36と画像取得部38との処理の少なくとも一部を、ハードウェア回路で実現してもよい。 The control unit 24 is an arithmetic device and includes an arithmetic circuit such as a CPU (Central Processing Unit). The control unit 24 includes a target area acquisition unit 30 , an object information acquisition unit 32 , a focus position control unit 34 , an imaging control unit 36 and an image acquisition unit 38 . The control unit 24 reads out and executes a program (software) from the storage unit 22 to operate the target area acquisition unit 30, the object information acquisition unit 32, the focus position control unit 34, the imaging control unit 36, and the image acquisition unit 38. Realize and execute those processes. Note that the control unit 24 may execute these processes by one CPU, or may be provided with a plurality of CPUs and may execute the processes by the plurality of CPUs. Moreover, at least part of the processing of the target region acquisition unit 30, the object information acquisition unit 32, the focus position control unit 34, the imaging control unit 36, and the image acquisition unit 38 may be realized by hardware circuits.

(対象領域取得部)
対象領域取得部30は、撮像装置100の撮像領域内に設定された対象領域ARの情報を取得する。対象領域ARとは、焦点位置を自動で合わせるために設定される領域である。対象領域ARの情報とは、対象領域ARの形状情報と移動情報とを指すが、詳しくは後述するで。以下、対象領域ARについて説明する。
(Target area acquisition unit)
The target area acquisition unit 30 acquires information on the target area AR set within the imaging area of the imaging device 100 . The target area AR is an area set for automatically adjusting the focal position. The information of the target area AR refers to the shape information and movement information of the target area AR, which will be described later in detail. The target area AR will be described below.

図2及び図3は、対象領域の一例を説明するための模式図である。図2は、撮像装置100や対象領域ARを鉛直方向上方から見た図であり、図3は、撮像装置100や対象領域ARを水平方向から見た図である。以下、方向Zを鉛直方向とし、方向Xを、方向Zに直交する水平方向の一方向とし、方向Yを、方向Z及び方向Xに直交する方向(水平方向)とする。図2及び図3に示すように、撮像装置100によって画像を撮像可能な範囲を、撮像領域AR0とする。撮像領域AR0は、撮像素子12の画角内に入る領域(空間)を指し、言い換えれば、実空間のうちで画像として写る範囲を指す。対象領域ARは、撮像領域AR0の範囲内に設定される領域(空間)である。 2 and 3 are schematic diagrams for explaining an example of the target area. 2 is a view of the imaging device 100 and the target area AR viewed from above in the vertical direction, and FIG. 3 is a view of the imaging device 100 and the target region AR viewed from the horizontal direction. Hereinafter, the direction Z is defined as a vertical direction, the direction X is defined as one horizontal direction orthogonal to the direction Z, and the direction Y is defined as a direction orthogonal to the direction Z and the direction X (horizontal direction). As shown in FIGS. 2 and 3, the range in which an image can be captured by the imaging device 100 is defined as an imaging area AR0. The imaging area AR0 refers to an area (space) within the angle of view of the imaging device 12, in other words, refers to a range captured as an image in real space. The target area AR is an area (space) set within the range of the imaging area AR0.

対象領域取得部30は、対象領域ARが撮像領域AR0内で移動するように、対象領域ARを設定する。対象領域取得部30は、対象領域ARの形状情報と移動情報とを取得して、対象領域ARの形状情報と移動情報とに基づき、対象領域ARが撮像領域AR0内で移動するように、対象領域ARを設定する。対象領域ARの形状情報とは、対象領域ARの形状及び大きさを示す情報であり、対象領域ARの移動情報とは、対象領域ARがどのように移動するかを示す情報である。対象領域ARの移動情報は、例えば、時間毎の対象領域ARの基準座標の位置であってもよいし、対象領域ARの基準座標の初期位置と、対象領域ARの基準座標の移動方向及び移動速度とであってもよい。なお、ここでの基準座標とは、対象領域ARの中心座標であり、対象領域ARは、基準座標を中心に所定の半径となる円(球)状の領域として設定される。対象領域取得部30は、対象領域ARの形状及び大きさが同一を保つように、対象領域ARを移動させることが好ましい。 The target area acquisition unit 30 sets the target area AR such that the target area AR moves within the imaging area AR0. The target area acquisition unit 30 acquires shape information and movement information of the target area AR, and based on the shape information and movement information of the target area AR, moves the target area AR so that the target area AR moves within the imaging area AR0. Set the area AR. The shape information of the target area AR is information indicating the shape and size of the target area AR, and the movement information of the target area AR is information indicating how the target area AR moves. The movement information of the target area AR may be, for example, the position of the reference coordinates of the target area AR for each time, or the initial position of the reference coordinates of the target area AR, the movement direction and the movement of the reference coordinates of the target area AR. speed and may be. The reference coordinates here are the center coordinates of the target area AR, and the target area AR is set as a circular (spherical) area having a predetermined radius around the reference coordinates. The target area acquisition unit 30 preferably moves the target area AR so that the shape and size of the target area AR are kept the same.

より詳しくは、対象領域ARは、撮像領域AR0内であって、第1位置AX1と第2位置AX2との間の領域内に位置するように設定されることが好ましい。言い換えれば、対象領域ARは、撮像領域AR0内であって、第1位置AX1と第2位置AX2との間の領域内を移動するように(言い換えればこの領域外に出ないように)設定されることが好ましい。第1位置AX1は、撮像装置100からの距離が第1距離L1となる位置であり、第2位置AX2は、撮像装置100からの距離が、第1距離L1よりも短い第2距離L2となる位置である。図2及び図3に示すように、本実施形態においては、第1位置AX1は、撮像領域AR0内において、撮像装置100からの距離が第1距離L1となる各位置(座標)を含む仮想的な面であるといえる。同様に、第2位置AX2は、撮像領域AR0内において、撮像装置100からの距離が第2距離L2となる各位置(座標)を含む仮想的な面であるといえる。すなわち、対象領域ARは、撮像領域AR0内において、撮像装置100からの距離が第2距離L2となる仮想面と、撮像装置100からの距離が第1距離L1となる仮想面とに囲われた空間内を移動するように設定されてよい。なお、第1位置AX1は、第1位置AX1に含まれる全ての位置(座標)が、撮像装置100から第1距離L1となる仮想面であることに限られず、第1位置AX1に含まれる少なくとも一部の位置(座標)が、撮像装置100から第1距離L1となる仮想面であってよい。同様に、第2位置AX2は、第2位置AX2に含まれる少なくとも一部の位置(座標)が、撮像装置100から第2距離L2となる仮想面であってよい。 More specifically, the target area AR is preferably set to be located within the imaging area AR0 and within the area between the first position AX1 and the second position AX2. In other words, the target area AR is set so as to move within the imaging area AR0 and within the area between the first position AX1 and the second position AX2 (in other words, so as not to go out of this area). preferably. The first position AX1 is a position that is the first distance L1 from the imaging device 100, and the second position AX2 is the second distance L2 that is shorter than the first distance L1 from the imaging device 100. position. As shown in FIGS. 2 and 3, in the present embodiment, the first position AX1 is a virtual position (coordinates) including positions (coordinates) at a first distance L1 from the imaging device 100 in the imaging area AR0. It can be said that it is a positive aspect. Similarly, the second position AX2 can be said to be a virtual plane that includes positions (coordinates) within the imaging region AR0 that are the second distance L2 from the imaging device 100 . That is, the target area AR is surrounded by a virtual plane at a second distance L2 from the imaging device 100 and a virtual plane at a first distance L1 from the imaging device 100 in the imaging region AR0. It may be set to move in space. Note that the first position AX1 is not limited to a virtual plane in which all positions (coordinates) included in the first position AX1 are the first distance L1 from the imaging device 100, and at least A part of the positions (coordinates) may be a virtual plane that is the first distance L1 from the imaging device 100 . Similarly, the second position AX2 may be a virtual plane in which at least some positions (coordinates) included in the second position AX2 are the second distance L2 from the imaging device 100 .

なお、対象領域ARの大きさや形状は、以上の説明に限られず任意であってよく、基準座標を中心に所定の半径となる円(球)状の領域でなくてもよい。また、以上の説明では、対象領域ARは、撮像領域AR0内に設定される領域であったが、それに限られない。例えば、物体位置測定部14によって測距可能な範囲を測距領域(測距空間)とすると、対象領域ARは、測距領域内に設定される領域であってもよい。この場合、図2及び図3における撮像領域AR0を、測距領域として扱ってよい。 Note that the size and shape of the target area AR are not limited to those described above and may be arbitrary, and may not be a circular (spherical) area having a predetermined radius centered on the reference coordinates. Also, in the above description, the target area AR is an area set within the imaging area AR0, but it is not limited to this. For example, if the range in which distance measurement is possible by the object position measuring unit 14 is a ranging area (ranging space), the target area AR may be an area set within the ranging area. In this case, the imaging area AR0 in FIGS. 2 and 3 may be treated as a ranging area.

対象領域取得部30は、任意の方法で対象領域ARの形状情報及び移動情報を取得してよい。例えば、対象領域ARの形状情報と移動情報とが予め設定されていてよい。この場合、対象領域取得部30は、予め設定された対象領域ARの形状情報及び移動情報を、記憶部22から読み出してもよいし、通信部20を介して、他の機器から、対象領域ARの形状情報及び移動情報を取得してもよい。また例えば、対象領域ARの形状情報及び移動情報が予め設定されていない場合には、対象領域取得部30が、対象領域ARの形状情報及び移動情報を自動で設定してもよい。また例えば、ユーザが対象領域ARの形状情報及び移動情報を設定してもよい。この場合例えば、ユーザが、入力部16に、対象領域ARの形状情報及び移動情報(例えば対象領域ARの大きさと、時間毎の基準座標の位置)を入力し、対象領域取得部30は、ユーザによって指定された対象領域ARの形状情報及び移動情報に基づき、対象領域ARを設定してもよい。 The target area acquisition unit 30 may acquire the shape information and movement information of the target area AR by any method. For example, shape information and movement information of the target area AR may be set in advance. In this case, the target area acquisition unit 30 may read the preset shape information and movement information of the target area AR from the storage unit 22, or may read the target area AR from another device via the communication unit 20. shape information and movement information may be acquired. Further, for example, when the shape information and movement information of the target area AR are not set in advance, the target area acquisition unit 30 may automatically set the shape information and movement information of the target area AR. Further, for example, the user may set the shape information and movement information of the target area AR. In this case, for example, the user inputs the shape information and movement information of the target area AR (for example, the size of the target area AR and the position of the reference coordinates for each time) to the input unit 16, and the target area acquisition unit 30 The target area AR may be set based on the shape information and movement information of the target area AR specified by .

(物体情報取得部)
物体情報取得部32は、撮像領域AR0内に存在する物体の位置情報を取得する。物体情報取得部32は、物体位置測定部14を制御して、物体位置測定部14に、撮像装置100に対する物体の相対位置を測定させる。物体情報取得部32は、物体位置測定部14による、撮像装置100に対する物体の相対位置の測定結果を、物体の位置情報として取得する。物体情報取得部32は、所定時間毎に、物体の位置情報の取得を行うことで、物体の位置情報を逐次取得する。また、物体情報取得部32は、物体の位置情報に基づき、物体の形状を示す情報(例えば物体の3D形状)も取得できる。例えば、物体情報取得部32は、TOF画像情報など、複数の位置情報を集積して、物体の3D形状を取得できる。
(Object information acquisition unit)
The object information acquisition unit 32 acquires position information of an object existing within the imaging area AR0. The object information acquisition unit 32 controls the object position measurement unit 14 to cause the object position measurement unit 14 to measure the relative position of the object with respect to the imaging device 100 . The object information acquisition unit 32 acquires the measurement result of the relative position of the object with respect to the imaging device 100 by the object position measurement unit 14 as the position information of the object. The object information acquisition unit 32 sequentially acquires the position information of the object by acquiring the position information of the object at predetermined time intervals. The object information acquisition unit 32 can also acquire information indicating the shape of the object (for example, the 3D shape of the object) based on the positional information of the object. For example, the object information acquisition unit 32 can acquire the 3D shape of the object by accumulating a plurality of pieces of position information such as TOF image information.

(焦点位置制御部)
焦点位置制御部34は、撮像装置100の焦点位置を設定する。焦点位置制御部34は、光学素子10の位置を制御することで、すなわち光学素子10の位置を移動させることで、焦点位置を制御する。
(Focus position control unit)
The focus position control section 34 sets the focus position of the imaging device 100 . The focal position control section 34 controls the focal position by controlling the position of the optical element 10 , that is, by moving the position of the optical element 10 .

焦点位置制御部34は、対象領域AR内に存在する物体に、焦点位置を合わせる。ここでの物体とは、移動する物体を指すことが好ましい。焦点位置制御部34は、対象領域AR内に存在すると判断された物体の位置に、焦点位置を設定する。本実施形態では、焦点位置制御部34は、物体情報取得部32によって取得された物体の位置情報に基づき、その物体が対象領域AR内に存在するかを判断する。焦点位置制御部34は、物体情報取得部32によって取得された物体の位置が、そのタイミングにおける対象領域ARの位置と重なる場合には、その物体が対象領域AR内に存在すると判断して、物体情報取得部32によって取得されたその物体の位置に、焦点位置を合わせる。一方、焦点位置制御部34は、対象領域AR内に存在しない物体に対しては、焦点位置を合わせない。 The focal position control unit 34 adjusts the focal position to an object existing within the target area AR. An object here preferably refers to a moving object. The focal position control unit 34 sets the focal position to the position of the object determined to exist within the target area AR. In this embodiment, the focus position control unit 34 determines whether the object exists within the target area AR based on the position information of the object acquired by the object information acquisition unit 32 . If the position of the object acquired by the object information acquisition unit 32 overlaps with the position of the target area AR at that timing, the focus position control unit 34 determines that the object exists within the target area AR, and determines that the object exists within the target area AR. The focal position is adjusted to the position of the object acquired by the information acquisition unit 32 . On the other hand, the focus position control unit 34 does not adjust the focus position for an object that does not exist within the target area AR.

焦点位置制御部34は、焦点位置を合わせた物体が、対象領域AR内に存在している期間においては、その物体に焦点位置を合わせ続ける。すなわち、焦点位置制御部34は、物体情報取得部32によって取得された所定時間毎の物体の位置情報に基づき、その物体が対象領域AR内に存在し続けているかを判断して、その物体が対象領域AR内に存在し続けている期間においては、その物体に焦点位置を合わせ続ける。一方、焦点位置を合わせた物体が、対象領域AR外に移動した場合には、すなわち対象領域AR内に存在しなくなった場合には、焦点位置制御部34は、焦点位置をその物体から外して、その物体以外の位置に焦点を合わせる。 The focal position control unit 34 continues to focus on the object while the object on which the focal position is adjusted exists within the target area AR. That is, the focal position control unit 34 determines whether the object continues to exist within the target area AR based on the position information of the object obtained by the object information obtaining unit 32 at predetermined time intervals, and determines whether the object continues to exist within the target area AR. During the period in which the object continues to exist within the target area AR, the object continues to be focused. On the other hand, when the focused object moves out of the target area AR, that is, when it no longer exists within the target area AR, the focus position control unit 34 removes the focus position from the object. , focus on a position other than the object.

なお、焦点位置制御部34は、撮像装置100の稼働開始時(撮像可能な状態となったタイミング)から対象領域AR内に存在している物体に対しては、焦点位置を合わせなくてもよい。すなわち、焦点位置制御部34は、稼働開始後に対象領域AR内に入ってきた物体に対して、焦点位置を合わせるものであってよい。言い換えれば、焦点位置制御部34は、あるタイミングにおいては対象領域AR内に存在するが、そのタイミングより前のタイミングでは対象領域AR内に存在しない物体に対して、対象領域AR内に存在し始めたタイミングから、焦点位置を合わせてよい。言い換えれば、物体が対象領域AR外から対象領域AR内に移動した場合に、その物体を、焦点位置制御部34が焦点を合わせる対象と認識してよい。すなわち、焦点位置制御部34は、対象領域AR外から対象領域AR内に移動した物体に対して焦点位置を合わせてもよい。 Note that the focal position control unit 34 does not need to focus on an object existing within the target area AR from the start of operation of the imaging device 100 (timing when imaging becomes possible). . That is, the focal position control section 34 may adjust the focal position with respect to an object that has entered the target area AR after the start of operation. In other words, the focal position control unit 34 controls an object that exists within the target area AR at a certain timing but does not exist within the target area AR at a timing prior to that timing. You can adjust the focal position from the timing. In other words, when an object moves from outside the target area AR into the target area AR, the object may be recognized as an object to be focused on by the focus position control section 34 . That is, the focal position control unit 34 may focus on an object that has moved from outside the target area AR into the target area AR.

また、焦点位置制御部34は、対象領域AR内に物体が存在しない場合には、予め設定した設定位置に、焦点位置を合わせてよい。設定位置は、任意に設定されてよいが、例えば対象領域ARの中心位置など、対象領域AR内に設定されていることが好ましい。 Further, the focal position control unit 34 may adjust the focal position to a preset set position when an object does not exist within the target area AR. The set position may be set arbitrarily, but is preferably set within the target area AR, such as the center position of the target area AR.

また、焦点位置制御部34は、停止している物体には焦点位置を合わせず、移動している物体に対して焦点位置を合わせることが好ましい。より詳しくは、焦点位置制御部34は、対象領域ARが移動することにより、停止している(移動していない)物体が対象領域AR内に位置することとなった場合には、その物体には焦点位置を合わせない。すなわち、焦点位置制御部34は、停止している物体に対しては、例えその物体が対象領域AR内に位置する場合であっても、焦点位置を合わせる物体としては取り扱わず、その物体に焦点位置を合わせない。一方、焦点位置制御部34は、移動している物体が対象領域AR内に位置する場合、すなわち移動している物体が対象領域AR内に到達した場合、その物体に焦点位置を合わせる。なお、物体が移動しているかは、物体情報取得部32による物体の位置情報に基づき判断できる。すなわち、時系列で連続する物体の位置情報が変化している場合には、その物体が移動していると判断できる。 In addition, it is preferable that the focus position control unit 34 does not focus on a stationary object, but focuses on a moving object. More specifically, when a stationary (non-moving) object is positioned within the target area AR due to the movement of the target area AR, the focal position control unit 34 does not focus. That is, the focal position control unit 34 does not treat a stationary object as an object to be focused on, even if the object is located within the target area AR. Do not align. On the other hand, when the moving object is positioned within the target area AR, that is, when the moving object reaches the target area AR, the focus position control unit 34 adjusts the focus position to the object. Whether or not the object is moving can be determined based on the position information of the object obtained by the object information acquisition unit 32 . That is, when the position information of an object that is continuous in time series changes, it can be determined that the object is moving.

以上説明した焦点位置を合わせる処理の例を、図2を用いて説明する。図2は、対象領域ARが、位置AR1、位置AR2、位置AR3、位置AR4の順で移動する場合を例にしている。図2の例では、位置AR1での対象領域AR内には物体が存在しないため、対象領域ARが位置AR1にあるタイミングでは、焦点位置制御部34は、物体に焦点位置を合わせず、設定位置に焦点位置を合わせる。また、対象領域ARが位置AR1から位置AR2に移動したタイミングで、対象領域AR内に、停止している物体Aaが位置する。この場合、物体Aaは停止しており、対象領域ARが移動することにより停止している物体Aaが対象領域AR内に位置することとなるため、焦点位置制御部34は、物体Aaに焦点位置を合わせず、設定位置に焦点位置を合わせる。なお、ここでの設定位置は、対象領域ARを基準に設定されるため、設定位置も、対象領域ARの移動に伴い移動する。設定位置は、対象領域ARに対する位置(相対位置)が同一を保ちつつ移動することが好ましい。 An example of the processing for adjusting the focal position described above will be described with reference to FIG. FIG. 2 exemplifies a case where the target area AR moves in order of position AR1, position AR2, position AR3, and position AR4. In the example of FIG. 2, since there is no object within the target area AR at the position AR1, the focus position control unit 34 does not focus on the object at the timing when the target area AR is at the position AR1, and the set position focus on. At the timing when the target area AR moves from the position AR1 to the position AR2, the stationary object Aa is positioned within the target area AR. In this case, the object Aa is stationary, and as the target area AR moves, the stationary object Aa is positioned within the target area AR. Adjust the focus position to the set position without adjusting the Since the set position here is set with reference to the target area AR, the set position also moves along with the movement of the target area AR. The set position is preferably moved while maintaining the same position (relative position) with respect to the target area AR.

対象領域ARが位置AR2から位置AR3に移動したタイミングで、対象領域AR内に、移動している物体Abが位置する。この場合、移動している物体Abが対象領域AR内に入ることになるため、焦点位置制御部34は、物体Abに焦点位置を合わせて、物体Abが対象領域AR内に位置している期間中、物体Abに焦点位置を合わせ続ける。その後、対象領域ARが位置AR3から位置AR4に移動したタイミングで、物体Abが、対象領域AR外に移動する。焦点位置制御部34は、物体Abが対象領域AR外に移動したタイミングで、物体Abから焦点位置を外し、設定位置に焦点位置を合わせる。すなわち、焦点位置制御部34は、移動している物体Abが対象領域AR内に侵入したタイミングから、物体Abに焦点位置を合わせて、物体Abが対象領域AR内を移動している期間中、移動する物体Abに合わせて焦点位置を移動させて、物体Abが対象領域AR外に移動したタイミングで、物体Abから焦点位置を外す。 At the timing when the target area AR moves from the position AR2 to the position AR3, the moving object Ab is positioned within the target area AR. In this case, the moving object Ab enters the target area AR. In the middle, keep focusing on the object Ab. After that, at the timing when the target area AR moves from the position AR3 to the position AR4, the object Ab moves out of the target area AR. The focus position control unit 34 removes the focus position from the object Ab at the timing when the object Ab moves out of the target area AR, and adjusts the focus position to the set position. That is, the focus position control unit 34 focuses on the object Ab from the timing when the moving object Ab enters the target area AR, and during the period when the object Ab is moving within the target area AR, The focus position is moved in accordance with the moving object Ab, and the focus position is removed from the object Ab at the timing when the object Ab moves out of the target area AR.

なお、焦点位置は、ユーザによって設定されてもよい。この場合例えば、焦点位置が自動で設定されるオートモードと、焦点位置をユーザが設定するマニュアルモードとが切り替え可能となっていてよい。そして、オートモードの場合には、上述のように、焦点位置制御部34によって焦点位置が設定される。一方、マニュアルモードの場合には、ユーザによって、入力部16に焦点位置を設定する操作が入力されて、焦点位置制御部34が、ユーザの操作に応じて、焦点位置を設定する。 Note that the focus position may be set by the user. In this case, for example, it may be possible to switch between an auto mode in which the focal position is automatically set and a manual mode in which the user sets the focal position. In the auto mode, the focal position is set by the focal position control section 34 as described above. On the other hand, in the manual mode, the user inputs an operation to set the focal position to the input unit 16, and the focal position control unit 34 sets the focal position according to the user's operation.

(撮像制御部)
撮像制御部36は、撮像装置100による撮像を制御して、画像を撮像させる。撮像制御部36は、例えば撮像素子12を制御して、撮像素子12に画像信号を取得させる。例えば、撮像制御部36は、撮像素子12に、自動で画像信号を取得させてもよいし、ユーザの操作に応じて画像信号を取得させてもよい。
(imaging control unit)
The imaging control unit 36 controls imaging by the imaging device 100 to capture an image. The imaging control unit 36 controls, for example, the imaging element 12 and causes the imaging element 12 to acquire an image signal. For example, the imaging control unit 36 may cause the imaging element 12 to automatically acquire an image signal, or may acquire an image signal according to a user's operation.

(画像取得部)
画像取得部38は、撮像素子12によって取得された画像データを取得する。画像取得部38は、例えば、画像処理回路13を制御して、画像処理回路13に、撮像素子12が生成した画像信号から画像データを生成させて、その画像データを取得する。画像取得部38は、画像データを記憶部22に記憶させる。
(Image acquisition unit)
The image acquisition unit 38 acquires image data acquired by the imaging device 12 . For example, the image acquisition unit 38 controls the image processing circuit 13 to cause the image processing circuit 13 to generate image data from the image signal generated by the imaging element 12, and acquires the image data. The image acquisition unit 38 causes the storage unit 22 to store the image data.

(焦点位置の設定フロー)
次に、以上で説明した焦点位置の設定の処理フローを説明する。図4は、焦点位置の設定の処理フローを説明するフローチャートである。図4に示すように、制御部24は、対象領域取得部30により、対象領域ARが移動するように、対象領域ARを設定する(ステップS10)。そして、制御部24は、物体情報取得部32により、物体の位置情報を取得する(ステップS12)。ステップS10、S12の実施順は任意であってよい。制御部24は、焦点位置制御部34により、物体の位置情報に基づき、物体が対象領域AR内に位置しているかを判断する(ステップS14)。物体が対象領域AR内に位置しない場合(ステップS14;No)、ステップS10に戻り、対象領域ARを更新しつつ(すなわち対象領域ARを移動させつつ)、物体の位置情報の取得を続ける。一方、物体が対象領域AR内に位置する場合(ステップS14;Yes)、焦点位置制御部34は、その物体が移動しているかを判断する(ステップS16)。焦点位置制御部34は、対象領域AR内の物体が移動していない場合(ステップS16;No)、その物体に焦点位置を合わせることなくステップS10に戻り、対象領域ARを更新しつつ、物体の位置情報の取得を続ける。焦点位置制御部34は、対象領域AR内の物体が移動している場合(ステップS16;Yes)、その物体に焦点位置を合わせる(ステップS18)。その後、基準物体の位置情報を取得して対象領域ARを更新しつつ、物体の位置情報の取得を続けて、物体が対象領域AR外に移動したかを判断する(ステップS20)。物体が対象領域AR外に移動しない場合(ステップS20;No)、すなわち物体が対象領域AR内に存在し続ける場合、ステップS18に戻り、その物体に焦点位置を合わせ続ける。物体が対象領域AR外に移動した場合(ステップS20;Yes)、焦点位置制御部34は、その物体から焦点位置を外す(ステップS22)。その後、処理を終了しない場合は(ステップS24;No)、ステップS10に戻り、処理を終了する場合(ステップS24;Yes)、本処理を終了する。
(Focus position setting flow)
Next, a processing flow for setting the focal position described above will be described. FIG. 4 is a flowchart for explaining the processing flow for setting the focal position. As shown in FIG. 4, the control unit 24 sets the target area AR so that the target area AR moves by the target area acquiring unit 30 (step S10). Then, the control unit 24 acquires the position information of the object using the object information acquisition unit 32 (step S12). The order in which steps S10 and S12 are performed may be arbitrary. The control unit 24 uses the focus position control unit 34 to determine whether the object is positioned within the target area AR based on the position information of the object (step S14). If the object is not located within the target area AR (step S14; No), the process returns to step S10 to continue acquiring the position information of the object while updating the target area AR (that is, moving the target area AR). On the other hand, if the object is located within the target area AR (step S14; Yes), the focus position control unit 34 determines whether the object is moving (step S16). If the object within the target area AR has not moved (step S16; No), the focus position control unit 34 returns to step S10 without focusing on the object, updates the target area AR, and adjusts the position of the object. Continue to acquire location information. If the object within the target area AR is moving (step S16; Yes), the focus position control unit 34 adjusts the focus position to the object (step S18). After that, while acquiring the position information of the reference object and updating the target area AR, the acquisition of the position information of the object is continued, and it is determined whether the object has moved outside the target area AR (step S20). If the object does not move outside the target area AR (step S20; No), that is, if the object continues to exist within the target area AR, the process returns to step S18 to continue focusing on the object. If the object has moved outside the target area AR (step S20; Yes), the focus position control unit 34 defocuses the object (step S22). After that, if the process is not to be ended (step S24; No), the process returns to step S10, and if the process is to be ended (step S24; Yes), this process is ended.

(効果)
以上説明したように、本実施形態に係る撮像装置100は、撮像素子12と、物体情報取得部32と、対象領域取得部30と、焦点位置制御部34とを有する。物体情報取得部32は、撮像素子12の撮像領域AR0に存在する物体の位置情報を取得する。対象領域取得部30は、対象領域ARを、撮像領域AR0内で移動するように、設定する。焦点位置制御部34は、対象領域AR内に物体が存在する場合、その物体に焦点位置を合わせるように、撮像装置100の焦点位置を制御する。
(effect)
As described above, the imaging device 100 according to the present embodiment has the imaging element 12, the object information acquisition section 32, the target area acquisition section 30, and the focus position control section . The object information acquisition unit 32 acquires position information of an object existing in the imaging area AR0 of the image sensor 12 . The target area acquisition unit 30 sets the target area AR so as to move within the imaging area AR0. When an object exists within the target area AR, the focus position control unit 34 controls the focus position of the imaging device 100 so that the focus position is aligned with the object.

ここで、オートフォーカス方式の撮像装置においては、焦点位置を適切に合わせることが求められている。それに対し、本実施形態に係る撮像装置100は、対象領域ARを移動するように設定し、対象領域AR内に物体が存在する場合、その物体に焦点位置を合わせるように、撮像装置100の焦点位置を制御する。そのため、例えば監視などにおいて注目すべき領域が時系列で変化する場合に、その変化に合わせて、焦点を適切に合わせることが可能となる。 Here, in an autofocus imaging apparatus, it is required to appropriately adjust the focal position. On the other hand, the imaging apparatus 100 according to the present embodiment is set to move the target area AR, and if an object exists within the target area AR, the focal point of the imaging apparatus 100 is set so as to adjust the focal position to the object. position control. Therefore, when an area to be noticed changes in time series, for example, in monitoring, it is possible to adjust the focus appropriately according to the change.

焦点位置制御部34は、移動しない物体が対象領域AR内に位置している場合は、その物体に焦点位置を合わせず、移動する物体が対象領域AR内に位置している場合は、その物体に焦点位置を合わせてよい。そのため、対象領域ARの移動によって結果的に領域内に入った静止物体に焦点位置が合わせられることを抑制して、対象領域AR内に入ってきた移動物体に対して、適切に焦点位置を合わせることができる。 The focus position control unit 34 does not adjust the focus position to the object when the object which does not move is located within the target area AR, and when the object which moves is located within the target area AR, the object is not focused. can be focused on. Therefore, it is possible to suppress the focusing position on a stationary object that has entered the target area AR as a result of the movement of the target area AR, and appropriately adjust the focus position on a moving object that has entered the target area AR. be able to.

対象領域取得部30は、対象領域ARが、撮像装置100からの距離が第1距離L1となる第1位置AX1と、撮像装置100からの距離が第1距離L1より短い第2距離L2となる第2位置AX2との間に位置するように、対象領域ARを設定してよい。そのため、対象領域AR内に入ってきた物体に対して、適切に焦点位置を合わせることができる。 The target area acquisition unit 30 sets the target area AR to a first position AX1 at a first distance L1 from the imaging device 100 and a second distance L2 from the imaging device 100 that is shorter than the first distance L1. The target area AR may be set so as to be located between the second position AX2. Therefore, it is possible to properly focus on an object that has entered the target area AR.

(第2実施形態)
次に、第2実施形態について説明する。第2実施形態においては、移動する基準物体Bの位置情報に基づいて、対象領域ARを設定する点で、第1実施形態と異なる。第2実施形態において第1実施形態と構成が共通する箇所は、説明を省略する。
(Second embodiment)
Next, a second embodiment will be described. The second embodiment differs from the first embodiment in that the target area AR is set based on the position information of the moving reference object B. FIG. In the second embodiment, descriptions of the parts that are common to the first embodiment will be omitted.

図5は、第2実施形態に係る対象領域の一例を説明するための模式図である。図5に示すように、第2実施形態においては、対象領域取得部30は、移動する基準物体Bの位置情報に基づき、対象領域ARを設定する。基準物体Bとは、対象領域ARの位置設定の基準となる、撮像領域AR0内に位置する物体であり、移動する物体である。 FIG. 5 is a schematic diagram for explaining an example of a target area according to the second embodiment. As shown in FIG. 5, in the second embodiment, the target area acquisition unit 30 sets the target area AR based on the position information of the reference object B that moves. The reference object B is an object positioned within the imaging area AR0 that serves as a reference for setting the position of the target area AR, and is a moving object.

基準物体Bは、撮像領域AR0内であって、第1位置AX1と第2位置AX2との間に位置している物体であってよい。ただし、基準物体Bは、第1位置AX1と第2位置AX2との間に位置することに限られず、任意の位置にあってもよい。 The reference object B may be an object positioned between the first position AX1 and the second position AX2 within the imaging area AR0. However, the reference object B is not limited to being positioned between the first position AX1 and the second position AX2, and may be positioned at any position.

基準物体Bは、任意の方法で設定されてよく、例えば、対象領域取得部30が、基準物体Bを自動で設定してよい。この場合例えば、対象領域取得部30は、撮像領域AR0内に位置している物体のうちから、任意の方法で基準物体Bを選択してよい。また例えば、基準物体Bは、ユーザにより設定されてもよい。この場合例えば、ユーザが、入力部16に基準物体Bを選択する情報を入力し、対象領域取得部30は、ユーザによって指定された基準物体Bを指定する情報に基づき、基準物体Bを設定してもよい。この場合例えば、表示部18に、撮像領域AR内の画像をリアルタイムで表示して、ユーザが、撮像領域AR内の画像内に写っている物体のうちから、基準物体Bの画像を選択することで、基準物体Bを選択する情報を入力してもよい。 The reference object B may be set by any method. For example, the target region acquiring unit 30 may set the reference object B automatically. In this case, for example, the target area acquiring unit 30 may select the reference object B by any method from among the objects positioned within the imaging area AR0. Further, for example, the reference object B may be set by the user. In this case, for example, the user inputs information for selecting the reference object B to the input unit 16, and the target region acquisition unit 30 sets the reference object B based on the information for specifying the reference object B specified by the user. may In this case, for example, an image within the imaging area AR is displayed on the display unit 18 in real time, and the user selects the image of the reference object B from among the objects shown in the image within the imaging area AR. , information for selecting the reference object B may be input.

対象領域取得部30は、物体情報取得部32が取得した基準物体Bの位置情報に基づき、対象領域ARを設定する。本実施形態では、対象領域取得部30は、基準物体Bの周囲の所定の大きさの領域(空間)を、すなわち基準物体Bの位置を範囲に含む所定の大きさの領域を、対象領域ARとして設定する。図5の例では、対象領域取得部30は、基準物体Bの位置を中心として所定の半径となる円(ここでは球)を、対象領域ARとして設定する。さらに言えば、本実施形態では、上述のように基準物体Bが第1位置AX1と第2位置AX2との間の領域AR0a内に位置しているため、対象領域ARも、第1位置AX1と第2位置AX2との間の領域AR0a内に位置することになる。ただし、対象領域ARは、基準物体Bの位置を中心とした球状に設定されることに限られず、基準物体Bの位置情報に基づいて任意に設定された領域であってよい。また、対象領域ARは、第1位置AX1と第2位置AX2との間の領域AR0a内に位置しなくてもよい。 The target area acquisition unit 30 sets the target area AR based on the position information of the reference object B acquired by the object information acquisition unit 32 . In the present embodiment, the target area acquiring unit 30 acquires a predetermined size area (space) around the reference object B, that is, a predetermined size area including the position of the reference object B as the target area AR. set as In the example of FIG. 5, the target area acquiring unit 30 sets a circle (here, a sphere) having a predetermined radius centered on the position of the reference object B as the target area AR. Furthermore, in this embodiment, as described above, the reference object B is positioned within the area AR0a between the first position AX1 and the second position AX2, so the target area AR is also located between the first position AX1 and the second position AX2. It is positioned within the area AR0a between the second position AX2. However, the target area AR is not limited to being set in a spherical shape centered on the position of the reference object B, and may be an area arbitrarily set based on the position information of the reference object B. FIG. Also, the target area AR does not have to be positioned within the area AR0a between the first position AX1 and the second position AX2.

図6は、基準物体が複数設定された場合の例を示す模式図である。基準物体Bは、複数設定されてもよい。この場合、対象領域取得部30は、複数の基準物体Bの位置情報に基づき、対象領域ARを設定する。例えば、図6に示すように、対象領域取得部30は、複数の基準物体Bに囲われた領域(空間)を、対象領域ARとして設定してよい。 FIG. 6 is a schematic diagram showing an example when a plurality of reference objects are set. A plurality of reference objects B may be set. In this case, the target area acquisition unit 30 sets the target area AR based on the position information of the plurality of reference objects B. FIG. For example, as shown in FIG. 6, the target area acquiring unit 30 may set an area (space) surrounded by a plurality of reference objects B as the target area AR.

基準物体Bは上述のように移動するため、物体情報取得部32は、基準物体Bの位置情報を逐次取得する。対象領域取得部30は、物体情報取得部32が取得した基準物体Bの位置情報に基づき、対象領域ARを逐次設定する。対象領域取得部30は、基準物体Bの移動に伴い、すなわち基準物体Bの位置情報の変化に伴い、対象領域ARも移動するように、対象領域ARを設定する。対象領域取得部30は、基準物体Bに対する対象領域ARの位置(相対位置)を同一に保ちつつ、対象領域ARも移動するように、対象領域ARを設定することが好ましい。すなわち、対象領域取得部30は、基準物体Bの移動に伴い、基準物体Bに対する対象領域ARの位置を同一に保ちつつ、対象領域ARの位置を逐次更新するといえる。 Since the reference object B moves as described above, the object information acquisition unit 32 acquires the position information of the reference object B successively. The target area acquisition unit 30 sequentially sets the target area AR based on the position information of the reference object B acquired by the object information acquisition unit 32 . The target area acquisition unit 30 sets the target area AR such that the target area AR also moves as the reference object B moves, that is, as the position information of the reference object B changes. The target area acquisition unit 30 preferably sets the target area AR such that the target area AR is also moved while the position (relative position) of the target area AR with respect to the reference object B is kept the same. That is, it can be said that the target area acquiring unit 30 sequentially updates the position of the target area AR while keeping the same position of the target area AR with respect to the reference object B as the reference object B moves.

以上説明した焦点位置を合わせる処理の例を、図5を用いて説明する。図5は、基準物体Bが、位置B1、位置B2、位置B3、位置B4の順で移動しており、対象領域ARが基準物体Bを中心とした領域として設定される場合を例にしている。この場合、対象領域ARも、基準物体Bの移動に伴い移動している。以下においては、基準物体Bが位置B1にあるタイミングでの対象領域ARの位置を、位置AR1とし、基準物体Bが位置B2にあるタイミングでの対象領域ARの位置を、位置AR2とし、基準物体Bが位置B3にあるタイミングでの対象領域ARの位置を、位置AR3とし、基準物体Bが位置B4にあるタイミングでの対象領域ARの位置を、位置AR4とする。図5の例では、位置AR1での対象領域AR内には物体が存在しないため、基準物体Bが位置B1にある(対象領域ARが位置AR1にある)タイミングでは、焦点位置制御部34は、物体に焦点位置を合わせず、設定位置に焦点位置を合わせる。また、対象領域ARが位置AR1から位置AR2に移動したタイミングで、対象領域AR内に、停止している物体Aaが位置する。この場合、物体Aaは停止しており、対象領域ARが移動することにより停止している物体Aaが対象領域AR内に位置することとなるため、焦点位置制御部34は、物体Aaに焦点位置を合わせず、設定位置に焦点位置を合わせる。なお、ここでの設定位置は、対象領域ARを基準に設定されるため、設定位置も、対象領域ARの移動に伴い移動する。設定位置は、対象領域ARに対する位置(相対位置)が同一を保ちつつ移動することが好ましい。 An example of the processing for adjusting the focal position described above will be described with reference to FIG. FIG. 5 exemplifies a case where the reference object B moves in the order of position B1, position B2, position B3, and position B4, and the target area AR is set as an area centered on the reference object B. . In this case, the target area AR also moves as the reference object B moves. In the following, the position of the target area AR at the timing when the reference object B is at the position B1 is assumed to be the position AR1, the position of the target area AR at the timing when the reference object B is at the position B2 is assumed to be the position AR2, and the reference object The position of the target area AR at the timing when B is at position B3 is assumed to be position AR3, and the position of the target area AR at the timing when reference object B is at position B4 is assumed to be position AR4. In the example of FIG. 5, since there is no object within the target area AR at the position AR1, at the timing when the reference object B is at the position B1 (the target area AR is at the position AR1), the focal position control unit 34 Instead of focusing on the object, focus on the set position. At the timing when the target area AR moves from the position AR1 to the position AR2, the stationary object Aa is positioned within the target area AR. In this case, the object Aa is stationary, and as the target area AR moves, the stationary object Aa is positioned within the target area AR. Adjust the focus position to the set position without adjusting the Since the set position here is set with reference to the target area AR, the set position also moves along with the movement of the target area AR. The set position is preferably moved while maintaining the same position (relative position) with respect to the target area AR.

対象領域ARが位置AR2から位置AR3に移動したタイミングで、対象領域AR内に、移動している物体Abが位置する。この場合、移動している物体Abが対象領域AR内に位置することとなるため、焦点位置制御部34は、物体Abに焦点位置を合わせて、物体Abが対象領域AR内に位置している期間中、物体Abに焦点位置を合わせ続ける。その後、対象領域ARが位置AR3から位置AR4に移動したタイミングで、物体Abが、対象領域AR外に位置する。焦点位置制御部34は、物体Abが対象領域AR外に位置したタイミングで、物体Abから焦点位置を外し、設定位置に焦点位置を合わせる。 At the timing when the target area AR moves from the position AR2 to the position AR3, the moving object Ab is positioned within the target area AR. In this case, since the moving object Ab is positioned within the target area AR, the focal position control unit 34 adjusts the focal position to the object Ab, and the object Ab is positioned within the target area AR. During the period, the focus position is kept on the object Ab. After that, at the timing when the target area AR moves from the position AR3 to the position AR4, the object Ab is positioned outside the target area AR. The focus position control unit 34 removes the focus position from the object Ab at the timing when the object Ab is positioned outside the target area AR, and adjusts the focus position to the set position.

次に、第2実施形態における焦点位置の設定の処理フローを説明する。図7は、焦点位置の設定の処理フローを説明するフローチャートである。図7に示すように、制御部24は、物体情報取得部32により、基準物体Bの位置情報を取得し(ステップS30)、対象領域取得部30により、基準物体Bの位置情報に基づき、対象領域ARを設定する(ステップS32)。そして、制御部24は、物体情報取得部32により、物体の位置情報を取得する(ステップS34)。ステップS30、S32、S34の実施順は任意であってよい。制御部24は、焦点位置制御部34により、物体の位置情報に基づき、物体が対象領域AR内に位置しているかを判断する(ステップS36)。物体が対象領域AR内に位置しない場合(ステップS36;No)、ステップS30に戻り、基準物体の位置情報を取得して対象領域ARを更新しつつ、物体の位置情報の取得を続ける。一方、物体が対象領域AR内に位置する場合(ステップS36;Yes)、焦点位置制御部34は、その物体が移動しているかを判断する(ステップS38)。焦点位置制御部34は、対象領域AR内の物体が移動していない場合(ステップS38;No)、ステップS30に戻り、基準物体の位置情報を取得して対象領域ARを更新しつつ、物体の位置情報の取得を続ける。焦点位置制御部34は、対象領域AR内の物体が移動している場合(ステップS38;Yes)、その物体に焦点位置を合わせる(ステップS40)。その後、基準物体の位置情報を取得して対象領域ARを更新しつつ、物体の位置情報の取得を続けて、物体が対象領域AR外に移動したかを判断する(ステップS42)。物体が対象領域AR外に移動しない場合(ステップS42;No)、すなわち物体が対象領域AR内に存在し続ける場合、ステップS40に戻り、その物体に焦点位置を合わせ続ける。物体が対象領域AR外に移動した場合(ステップS42;Yes)、焦点位置制御部34は、その物体から焦点位置を外す(ステップS44)。その後、処理を終了しない場合は(ステップS46;No)、ステップS30に戻り、処理を終了する場合(ステップS46;Yes)、本処理を終了する。 Next, the processing flow for setting the focal position in the second embodiment will be described. FIG. 7 is a flowchart for explaining the processing flow for setting the focal position. As shown in FIG. 7, the control unit 24 acquires the position information of the reference object B by the object information acquisition unit 32 (step S30), and the target area acquisition unit 30 acquires the position information of the reference object B based on the position information of the reference object B. An area AR is set (step S32). Then, the control unit 24 acquires the position information of the object by the object information acquiring unit 32 (step S34). The order in which steps S30, S32, and S34 are performed may be arbitrary. The control unit 24 uses the focus position control unit 34 to determine whether the object is positioned within the target area AR based on the position information of the object (step S36). If the object is not located within the target area AR (step S36; No), the process returns to step S30 to continue acquiring the position information of the object while acquiring the position information of the reference object and updating the target area AR. On the other hand, if the object is located within the target area AR (step S36; Yes), the focus position control unit 34 determines whether the object is moving (step S38). If the object in the target area AR has not moved (step S38; No), the focus position control unit 34 returns to step S30, acquires the position information of the reference object, updates the target area AR, and adjusts the position of the object. Continue to acquire location information. If the object within the target area AR is moving (step S38; Yes), the focus position control unit 34 adjusts the focus position to the object (step S40). After that, while acquiring the position information of the reference object and updating the target area AR, the acquisition of the position information of the object is continued, and it is determined whether the object has moved outside the target area AR (step S42). If the object does not move outside the target area AR (step S42; No), that is, if the object continues to exist within the target area AR, the process returns to step S40 to continue focusing on the object. If the object has moved outside the target area AR (step S42; Yes), the focus position control unit 34 defocuses the object (step S44). Thereafter, if the process is not to be ended (step S46; No), the process returns to step S30, and if the process is to be ended (step S46; Yes), this process is ended.

以上説明したように、第2実施形態においては、対象領域取得部30は、物体情報取得部32が取得した、移動する基準物体Bの位置情報に基づき、対象領域ARを移動するように設定する。すなわち、対象領域取得部30は、基準物体Bの移動に伴い、対象領域ARも移動するように、対象領域ARを設定する。そのため、例えば監視などにおいて注目すべき物体が移動する場合に、その物体に合わせて対象領域ARを移動させることで、移動する物体の近傍に焦点を適切に合わせることが可能となる。 As described above, in the second embodiment, the target area acquisition unit 30 sets the target area AR to move based on the position information of the moving reference object B acquired by the object information acquisition unit 32. . That is, the target area acquiring unit 30 sets the target area AR such that the target area AR moves as the reference object B moves. Therefore, for example, when an object of interest moves in monitoring or the like, by moving the target area AR in accordance with the object, it is possible to appropriately focus on the vicinity of the moving object.

また、対象領域取得部30は、基準物体Bに対する対象領域ARの位置を同一に保つように、基準物体Bの移動に伴い、対象領域ARを移動するように設定する。従って、注目すべき物体に合わせて対象領域ARを適切に移動させることで、移動する物体の近傍に焦点をより適切に合わせることが可能となる。 Further, the target area acquisition unit 30 sets the target area AR to move as the reference object B moves so that the position of the target area AR with respect to the reference object B is kept the same. Therefore, by appropriately moving the target area AR in accordance with the object of interest, it is possible to more appropriately focus on the vicinity of the moving object.

(第3実施形態)
次に、第3実施形態について説明する。第3実施形態においては、対象領域AR内に存在して、かつ所定の条件を満たす物体に対して焦点位置を合わせる点で、第1実施形態と異なる。第3実施形態において第1実施形態と構成が共通する箇所は、説明を省略する。第3実施形態は、第1実施形態にも適用可能である。
(Third embodiment)
Next, a third embodiment will be described. The third embodiment differs from the first embodiment in that the focal position is adjusted to an object that exists within the target area AR and satisfies a predetermined condition. In the third embodiment, descriptions of parts that are common to the first embodiment will be omitted. The third embodiment can also be applied to the first embodiment.

第3実施形態においては、焦点位置制御部34は、対象領域AR内に存在し、かつ、所定の条件を満たす物体に対して、焦点位置を合わせる。焦点位置制御部34は、対象領域AR内に存在することと、所定の条件を満たすこととの、少なくとも一方を満たさない物体に対しては、焦点位置を合わせない。焦点位置制御部34は、焦点位置を合わせた物体が、所定の条件を満たして対象領域AR内に存在し続ける期間中、その物体に焦点位置を合わせ続ける。一方、焦点位置制御部34は、その物体が、対象領域AR内に存在することと、所定の条件を満たすこととの、少なくとも一方を満たさなくなった場合には、その物体から焦点位置を外す。すなわち例えば、焦点位置制御部34は、その物体が所定条件を満たしているが対象領域AR外に移動した場合や、対象領域AR内に存在するが所定条件を満たさなくなった場合には、その物体から焦点位置を外す。 In the third embodiment, the focal position control unit 34 adjusts the focal position to an object that exists within the target area AR and satisfies a predetermined condition. The focal position control unit 34 does not focus on an object that does not satisfy at least one of being present in the target area AR and satisfying a predetermined condition. The focal position control unit 34 continues to focus on the object while the object on which the focal position is adjusted satisfies a predetermined condition and continues to exist within the target area AR. On the other hand, the focus position control unit 34 removes the focus position from the object when at least one of the existence of the object within the target area AR and the satisfaction of the predetermined condition is no longer satisfied. That is, for example, if the object satisfies the predetermined condition but has moved out of the target area AR, or if it exists within the target area AR but no longer satisfies the predetermined condition, the focal position control unit 34 detects that the object Remove the focus position from

焦点位置制御部34は、任意の方法で所定の条件を満たすかを判断してよいが、例えば、物体の位置情報と、物体の画像との少なくとも一方に基づき、所定の条件を満たすかを判断してよい。ここでの物体の位置情報は、物体位置測定部14の測定結果を指してよく、物体の画像は、撮像素子12によって取得された、物体が写っている画像データを指してよい。 The focal position control unit 34 may determine whether or not the predetermined condition is satisfied by any method. You can The positional information of the object here may refer to the measurement result of the object position measuring unit 14, and the image of the object may refer to image data of the object captured by the imaging device 12. FIG.

ここでの所定の条件とは、物体が対象領域AR内に存在する以外であれば、任意の条件であってよい。例えば、所定の条件は、物体が所定の運動を行っていること、物体が所定の形状であること、及び物体が所定方向を向いていること、の少なくとも1つであってよい。また、これらのうちのいずれか2つを所定条件としてよいし、これらの全てを所定条件としてもよい。焦点位置制御部34は、所定の条件が複数設定されている場合には、全ての条件を満たした場合に、所定の条件を満たすと判断する。 The predetermined condition here may be any condition other than that the object exists within the target area AR. For example, the predetermined condition may be at least one of that the object is performing a predetermined motion, that the object has a predetermined shape, and that the object faces a predetermined direction. Also, any two of these may be used as the predetermined conditions, or all of them may be used as the predetermined conditions. When a plurality of predetermined conditions are set, the focus position control unit 34 determines that the predetermined conditions are satisfied when all the conditions are satisfied.

物体の運動を所定の条件とする場合について説明する。この場合、焦点位置制御部34は、時系列で連続して取得された物体の位置情報に基づき、物体が所定の運動を行っているかを判断する。焦点位置制御部34は、対象領域AR内に存在し、かつ、所定の運動を行っている物体に対して、焦点位置を合わせる。焦点位置制御部34は、対象領域AR内に存在することと、所定の運動を行っていることとの、少なくとも一方を満たさない物体に対しては、焦点位置を合わせない。焦点位置制御部34は、焦点位置を合わせた物体が、対象領域AR内に存在して所定の運動を続けている期間中、その物体に焦点位置を合わせ続ける。一方、焦点位置制御部34は、その物体が、対象領域AR内に存在することと、所定の運動を行うこととの、少なくとも一方を満たさなくなった場合には、その物体から焦点位置を外す。なお、ここでの物体の運動とは、物体の移動態様を指しており、例えば、物体の移動方向と移動速度とを指してよい。例えば、所定の運動が、鉛直方向下方に10m/h以上の速度で移動していることを指す場合には、焦点位置制御部34は、対象領域AR内で、鉛直方向下方に10m/h以上の速度で移動する物体に対して、焦点位置を合わせる。なお、物体の運動は、物体の移動方向と移動速度とを指すことに限られず、任意の移動態様を指してよい。例えば、物体の運動は、物体の移動方向と移動速度との少なくとも一方を指してよい。 A case where motion of an object is a predetermined condition will be described. In this case, the focus position control unit 34 determines whether the object is moving in a predetermined manner based on the position information of the object that is continuously acquired in time series. The focal position control unit 34 adjusts the focal position with respect to an object existing within the target area AR and performing a predetermined motion. The focal position control unit 34 does not focus on an object that does not meet at least one of being within the target area AR and performing a predetermined movement. The focal position control unit 34 keeps the focal position on the object while the object on which the focal position is adjusted exists in the target area AR and continues a predetermined movement. On the other hand, the focus position control unit 34 removes the focus position from the object when the object no longer satisfies at least one of being present in the target area AR and performing a predetermined movement. Note that the motion of the object here refers to the mode of movement of the object, and may refer to, for example, the direction and speed of movement of the object. For example, if the predetermined motion means moving downward in the vertical direction at a speed of 10 m/h or more, the focal position control unit 34 moves downward in the vertical direction by 10 m/h or more in the target area AR. Focus on an object moving at a speed of Note that the motion of an object is not limited to indicating the moving direction and moving speed of an object, and may refer to any mode of movement. For example, motion of an object may refer to at least one of the direction and speed of movement of the object.

図8は、物体の運動を所定の条件とする場合の例を説明する模式図である。図8の例では、物体が鉛直方向下方(Z方向と反対方向)に移動することを、すなわち物体の移動方向を、所定の条件としている。そして、図8の例では、物体Aが、位置A0aから、位置A1a、位置A2aを通って位置A3aまで鉛直方向下方に移動し、位置A3aで停止した場合を示している。位置A0aは、対象領域AR外であり、位置A1a、A2a、A3aは、対象領域AR内である。この場合、焦点位置制御部34は、物体Aが位置A0aに存在するタイミングにおいては、物体Aが対象領域AR外であるため、物体Aに焦点位置を合わせず、例えば設定位置に焦点位置を合わせる。そして、焦点位置制御部34は、物体Aが位置A1aに存在するタイミングにおいて、すなわち物体Aが鉛直方向下方に移動しつつ対象領域AR内に入ったタイミングにおいて、物体Aに焦点位置を合わせる。焦点位置制御部34は、物体Aが位置A2aに存在するタイミングにおいても、物体Aに焦点位置を合わせ続けて、物体Aが位置A3aに移動して停止したタイミングにおいて、物体Aから焦点位置を外し、設定位置に焦点位置を戻す。 FIG. 8 is a schematic diagram illustrating an example in which motion of an object is set as a predetermined condition. In the example of FIG. 8, the predetermined condition is that the object moves downward in the vertical direction (the direction opposite to the Z direction), that is, the moving direction of the object. In the example of FIG. 8, the object A moves downward in the vertical direction from position A0a through positions A1a and A2a to position A3a, and stops at position A3a. The position A0a is outside the target area AR, and the positions A1a, A2a, and A3a are inside the target area AR. In this case, the focus position control unit 34 does not focus on the object A because the object A is outside the target area AR at the timing when the object A exists at the position A0a. . Then, the focal position control unit 34 focuses on the object A at the timing when the object A is present at the position A1a, that is, at the timing when the object A enters the target area AR while moving downward in the vertical direction. The focus position control unit 34 continues to focus on the object A even at the timing when the object A is present at the position A2a, and removes the focus position from the object A at the timing when the object A moves to the position A3a and stops. , to return the focal position to the set position.

次に、物体の形状を所定の条件とする場合について説明する。この場合、焦点位置制御部34は、物体が写った画像データに基づき、物体が所定の形状であるかを判断する。対象領域AR内に存在し、かつ、所定の形状の物体に対して、焦点位置を合わせる。焦点位置制御部34は、対象領域AR内に存在することと、所定の形状であることとの、少なくとも一方を満たさない物体に対しては、焦点位置を合わせない。焦点位置制御部34は、焦点位置を合わせた物体が、所定の形状であり対象領域AR内に存在し続けている期間中、その物体に焦点位置を合わせ続ける。一方、焦点位置制御部34は、その物体が、対象領域AR内に存在することと、所定の形状であることとの、少なくとも一方を満たさなくなった場合には、その物体から焦点位置を外す。ここでの物体の形状は、例えば、物体の大きさと物体の外形との少なくとも一方であってよい。例えば、所定の形状が、所定の大きさ以上であることを指す場合には、焦点位置制御部34は、対象領域AR内に存在する所定の大きさ以上の物体に対して、焦点位置を合わせる。なお、物体の形状情報の取得には、物体情報取得部32の取得する3D形状の情報を用いてもよい。 Next, a case where the shape of an object is set as a predetermined condition will be described. In this case, the focus position control section 34 determines whether the object has a predetermined shape based on the image data showing the object. The focal position is adjusted to an object that exists within the target area AR and has a predetermined shape. The focal position control unit 34 does not focus on an object that does not satisfy at least one of being within the target area AR and having a predetermined shape. The focal position control unit 34 continues to focus on the object while the object on which the focal position is adjusted has a predetermined shape and continues to exist within the target area AR. On the other hand, the focus position control unit 34 removes the focus position from the object when the object no longer satisfies at least one of being in the target area AR and having a predetermined shape. The shape of the object here may be, for example, at least one of the size of the object and the outline of the object. For example, when the predetermined shape indicates a predetermined size or more, the focus position control unit 34 adjusts the focus position to an object of a predetermined size or more that exists within the target area AR. . Note that 3D shape information acquired by the object information acquiring unit 32 may be used to acquire the shape information of the object.

物体の向きを所定の条件とする場合について説明する。この場合、焦点位置制御部34は、物体が写った画像データに基づき、物体が所定方向を向いているかを判断する。対象領域AR内に存在し、かつ、所定方向を向く物体に対して、焦点位置を合わせる。焦点位置制御部34は、対象領域AR内に存在することと、所定方向を向いていることとの、少なくとも一方を満たさない物体に対しては、焦点位置を合わせない。焦点位置制御部34は、焦点位置を合わせた物体が、所定方向を向きつつ対象領域AR内に存在し続けている期間中、その物体に焦点位置を合わせ続ける。一方、焦点位置制御部34は、その物体が、対象領域AR内に存在することと、所定方向を向いていることとの、少なくとも一方を満たさなくなった場合には、その物体から焦点位置を外す。なお、物体の向きの情報の取得には、物体情報取得部32の取得する3D形状の情報を用いてもよい。 A case where the orientation of an object is a predetermined condition will be described. In this case, the focal position control unit 34 determines whether the object faces a predetermined direction based on the image data showing the object. A focal position is adjusted to an object that exists within the target area AR and faces in a predetermined direction. The focal position control unit 34 does not focus on an object that does not satisfy at least one of being in the target area AR and being oriented in a predetermined direction. The focal position control unit 34 continues to focus on the object while the object on which the focal position is adjusted continues to exist within the target area AR while facing the predetermined direction. On the other hand, when the object no longer satisfies at least one of being in the target area AR and facing a predetermined direction, the focus position control unit 34 removes the focus position from the object. . Note that 3D shape information acquired by the object information acquisition unit 32 may be used to acquire information on the orientation of the object.

なお、所定の条件は、任意の方法で設定されてよく、例えば、予め設定されていてよい。この場合、焦点位置制御部34は、予め設定された所定の条件を示す情報(例えば移動方向及び移動速度)を、記憶部22から読み出してもよいし、通信部20を介して、他の機器から、所定の条件を取得してもよい。また例えば、所定の条件が予め設定されていない場合には、焦点位置制御部34が、所定の条件を自動で設定してもよい。また例えば、ユーザが所定の条件を設定してもよい。この場合例えば、ユーザが、入力部16に、所定の条件を指定する情報(例えば移動方向及び移動速度)を入力し、焦点位置制御部34は、ユーザによって指定された情報に基づき、所定の条件を設定してもよい。 Note that the predetermined condition may be set by any method, and may be set in advance, for example. In this case, the focal position control unit 34 may read out information indicating a predetermined condition (for example, moving direction and moving speed) from the storage unit 22, or may read the information indicating the predetermined condition from the storage unit 22, or may transmit the information to another device via the communication unit 20. A predetermined condition may be obtained from. Further, for example, when the predetermined condition is not set in advance, the focus position control section 34 may automatically set the predetermined condition. Alternatively, for example, the user may set a predetermined condition. In this case, for example, the user inputs information specifying a predetermined condition (for example, moving direction and moving speed) to the input unit 16, and the focal position control unit 34 controls the predetermined condition based on the information specified by the user. may be set.

以上説明したように、第3実施形態においては、焦点位置制御部34は、対象領域ARに存在し、かつ、所定の運動を行っている物体に、焦点位置を合わせてもよい。焦点位置制御部34は、その物体が所定の運動を行っている期間には、焦点位置をその物体に合わせ続け、その物体が所定の運動を行わなくなったら、焦点位置をその物体から外す。このように、対象領域AR内にあることに加えて、所定の運動を満たすことも焦点位置を合わす条件とすることで、特定の動きをしている物体を追跡して、焦点位置を適切に合わせることが可能となる。 As described above, in the third embodiment, the focus position control unit 34 may focus on an object that is present in the target area AR and is performing a predetermined movement. The focus position control unit 34 keeps the focus position on the object while the object is moving in a predetermined manner, and removes the focus position from the object when the object stops moving in the predetermined direction. In this way, in addition to being within the target area AR, satisfying a predetermined motion is also a condition for focusing, so that an object that is moving in a specific manner can be tracked and the focus position can be adjusted appropriately. It is possible to match.

第3実施形態においては、焦点位置制御部34は、対象領域ARに存在し、かつ、所定の形状の物体に、焦点位置を合わせてもよい。このように、対象領域AR内にあることに加えて、所定の形状であることも焦点位置を合わす条件とすることで、特定の形状の物体を追跡して、焦点位置を適切に合わせることが可能となる。 In the third embodiment, the focus position control unit 34 may focus on an object that exists in the target area AR and has a predetermined shape. In this way, in addition to being within the target area AR, the object having a predetermined shape is also a condition for adjusting the focus position, so that an object with a specific shape can be tracked and the focus position can be appropriately adjusted. It becomes possible.

第3実施形態においては、焦点位置制御部34は、対象領域ARに存在し、かつ、所定の方向を向く物体に、焦点位置を合わせてもよい。このように、対象領域AR内にあることに加えて、所定の方向を向いていることも焦点位置を合わす条件とすることで、特定の向きの物体を追跡して、焦点位置を適切に合わせることが可能となる。 In the third embodiment, the focal position control unit 34 may focus on an object that exists in the target area AR and faces in a predetermined direction. In this way, in addition to being within the target area AR, by setting the condition that the object is oriented in a predetermined direction as a condition for adjusting the focus position, an object in a specific direction is tracked and the focus position is appropriately adjusted. becomes possible.

以上、本発明の実施形態を説明したが、これら実施形態の内容により実施形態が限定されるものではない。また、前述した構成要素には、当業者が容易に想定できるもの、実質的に同一のもの、いわゆる均等の範囲のものが含まれる。さらに、前述した構成要素は適宜組み合わせることが可能であり、各実施形態の構成を組み合わせることも可能である。さらに、前述した実施形態の要旨を逸脱しない範囲で構成要素の種々の省略、置換又は変更を行うことができる。また、各実施形態では、焦点位置を合わせるという動作を特徴点として説明したが、焦点位置を合わせる動作と、他の動作とを組み合わせてもよい。例えば、焦点位置を合わせる動作と、ズームによる拡大縮小の動作と組み合わせてもよい。また、各実施形態の説明において、焦点位置を合わせる動作を、他の動作に置き換えてもよい。例えば、各実施形態の説明において、焦点位置を合わせる動作を、ズームによる拡大縮小の動作に置き換えてもよい。また、各実施形態における撮像装置の制御部24は、例えば物体が所定の対象領域ARに出入りをする、物体が所定の方向の運動をするなどの設定された条件を満たしたとき、通信部20を通して所定の送信先に通知をおこなうようにしてもよい。ここでの設定された条件とは、例えば、物体が対象領域AR内に移動することをトリガとしてその物体に焦点位置を合わせることを指してよい。 Although the embodiments of the present invention have been described above, the embodiments are not limited by the contents of these embodiments. In addition, the components described above include those that can be easily assumed by those skilled in the art, those that are substantially the same, and those within the so-called equivalent range. Furthermore, the components described above can be combined as appropriate, and it is also possible to combine the configurations of the respective embodiments. Furthermore, various omissions, replacements, or modifications of components can be made without departing from the gist of the above-described embodiments. Further, in each embodiment, the operation of adjusting the focal position has been described as a characteristic point, but the operation of adjusting the focal position may be combined with another operation. For example, the operation of adjusting the focal position may be combined with the operation of zooming. Also, in the description of each embodiment, the operation of adjusting the focal position may be replaced with another operation. For example, in the description of each embodiment, the operation of adjusting the focal position may be replaced with the operation of zooming. Further, the control unit 24 of the imaging device in each embodiment, for example, when a set condition such as an object entering or exiting a predetermined target area AR or an object moving in a predetermined direction is satisfied, the communication unit 20 You may make it notify to a predetermined transmission destination through. The set condition here may mean, for example, that the movement of the object within the target area AR is used as a trigger to bring the object into focus.

10 光学素子
12 撮像素子
14 物体位置測定部
30 対象領域取得部
32 物体情報取得部
34 焦点位置制御部
AR 対象領域
AR0 撮像領域
B 基準物体
REFERENCE SIGNS LIST 10 optical device 12 imaging device 14 object position measurement unit 30 target area acquisition unit 32 object information acquisition unit 34 focus position control unit AR target area AR0 imaging area B reference object

Claims (7)

物体を撮像可能な撮像装置であって、
撮像素子と、
前記撮像素子の撮像領域に存在する物体の位置情報を取得する物体情報取得部と、
対象領域を、前記撮像領域内で移動するように設定する対象領域取得部と、
前記対象領域内に物体が存在する場合、その物体に焦点位置を合わせるように、前記撮像装置の焦点位置を制御する焦点位置制御部と、
を有する、
撮像装置。
An imaging device capable of imaging an object,
an imaging device;
an object information acquisition unit that acquires position information of an object existing in the imaging area of the imaging device;
a target region acquiring unit that sets the target region so as to move within the imaging region;
a focal position control unit that controls the focal position of the imaging device so that the focal position is aligned with the object when the object exists in the target area;
having
Imaging device.
前記焦点位置制御部は、移動しない物体が前記対象領域内に位置している場合は、その物体に前記焦点位置を合わせず、移動する物体が前記対象領域内に位置している場合は、その物体に前記焦点位置を合わせる、請求項1に記載の撮像装置。 The focus position control unit does not adjust the focus position to the object when an object that does not move is located within the target region, and if the object that moves is located within the target region, 2. The imaging device according to claim 1, wherein said focal position is adjusted to an object. 前記対象領域取得部は、前記物体情報取得部が取得した、移動する基準物体の位置情報に基づき、前記対象領域を移動するように設定する、請求項1又は請求項2に記載の撮像装置。 3. The imaging apparatus according to claim 1, wherein said target area acquisition unit sets said target area to move based on position information of a moving reference object acquired by said object information acquisition unit. 前記対象領域取得部は、前記基準物体に対する前記対象領域の位置を同一に保つように、前記基準物体の移動に伴い、前記対象領域を移動するように設定する、請求項3に記載の撮像装置。 4. The imaging apparatus according to claim 3, wherein said target region acquisition unit sets said target region to move as said reference object moves so as to keep the same position of said target region with respect to said reference object. . 前記対象領域取得部は、前記対象領域が、前記撮像装置からの距離が第1距離となる第1位置と、前記撮像装置からの距離が前記第1距離より短い第2距離となる第2位置との間に位置するように、前記対象領域を設定する、請求項1から請求項4のいずれか1項に記載の撮像装置。 The target region acquisition unit is configured such that the target region is located at a first position where the distance from the imaging device is a first distance, and a second position where the distance from the imaging device is a second distance shorter than the first distance. 5. The imaging apparatus according to any one of claims 1 to 4, wherein the target area is set so as to be located between and. 物体を撮像する撮像方法であって、
撮像領域に存在する物体の位置情報を取得するステップと、
対象領域を、前記撮像領域内で移動するように設定するステップと、
前記対象領域内に物体が存在する場合、その物体に焦点位置を合わせるように、撮像装置の焦点位置を制御するステップと、
を含む、
撮像方法。
An imaging method for imaging an object,
a step of acquiring position information of an object existing in the imaging area;
setting a region of interest to move within the imaging region;
a step of controlling the focal position of an imaging device so as to adjust the focal position to the object when the object exists within the target area;
including,
Imaging method.
物体を撮像する撮像方法をコンピュータに実行させるプログラムであって、
撮像領域に存在する物体の位置情報を取得するステップと、
対象領域を、前記撮像領域内で移動するように設定するステップと、
前記対象領域内に物体が存在する場合、その物体に焦点位置を合わせるように、撮像装置の焦点位置を制御するステップと、
を前記コンピュータに実行させる、
プログラム。
A program for causing a computer to execute an imaging method for imaging an object,
a step of acquiring position information of an object existing in the imaging area;
setting a region of interest to move within the imaging region;
a step of controlling the focal position of an imaging device so as to adjust the focal position to the object when the object exists within the target area;
causing said computer to execute
program.
JP2021156863A 2021-09-27 2021-09-27 Imaging apparatus, imaging method, and program Pending JP2023047764A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2021156863A JP2023047764A (en) 2021-09-27 2021-09-27 Imaging apparatus, imaging method, and program
PCT/JP2022/029298 WO2023047802A1 (en) 2021-09-27 2022-07-29 Imaging device and imaging method
PCT/JP2022/029384 WO2023047804A1 (en) 2021-09-27 2022-07-29 Imaging device, imaging system, imaging method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021156863A JP2023047764A (en) 2021-09-27 2021-09-27 Imaging apparatus, imaging method, and program

Publications (1)

Publication Number Publication Date
JP2023047764A true JP2023047764A (en) 2023-04-06

Family

ID=85779280

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021156863A Pending JP2023047764A (en) 2021-09-27 2021-09-27 Imaging apparatus, imaging method, and program

Country Status (1)

Country Link
JP (1) JP2023047764A (en)

Similar Documents

Publication Publication Date Title
US7826735B2 (en) Auto focus unit and digital camera
JP5830373B2 (en) Imaging device
JP6204660B2 (en) Imaging apparatus and control method thereof
US20050264679A1 (en) Autofocus system
JP5810136B2 (en) TRACKING DEVICE, TRACKING METHOD, AND TRACKING PROGRAM
JP2005215040A (en) Autofocus system
US8964104B2 (en) Image pickup apparatus
EP3163346B1 (en) Autofocusing a macro object by an imaging device
US20180027172A1 (en) Focus adjusting apparatus, focus adjusting method, image capturing apparatus, and storage medium
US20170228887A1 (en) Image capturing apparatus, tracking device, control method, and storage medium
JP7156352B2 (en) IMAGING DEVICE, IMAGING METHOD, AND PROGRAM
JP2006058431A (en) Autofocusing system
US9912858B2 (en) Image capturing apparatus and control method thereof
TWI693828B (en) Image-capturing device and method for operating the same
US9420161B2 (en) Image-capturing apparatus
CN106412419B (en) Image pickup apparatus and control method thereof
JP2023047764A (en) Imaging apparatus, imaging method, and program
JP2023048019A (en) Imaging device, imaging method, and program
US7990417B2 (en) Targeted object pursuit system
WO2023047804A1 (en) Imaging device, imaging system, imaging method, and program
JP2023047943A (en) Imaging device, imaging method, and program
JP2023047715A (en) Imaging system, imaging method, and program
JP2023047714A (en) Imaging apparatus, imaging method, and program
JP2023047942A (en) Imaging device, imaging method, and program
JP2023047944A (en) Imaging device, imaging method, and program