JP5822579B2 - Orientation acquisition apparatus, control method of orientation acquisition apparatus, and program thereof - Google Patents

Orientation acquisition apparatus, control method of orientation acquisition apparatus, and program thereof Download PDF

Info

Publication number
JP5822579B2
JP5822579B2 JP2011159075A JP2011159075A JP5822579B2 JP 5822579 B2 JP5822579 B2 JP 5822579B2 JP 2011159075 A JP2011159075 A JP 2011159075A JP 2011159075 A JP2011159075 A JP 2011159075A JP 5822579 B2 JP5822579 B2 JP 5822579B2
Authority
JP
Japan
Prior art keywords
fixed
azimuth
acquisition
unit
digital camera
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2011159075A
Other languages
Japanese (ja)
Other versions
JP2013026784A5 (en
JP2013026784A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2011159075A priority Critical patent/JP5822579B2/en
Publication of JP2013026784A publication Critical patent/JP2013026784A/en
Publication of JP2013026784A5 publication Critical patent/JP2013026784A5/ja
Application granted granted Critical
Publication of JP5822579B2 publication Critical patent/JP5822579B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、方位取得装置、方位取得装置の制御方法およびそのプログラムに関するものである。   The present invention relates to an azimuth acquisition device, a control method for the azimuth acquisition device, and a program thereof.

近年、携帯電話やデジタルカメラ、およびその周辺機器等に電子コンパスの技術が普及してきている。電子コンパスとは方角を検出可能なデバイスである。電子コンパスは2次元(X方向、Y方向)、または、3次元(X方向、Y方向、Z方向)で地磁気を検出し、電子コンパスのデバイス自体がどの方角を向いているかを示す方位情報を出力することができる。出力された方位情報は、携帯電話やデジタルカメラが備えたディスプレイに表示したり、撮影した画像に撮影方向として対応づけたりすることができる。   In recent years, electronic compass technology has become widespread in mobile phones, digital cameras, peripheral devices, and the like. An electronic compass is a device that can detect a direction. The electronic compass detects geomagnetism in two dimensions (X direction, Y direction) or three dimensions (X direction, Y direction, Z direction), and provides direction information indicating which direction the electronic compass device itself is facing. Can be output. The output azimuth information can be displayed on a display provided in a mobile phone or a digital camera, or can be associated with a photographed image as a photographing direction.

この電子コンパスは、一般的にGPS(Grobal Positioning System)のような位置情報を取得する機器とともに構成されることが多い。例えば特許文献1では、GPS、および、電子コンパスで移動体の位置を検出し、その位置情報を移動体に設けたカメラ部で撮影した画像とともに記録する技術が公開されている。この技術ではGPSや電子コンパスが撮像装置内に内蔵される構成となっている。   This electronic compass is generally often configured with a device that acquires position information such as GPS (Global Positioning System). For example, Patent Document 1 discloses a technique for detecting the position of a moving body using GPS and an electronic compass and recording the position information together with an image taken by a camera unit provided on the moving body. In this technique, a GPS and an electronic compass are built in the imaging apparatus.

しかしながら、GPSや電子コンパスを撮像装置に内蔵することは、撮像装置自体のコスト増加などの問題が考えられる。このような問題を解決するために、例えばGPSを撮像装置の周辺機器として構成することが考えられる。これにより、撮像装置自体のコストを抑えつつ、位置情報が必要なユーザには撮影位置を取得する機能を提供することができる。同様に、電子コンパスを撮像装置の周辺機器として構成することも考えられる。   However, incorporating a GPS or an electronic compass in the imaging apparatus may cause problems such as an increase in the cost of the imaging apparatus itself. In order to solve such a problem, for example, it is conceivable to configure the GPS as a peripheral device of the imaging device. Accordingly, it is possible to provide a function for acquiring a shooting position to a user who needs position information while suppressing the cost of the imaging apparatus itself. Similarly, an electronic compass may be configured as a peripheral device of the imaging device.

特開平07−307913号公報Japanese Patent Application Laid-Open No. 07-307913

上述のようにGPSを周辺機器として構成した場合、GPSと撮像装置とを共にユーザが持ち歩いていれば、GPSが取得する位置情報の示す位置を撮影位置とみなすことができることが多い。   When the GPS is configured as a peripheral device as described above, if the user carries both the GPS and the imaging device, the position indicated by the position information acquired by the GPS can often be regarded as the shooting position.

その一方で、方位情報に関しては、電子コンパスと撮像装置とを別体で構成した場合、実際の撮影方向から大きくずれる可能性がある。電子コンパスの取得する方位情報は、電子コンパスが向いている方向を示すものであり、撮像装置の撮影方向を示すものではない。したがって、電子コンパスと撮像装置との位置関係が定まっていない場合、つまり撮像装置と周辺機器とがそれぞれ互いに異なる方向を自由に向いてしまうような場合は、電子コンパスが示す方位情報が撮影方向を示していない可能性が高い。そのため、実際の撮影方向とは異なる方向を示す方位情報が、画像データに対応づけられてしまう可能性がある。   On the other hand, regarding the direction information, when the electronic compass and the imaging device are configured separately, there is a possibility that the direction is greatly deviated from the actual shooting direction. The azimuth information acquired by the electronic compass indicates the direction in which the electronic compass is facing, and does not indicate the shooting direction of the imaging apparatus. Therefore, when the positional relationship between the electronic compass and the imaging device is not fixed, that is, when the imaging device and peripheral devices are free to face different directions, the orientation information indicated by the electronic compass indicates the shooting direction. Most likely not shown. Therefore, there is a possibility that azimuth information indicating a direction different from the actual shooting direction is associated with the image data.

本発明は、このような問題を鑑みてなされたものであり、撮像装置の周辺機器として電子コンパスを搭載する場合に、撮像装置と周辺機器との位置関係に基づいて適切な方位情報を提供することを目的とする。   The present invention has been made in view of such problems, and provides appropriate orientation information based on the positional relationship between the imaging device and the peripheral device when an electronic compass is mounted as the peripheral device of the imaging device. For the purpose.

上記目的を達成するために、本発明の方位取得装置は、外部装置に固定可能な方位取得装置であって、前記方位取得装置の方向を示す方位情報を取得する方位取得手段と、前記方位取得装置の位置を示す位置情報を取得する位置取得手段と、前記方位取得装置が前記外部装置に固定されているか否かを判断する判断手段と、前記方位取得手段により取得された方位情報を補正する補正手段とを有し、前記方位取得手段は、前記判断手段により前記方位取得装置が前記外部装置に固定されていないと判断された場合は、前記方位情報を取得せず、前記位置取得手段は、前記判断手段により前記方位取得装置が前記外部装置に固定されていないと判断された場合も、前記位置情報を取得し、前記補正手段は、前記外部装置に設けられた複数の固定部のうち、前記方位取得装置が固定された固定部に基づいた補正を行うことを特徴とする。 In order to achieve the above object, an azimuth acquisition apparatus according to the present invention is an azimuth acquisition apparatus that can be fixed to an external device, and that obtains azimuth information indicating the direction of the azimuth acquisition apparatus, Position acquisition means for acquiring position information indicating the position of the apparatus, determination means for determining whether the azimuth acquisition apparatus is fixed to the external apparatus, and correction of the azimuth information acquired by the azimuth acquisition means The azimuth acquisition unit does not acquire the azimuth information when the determination unit determines that the azimuth acquisition device is not fixed to the external device, and the position acquisition unit , even when the azimuth acquisition device is determined not to be secured to said external device by said determining means obtains the position information, it said correction means, a plurality of stationary provided in the external device Of, and it performs a correction in which the azimuth acquisition device is based on a fixed part fixed.

本発明によれば、撮像装置と周辺機器との位置関係に基づいて適切な方位情報を提供することができる。   According to the present invention, it is possible to provide appropriate azimuth information based on the positional relationship between the imaging device and the peripheral device.

第1の実施形態における方位取得装置および撮像装置のブロック図である。It is a block diagram of the azimuth | direction acquisition apparatus and imaging device in 1st Embodiment. 第1の実施形態における方位取得装置および撮像装置の使用例である。It is a usage example of the azimuth | direction acquisition apparatus and imaging device in 1st Embodiment. 第1の実施形態における方位取得装置および撮像装置の概観を示す図である。It is a figure which shows the general view of the azimuth | direction acquisition apparatus and imaging device in 1st Embodiment. Aは第1の実施形態における方位取得装置および撮像装置が協働して画像データに撮影方向を示す情報および撮影位置を示す情報を対応づけて保存する手順を示す図である。Bは第1の実施形態における方位取得装置および撮像装置が協働して画像データに撮影位置を示す情報を対応づけて保存する手順を示す図である。FIG. 4A is a diagram illustrating a procedure for storing information indicating a shooting direction and information indicating a shooting position in association with image data in cooperation with the direction acquisition device and the imaging device according to the first embodiment. FIG. 7B is a diagram illustrating a procedure in which the azimuth acquisition apparatus and the imaging apparatus according to the first embodiment cooperate to store information indicating a shooting position in association with image data. 第1の実施形態における方位取得処理の際の方位取得装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the direction acquisition apparatus in the case of the direction acquisition process in 1st Embodiment. 第1の実施形態における撮影処理の際の撮像装置の動作を示すフローチャートである。6 is a flowchart illustrating an operation of the imaging apparatus during a shooting process according to the first embodiment. 第2の実施形態における方位取得装置のおよび撮像装置のブロック図である。It is a block diagram of the azimuth | direction acquisition apparatus and imaging device in 2nd Embodiment. 第2の実施形態における方位取得装置および撮像装置の使用例である。It is a usage example of the azimuth | direction acquisition apparatus and imaging device in 2nd Embodiment. 第2の実施形態における補正情報の構造を示す概念図である。It is a conceptual diagram which shows the structure of the correction information in 2nd Embodiment. 第2の実施形態における方位取得装置および撮像装置の概観を示す図である。It is a figure which shows the general view of the azimuth | direction acquisition apparatus and imaging device in 2nd Embodiment. 第2の実施形態における方位取得処理の際の方位取得装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the direction acquisition apparatus in the case of the direction acquisition process in 2nd Embodiment. 第3の実施形態における方位取得処理の際の方位取得装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the direction acquisition apparatus in the case of the direction acquisition process in 3rd Embodiment.

以下に、本発明を実施するための形態について、添付の図面を用いて詳細に説明する。   EMBODIMENT OF THE INVENTION Below, the form for implementing this invention is demonstrated in detail using attached drawing.

尚、以下に説明する実施の形態は、本発明の実現手段としての一例であり、本発明が適用される装置の構成や各種条件によって適宜修正又は変更されてもよい。また、各実施の形態は適宜組み合わされることも可能である。   The embodiment described below is an example as means for realizing the present invention, and may be appropriately modified or changed depending on the configuration of the apparatus to which the present invention is applied and various conditions. Each embodiment can also be combined as appropriate.

[第1の実施形態]
はじめに、本実施形態の、撮像装置に接続可能な方位取得装置の一例である、電子コンパスを備えたGPSアクセサリについて説明する。さらに、該GPSアクセサリが接続される撮像装置の一例であるデジタルカメラについても説明する。GPSアクセサリおよび該GPSアクセサリが接続されるデジタルカメラの構成を図1に示す。
[First Embodiment]
First, a GPS accessory including an electronic compass, which is an example of an orientation acquisition device that can be connected to an imaging device, according to the present embodiment will be described. Further, a digital camera that is an example of an imaging device to which the GPS accessory is connected will be described. FIG. 1 shows the configuration of a GPS accessory and a digital camera to which the GPS accessory is connected.

図1においてGPSアクセサリ100は、制御部101、方位取得部102、電源部103、不揮発性メモリ104、固定検知部105、固定部106、通信部107、表示部108、操作部109、作業用メモリ110、位置取得部120等で構成される。   In FIG. 1, a GPS accessory 100 includes a control unit 101, a direction acquisition unit 102, a power supply unit 103, a nonvolatile memory 104, a fixed detection unit 105, a fixed unit 106, a communication unit 107, a display unit 108, an operation unit 109, and a work memory. 110, a position acquisition unit 120, and the like.

また、デジタルカメラ150は、制御部151、撮像部152、メモリ153、不揮発性メモリ154、記録媒体155、電源部156、固定部159、通信部161、表示部162、操作部163、加速度検出部164等で構成される。   The digital camera 150 includes a control unit 151, an imaging unit 152, a memory 153, a nonvolatile memory 154, a recording medium 155, a power supply unit 156, a fixing unit 159, a communication unit 161, a display unit 162, an operation unit 163, and an acceleration detection unit. 164 etc.

GPSアクセサリ100およびデジタルカメラ150は、それぞれ、固定部106および固定部159により互いに固定され、通信部107及び通信部161によりデータのやり取りを行うことができる。   The GPS accessory 100 and the digital camera 150 are fixed to each other by the fixing unit 106 and the fixing unit 159, respectively, and can exchange data with the communication unit 107 and the communication unit 161.

まず、GPSアクセサリ100について説明する。   First, the GPS accessory 100 will be described.

GPSアクセサリ100において、制御部101は入力された信号や、後述のプログラムに従ってGPSアクセサリ100の各部を制御する。なお、制御部101の行う制御は一つのハードウェアが行ってもよいし、複数のハードウェアが処理を分担することで、装置全体の制御を行ってもよい。   In the GPS accessory 100, the control unit 101 controls each part of the GPS accessory 100 according to an input signal and a program described later. Note that the control performed by the control unit 101 may be performed by a single piece of hardware, or the entire apparatus may be controlled by a plurality of pieces of hardware sharing the processing.

方位取得部102は、GPSアクセサリ100がどの方角を向いているかを検出し、方位情報を出力する。この処理は方位取得処理の一例である。方位取得部102は例えば電子コンパスで構成される。電子コンパスとは、地磁気センサ、方位センサなどとも呼ばれ、地球の地磁気を検出することができるデバイスの総称である。電子コンパスは、地磁気を2次元(X方向、Y方向)、または、3次元(X方向、Y方向、Z方向)で検出し、地磁気に対して、電子コンパスのデバイス自体がどの方角を向いているかを検出することができる。また、方位取得部102は加速度センサを含むよう構成される。なお、方位取得部102は電子コンパスではなく、ジャイロセンサ等の動き検出センサで構成されてもよい。方位取得部102にて取得された方位情報は、通信部107を介して、デジタルカメラ150に送信することができる。   The azimuth acquisition unit 102 detects which direction the GPS accessory 100 is facing and outputs azimuth information. This process is an example of an orientation acquisition process. The direction acquisition unit 102 is configured by, for example, an electronic compass. The electronic compass is also called a geomagnetic sensor, a direction sensor, etc., and is a generic name for devices that can detect the earth's geomagnetism. The electronic compass detects geomagnetism in two dimensions (X direction, Y direction) or three dimensions (X direction, Y direction, Z direction), and in which direction the electronic compass device itself faces. It can be detected. In addition, the direction acquisition unit 102 is configured to include an acceleration sensor. The direction acquisition unit 102 may be configured by a motion detection sensor such as a gyro sensor instead of the electronic compass. The orientation information acquired by the orientation acquisition unit 102 can be transmitted to the digital camera 150 via the communication unit 107.

電源部103は、制御部101により、GPSアクセサリ100の各部へ電力を供給するよう制御される。電源部103は、例えばアルカリ電池やリチウム電池等の一次電池やNiCd電池やNiMH電池、Li電池等の二次電池、ACアダプター等から構成される。なお、電源部103は、撮像装置など外部の接続機器から電力を取得できるよう構成してもよい。   The power supply unit 103 is controlled by the control unit 101 to supply power to each unit of the GPS accessory 100. The power supply unit 103 includes, for example, a primary battery such as an alkaline battery or a lithium battery, a secondary battery such as a NiCd battery, a NiMH battery, or a Li battery, an AC adapter, or the like. Note that the power supply unit 103 may be configured to acquire power from an external connection device such as an imaging device.

不揮発性メモリ104は、GPSアクセサリ100の各部を制御するためのプログラム(ファームウェア)や各種の設定情報を記憶している。後述する各フローチャートに示す処理を制御部101が制御するためのプログラムも、この不揮発性メモリ104に記録されている。   The nonvolatile memory 104 stores a program (firmware) for controlling each part of the GPS accessory 100 and various setting information. A program for the control unit 101 to control processing shown in each flowchart described later is also recorded in the nonvolatile memory 104.

作業用メモリ110は、不揮発性メモリ104に保存されているプログラムを、展開・実行するためのメモリである。作業用メモリ110は制御部101のワークエリアとして使用される。   The work memory 110 is a memory for developing and executing a program stored in the nonvolatile memory 104. The work memory 110 is used as a work area for the control unit 101.

固定部106は、GPSアクセサリ100をデジタルカメラ150に固定するための固定具である。例えば、デジタルカメラ150が有する固定部159に固定可能な金具などで構成される。なお本実施形態において、GPSアクセサリ100は、GPSアクセサリ100の方位取得部102が取得する方位情報の示す方向とデジタルカメラ150の撮影方向とが一致するよう固定部106で固定される。   The fixing unit 106 is a fixing tool for fixing the GPS accessory 100 to the digital camera 150. For example, the digital camera 150 is configured by a metal fitting that can be fixed to the fixing unit 159. In this embodiment, the GPS accessory 100 is fixed by the fixing unit 106 so that the direction indicated by the azimuth information acquired by the azimuth acquisition unit 102 of the GPS accessory 100 matches the shooting direction of the digital camera 150.

固定検知部105は、固定部106によってデジタルカメラ150に固定されたことを検出するための装置である。本実施形態において、固定検知部105は固定部106に設けられる。なお、固定検知部105はデジタルカメラ150に外部装置が固定されているか否かを検知できればどのような装置でもよい。例えば、固定検知部105は、突起部材を用いた物理的なスイッチや、電気的な接点などを用いることができる。固定検知部105は、デジタルカメラ150に固定されることによりONとなるよう構成される。制御部101は、固定検知部105がONとなったことにより、GPSアクセサリ100がデジタルカメラ150に固定されたと判断する。   The fixing detection unit 105 is a device for detecting that the fixing unit 106 has fixed the digital camera 150. In the present embodiment, the fixed detection unit 105 is provided in the fixed unit 106. The fixing detection unit 105 may be any device as long as it can detect whether or not an external device is fixed to the digital camera 150. For example, the fixed detection unit 105 can use a physical switch using a protruding member, an electrical contact, or the like. The fixed detection unit 105 is configured to be turned on by being fixed to the digital camera 150. The control unit 101 determines that the GPS accessory 100 is fixed to the digital camera 150 when the fixing detection unit 105 is turned on.

通信部107は、外部装置と通信するための接続部である。GPSアクセサリ100は、通信部107を介することで、外部装置とデータのやりとりを行うことができる。例えば、デジタルカメラ150から方位情報の出力の要求を受信したり、該要求に応じて、方位取得部102により取得された方位情報をデジタルカメラ150へ送信したりすることができる。外部装置との通信は有線で行ってもよいし、無線でおこなってもよい。なお、デジタルカメラ150が通信部107を介して外部装置と有線で接続される場合、例えばUSBケーブルのように、外部装置とデジタルカメラ150との位置関係に自由度のある接続方法で接続される。   The communication unit 107 is a connection unit for communicating with an external device. The GPS accessory 100 can exchange data with an external device via the communication unit 107. For example, it is possible to receive a request for output of azimuth information from the digital camera 150, or to transmit the azimuth information acquired by the azimuth acquisition unit 102 to the digital camera 150 in response to the request. Communication with an external device may be performed by wire or wirelessly. When the digital camera 150 is connected to an external device via a communication unit 107 in a wired manner, for example, a connection method having a degree of freedom in the positional relationship between the external device and the digital camera 150 is used, such as a USB cable. .

表示部108は、GPSアクセサリ100の状態を表すための表示装置であり、LED、LCD、TFT等から構成される。   The display unit 108 is a display device for indicating the state of the GPS accessory 100, and includes an LED, an LCD, a TFT, and the like.

操作部109は、GPSアクセサリ100の動作や設定を指示するために用いられる。操作部109は例えば、GPSアクセサリ100の電源のON/OFFを切り替えるための電源スイッチ、表示部108のON/OFFを切り替えるためのスイッチ等を含むよう構成される。   The operation unit 109 is used to instruct the operation and setting of the GPS accessory 100. The operation unit 109 includes, for example, a power switch for switching on / off the power of the GPS accessory 100, a switch for switching on / off of the display unit 108, and the like.

位置取得部120は、測位処理を行う。測位処理とは、GPS衛星から信号を受信し、受信した信号から位置取得部120の位置を示す位置情報を取得する処理である。位置取得部120で取得された位置情報は、通信部107を介して撮像装置に送信することができる。送信された位置情報は、撮像装置にて撮影された画像データに撮影位置として対応づけられる。本実施形態では、位置情報は、緯度・経度の座標で表される。なお、本実施形態ではGPSを用いたが、必ずしもGPSには限定されず、例えば携帯電話の基地局といった外部装置や加速度センサなどから位置情報を取得する装置であってもよい。   The position acquisition unit 120 performs a positioning process. The positioning process is a process of receiving a signal from a GPS satellite and acquiring position information indicating the position of the position acquisition unit 120 from the received signal. The position information acquired by the position acquisition unit 120 can be transmitted to the imaging apparatus via the communication unit 107. The transmitted position information is associated with image data photographed by the imaging device as a photographing position. In the present embodiment, the position information is represented by latitude / longitude coordinates. In the present embodiment, GPS is used. However, the present invention is not necessarily limited to GPS, and may be an apparatus that acquires position information from an external device such as a mobile phone base station or an acceleration sensor.

以上がGPSアクセサリ100の説明である。   The above is the description of the GPS accessory 100.

次に、撮像装置150の説明を行う。   Next, the imaging device 150 will be described.

制御部151は、入力された信号や、後述のプログラムに従ってデジタルカメラ150の各部を制御する。なお、制御部101の行う制御は一つのハードウェアが行ってもよいし、複数のハードウェアが処理を分担することで、装置全体の制御を行ってもよい。   The control unit 151 controls each unit of the digital camera 150 in accordance with an input signal and a program described later. Note that the control performed by the control unit 101 may be performed by a single piece of hardware, or the entire apparatus may be controlled by a plurality of pieces of hardware sharing the processing.

撮像部152は、撮影処理を行う。撮影処理とは、撮像部152に含まれるレンズで結像された被写体光を電気信号に変換し、ノイズ低減処理などを行いデジタルデータを画像データとして出力する処理である。撮像した画像データはバッファメモリに蓄えられた後、制御部151にて所定の演算を行い、記録媒体155に記録される。   The imaging unit 152 performs a shooting process. The imaging process is a process of converting subject light imaged by a lens included in the imaging unit 152 into an electrical signal, performing noise reduction processing, and the like, and outputting digital data as image data. The captured image data is stored in the buffer memory, and then a predetermined calculation is performed by the control unit 151 and recorded on the recording medium 155.

メモリ153は、撮像部152で撮像された画像データを一時的に保持するバッファメモリや、表示部162の画像表示用メモリ、制御部151の作業領域として使用される。   The memory 153 is used as a buffer memory that temporarily holds image data captured by the imaging unit 152, an image display memory of the display unit 162, and a work area of the control unit 151.

不揮発性メモリ154は、電気的に消去・記録可能な不揮発性のメモリであり、制御部151で実行される後述のプログラム等が格納される。   The non-volatile memory 154 is an electrically erasable / recordable non-volatile memory, and stores a program to be described later executed by the control unit 151.

記録媒体155は、撮像部152から出力された画像データや、後述の通信部161を介して取得した位置情報や方位情報を記録することができる。記録媒体155は、デジタルカメラ150に着脱可能なよう構成してもよいし、デジタルカメラ150に内蔵されていてもよい。すなわち、デジタルカメラ150は少なくとも記録媒体155にアクセスする手段を有していればよい。   The recording medium 155 can record image data output from the imaging unit 152 and position information and azimuth information acquired via the communication unit 161 described later. The recording medium 155 may be configured to be detachable from the digital camera 150 or may be built in the digital camera 150. In other words, the digital camera 150 may have at least means for accessing the recording medium 155.

電源部156は、デジタルカメラ150の各部へ供給される電力を取得する。電源部156は、例えばアルカリ電池やリチウム電池等の一次電池やNiCd電池やNiMH電池、Li電池等の二次電池、ACアダプター等から電力を取得することができるよう構成される。   The power supply unit 156 acquires power supplied to each unit of the digital camera 150. The power supply unit 156 is configured to be able to acquire power from a primary battery such as an alkaline battery or a lithium battery, a secondary battery such as a NiCd battery, a NiMH battery, or a Li battery, an AC adapter, or the like.

固定部159は、GPSアクセサリ100をデジタルカメラ150に固定するための固定具である。例えば、デジタルカメラ150に対応するストロボ装置等の周辺機器を固定可能なアクセサリシュー等である。ここでいう周辺機器には、GPSアクセサリ100も含まれる。この固定部159がデジタルカメラ150の固定部106に接続されることで、GPSアクセサリ100がデジタルカメラ150に固定される。   The fixing unit 159 is a fixing tool for fixing the GPS accessory 100 to the digital camera 150. For example, an accessory shoe or the like that can fix a peripheral device such as a strobe device corresponding to the digital camera 150. The peripheral device here includes the GPS accessory 100. The GPS accessory 100 is fixed to the digital camera 150 by connecting the fixing unit 159 to the fixing unit 106 of the digital camera 150.

通信部161は、外部装置と通信するための接続部である。デジタルカメラ150は、通信部161を介することで、外部装置とデータのやりとりを行うことができる。例えば、この通信部161とデジタルカメラ150の通信部107とがUSBケーブルにより接続されることで、該USBケーブルを介してデジタルカメラ150とGPSアクセサリ100とが互いに通信可能となる。そして、デジタルカメラ150は通信部107および通信部161を介して、GPSアクセサリ100へ位置情報や方位情報の要求を送信したり、GPSアクセサリ100から送信される位置情報や方位情報を受信したりすることができる。外部装置との通信は、有線で行ってもよいし、無線でおこなってもよい。なお、前述のように、デジタルカメラ150がGPSアクセサリ100と有線で接続される場合、例えばUSBケーブルのように、GPSアクセサリ100とデジタルカメラ150との位置関係が固定されない接続方法で接続される。通信部161を介して取得された位置情報および方位情報は、撮像部152から出力される画像データに、それぞれ撮影位置及び撮影方向として対応づけられ、記録媒体155に記録することができる。   The communication unit 161 is a connection unit for communicating with an external device. The digital camera 150 can exchange data with an external device via the communication unit 161. For example, when the communication unit 161 and the communication unit 107 of the digital camera 150 are connected by a USB cable, the digital camera 150 and the GPS accessory 100 can communicate with each other via the USB cable. The digital camera 150 transmits a request for position information and direction information to the GPS accessory 100 via the communication unit 107 and the communication unit 161, and receives position information and direction information transmitted from the GPS accessory 100. be able to. Communication with the external device may be performed by wire or wirelessly. As described above, when the digital camera 150 is connected to the GPS accessory 100 by wire, for example, a connection method is used in which the positional relationship between the GPS accessory 100 and the digital camera 150 is not fixed, such as a USB cable. The position information and the orientation information acquired via the communication unit 161 can be associated with the image data output from the imaging unit 152 as a shooting position and a shooting direction, respectively, and can be recorded on the recording medium 155.

表示部162は、撮影の際のビューファインダー画像の表示、撮影した画像データの表示、対話的な操作のための文字表示などを行う。なお、表示部162はデジタルカメラ150が備える必要はなく、デジタルカメラ150は表示部162と接続することができ、表示部162の表示を制御する表示制御機能を少なくとも有していればよい。   The display unit 162 displays a viewfinder image at the time of shooting, displays shot image data, and displays characters for interactive operation. Note that the display unit 162 does not need to be included in the digital camera 150, and the digital camera 150 may be connected to the display unit 162 as long as it has at least a display control function for controlling the display of the display unit 162.

操作部163は、ユーザがデジタルカメラ150の動作を指示するために用いられる。操作部163は例えば、デジタルカメラ150の電源のON/OFFを指示するための電源ボタンや、撮影処理を行うためのレリーズスイッチ、画像データを閲覧するための再生ボタンなどの操作部材を含むよう構成される。なお、レリーズスイッチは、SW1およびSW2を有する。レリーズスイッチが押下される操作の途中、いわゆる半押し状態となることにより、SW1がONとなる。これにより、AF(オートフォーカス)処理、AE(自動露出)処理、AWB(オートホワイトバランス)処理、EF(フラッシュプリ発光)処理等の撮影準備動作を行うための指示を受け付ける。また、レリーズスイッチが押下される操作の完了、いわゆる全押し状態となることにより、SW2がONとなる。これにより、撮影動作を行うための指示を受け付ける。   The operation unit 163 is used by the user to instruct the operation of the digital camera 150. The operation unit 163 includes, for example, operation members such as a power button for instructing to turn on / off the power of the digital camera 150, a release switch for performing photographing processing, and a playback button for browsing image data. Is done. The release switch has SW1 and SW2. In the middle of the operation of pressing the release switch, a so-called half-pressed state is set, so that SW1 is turned on. Thus, an instruction for performing a shooting preparation operation such as AF (autofocus) processing, AE (automatic exposure) processing, AWB (auto white balance) processing, and EF (flash pre-emission) processing is accepted. Further, when the operation for pressing the release switch is completed, that is, when the release switch is fully pressed, SW2 is turned on. Thereby, an instruction for performing a photographing operation is received.

加速度検出部164は、2軸乃至は3軸の加速度センサ等で構成され、デジタルカメラ150の正位置、縦位置の検知、水準器等に使用される。   The acceleration detection unit 164 includes a biaxial or triaxial acceleration sensor or the like, and is used for detection of the normal position and vertical position of the digital camera 150, a level, and the like.

以上が、デジタルカメラ150の説明である。   The above is the description of the digital camera 150.

本実施形態では、上述したようにデジタルカメラ150はGPSアクセサリ100とともに用いられ、撮影した画像データに撮影位置及び撮影方向を対応づけることができるよう構成される。次に、ユーザがデジタルカメラ150をGPSアクセサリ100とともに用いる際の使用例について、図2を用いて説明する。なお、デジタルカメラ150とGPSアクセサリ100は無線通信が可能であるものとする。   In the present embodiment, as described above, the digital camera 150 is used together with the GPS accessory 100, and is configured to be able to associate a photographing position and a photographing direction with photographed image data. Next, a usage example when the user uses the digital camera 150 together with the GPS accessory 100 will be described with reference to FIG. It is assumed that the digital camera 150 and the GPS accessory 100 can perform wireless communication.

図2(a)は、GPSアクセサリ100がデジタルカメラ150のアクセサリシューに固定されている状態を示している。この場合は、GPSアクセサリ100とデジタルカメラ150との位置関係は一定に固定されている。そのため、GPSアクセサリ100が取得する方位情報が示す方向204から、デジタルカメラ150の撮影方向203を容易に決定することができる。そのため、図2(a)のような場合にはGPSアクセサリ100は方位情報を取得する。   FIG. 2A shows a state where the GPS accessory 100 is fixed to the accessory shoe of the digital camera 150. In this case, the positional relationship between the GPS accessory 100 and the digital camera 150 is fixed. Therefore, the shooting direction 203 of the digital camera 150 can be easily determined from the direction 204 indicated by the azimuth information acquired by the GPS accessory 100. Therefore, in the case as shown in FIG. 2A, the GPS accessory 100 acquires azimuth information.

一方、図2(b)は、GPSアクセサリ100がストラップ等を用いてベルトループなどにぶら下げられている状態を示している。この場合、GPSアクセサリ100はデジタルカメラ150に固定されていない。そのため、例えばユーザが歩くたびにGPSアクセサリ100とデジタルカメラ150の位置関係が変化してしまう。すなわちGPSアクセサリ100が取得する方位情報が示す方向202とデジタルカメラ150の撮影方向201との関係が一定とならないため、デジタルカメラ150の撮影方向201を決定することは困難である。したがって、GPSアクセサリ100からデジタルカメラ150に、実際の撮影方向とは異なる方向を示す方位情報が送信されてしまう可能性がある。そこで、本実施形態では、図2(b)のようにデジタルカメラ150とGPSアクセサリ100とが固定されていないと判断される場合には、GPSアクセサリ100は、方位情報を取得しない。これにより、実際の撮影方向とは異なる方向を示す方位情報がデジタルカメラ150に送信されることを防ぐことができる。なお図2(a)、図2(b)のいずれの場合でも、位置情報は位置取得部120により取得され、デジタルカメラ150に送信される。   On the other hand, FIG. 2B shows a state where the GPS accessory 100 is hung on a belt loop or the like using a strap or the like. In this case, the GPS accessory 100 is not fixed to the digital camera 150. Therefore, for example, whenever the user walks, the positional relationship between the GPS accessory 100 and the digital camera 150 changes. That is, since the relationship between the direction 202 indicated by the azimuth information acquired by the GPS accessory 100 and the shooting direction 201 of the digital camera 150 is not constant, it is difficult to determine the shooting direction 201 of the digital camera 150. Therefore, there is a possibility that azimuth information indicating a direction different from the actual shooting direction is transmitted from the GPS accessory 100 to the digital camera 150. Therefore, in this embodiment, when it is determined that the digital camera 150 and the GPS accessory 100 are not fixed as illustrated in FIG. 2B, the GPS accessory 100 does not acquire the direction information. Thereby, it is possible to prevent azimuth information indicating a direction different from the actual shooting direction from being transmitted to the digital camera 150. In either case of FIG. 2A or FIG. 2B, the position information is acquired by the position acquisition unit 120 and transmitted to the digital camera 150.

以上のように、本実施形態では、GPSアクセサリ100がデジタルカメラ150に固定されているか否かに基づき、方位情報を取得するか否かを決定する。以下、GPSアクセサリ100がデジタルカメラ150に固定される際の固定方法の例、および固定されているか否かを検出する方法の例について、図3を用いて説明する。   As described above, in the present embodiment, it is determined whether or not to acquire azimuth information based on whether or not the GPS accessory 100 is fixed to the digital camera 150. Hereinafter, an example of a fixing method when the GPS accessory 100 is fixed to the digital camera 150 and an example of a method for detecting whether or not the GPS accessory 100 is fixed will be described with reference to FIG.

図3(a)にデジタルカメラ150の概観の一例を示す。本実施形態のデジタルカメラ150は、図3(a)のように固定部159を備えている。固定部159は、一般にアクセサリシューと呼ばれ、ストロボ装置等の周辺機器が固定および接続される。本実施形態では、固定部159にGPSアクセサリ100が固定される場合について説明する。なお、本実施形態では、GPSアクセサリ100は、方位取得部102が取得する方位情報がデジタルカメラ150の撮影方向と一致するよう固定される。   FIG. 3A shows an example of an overview of the digital camera 150. The digital camera 150 of this embodiment includes a fixing unit 159 as shown in FIG. The fixing unit 159 is generally called an accessory shoe, and peripheral devices such as a strobe device are fixed and connected. In the present embodiment, a case where the GPS accessory 100 is fixed to the fixing unit 159 will be described. In the present embodiment, the GPS accessory 100 is fixed so that the azimuth information acquired by the azimuth acquisition unit 102 matches the shooting direction of the digital camera 150.

図3(b)に、GPSアクセサリ100の概観の一例を示す。本実施形態のGPSアクセサリ100は、固定部106を有している。固定部106は、前述の図3(a)に示す固定部159に固定することができる。また、固定部106は、固定検知部105を有する。固定部106および固定検知部105は、図1における固定部106および固定検知部105の一例である。固定検知部105について、図3(c)に示す拡大図を用いて説明する。本実施形態において、固定検知部105は例えばバネのようなハードウェアスイッチで構成される。固定検知部105は、固定部106が固定部159に固定されていない場合、図3(c)に示すように隆起している状態となっている。この状態は、OFFの状態であり、制御部101は、GPSアクセサリ100がデジタルカメラ150に固定されていないと判断する。   FIG. 3B shows an example of an overview of the GPS accessory 100. The GPS accessory 100 according to the present embodiment has a fixing unit 106. The fixing part 106 can be fixed to the fixing part 159 shown in FIG. Further, the fixing unit 106 includes a fixing detection unit 105. The fixed unit 106 and the fixed detection unit 105 are an example of the fixed unit 106 and the fixed detection unit 105 in FIG. The fixed detection part 105 is demonstrated using the enlarged view shown in FIG.3 (c). In the present embodiment, the fixed detection unit 105 is configured by a hardware switch such as a spring. When the fixing part 106 is not fixed to the fixing part 159, the fixing detection part 105 is in a raised state as shown in FIG. This state is an OFF state, and the control unit 101 determines that the GPS accessory 100 is not fixed to the digital camera 150.

固定部159および固定部106は、図(c)に示す矢印310の方向に互いに嵌合される。その際に固定検知部105は、固定部159により矢印311の方向に圧着され、これによりONの状態となる。制御部101は固定検知部105がONであることを検知することによりGPSアクセサリ100がデジタルカメラ150に固定されていると判断する。なお、バネのようなハードウェアスイッチの構成は、固定検知部105の一例にすぎない。固定検知部105はGPSアクセサリ100がデジタルカメラ150に固定されているか否かを検知できればよく、例えば電気的な接点等を用いてもよい。   The fixing part 159 and the fixing part 106 are fitted to each other in the direction of the arrow 310 shown in FIG. At that time, the fixing detection unit 105 is pressure-bonded in the direction of the arrow 311 by the fixing unit 159, and is thus turned on. The control unit 101 determines that the GPS accessory 100 is fixed to the digital camera 150 by detecting that the fixed detection unit 105 is ON. Note that the configuration of a hardware switch such as a spring is merely an example of the fixed detection unit 105. The fixing detector 105 only needs to detect whether or not the GPS accessory 100 is fixed to the digital camera 150. For example, an electrical contact or the like may be used.

次に、図3(d)、(e)にデジタルカメラ150とGPSアクセサリ100とが固定および接続されている状態の概観を示す。図3(d)は背面の概観を、図3(e)は側面の概観を示す。GPSアクセサリ100とデジタルカメラ150とは、それぞれ通信部107、通信部161を介して接続ケーブル300により接続され、データのやり取りを行うことができる。なお、図3ではGPSアクセサリ100とデジタルカメラ150とを有線接続する例を示したが、無線接続される構成であってもよい。   Next, FIGS. 3D and 3E show an overview of a state in which the digital camera 150 and the GPS accessory 100 are fixed and connected. FIG. 3 (d) shows a rear view and FIG. 3 (e) shows a side view. The GPS accessory 100 and the digital camera 150 are connected by the connection cable 300 via the communication unit 107 and the communication unit 161, respectively, and can exchange data. In addition, although the example which wire-connects the GPS accessory 100 and the digital camera 150 was shown in FIG. 3, the structure connected by radio | wireless may be sufficient.

以上、GPSアクセサリ100がデジタルカメラ150に固定される際の固定方法の例、および固定されているか否かを検出する方法の例について説明した。   The example of the fixing method when the GPS accessory 100 is fixed to the digital camera 150 and the example of the method for detecting whether or not the GPS accessory 100 is fixed have been described above.

次に、本実施形態において、デジタルカメラ150およびGPSアクセサリ100が協働して、撮影した画像データに撮影方向を対応づける手順の概要について、図4Aおよび図4Bを用いて説明する。   Next, in this embodiment, an outline of a procedure in which the digital camera 150 and the GPS accessory 100 cooperate to associate the shooting direction with the shot image data will be described with reference to FIGS. 4A and 4B.

図4Aおよび図4Bは、デジタルカメラ150およびGPSアクセサリ100が協働して、撮影した画像データに撮影位置及び撮影方向を対応づける手順を示す図である。図4Aは、GPSアクセサリ100が、デジタルカメラ150に固定されていると判断された場合の手順を示す。   4A and 4B are diagrams illustrating a procedure in which the digital camera 150 and the GPS accessory 100 cooperate to associate a photographing position and a photographing direction with photographed image data. FIG. 4A shows a procedure when it is determined that the GPS accessory 100 is fixed to the digital camera 150.

まず、初めに、ステップS1101にてデジタルカメラ150の操作部163に含まれるレリーズスイッチのSW1がONであることが検知される。SW1がONであることが検知されると、ステップS1102にて位置情報及び方位情報をGPSアクセサリ100からデジタルカメラ150へ送信させるための要求(以下、位置情報及び方位情報の出力開始要求と呼ぶ)がGPSアクセサリ100に送信される。   First, in step S1101, it is detected that SW1 of the release switch included in the operation unit 163 of the digital camera 150 is ON. When it is detected that SW1 is ON, in step S1102, a request for transmitting position information and azimuth information from the GPS accessory 100 to the digital camera 150 (hereinafter referred to as an output start request for position information and azimuth information). Is transmitted to the GPS accessory 100.

GPSアクセサリ100がデジタルカメラ150から位置情報及び方位情報の出力開始要求を受信すると、GPSアクセサリ100は、ステップS1103にてGPSアクセサリ100がデジタルカメラ150に固定されているか否かを判断する。   When the GPS accessory 100 receives an output start request for position information and azimuth information from the digital camera 150, the GPS accessory 100 determines whether the GPS accessory 100 is fixed to the digital camera 150 in step S1103.

GPSアクセサリ100がデジタルカメラ150に固定されていると判断された場合、ステップS1104にて位置情報及び方位情報がデジタルカメラ150に送信される。なお、GPSアクセサリ100がデジタルカメラ150に固定されていないと判断された場合については、図4Aを用いて後述する。   If it is determined that the GPS accessory 100 is fixed to the digital camera 150, position information and orientation information are transmitted to the digital camera 150 in step S 1104. The case where it is determined that the GPS accessory 100 is not fixed to the digital camera 150 will be described later with reference to FIG. 4A.

ステップS1105にて、デジタルカメラ150は、受信した位置情報及び方位情報をメモリ153に記録する。既に記録されている位置情報及び方位情報があると判断された場合は、それぞれ上書きして更新する。なお、この処理は、ステップS1111にてデジタルカメラ150から送信される位置情報及び方位情報の出力を停止させるための要求(以下、位置情報及び方位情報の出力停止要求とよぶ)を、GPSアクセサリ100が受信するまで繰り返し実行される。結果として、メモリ153には最新の位置情報及び方向情報が記録されていることになる。図4Aの例では、ステップS1104、ステップS1105と同様の処理を、ステップS1106〜ステップS1109でも繰り返す。この結果、最終的にメモリ153には、ステップS1108にて送信された位置情報及び方位情報が記録されることになる。   In step S <b> 1105, the digital camera 150 records the received position information and orientation information in the memory 153. If it is determined that there is already recorded position information and direction information, each is overwritten and updated. In this process, a request for stopping the output of the position information and the direction information transmitted from the digital camera 150 in step S1111 (hereinafter referred to as an output stop request for the position information and the direction information) is referred to as the GPS accessory 100. Repeatedly until received. As a result, the latest position information and direction information are recorded in the memory 153. In the example of FIG. 4A, the same processing as in steps S1104 and S1105 is repeated in steps S1106 to S1109. As a result, the position information and orientation information transmitted in step S1108 are finally recorded in the memory 153.

ステップS1110にて、SW2がONであることが検知されると、ステップS1111にて、デジタルカメラ150からGPSアクセサリ100へ、位置情報及び方位情報の出力停止要求が送信される。GPSアクセサリ100は該要求を受信することにより、位置情報及び方位情報をデジタルカメラ150に送信する処理を停止する。   If it is detected in step S1110 that SW2 is ON, in step S1111, a request to stop outputting position information and azimuth information is transmitted from the digital camera 150 to the GPS accessory 100. The GPS accessory 100 stops the process of transmitting the position information and the azimuth information to the digital camera 150 by receiving the request.

また、デジタルカメラ150は、ステップS1111の処理と並行してステップS1112にて撮影処理を行い、画像データを取得する。   In addition, the digital camera 150 performs shooting processing in step S1112 in parallel with the processing in step S1111 and acquires image data.

ついで、ステップS1113にて、メモリ153から位置情報及び方位情報を読み出し、ステップS1112にて取得した画像データに対応づけて、記録媒体155に保存する。ここで画像データに対応づけられる位置情報及び方位情報は、ステップS1108にて送信された最新の位置情報及び方位情報である。   In step S1113, position information and orientation information are read from the memory 153, and stored in the recording medium 155 in association with the image data acquired in step S1112. Here, the position information and the direction information associated with the image data are the latest position information and direction information transmitted in step S1108.

図4Bは、GPSアクセサリ100が、デジタルカメラ150に固定されていないと判断された場合の手順を示す。   FIG. 4B shows a procedure when it is determined that the GPS accessory 100 is not fixed to the digital camera 150.

まず、初めに、ステップS1121にてデジタルカメラ150の操作部163に含まれるレリーズスイッチのSW1がONであることが検知される。SW1がONであることが検知されたことに応じて、ステップS1122にて位置情報及び方位情報の出力開始要求が、GPSアクセサリ100に送信される。   First, in step S1121, it is detected that SW1 of the release switch included in the operation unit 163 of the digital camera 150 is ON. In response to the detection that SW1 is ON, an output start request for position information and azimuth information is transmitted to the GPS accessory 100 in step S1122.

GPSアクセサリ100がデジタルカメラ150から位置情報及び方位情報の出力開始要求を受信すると、GPSアクセサリ100は、ステップS1123にてGPSアクセサリ100がデジタルカメラ150に固定されているか否かを判断する。GPSアクセサリ100が固定されていると判断した場合については前述の通り、図4Bの処理が実行される。   When the GPS accessory 100 receives an output start request for position information and azimuth information from the digital camera 150, the GPS accessory 100 determines whether or not the GPS accessory 100 is fixed to the digital camera 150 in step S1123. When it is determined that the GPS accessory 100 is fixed, the process of FIG. 4B is executed as described above.

GPSアクセサリ100がデジタルカメラ150に固定されていないと判断された場合、ステップS1124にて位置情報がデジタルカメラ150に送信され、方位情報は送信されない。   If it is determined that the GPS accessory 100 is not fixed to the digital camera 150, the position information is transmitted to the digital camera 150 in step S1124, and the azimuth information is not transmitted.

ステップS1125にて、デジタルカメラ150は、受信した位置情報をメモリ153に記録する。既に記録されている位置情報があると判断された場合は、上書きして更新する。なお、この処理は、ステップS1131にてデジタルカメラ150から送信される位置情報及び方位情報の出力を停止させるための要求(以下、位置情報及び方位情報の出力停止要求とよぶ)を、GPSアクセサリ100が受信するまで繰り返し実行される。結果として、メモリ153には細心の位置情報及び方向情報が記録されていることになる。図4Bの例では、ステップS1124、ステップS1125と同様の処理を、ステップS1126〜ステップS1129でも繰り返す。この結果、最終的にメモリ153には、ステップS1128にて送信された位置情報が記録されることになる。   In step S1125, the digital camera 150 records the received position information in the memory 153. If it is determined that there is position information already recorded, it is overwritten and updated. In this process, a request for stopping output of the position information and the direction information transmitted from the digital camera 150 in step S1131 (hereinafter referred to as an output stop request for position information and direction information) is referred to as the GPS accessory 100. Repeatedly until received. As a result, meticulous position information and direction information are recorded in the memory 153. In the example of FIG. 4B, the same processing as in steps S1124 and S1125 is repeated in steps S1126 to S1129. As a result, the position information transmitted in step S1128 is finally recorded in the memory 153.

ステップS1130にて、SW2がONであることが検知されると、ステップS1131にて、デジタルカメラ150からGPSアクセサリ100へ、位置情報及び方位情報の出力停止要求が送信される。GPSアクセサリ100は該要求を受信することにより、位置情報及び方位情報をデジタルカメラ150に送信する処理を停止する。   If it is detected in step S1130 that SW2 is ON, in step S1131, an output stop request for position information and azimuth information is transmitted from the digital camera 150 to the GPS accessory 100. The GPS accessory 100 stops the process of transmitting the position information and the azimuth information to the digital camera 150 by receiving the request.

また、デジタルカメラ150は、ステップS1131の処理と並行してステップS1132にて撮影処理を行い、画像データを取得する。   In addition, the digital camera 150 performs shooting processing in step S1132 in parallel with the processing in step S1131, and acquires image data.

ついで、ステップS1133にて、メモリ153から位置情報を読み出し、ステップS1132にて取得した画像データに対応づけて、記録媒体155に保存する。ここで画像データに対応づけられる位置情報は、ステップS1128にて送信された最新の位置情報である。   Next, in step S 1133, position information is read from the memory 153 and stored in the recording medium 155 in association with the image data acquired in step S 1132. Here, the position information associated with the image data is the latest position information transmitted in step S1128.

なお、ステップS1123にてGPSアクセサリ100がデジタルカメラ150に固定されていないと判断された場合、方位情報が取得されないため、メモリ153には、方位情報が記録されないこととなる。したがって、この場合、本ステップでは方位情報を対応づけずに画像データを記録媒体155に記録することとなる。   If it is determined in step S1123 that the GPS accessory 100 is not fixed to the digital camera 150, the azimuth information is not acquired, and thus the azimuth information is not recorded in the memory 153. Therefore, in this case, the image data is recorded on the recording medium 155 without associating the orientation information in this step.

以上が、デジタルカメラ150およびGPSアクセサリ100が協働して、撮影した画像データに撮影方向を対応づける手順の説明である。   The above is the description of the procedure in which the digital camera 150 and the GPS accessory 100 cooperate to associate the shooting direction with the shot image data.

次に、上述の手順を実現するためのGPSアクセサリ100の動作について図5を用いて説明する。   Next, the operation of the GPS accessory 100 for realizing the above-described procedure will be described with reference to FIG.

図5は、GPSアクセサリ100の位置情報取得処理及び方位取得処理を示すフローチャートである。このフローチャートに示す各処理は、制御部101が、不揮発性メモリ104に保存されているプログラムをロードし、作業用メモリ110に展開してプログラムに従いGPSアクセサリ100の各部を制御することで実現される。以降のフローチャートに示す各処理についても同様である。   FIG. 5 is a flowchart showing a position information acquisition process and a direction acquisition process of the GPS accessory 100. Each process shown in this flowchart is realized by the control unit 101 loading a program stored in the nonvolatile memory 104, developing the program in the working memory 110, and controlling each unit of the GPS accessory 100 according to the program. . The same applies to each process shown in the following flowcharts.

本フローチャートに示す処理は、GPSアクセサリ100が電源をONにされることに応じて開始される。   The processing shown in this flowchart is started in response to the GPS accessory 100 being turned on.

まず、ステップS401にて、制御部101は、通信部107を介して、デジタルカメラ150から位置情報及び方位情報の出力開始要求を受信したか否かを判断する。制御部101が、位置情報及び方位情報の出力開始要求を受信していないと判断した場合、処理はステップS409に進む。一方、制御部101が、位置情報及び方位情報の出力開始要求を受信していないと判断した場合、処理はステップS402に進む。   First, in step S <b> 401, the control unit 101 determines whether or not an output start request for position information and azimuth information has been received from the digital camera 150 via the communication unit 107. If the control unit 101 determines that the output start request for position information and direction information has not been received, the process proceeds to step S409. On the other hand, if the control unit 101 determines that it has not received an output start request for position information and orientation information, the process proceeds to step S402.

ステップS402にて、制御部101は、GPSアクセサリ100がデジタルカメラ150に固定されているか否かを判断する。具体的には、図3を用いて前述したように、制御部101は固定検知部105がONであるか否かを判断する。制御部101により固定検知部105がONでないと判断された場合、GPSアクセサリ100はデジタルカメラ150に固定されていないと判断される。したがって、GPSアクセサリの方位取得部102の取得する方位情報はデジタルカメラ150の撮影方向を示していないと判断される。一方、制御部101により固定検知部105がOFFであると判断された場合、処理はステップS410に進む。ステップS410以降の処理については後述する。一方、制御部101により固定検知部105がONであると判断された場合、GPSアクセサリ100はデジタルカメラ150に固定されていると判断される。したがって、デジタルカメラ150の撮影方向を、GPSアクセサリの方位取得部102の取得する方位情報から決定できると判断し、処理はステップS403に進む。以下、ステップS402にて、GPSアクセサリ100がデジタルカメラ150に固定されていると判断された場合のフローについて説明する。   In step S <b> 402, the control unit 101 determines whether the GPS accessory 100 is fixed to the digital camera 150. Specifically, as described above with reference to FIG. 3, the control unit 101 determines whether or not the fixed detection unit 105 is ON. When the control unit 101 determines that the fixed detection unit 105 is not ON, it is determined that the GPS accessory 100 is not fixed to the digital camera 150. Accordingly, it is determined that the azimuth information acquired by the azimuth acquisition unit 102 of the GPS accessory does not indicate the shooting direction of the digital camera 150. On the other hand, when the control unit 101 determines that the fixed detection unit 105 is OFF, the process proceeds to step S410. The processing after step S410 will be described later. On the other hand, when the control unit 101 determines that the fixed detection unit 105 is ON, it is determined that the GPS accessory 100 is fixed to the digital camera 150. Therefore, it is determined that the shooting direction of the digital camera 150 can be determined from the direction information acquired by the direction acquisition unit 102 of the GPS accessory, and the process proceeds to step S403. Hereinafter, a flow when it is determined in step S402 that the GPS accessory 100 is fixed to the digital camera 150 will be described.

ステップS403では、制御部101は、位置情報及び方位情報を取得するために電源部103から、位置取得部120及び方位取得部102への電力供給を開始する。既に位置取得部120及び方位取得部102への電力供給が行われている場合は、このステップの処理は行わずにステップS404に進む。   In step S <b> 403, the control unit 101 starts power supply from the power supply unit 103 to the position acquisition unit 120 and the direction acquisition unit 102 in order to acquire position information and direction information. If the power supply to the position acquisition unit 120 and the direction acquisition unit 102 has already been performed, the process proceeds to step S404 without performing the process of this step.

ステップS404では、制御部101は、位置取得部120及び方位取得部102により、位置情報及び方位情報を取得する。   In step S <b> 404, the control unit 101 acquires position information and direction information by the position acquisition unit 120 and the direction acquisition unit 102.

次いで、ステップS405にて、制御部101は、ステップS406にて取得された位置情報及び方位情報を、通信部107を介してデジタルカメラ150に送信する。   Next, in step S405, the control unit 101 transmits the position information and orientation information acquired in step S406 to the digital camera 150 via the communication unit 107.

次に、ステップS406にて、制御部101は、通信部107を介してデジタルカメラ150から位置情報及び方位情報の出力停止要求を受信したか否かを判断する。制御部101が、位置情報及び方位情報の出力停止要求を受信していないと判断した場合、処理はステップS407に進む。   Next, in step S <b> 406, the control unit 101 determines whether or not an output stop request for position information and orientation information has been received from the digital camera 150 via the communication unit 107. If the control unit 101 determines that it has not received an output stop request for position information and orientation information, the process proceeds to step S407.

ステップS407では、制御部101は一定時間待機し、処理はステップS404に戻る。つまり、GPSアクセサリ100は、位置情報及び方位情報の出力停止要求を受信するまで、ステップS404及びステップS405の処理を繰り返す。   In step S407, the control unit 101 waits for a predetermined time, and the process returns to step S404. That is, the GPS accessory 100 repeats the processing of step S404 and step S405 until it receives a request to stop outputting position information and direction information.

一方、制御部101が、位置情報及び方位情報の出力停止要求を受信したと判断した場合、処理はステップS408に進む。   On the other hand, when the control unit 101 determines that the output stop request for position information and orientation information has been received, the process proceeds to step S408.

ステップS408では、位置取得部120及び方位取得部102への電力供給を停止する。   In step S408, power supply to the position acquisition unit 120 and the direction acquisition unit 102 is stopped.

次いで、ステップS409にて、GPSアクセサリ100の電源をOFFにする指示を受け付けたか否かを判断する。制御部101が、電源OFFの指示を受け付けたと判断した場合、本処理を終了する。一方、制御部101が、電源OFFの指示を受け付けていないと判断した場合、処理はステップS401に戻り、本処理を繰り返す。   Next, in step S409, it is determined whether an instruction to turn off the power of the GPS accessory 100 has been received. If the control unit 101 determines that an instruction to turn off the power has been received, this process ends. On the other hand, if the control unit 101 determines that it has not received a power-off instruction, the process returns to step S401, and this process is repeated.

次に、ステップS402にて、GPSアクセサリ100がデジタルカメラ150に固定されていないと判断された場合のフローについて説明する。   Next, a flow when it is determined in step S402 that the GPS accessory 100 is not fixed to the digital camera 150 will be described.

ステップS410では、制御部101は、方位取得部102への電力供給を行わず、位置取得部120への電力供給を行う。なぜなら、GPSアクセサリ100がデジタルカメラ150に固定されていない場合、GPSアクセサリ100で取得される方位情報は、デジタルカメラ150の撮影方向を示さない可能性が高いからである。   In step S <b> 410, the control unit 101 supplies power to the position acquisition unit 120 without supplying power to the orientation acquisition unit 102. This is because, when the GPS accessory 100 is not fixed to the digital camera 150, the orientation information acquired by the GPS accessory 100 is likely not to indicate the shooting direction of the digital camera 150.

ステップS411では、制御部101は、位置取得部120により位置情報を取得する。   In step S <b> 411, the control unit 101 acquires position information by the position acquisition unit 120.

次いで、ステップS412では、制御部101は、ステップS411にて取得された位置情報を、デジタルカメラ150に送信する。   Next, in step S412, the control unit 101 transmits the position information acquired in step S411 to the digital camera 150.

ステップS413では、制御部101は、通信部107を介してデジタルカメラ150から位置情報及び方位情報の出力停止要求を受信したか否かを判断する。制御部101が、位置情報及び方位情報の出力停止要求を受信していないと判断した場合、処理はステップS414に進む。   In step S <b> 413, the control unit 101 determines whether or not an output stop request for position information and orientation information has been received from the digital camera 150 via the communication unit 107. If the control unit 101 determines that it has not received an output stop request for position information and orientation information, the process proceeds to step S414.

ステップS414では、制御部101は一定時間待機し、処理はステップS411に戻る。つまり、GPSアクセサリ100は、位置情報及び方位情報の出力停止要求を受信するまで、ステップS411及びステップS412の処理を繰り返す。   In step S414, the control unit 101 waits for a predetermined time, and the process returns to step S411. That is, the GPS accessory 100 repeats the processing of step S411 and step S412 until it receives a request to stop outputting position information and direction information.

一方、制御部101が、位置情報及び方位情報の出力停止要求を受信したと判断した場合、処理はステップS415に進む。   On the other hand, when the control unit 101 determines that the output stop request for position information and orientation information has been received, the process proceeds to step S415.

ステップS415では、位置取得部120への電力供給を停止する。その後、処理はステップS409に進み、前述した処理を実行する。   In step S415, the power supply to the position acquisition unit 120 is stopped. Thereafter, the process proceeds to step S409, and the above-described process is executed.

以上、本実施形態のGPSアクセサリ100が、デジタルカメラ150に固定されているか否かに基づき、方位情報を取得するか否かを決定するGPSアクセサリ100の動作について説明した。なお、本フローチャートのステップS403〜ステップS407に示される処理が実行されている間に、GPSアクセサリ100とデジタルカメラ150との位置関係が固定されている状態から固定されていない状態になった場合、割り込み処理が実行される。割り込み処理では、制御部101は、方位取得部102への電力供給を停止することで方位取得部102の動作を停止する。なお、この割り込み処理では、制御部101は、位置取得部120への電力供給は停止せず、位置情報の取得および送信を継続して実行する。   The operation of the GPS accessory 100 that determines whether or not to acquire the orientation information based on whether or not the GPS accessory 100 of the present embodiment is fixed to the digital camera 150 has been described above. In addition, when the positional relationship between the GPS accessory 100 and the digital camera 150 is changed from a fixed state to a non-fixed state while the processing shown in steps S403 to S407 of the flowchart is being executed, Interrupt processing is executed. In the interrupt process, the control unit 101 stops the operation of the direction acquisition unit 102 by stopping the power supply to the direction acquisition unit 102. In this interrupt process, the control unit 101 continues to acquire and transmit position information without stopping power supply to the position acquisition unit 120.

次に、上述のGPSアクセサリ100とともに用いられるデジタルカメラ150の撮影処理について、図6を用いて説明する。   Next, photographing processing of the digital camera 150 used with the GPS accessory 100 described above will be described with reference to FIG.

図6のフローチャートは撮影処理の際のデジタルカメラ150の動作を示す。このフローチャートに示す各処理は、制御部151が、不揮発性メモリ154に保存されているプログラムをロードし、メモリ153に展開してプログラムに従いデジタルカメラ150の各部を制御することで実現される。   The flowchart of FIG. 6 shows the operation of the digital camera 150 during the shooting process. Each process shown in this flowchart is realized by the control unit 151 loading a program stored in the nonvolatile memory 154, developing the program in the memory 153, and controlling each unit of the digital camera 150 according to the program.

また、本フローチャートに示す処理は、デジタルカメラ150の操作部163に含まれるレリーズスイッチのSW1がONとなったことを検知することに応じて開始される。   The processing shown in this flowchart is started in response to detecting that the release switch SW1 included in the operation unit 163 of the digital camera 150 is turned on.

まず、ステップS1001にて、制御部151は、位置情報及び方位情報の出力開始要求を、GPSアクセサリ100に送信する。   First, in step S <b> 1001, the control unit 151 transmits an output start request for position information and direction information to the GPS accessory 100.

次に、ステップS1002にて、制御部151は、ステップS1001にて送信した位置情報及び方位情報の出力要求に応じてGPSアクセサリ100から送信される位置情報及び方位情報を、通信部161を介して受信する。このステップで受信された位置情報及び方位情報は、随時メモリ153に記録される。なお、GPSアクセサリ100がデジタルカメラ150に固定されていない場合は、前述のように方位情報が送信されない。その場合は、本ステップの処理では位置情報のみが受信される。このステップの処理は、後述のステップS1003及びステップS1004と並行して実行される。   Next, in step S1002, the control unit 151 transmits the position information and direction information transmitted from the GPS accessory 100 in response to the output request for the position information and direction information transmitted in step S1001 via the communication unit 161. Receive. The position information and direction information received in this step are recorded in the memory 153 as needed. In addition, when the GPS accessory 100 is not fixed to the digital camera 150, the direction information is not transmitted as described above. In that case, only position information is received in the processing of this step. The processing in this step is executed in parallel with Step S1003 and Step S1004 described later.

次に、ステップS1003にて、制御部151は、レリーズスイッチのSW2がONであるか否かを判断する。まず、SW2がOFFであると判断された場合について説明する。SW2がOFFであると判断された場合、処理はステップS1004に進む。   Next, in step S1003, the control unit 151 determines whether or not the release switch SW2 is ON. First, a case where it is determined that SW2 is OFF will be described. If it is determined that SW2 is OFF, the process proceeds to step S1004.

ステップS1004では、制御部151は、レリーズスイッチのSW1がONであるか否かを判断する。制御部151が、SW1がOFFであると判断した場合、処理はステップS1005に進む。ステップS1005にて制御部151は、位置情報及び方位情報の出力停止要求をGPSアクセサリ100に送信し、処理を終了する。   In step S1004, the control unit 151 determines whether or not the release switch SW1 is ON. If the control unit 151 determines that SW1 is OFF, the process proceeds to step S1005. In step S1005, the control unit 151 transmits an output stop request for position information and direction information to the GPS accessory 100, and ends the process.

一方、制御部151が、SW1がONであると判断した場合、処理はステップS1002に戻る。すなわち、ユーザがレリーズスイッチを半押ししてSW1をONとした場合、指を離してSW1がOFFとなるか、全押ししてSW2をONとするまでは、制御部151はGPSアクセサリ100から位置情報及び方位情報を取得する処理を繰り返す。これにより、メモリ153に記録される位置情報及び方位情報は常に最新のものとなる。   On the other hand, when the control unit 151 determines that SW1 is ON, the process returns to step S1002. That is, when the user presses the release switch halfway to turn SW1 ON, the control unit 151 is positioned from the GPS accessory 100 until the SW1 is turned OFF by releasing the finger or SW2 is turned ON by fully pressing the release switch. The process of acquiring information and direction information is repeated. Thereby, the position information and the direction information recorded in the memory 153 are always the latest.

以上が、ステップS1003にて、制御部151は、レリーズスイッチのSW2がOFFであると判断された場合の処理である。   The above is the processing when the control unit 151 determines in step S1003 that the release switch SW2 is OFF.

一方、ステップS1003にてSW2がONであると判断された場合、処理はステップS1006に進む。ステップS1006では、制御部151は位置情報及び方位情報の出力停止要求をGPSアクセサリ100に送信する。   On the other hand, if it is determined in step S1003 that SW2 is ON, the process proceeds to step S1006. In step S <b> 1006, the control unit 151 transmits an output stop request for position information and direction information to the GPS accessory 100.

次いで、ステップS1007にて、制御部151は、撮像部152により、撮影処理を行い、画像データを取得する。   Next, in step S <b> 1007, the control unit 151 performs shooting processing by the imaging unit 152 and acquires image data.

ステップS1008では、制御部151は、ステップS1002にてGPSアクセサリ100から受信し、メモリ153に記録している最新の位置情報及び方位情報を読み出す。   In step S1008, the control unit 151 reads the latest position information and direction information received from the GPS accessory 100 in step S1002 and recorded in the memory 153.

そして、ステップS1009にて、制御部151は、ステップS1007にて取得した画像データに、ステップS1008にて読み出した位置情報及び方位情報を、撮影位置及び撮影方向として対応づける。なお、GPSアクセサリ100がデジタルカメラ150に固定されていない場合、GPSアクセサリ100から方位情報が送信されないため、メモリ153には方位情報が記録されていない。この場合はステップS1007にて取得した画像データには、ステップS1008にて読み出した位置情報のみ対応づけられる。   In step S1009, the control unit 151 associates the position information and orientation information read in step S1008 with the image data acquired in step S1007 as the shooting position and shooting direction. When the GPS accessory 100 is not fixed to the digital camera 150, the direction information is not transmitted from the GPS accessory 100, and therefore the direction information is not recorded in the memory 153. In this case, only the position information read in step S1008 is associated with the image data acquired in step S1007.

ステップS1010では、制御部151は、画像データを記録媒体155に記録し、本処理を終了する。   In step S1010, the control unit 151 records the image data on the recording medium 155, and ends this process.

以上、上述のGPSアクセサリ100にて取得された方位情報を、撮影方向として画像データに対応づけるデジタルカメラ150の撮影処理の動作について説明した。この動作により、デジタルカメラ150はGPSアクセサリ100と協働して、撮影した画像データに撮影方向を示す情報を対応づけることができる。   The operation of the imaging process of the digital camera 150 that associates the azimuth information acquired by the GPS accessory 100 with the image data as the imaging direction has been described above. With this operation, the digital camera 150 can associate information indicating the photographing direction with the photographed image data in cooperation with the GPS accessory 100.

以上のように、本実施形態では、GPSアクセサリ100がデジタルカメラ150に固定されていない場合は、方位情報を取得しないよう構成した。このように構成することで、撮影方向を示していない方位情報が、デジタルカメラ150に送信されることを防ぐことができる。   As described above, in the present embodiment, when the GPS accessory 100 is not fixed to the digital camera 150, the direction information is not acquired. With this configuration, it is possible to prevent azimuth information that does not indicate the shooting direction from being transmitted to the digital camera 150.

また、撮影方向を示していない方位情報が取得され得る状況では方位情報を取得するための装置への電力供給を停止するため、無駄な電力の消費を抑えることができる。   Further, in a situation where azimuth information that does not indicate the shooting direction can be obtained, power supply to the apparatus for obtaining azimuth information is stopped, so that wasteful power consumption can be suppressed.

[第2の実施形態]
第1の実施形態では、GPSアクセサリ100の方位取得部102が取得する方位情報が示す方向、すなわちGPSアクセサリが向いている方向とデジタルカメラ150の撮影方向とが一致するよう固定される例について述べた。しかしながら、デジタルカメラの構成によっては、GPSアクセサリが向いている方向とデジタルカメラの撮影方向とが一致するよう固定されない場合も考えられる。
[Second Embodiment]
In the first embodiment, an example in which the direction indicated by the direction information acquired by the direction acquisition unit 102 of the GPS accessory 100, that is, the direction in which the GPS accessory is facing, and the shooting direction of the digital camera 150 are fixed is described. It was. However, depending on the configuration of the digital camera, there may be a case where the direction in which the GPS accessory is facing and the shooting direction of the digital camera are not fixed so as to match.

そこで、第2の実施形態では、上記のような場合に対応するために、GPSアクセサリからデジタルカメラに送信される方位情報の示す方向とデジタルカメラの撮影方向とが一致するよう、方位情報に補正を施す例について述べる。   Therefore, in the second embodiment, in order to cope with the above case, the direction information is corrected so that the direction indicated by the direction information transmitted from the GPS accessory to the digital camera matches the shooting direction of the digital camera. An example of applying is described.

本実施形態は第1の実施形態と共通する部分が多いため、共通部分は説明を省略し、本実施形態に特有の部分を中心に説明する。   Since this embodiment has many parts in common with the first embodiment, description of common parts will be omitted, and description will be made centering on parts unique to this embodiment.

図7に、本実施形態の、撮像装置に接続可能な方位取得装置の一例である、GPSアクセサリ及び該GPSアクセサリが接続される撮像装置の一例であるデジタルカメラのブロック図を示す。   FIG. 7 is a block diagram of a GPS accessory, which is an example of an orientation acquisition device that can be connected to the imaging device, and an example of an imaging device to which the GPS accessory is connected.

GPSアクセサリ600は、制御部601、方位取得部602、電源部603、不揮発性メモリ604、第1固定検知部605、第2固定検知部611、固定部606、通信部607、作業用メモリ610、位置取得部620等で構成される。   The GPS accessory 600 includes a control unit 601, an orientation acquisition unit 602, a power supply unit 603, a nonvolatile memory 604, a first fixed detection unit 605, a second fixed detection unit 611, a fixed unit 606, a communication unit 607, a work memory 610, A position acquisition unit 620 and the like are included.

また、デジタルカメラ650は、制御部651、撮像部652、メモリ653、不揮発性メモリ654、記録媒体655、電源部656、第1固定部659、第2固定部660、通信部661、表示部662、操作部663、加速度検出部664等で構成される。   The digital camera 650 includes a control unit 651, an imaging unit 652, a memory 653, a nonvolatile memory 654, a recording medium 655, a power supply unit 656, a first fixing unit 659, a second fixing unit 660, a communication unit 661, and a display unit 662. , An operation unit 663, an acceleration detection unit 664, and the like.

本実施形態において、デジタルカメラ650は、第1固定部659及び第2固定部660の二つの固定部を備えている。ここでは、第1固定部659をデジタルカメラ650の本体上部に設けられた固定部、例えばアクセサリシューとし、第2固定部660をデジタルカメラ650の本体側面に設けられた固定部とする。また、GPSアクセサリ600の固定部606は、第1固定部659または第2固定部660のどちらかに固定することが可能なよう構成される。   In the present embodiment, the digital camera 650 includes two fixing parts, a first fixing part 659 and a second fixing part 660. Here, the first fixing portion 659 is a fixing portion provided on the upper portion of the main body of the digital camera 650, for example, an accessory shoe, and the second fixing portion 660 is a fixing portion provided on the side surface of the main body of the digital camera 650. Further, the fixing unit 606 of the GPS accessory 600 is configured to be fixed to either the first fixing unit 659 or the second fixing unit 660.

また、GPSアクセサリ600は、第1固定検知部605及び第2固定検知部611の二つの固定検知部を備える。GPSアクセサリ600は、第1の固定検知部605及び第2の固定検知部611により、デジタルカメラ650に固定されたか否か、及び固定された固定部が第1固定部659であるか第2固定部660であるかを判断することができる。   The GPS accessory 600 includes two fixed detection units, a first fixed detection unit 605 and a second fixed detection unit 611. The GPS accessory 600 is fixed to the digital camera 650 by the first fixed detection unit 605 and the second fixed detection unit 611, and whether the fixed unit is the first fixed unit 659 or the second fixed unit. Whether it is a part 660 can be determined.

次に、上述のデジタルカメラ650およびGPSアクセサリ600の使用例を図8に示す。図8(a)および図8(c)に示す使用例は、GPSアクセサリ600にて取得される方位情報が示す方向とデジタルカメラ650の撮影方向とが一致する使用例である。図8(a)は、デジタルカメラ650およびGPSアクセサリ600の具体的な使用例の概観である。ここでは、図2(a)に示した使用例と同様に、アクセサリシューにGPSアクセサリ600が固定されている。この場合、GPSアクセサリ600の方位取得部602が取得する方位情報が示す方向504とデジタルカメラ650の撮影方向503とは一致するよう固定される。また、図8(c)は、図8(a)のように用いられるデジタルカメラ650およびGPSアクセサリ600の各軸方向を示す。図8(c)において、デジタルカメラ650の正面方向を正とする正面方向に平行な軸をX、側面方向を正とする側面方向に平行な軸をY、上部方向を正とする上部方向に平行な軸をZとする。同様に、GPSアクセサリ600の正面方向を正とする正面方向に平行な軸をx、側面方向を正とする側面方向に平行な軸をy、上部方向を正とする上部方向に平行な軸をzとする。図8(a)の使用例では、デジタルカメラ650およびGPSアクセサリ600のそれぞれの軸が軸ごとに同じ向きを向いており、差分はそれぞれ0である。つまりGPSアクセサリ600にて取得される方位情報が示す方向とデジタルカメラ650の撮影方向とが一致している。従って、方位取得部602にて取得された方位情報に補正を施さずとも、方位情報は撮影方向を示すことになる。   Next, a usage example of the digital camera 650 and the GPS accessory 600 described above is shown in FIG. The usage examples shown in FIGS. 8A and 8C are usage examples in which the direction indicated by the azimuth information acquired by the GPS accessory 600 matches the shooting direction of the digital camera 650. FIG. 8A is an overview of specific usage examples of the digital camera 650 and the GPS accessory 600. Here, as in the example of use shown in FIG. 2A, the GPS accessory 600 is fixed to the accessory shoe. In this case, the direction 504 indicated by the direction information acquired by the direction acquisition unit 602 of the GPS accessory 600 and the shooting direction 503 of the digital camera 650 are fixed to coincide with each other. FIG. 8C shows the axial directions of the digital camera 650 and the GPS accessory 600 used as shown in FIG. In FIG. 8C, the axis parallel to the front direction with the front direction of the digital camera 650 as positive is X, the axis parallel to the side direction with the side direction as positive is Y, and the upper direction is with the upper direction as positive. Let Z be the parallel axis. Similarly, an axis parallel to the front direction with the front direction of the GPS accessory 600 being positive is x, an axis parallel to the side direction with the side direction being positive is y, and an axis parallel to the upper direction with the upper direction being positive. z. In the usage example of FIG. 8A, the axes of the digital camera 650 and the GPS accessory 600 are oriented in the same direction for each axis, and the difference is 0. That is, the direction indicated by the azimuth information acquired by the GPS accessory 600 matches the shooting direction of the digital camera 650. Accordingly, the azimuth information indicates the shooting direction without correcting the azimuth information acquired by the azimuth acquisition unit 602.

一方、図8(b)および図8(d)に示す使用例は、GPSアクセサリ600にて取得される方位情報が示す方向とデジタルカメラ650の撮影方向とが一致しない使用例である。図8(b)は、デジタルカメラ650およびGPSアクセサリ600の具体的な使用例の概観である。ここでは、アクセサリシューには外部ストロボが固定されている。この場合、GPSアクセサリ600をアクセサリシューに固定することはできないため、GPSアクセサリ600はデジタルカメラ650の本体側面に設けられた第2固定部660に固定されている。ここで、GPSアクセサリ600の方位取得部602が取得する方位情報が示す方向505は、デジタルカメラ650の撮影方向506と直交するよう固定されている。また、図8(d)は、図8(b)のように用いられるデジタルカメラ650およびGPSアクセサリ600の各軸方向を示す。図8(d)においては、図8(c)とは異なり、デジタルカメラ650の各軸と、GPSアクセサリ600の各軸は同じ向きを向いていない。つまり、GPSアクセサリ600の方位取得部602が取得する方位情報が示す方向とデジタルカメラ650の撮影方向とが一致していない。そのため、方位取得部602で取得された方位情報が、そのままデジタルカメラ650に送信されてしまうと、実際の撮影方向とは異なる方向を示す方位情報が撮影画像に対応づけられてしまう可能性がある。   On the other hand, the usage examples shown in FIGS. 8B and 8D are usage examples in which the direction indicated by the azimuth information acquired by the GPS accessory 600 does not match the shooting direction of the digital camera 650. FIG. 8B is an overview of specific usage examples of the digital camera 650 and the GPS accessory 600. Here, an external strobe is fixed to the accessory shoe. In this case, since the GPS accessory 600 cannot be fixed to the accessory shoe, the GPS accessory 600 is fixed to the second fixing portion 660 provided on the side surface of the digital camera 650. Here, the direction 505 indicated by the direction information acquired by the direction acquisition unit 602 of the GPS accessory 600 is fixed so as to be orthogonal to the shooting direction 506 of the digital camera 650. Moreover, FIG.8 (d) shows each axial direction of the digital camera 650 and the GPS accessory 600 used like FIG.8 (b). In FIG. 8D, unlike in FIG. 8C, the axes of the digital camera 650 and the axes of the GPS accessory 600 do not face the same direction. That is, the direction indicated by the azimuth information acquired by the azimuth acquisition unit 602 of the GPS accessory 600 does not match the shooting direction of the digital camera 650. Therefore, if the azimuth information acquired by the azimuth acquisition unit 602 is transmitted to the digital camera 650 as it is, there is a possibility that azimuth information indicating a direction different from the actual shooting direction is associated with the shot image. .

そこで、本実施形態では、図8(b)のように方位情報が示す方向505と撮影方向506とが一致しない態様で固定されている場合には、取得された方位情報に対して、該方位情報の示す方向505が撮影方向506と一致するよう補正を施す。図8(d)の例では、方位情報が示す方向と撮影方向を一致させるために、GPSアクセサリ600の3軸のうちいずれかの2軸に関して90度回転させる必要がある。   Therefore, in the present embodiment, when the direction 505 indicated by the azimuth information and the shooting direction 506 are fixed in a manner that does not match as shown in FIG. Correction is performed so that the direction 505 indicated by the information coincides with the shooting direction 506. In the example of FIG. 8D, it is necessary to rotate 90 degrees with respect to any two of the three axes of the GPS accessory 600 in order to match the direction indicated by the azimuth information with the shooting direction.

一方、図8(a)の場合では、方位情報の示す方向504は、撮影方向503と一致するよう固定されている。そのため、図8(a)のような場合には図8(b)の場合とは異なり、GPSアクセサリ600は方位情報に対して補正を施さない。   On the other hand, in the case of FIG. 8A, the direction 504 indicated by the azimuth information is fixed to coincide with the shooting direction 503. Therefore, in the case of FIG. 8A, unlike the case of FIG. 8B, the GPS accessory 600 does not correct the direction information.

なお、GPSアクセサリ600の不揮発性メモリ604には、それぞれの固定部を示す情報とそれぞれの固定部に対応する補正値および補正の必要の有無を示す情報とが対応づけられた補正情報が予め記録されている。   In the nonvolatile memory 604 of the GPS accessory 600, correction information in which information indicating each fixed portion is associated with a correction value corresponding to each fixed portion and information indicating whether correction is necessary is recorded in advance. Has been.

例えば、図9に示すようなテーブルに示す情報が補正情報として記録されている。補正情報の項目の固定部が示す情報は、デジタルカメラ650の有する複数の固定部のうちどの固定部かを示す情報である。ここでは、固定部「1」は、デジタルカメラ650の上部に設けられた第1固定部659を示し、固定部「2」は、デジタルカメラ650の側面に設けられた第2固定部660を示す。補正は、補正が必要か否かを示す情報である。補正値は、固定部に固定される際のGPSアクセサリ600の各軸の向きとデジタルカメラ650の各軸の向きとの差分である。これらの情報は、各固定部ごとに予め定められている。   For example, information shown in a table as shown in FIG. 9 is recorded as correction information. The information indicated by the fixed part of the correction information item is information indicating which fixed part of the plurality of fixed parts the digital camera 650 has. Here, the fixing portion “1” indicates the first fixing portion 659 provided on the top of the digital camera 650, and the fixing portion “2” indicates the second fixing portion 660 provided on the side surface of the digital camera 650. . The correction is information indicating whether correction is necessary. The correction value is a difference between the direction of each axis of the GPS accessory 600 and the direction of each axis of the digital camera 650 when being fixed to the fixing unit. Such information is predetermined for each fixed part.

この補正情報を参照することにより、本実施形態のGPSアクセサリ600は、第1固定部659および第2固定部660のどちらに固定されたかに応じて、補正するかしないかを判断したり、固定された固定部に応じた値で方位情報を補正する。このように構成することで、デジタルカメラ650が、実際の撮影方向とは異なる方向を示す方位情報を受信することを防ぐことができる。つまり、デジタルカメラ650にて撮影される画像データに、実際の撮影方向とは異なる方向を示す方位情報が対応づけられることを防ぐことができる。   By referring to the correction information, the GPS accessory 600 according to the present embodiment determines whether or not to correct, depending on whether the GPS accessory 600 is fixed to the first fixing unit 659 or the second fixing unit 660. The orientation information is corrected with a value corresponding to the fixed portion. With this configuration, it is possible to prevent the digital camera 650 from receiving azimuth information indicating a direction different from the actual shooting direction. That is, it is possible to prevent image data captured by the digital camera 650 from being associated with azimuth information indicating a direction different from the actual shooting direction.

以上のように、本実施形態では、デジタルカメラ650に設けられた複数の固定部のうち、GPSアクセサリ600が固定された固定部に応じて、方位情報に補正を施している。これについて次に、GPSアクセサリ600が、複数の固定部をもつデジタルカメラ650に固定される際に、どの固定部に固定されているかを検出するための構成の例について、図10を用いて説明する。なお、図10において、図7と同じ装置には図7と同じ番号を振ってある。   As described above, in the present embodiment, the orientation information is corrected according to the fixed portion to which the GPS accessory 600 is fixed among the plurality of fixed portions provided in the digital camera 650. Next, an example of a configuration for detecting which fixed part is fixed when the GPS accessory 600 is fixed to the digital camera 650 having a plurality of fixed parts will be described with reference to FIG. To do. In FIG. 10, the same apparatus as in FIG. 7 is assigned the same number as in FIG.

図10(a)は、デジタルカメラ650およびGPSアクセサリ600が互いに固定されている状態の概観の一例である。本実施形態のデジタルカメラ650は、図10(a)のようにデジタルカメラ650の本体上部に第1固定部659を備え、本体側面に第2固定部660を備えている。ここでは、第1固定部659には、ストロボ装置が固定されており、第2固定部660にはGPSアクセサリ600が固定されている。なお、本実施形態では、GPSアクセサリ600が第2固定部660に固定される場合、方位取得部602が取得する方位情報の示す方向がデジタルカメラ650の撮影方向と直交するよう固定される。   FIG. 10A is an example of an overview of a state in which the digital camera 650 and the GPS accessory 600 are fixed to each other. As shown in FIG. 10A, the digital camera 650 according to the present embodiment includes a first fixing portion 659 at the top of the main body of the digital camera 650 and a second fixing portion 660 at the side of the main body. Here, the strobe device is fixed to the first fixing portion 659, and the GPS accessory 600 is fixed to the second fixing portion 660. In the present embodiment, when the GPS accessory 600 is fixed to the second fixing unit 660, the direction indicated by the azimuth information acquired by the azimuth acquiring unit 602 is fixed so as to be orthogonal to the shooting direction of the digital camera 650.

図10(b)および図10(c)に、GPSアクセサリ600の概観と、固定部606の拡大図を示す。また、図10(d)にデジタルカメラ650の第2固定部660の拡大図を示す。本実施形態のGPSアクセサリ600は、固定部606を有している。固定部606は、前述の図10(a)に示す第1固定部659、または第2固定部660に固定することができる。また、固定部606は、第1固定検知部605および第2固定検知部611を有する。第1固定検知部605は図3の固定検知部105と同様である。また、第2固定検知部611は、例えば図10(c)に示す態様のハードウェアスイッチで構成され、固定部606に設けられる。図10(c)に示す第2固定検知部611の状態はOFFの状態である。固定部606は、図10(d)に示す第2固定部660に嵌合される。その際に第2固定検知部611は、第2固定部660に設けられた突起710により、図10(c)に示す矢印方向に押し込まれ、これによりONの状態となる。制御部101は、第2固定検知部611がONであることを検知することにより、GPSアクセサリ600が第2固定部660に固定されていると判断する。   FIG. 10B and FIG. 10C show an overview of the GPS accessory 600 and an enlarged view of the fixing portion 606. FIG. 10D shows an enlarged view of the second fixing portion 660 of the digital camera 650. The GPS accessory 600 of this embodiment has a fixed part 606. The fixing portion 606 can be fixed to the first fixing portion 659 or the second fixing portion 660 shown in FIG. The fixing unit 606 includes a first fixing detection unit 605 and a second fixing detection unit 611. The first fixed detection unit 605 is the same as the fixed detection unit 105 in FIG. Further, the second fixed detection unit 611 is configured by a hardware switch having a mode illustrated in FIG. 10C, for example, and is provided in the fixed unit 606. The state of the second fixed detection unit 611 shown in FIG. 10C is an OFF state. The fixing portion 606 is fitted to the second fixing portion 660 shown in FIG. At that time, the second fixing detection unit 611 is pushed in the direction of the arrow shown in FIG. 10C by the protrusion 710 provided on the second fixing unit 660, and thereby becomes ON. The control unit 101 determines that the GPS accessory 600 is fixed to the second fixing unit 660 by detecting that the second fixing detection unit 611 is ON.

以上、GPSアクセサリ600がデジタルカメラ650に固定される際、どの固定部に固定されているか否かを検出するための構成の例について説明した。   The example of the configuration for detecting which fixing part is fixed when the GPS accessory 600 is fixed to the digital camera 650 has been described above.

次に、本実施形態のGPSアクセサリ600が、デジタルカメラ650の複数の固定部のうちどの固定部に固定されているか否かを判断した結果に基づき、方位情報に補正を施すGPSアクセサリ600の動作について説明する。   Next, the operation of the GPS accessory 600 that corrects the azimuth information based on the determination of which fixed part of the plurality of fixed parts of the digital camera 650 is fixed to the GPS accessory 600 of the present embodiment. Will be described.

図11は、GPSアクセサリ600の方位取得処理を示すフローチャートである。   FIG. 11 is a flowchart showing the direction acquisition processing of the GPS accessory 600.

本フローチャートに示す処理は、GPSアクセサリ600が電源をONにされることに応じて開始される。   The processing shown in this flowchart is started in response to the GPS accessory 600 being turned on.

ステップS801〜ステップS804は、図5のステップS401〜ステップS404と同様であるため説明は省略する。   Steps S801 to S804 are the same as steps S401 to S404 in FIG.

ステップS805では、制御部601は、方位取得部602にて取得される方位情報が、撮影方向を示すか否かを判断する。具体的には、制御部601は、第1固定検知部605がONであるか否か、および第2固定検知部611がONであるか否かに基づき、GPSアクセサリ600がデジタルカメラ650の複数の固定部のうちどの固定部に固定されているかを判断する。ステップS805にて制御部601が、第2固定検知部611がONでないと判断した場合は、GPSアクセサリ600はデジタルカメラ650の第1固定部659に固定されていると判断する。すなわち、方位取得部602にて取得される方位情報はデジタルカメラ650の撮影方向と一致していると判断される。この場合、補正の必要がないため、処理はステップS807に進む。ステップS807〜ステップS817については、ステップS405〜ステップS415と同様であるため説明は省略する。   In step S805, the control unit 601 determines whether the azimuth information acquired by the azimuth acquisition unit 602 indicates a shooting direction. Specifically, the control unit 601 determines that the GPS accessory 600 includes a plurality of digital cameras 650 based on whether the first fixed detection unit 605 is ON and whether the second fixed detection unit 611 is ON. It is determined which fixed part of the fixed parts is fixed. If the control unit 601 determines in step S805 that the second fixing detection unit 611 is not ON, it determines that the GPS accessory 600 is fixed to the first fixing unit 659 of the digital camera 650. That is, it is determined that the direction information acquired by the direction acquisition unit 602 matches the shooting direction of the digital camera 650. In this case, since correction is not necessary, the process proceeds to step S807. About step S807-step S817, since it is the same as that of step S405-step S415, description is abbreviate | omitted.

一方、ステップS805にて制御部601が、第2固定検知部611がONであると判断した場合は、GPSアクセサリ600はデジタルカメラ650の第2固定部660に固定されていると判断する。すなわち、方位取得部602にて取得される方位情報は、デジタルカメラ650の撮影方向と一致していないと判断される。この場合、処理はステップS806に進む。   On the other hand, when the control unit 601 determines in step S805 that the second fixing detection unit 611 is ON, it determines that the GPS accessory 600 is fixed to the second fixing unit 660 of the digital camera 650. That is, it is determined that the direction information acquired by the direction acquisition unit 602 does not match the shooting direction of the digital camera 650. In this case, the process proceeds to step S806.

ステップS806では、制御部601は、ステップS804にて取得された方位情報に対して補正を行う。ここでは、ステップS804にて取得された方位情報は、不揮発性メモリ604に記録されているテーブルに基づき、デジタルカメラ650の撮影方向を示すよう補正される。   In step S806, the control unit 601 corrects the azimuth information acquired in step S804. Here, the azimuth information acquired in step S804 is corrected to indicate the shooting direction of the digital camera 650 based on the table recorded in the nonvolatile memory 604.

その後、処理はステップS807に進み、補正された方位情報はデジタルカメラ650に送信される。   Thereafter, the process proceeds to step S807, and the corrected azimuth information is transmitted to the digital camera 650.

なお、本フローチャートのステップS803〜ステップS809に示される処理が実行されている間に、GPSアクセサリ100とデジタルカメラ150との位置関係が固定されている状態から固定されていない状態になった場合、割り込み処理が実行される。割り込み処理では、制御部101は、方位取得部102への電力供給を停止することで方位取得部102の動作を停止する。なお、この割り込み処理では、制御部101は、位置取得部120への電力供給は停止せず、位置情報の取得および送信を継続して実行する。   In addition, when the positional relationship between the GPS accessory 100 and the digital camera 150 is changed from a fixed state to a non-fixed state while the processing shown in steps S803 to S809 of the flowchart is being executed, Interrupt processing is executed. In the interrupt process, the control unit 101 stops the operation of the direction acquisition unit 102 by stopping the power supply to the direction acquisition unit 102. In this interrupt process, the control unit 101 continues to acquire and transmit position information without stopping power supply to the position acquisition unit 120.

以上のように、本実施形態のGPSアクセサリ600は、デジタルカメラ650に設けられた複数の固定部のうち、どの固定部に固定されているかに応じて方位情報に補正を施すよう構成した。これにより、第1の実施形態とは異なり、GPSアクセサリ600がデジタルカメラ650の撮影方向と異なる方向を示す方位情報を取得する位置関係で固定された場合でも、実際の撮影方向と異なる方向を示す方位情報が送信されることを防ぐことができる。   As described above, the GPS accessory 600 according to the present embodiment is configured to correct the azimuth information according to which fixed portion of the plurality of fixed portions provided in the digital camera 650 is fixed. Thus, unlike the first embodiment, even when the GPS accessory 600 is fixed in a positional relationship that acquires orientation information indicating a direction different from the shooting direction of the digital camera 650, the GPS accessory 600 indicates a direction different from the actual shooting direction. Transmission of azimuth information can be prevented.

[第3の実施形態]
上述の実施形態では、方位取得装置の固定部に固定検知部としてハードウェアスイッチを設け、該ハードウェアスイッチの状態に応じて、方位取得装置が撮像装置に固定されているか否かを判断していた。
[Third Embodiment]
In the above-described embodiment, a hardware switch is provided as a fixed detection unit in the fixed unit of the azimuth acquisition device, and it is determined whether the azimuth acquisition device is fixed to the imaging device according to the state of the hardware switch. It was.

これに対して、本実施形態では方位取得部に含まれる加速度センサを用いて取得した方位取得装置の加速度と、撮像装置の加速度とを比較し、差が一定の閾値以内であれば方位取得装置は撮像装置に固定されているものと判断する。これにより、ハードウェアスイッチを用いずに方位取得装置が撮像装置に固定されているか否かを判断することができる。   On the other hand, in this embodiment, the acceleration of the azimuth acquisition device acquired using the acceleration sensor included in the azimuth acquisition unit is compared with the acceleration of the imaging device, and if the difference is within a certain threshold, the azimuth acquisition device Is determined to be fixed to the imaging device. Thereby, it is possible to determine whether or not the orientation acquisition device is fixed to the imaging device without using a hardware switch.

本実施形態は第1の実施形態と共通する部分が多いため、共通部分は説明を省略し、本実施形態に特有の部分を中心に説明する。   Since this embodiment has many parts in common with the first embodiment, description of common parts will be omitted, and description will be made centering on parts unique to this embodiment.

本実施形態の、撮像装置に接続可能な方位取得装置の一例であるGPSアクセサリ、及び該GPSアクセサリが接続される撮像装置の一例であるデジタルカメラは、図1と同様である。   A GPS accessory that is an example of an orientation acquisition device that can be connected to an imaging apparatus and a digital camera that is an example of an imaging apparatus to which the GPS accessory is connected are the same as those in FIG.

なお、本実施形態におけるGPSアクセサリ100の制御部101は、デジタルカメラ150の加速度と、GPSアクセサリ100の加速度とに基づき、GPSアクセサリ100がデジタルカメラ150に固定されているか否かを判断可能に構成される。例えば、図2(a)のような使用例では、GPSアクセサリ100の加速度と、デジタルカメラ150の加速度はほぼ等しく変化する。つまり、GPSアクセサリ100の加速度とデジタルカメラ150の加速度とが、ほぼ一致していれば、図2(a)のように用いられているものと判断し、GPSアクセサリ100はデジタルカメラ150に固定されているものとみなすことができる。   Note that the control unit 101 of the GPS accessory 100 according to the present embodiment is configured to be able to determine whether the GPS accessory 100 is fixed to the digital camera 150 based on the acceleration of the digital camera 150 and the acceleration of the GPS accessory 100. Is done. For example, in the usage example as shown in FIG. 2A, the acceleration of the GPS accessory 100 and the acceleration of the digital camera 150 change substantially equally. That is, if the acceleration of the GPS accessory 100 and the acceleration of the digital camera 150 substantially match, it is determined that the GPS accessory 100 is used as shown in FIG. Can be regarded as being.

一方、図2(b)のような使用例では、GPSアクセサリ100の加速度と、デジタルカメラ150の加速度とは互いに関係なくランダムに変化する。つまり、GPSアクセサリ100の加速度と、デジタルカメラ150の加速度とは互いに異なるものとなる。そこで、GPSアクセサリ100の加速度とデジタルカメラ150の加速度とが異なっている場合、図2(b)のように用いられているものと判断し、GPSアクセサリ100はデジタルカメラ150に固定されていないものとみなす。   On the other hand, in the usage example as shown in FIG. 2B, the acceleration of the GPS accessory 100 and the acceleration of the digital camera 150 change randomly regardless of each other. That is, the acceleration of the GPS accessory 100 and the acceleration of the digital camera 150 are different from each other. Therefore, if the acceleration of the GPS accessory 100 and the acceleration of the digital camera 150 are different, it is determined that the GPS accessory 100 is used as shown in FIG. 2B, and the GPS accessory 100 is not fixed to the digital camera 150. It is considered.

本実施形態のGPSアクセサリ100では、以上のようにしてGPSアクセサリ100がデジタルカメラ150に固定されているか否かを判断する。これについて、図12に示すフローチャートを用いて説明する。   In the GPS accessory 100 of this embodiment, it is determined whether the GPS accessory 100 is fixed to the digital camera 150 as described above. This will be described with reference to the flowchart shown in FIG.

図12は、GPSアクセサリ100の方位取得処理を示すフローチャートである。本フローチャートに示す処理は、GPSアクセサリ100が電源をONにされることに応じて開始される。   FIG. 12 is a flowchart showing the direction acquisition processing of the GPS accessory 100. The processing shown in this flowchart is started in response to the GPS accessory 100 being turned on.

ステップS901の処理は、図5に示すステップS401の処理と同様であるため説明は省略する。   The processing in step S901 is the same as the processing in step S401 shown in FIG.

ステップS902では、制御部101は方位取得部102の加速度センサからGPSアクセサリ100の加速度を取得する。   In step S <b> 902, the control unit 101 acquires the acceleration of the GPS accessory 100 from the acceleration sensor of the azimuth acquisition unit 102.

次いで、ステップS903では、制御部101は通信部107及び通信部161を介して、加速度検出部164にて取得されたデジタルカメラ150の加速度を取得する。具体的には、制御部101は、デジタルカメラ150に対して、デジタルカメラ150の加速度をGPSアクセサリ100に送信させるための要求を送信する。デジタルカメラ150の制御部151はこの要求に応じて、加速度検出部164からデジタルカメラ150の加速度を取得し、通信部161を介してGPSアクセサリ100にデジタルカメラ150の加速度を送信する。そして、GPSアクセサリ100は該送信されたデジタルカメラ150の加速度を受信することにより、デジタルカメラ150の加速度を取得する。   Next, in step S <b> 903, the control unit 101 acquires the acceleration of the digital camera 150 acquired by the acceleration detection unit 164 via the communication unit 107 and the communication unit 161. Specifically, the control unit 101 transmits a request for transmitting the acceleration of the digital camera 150 to the GPS accessory 100 to the digital camera 150. In response to this request, the control unit 151 of the digital camera 150 acquires the acceleration of the digital camera 150 from the acceleration detection unit 164 and transmits the acceleration of the digital camera 150 to the GPS accessory 100 via the communication unit 161. Then, the GPS accessory 100 acquires the acceleration of the digital camera 150 by receiving the transmitted acceleration of the digital camera 150.

ステップS904では、制御部101はGPSアクセサリ100がデジタルカメラ150に固定されているか否かを判断する。具体的には、制御部101は、ステップS902にて取得したGPSアクセサリ100の加速度と、ステップS903にて取得したデジタルカメラ150の加速度との差を算出し、差が一定の閾値以下であるか否かを判断する。   In step S <b> 904, the control unit 101 determines whether the GPS accessory 100 is fixed to the digital camera 150. Specifically, the control unit 101 calculates a difference between the acceleration of the GPS accessory 100 acquired in step S902 and the acceleration of the digital camera 150 acquired in step S903, and whether the difference is equal to or less than a certain threshold value. Judge whether or not.

ステップS904にて、制御部101が、差が一定の閾値以下でないと判断した場合、ステップS912に進む。一方、ステップS904にて、制御部101が、差が一定の閾値以下であると判断した場合、ステップS905に進む。   If the control unit 101 determines in step S904 that the difference is not equal to or less than a certain threshold value, the process proceeds to step S912. On the other hand, when the control unit 101 determines in step S904 that the difference is equal to or less than a certain threshold value, the process proceeds to step S905.

ステップS905〜ステップS917の処理は、図5のステップS403〜ステップS415の処理と同様であるため説明は省略する。   The processing from step S905 to step S917 is the same as the processing from step S403 to step S415 in FIG.

なお、本フローチャートのステップS905〜ステップS909に示される処理が実行されている間に、GPSアクセサリ100とデジタルカメラ150との位置関係が固定されている状態から固定されていない状態になった場合、割り込み処理が実行される。割り込み処理では、制御部101は、方位取得部102への電力供給を停止することで方位取得部102の動作を停止する。なお、この割り込み処理では、制御部101は、位置取得部120への電力供給は停止せず、位置情報の取得および送信を継続して実行する。   In addition, when the positional relationship between the GPS accessory 100 and the digital camera 150 is changed from the fixed state to the non-fixed state while the processing shown in Step S905 to Step S909 of the flowchart is being executed, Interrupt processing is executed. In the interrupt process, the control unit 101 stops the operation of the direction acquisition unit 102 by stopping the power supply to the direction acquisition unit 102. In this interrupt process, the control unit 101 continues to acquire and transmit position information without stopping power supply to the position acquisition unit 120.

以上、GPSアクセサリ100の加速度及びデジタルカメラ150の加速度に基づきGPSアクセサリ100がデジタルカメラ150に固定されているか否かを判断する例について述べた。これにより、固定部にハードウェアスイッチを設ける必要を無くすことができる。   The example in which it is determined whether the GPS accessory 100 is fixed to the digital camera 150 based on the acceleration of the GPS accessory 100 and the acceleration of the digital camera 150 has been described above. This eliminates the need to provide a hardware switch in the fixed part.

[その他の実施形態]
上述の実施形態では、デジタルカメラの例について述べた。このデジタルカメラには、例えば、いわゆるカメラ付き携帯電話等も含まれる。また、本発明が適用できる機器はデジタルカメラに限らず、GPSアクセサリが接続可能な機器であればどのような機器にも適用することができる。例えば、位置情報及び方位情報を画面に表示する画像ビューア等、カメラが搭載されていない機器にも適用することができる。
[Other Embodiments]
In the above-described embodiment, an example of a digital camera has been described. This digital camera includes, for example, a so-called mobile phone with a camera. The device to which the present invention can be applied is not limited to a digital camera, and can be applied to any device that can connect a GPS accessory. For example, the present invention can also be applied to a device not equipped with a camera, such as an image viewer that displays position information and orientation information on a screen.

なお、上述の実施形態は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記録媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。   The above-described embodiment can also be realized by executing the following processing. That is, software (program) for realizing the functions of the above-described embodiments is supplied to a system or apparatus via a network or various recording media, and a computer (or CPU, MPU, etc.) of the system or apparatus reads the program. It is a process to be executed.

Claims (13)

外部装置に固定可能な方位取得装置であって、
前記方位取得装置の方向を示す方位情報を取得する方位取得手段と、
前記方位取得装置の位置を示す位置情報を取得する位置取得手段と、
前記方位取得装置が前記外部装置に固定されているか否かを判断する判断手段と
前記方位取得手段により取得された方位情報を補正する補正手段とを有し、
前記方位取得手段は、前記判断手段により前記方位取得装置が前記外部装置に固定されていないと判断された場合は、前記方位情報を取得せず、
前記位置取得手段は、前記判断手段により前記方位取得装置が前記外部装置に固定されていないと判断された場合も、前記位置情報を取得し、
前記補正手段は、前記外部装置に設けられた複数の固定部のうち、前記方位取得装置が固定された固定部に基づいた補正を行うことを特徴とする方位取得装置。
An orientation acquisition device that can be fixed to an external device,
Bearing acquisition means for acquiring bearing information indicating the direction of the bearing acquisition device;
Position acquisition means for acquiring position information indicating the position of the azimuth acquisition device;
Determining means for determining whether or not the azimuth acquisition device is fixed to the external device ;
Correction means for correcting the orientation information acquired by the orientation acquisition means ,
The azimuth acquisition unit does not acquire the azimuth information when the determination unit determines that the azimuth acquisition device is not fixed to the external device,
The position acquisition means acquires the position information even when the determination means determines that the azimuth acquisition device is not fixed to the external device ,
The azimuth acquisition apparatus according to claim 1, wherein the correction unit performs correction based on a fixed part to which the azimuth acquisition apparatus is fixed among a plurality of fixed parts provided in the external device.
前記方位取得手段は、前記判断手段により前記方位取得装置が前記外部装置に固定されていないと判断された場合、動作を停止することを特徴とする請求項1に記載の方位取得装置。   The azimuth acquisition apparatus according to claim 1, wherein the azimuth acquisition unit stops the operation when the determination unit determines that the azimuth acquisition apparatus is not fixed to the external device. 前記方位取得手段への電力供給を制御する制御手段をさらに有し、
前記制御手段は、前記判断手段により前記方位取得装置が前記外部装置に固定されていないと判断された場合、前記方位取得手段へ電力を供給しないことを特徴とする請求項1に記載の方位取得装置。
Further comprising control means for controlling power supply to the bearing acquisition means;
2. The direction acquisition according to claim 1, wherein when the determination unit determines that the direction acquisition device is not fixed to the external device, the control unit does not supply power to the direction acquisition unit. 3. apparatus.
前記外部装置と通信する通信手段を更に有し、
前記通信手段は、前記方位情報および前記位置情報を前記外部装置に送信することができることを特徴とする請求項1乃至3のいずれか1項に記載の方位取得装置。
A communication means for communicating with the external device;
The azimuth acquisition apparatus according to any one of claims 1 to 3, wherein the communication unit is capable of transmitting the azimuth information and the position information to the external apparatus.
前記方位取得装置の加速度を検出する加速度検出手段とをさらに有し、前記通信手段は、前記外部装置から前記外部装置の加速度を取得し、
前記判断手段は、前記加速度検出手段により検出された加速度と、前記通信手段により取得された加速度とに基づき、前記方位取得装置が前記外部装置に固定されているか否かを判断することを特徴とする請求項4に記載の方位取得装置。
Acceleration detecting means for detecting the acceleration of the azimuth acquisition device, and the communication means acquires the acceleration of the external device from the external device,
The determination means determines whether or not the azimuth acquisition device is fixed to the external device based on the acceleration detected by the acceleration detection means and the acceleration acquired by the communication means. The direction acquisition device according to claim 4.
前記判断手段は、前記加速度検出手段により検出された加速度と、前記通信手段により取得された加速度との差が一定の閾値以内であった場合、前記方位取得装置が前記外部装置に固定されていると判断し、前記加速度検出手段により検出された加速度と、前記通信手段により取得された加速度との差が一定の閾値以内でなかった場合、前記方位取得装置が前記外部装置に固定されていないと判断することを特徴とする請求項5に記載の方位取得装置。   When the difference between the acceleration detected by the acceleration detection unit and the acceleration acquired by the communication unit is within a certain threshold, the direction acquisition device is fixed to the external device. If the difference between the acceleration detected by the acceleration detection means and the acceleration acquired by the communication means is not within a certain threshold, the direction acquisition device is not fixed to the external device. The azimuth acquisition apparatus according to claim 5, wherein the azimuth acquisition apparatus determines. 前記外部装置が有する複数の固定部のそれぞれに対応した補正のための情報を、前記複数の固定部のそれぞれを示す情報とともに、補正情報として保持する保持手段を有し、前記判断手段は、前記方位取得装置が前記複数の固定部のうちどの固定部に固定されたかを判断し、
前記補正手段は、前記判断手段により判断された結果及び前記補正情報に基づき、補正を行うことを特徴とする請求項乃至6のいずれか1項に記載の方位取得装置。
Wherein the information for the correction corresponding to each of the plurality of fixing portions which external device has, together with information indicating each of the plurality of fixing portions, has a holding means to hold the correction information, the judgment unit may, Determining which fixed part of the plurality of fixed parts the fixed direction acquisition device is fixed;
The azimuth acquisition apparatus according to claim 4 , wherein the correction unit performs correction based on the result determined by the determination unit and the correction information.
前記補正手段は、前記通信手段により方位情報が送信される前に補正を行うことを特徴とする請求項乃至のいずれか1項に記載の方位取得装置。 Said correcting means, the orientation obtaining apparatus according to any one of claims 4 to 7, characterized in that corrected before the orientation information is transmitted by said communication means. 前記判断手段は、前記外部装置から前記方位情報の要求を受け付けたことに応じて、前記方位取得装置が前記外部装置に固定されているか否かを判断することを特徴とする請求項1乃至8のいずれか1項に記載の方位取得装置。9. The determination unit according to claim 1, wherein the determination unit determines whether or not the direction acquisition device is fixed to the external device in response to receiving a request for the direction information from the external device. The azimuth | direction acquisition apparatus of any one of. 前記外部装置は被写体を撮影して画像を取得する撮影手段を有し、
前記外部装置に送信される方位情報は、前記画像の撮影方向を示す情報として前記外部装置により受信されることを特徴とする請求項1乃至のいずれか1項に記載の方位取得装置。
The external device has a photographing means for photographing a subject and acquiring an image,
The azimuth acquisition apparatus according to any one of claims 1 to 9 , wherein the azimuth information transmitted to the external apparatus is received by the external apparatus as information indicating a shooting direction of the image.
前記外部装置の撮影手段により撮影を行う指示が前記外部装置にて受け付けられたことに応じて、前記判断手段は、前記方位取得装置が前記外部装置に固定されているか否かを判断することを特徴とする請求項10に記載の方位取得装置。In response to the external device accepting an instruction to perform shooting by the imaging unit of the external device, the determination unit determines whether the orientation acquisition device is fixed to the external device. The azimuth acquisition apparatus according to claim 10, wherein 外部装置に固定可能な方位取得装置の制御方法であって、
前記方位取得装置の方向を示す方位情報を取得する方位取得工程と、
前記方位取得装置の位置を示す位置情報を取得する位置取得工程と、
前記方位取得装置が前記外部装置に固定されているか否かを判断する判断工程と
前記方位取得工程で取得された方位情報を補正する補正工程とを有し、
前記方位取得工程では、前記判断工程で前記方位取得装置が前記外部装置に固定されていないと判断された場合は、前記方位情報を取得せず、
前記位置取得工程では、前記判断工程で前記方位取得装置が前記外部装置に固定されていないと判断された場合も、前記位置情報を取得し、
前記補正工程では、前記外部装置に設けられた複数の固定部のうち、前記方位取得装置が固定された固定部に基づいた補正を行うことを特徴とする方位取得装置の制御方法。
A method of controlling an orientation acquisition device that can be fixed to an external device,
An azimuth acquisition step of acquiring azimuth information indicating the direction of the azimuth acquisition device;
A position acquisition step of acquiring position information indicating the position of the orientation acquisition device;
A determination step of determining whether the azimuth acquisition device is fixed to the external device ;
A correction step of correcting the azimuth information acquired in the azimuth acquisition step ,
In the azimuth acquisition step, if it is determined in the determination step that the azimuth acquisition device is not fixed to the external device, the azimuth information is not acquired,
In the position acquisition step, when it is determined in the determination step that the azimuth acquisition device is not fixed to the external device, the position information is acquired ,
In the correction step, a correction method based on a fixed unit to which the azimuth acquisition device is fixed among a plurality of fixed units provided in the external device is performed .
コンピュータを、請求項1乃至11のいずれか1項に記載の方位取得装置として動作させるためのプログラム。   The program for operating a computer as an azimuth | direction acquisition apparatus of any one of Claims 1 thru | or 11.
JP2011159075A 2011-07-20 2011-07-20 Orientation acquisition apparatus, control method of orientation acquisition apparatus, and program thereof Expired - Fee Related JP5822579B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011159075A JP5822579B2 (en) 2011-07-20 2011-07-20 Orientation acquisition apparatus, control method of orientation acquisition apparatus, and program thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011159075A JP5822579B2 (en) 2011-07-20 2011-07-20 Orientation acquisition apparatus, control method of orientation acquisition apparatus, and program thereof

Publications (3)

Publication Number Publication Date
JP2013026784A JP2013026784A (en) 2013-02-04
JP2013026784A5 JP2013026784A5 (en) 2014-09-04
JP5822579B2 true JP5822579B2 (en) 2015-11-24

Family

ID=47784668

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011159075A Expired - Fee Related JP5822579B2 (en) 2011-07-20 2011-07-20 Orientation acquisition apparatus, control method of orientation acquisition apparatus, and program thereof

Country Status (1)

Country Link
JP (1) JP5822579B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08129216A (en) * 1994-11-01 1996-05-21 Konica Corp Camera capable of recording photographing information
JP5386898B2 (en) * 2008-09-17 2014-01-15 株式会社ニコン Positioning device

Also Published As

Publication number Publication date
JP2013026784A (en) 2013-02-04

Similar Documents

Publication Publication Date Title
US9667826B2 (en) Image pickup apparatus, method for controlling the same, and program for obtaining position information and direction information
US9332208B2 (en) Imaging apparatus having a projector with automatic photography activation based on superimposition
JP5819564B2 (en) Image determination apparatus, imaging apparatus, three-dimensional measurement apparatus, image determination method, and program
US10171736B2 (en) Control an imaging mode of an imaging device based on posture information of the imaging device
US20140253742A1 (en) Imaging operation terminal, imaging system, imaging operation method, and program device
US20170359552A1 (en) Imaging apparatus, electronic device and imaging system
JP5861667B2 (en) Information processing apparatus, imaging system, imaging apparatus, information processing method, and program
JP5262928B2 (en) Imaging device, portable terminal device, and focusing mechanism control method
JP2018163299A (en) Electronic apparatus, imaging device, and control method, and program
WO2018143360A1 (en) Relative position detection system and image display system
US20170171434A1 (en) Imaging system, imaging device, information processing device, method, and program
JP2010258593A (en) Photographing method, electronic apparatus, communication apparatus, and photographing system
JP5822579B2 (en) Orientation acquisition apparatus, control method of orientation acquisition apparatus, and program thereof
US10321056B2 (en) Imaging system, imaging apparatus, information processing apparatus, and information processing method
JP5865047B2 (en) Imaging apparatus, control method therefor, and program
US9800790B2 (en) Image capturing apparatus capable of detecting geomagnetism, control method, and storage medium
JP2018164276A (en) Electronic apparatus
JP2014236319A (en) Imaging apparatus, control method therefor and program
JP2018191300A (en) Imaging apparatus, control method therefor, and program
JP2017092865A (en) Communication device
JP2015231164A (en) Method for controlling gps information to add to captured image, and control apparatus
JP2017103790A (en) Imaging apparatus, control method of the same and program
JP6421413B2 (en) Electronic device, output control system, output control method and program
JP2014211324A (en) Information processing unit, control method of information processing unit, and program
JP2014209690A (en) Imaging device, azimuth detection device, imaging device control method, azimuth detection device control method and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140722

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140722

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150518

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150526

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150727

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: 20150908

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151006

R151 Written notification of patent or utility model registration

Ref document number: 5822579

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees