JP6222520B2 - Gravity direction detection device and photographing device - Google Patents

Gravity direction detection device and photographing device Download PDF

Info

Publication number
JP6222520B2
JP6222520B2 JP2013223602A JP2013223602A JP6222520B2 JP 6222520 B2 JP6222520 B2 JP 6222520B2 JP 2013223602 A JP2013223602 A JP 2013223602A JP 2013223602 A JP2013223602 A JP 2013223602A JP 6222520 B2 JP6222520 B2 JP 6222520B2
Authority
JP
Japan
Prior art keywords
acceleration
impact
signal
gravity
signal processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2013223602A
Other languages
Japanese (ja)
Other versions
JP2015088795A (en
JP2015088795A5 (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.)
Ricoh Imaging Co Ltd
Original Assignee
Ricoh Imaging Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Imaging Co Ltd filed Critical Ricoh Imaging Co Ltd
Priority to JP2013223602A priority Critical patent/JP6222520B2/en
Publication of JP2015088795A publication Critical patent/JP2015088795A/en
Publication of JP2015088795A5 publication Critical patent/JP2015088795A5/ja
Application granted granted Critical
Publication of JP6222520B2 publication Critical patent/JP6222520B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、重力方向検知装置および重力方向を検知可能な撮影装置に関する。   The present invention relates to a gravity direction detection device and a photographing device capable of detecting the direction of gravity.

自身の傾きを検知可能な撮影装置が提案されている。このような撮影装置では、撮影画像を生成したときの撮影装置の傾きを検知し、撮影画像と傾きとを対応付けて記憶する。これにより、撮影画像を表示装置に表示する場合や、印刷装置によって印刷する場合に、撮影画像の表示あるいは印刷する向きを、検知した傾きを参照して決定することができる。このような、撮影装置の傾きの検出に関連し、特許文献1には、加速度センサユニットによって重力方向を検知し、重力方向に基づいて撮影装置の傾き角度を計算する撮影装置が開示されている。   An imaging device capable of detecting its own tilt has been proposed. In such a photographing apparatus, the tilt of the photographing apparatus when the photographed image is generated is detected, and the photographed image and the tilt are stored in association with each other. Accordingly, when the captured image is displayed on the display device or printed by the printing device, the display direction of the captured image or the printing direction can be determined with reference to the detected inclination. In relation to such detection of the tilt of the photographing device, Patent Literature 1 discloses a photographing device that detects the direction of gravity by an acceleration sensor unit and calculates the tilt angle of the photographing device based on the direction of gravity. .

特開2012−100124号公報JP 2012-100124 A

特許文献1に記載の撮影装置では、撮影装置に衝撃が加えられると、加速度センサユニットは衝撃による加速度を検知してしまうため、重力方向が正常に検知されないという問題があった。   In the imaging device described in Patent Document 1, when an impact is applied to the imaging device, the acceleration sensor unit detects acceleration due to the impact, and thus there is a problem that the direction of gravity is not normally detected.

本発明は上記の事情に鑑みてなされたものであり、重力方向を正常に検知可能な検知装置および撮影装置を提供することを目的とする。   The present invention has been made in view of the above circumstances, and an object thereof is to provide a detection device and a photographing device that can normally detect the direction of gravity.

本発明の実施形態に係る検知装置は、加えられた加速度を示す加速度信号を生成する加速度検出手段と、制御部と、可動部と、を備え、制御部は、加速度信号に基づいて重力方向を計算する信号処理手段と、重力方向によって、所定の記憶領域に記憶されている重力方向を更新する更新手段と、を備え、加速度検出手段は、加速度が所定の変化をした場合に、可動部が移動することによって生じる衝撃が発生したことを示す衝撃検知信号を制御部に送信し、制御部は、衝撃検知信号を受信した場合に、更新手段の重力方向の更新を停止するよう構成されている。   A detection device according to an embodiment of the present invention includes an acceleration detection unit that generates an acceleration signal indicating an applied acceleration, a control unit, and a movable unit. The control unit determines a direction of gravity based on the acceleration signal. Signal processing means for calculating, and updating means for updating the gravitational direction stored in a predetermined storage area according to the gravitational direction, and the acceleration detecting means has a movable portion when the acceleration changes in a predetermined manner. An impact detection signal indicating that an impact caused by movement has occurred is transmitted to the control unit, and the control unit is configured to stop the updating of the updating unit in the direction of gravity when the impact detection signal is received. .

このような構成によれば、加速度検出手段は、加速度信号とは別に、可動部で衝撃が発生したことを示す衝撃検知信号を生成し、信号処理部に送信する。信号処理部は、衝撃検知信号を受信していない場合は、重力方向を更新し、衝撃検知信号を受信した場合は、重力方向の更新を停止するよう構成されている。また、可動部で発生した衝撃によって重力方向が誤って計算された場合に、この誤った計算結果によって所定の記憶領域の重力方向が更新されるのを防止することができる。   According to such a configuration, the acceleration detection means generates an impact detection signal indicating that an impact has occurred in the movable part, and transmits it to the signal processing unit, separately from the acceleration signal. The signal processing unit is configured to update the direction of gravity when an impact detection signal is not received, and to stop updating the direction of gravity when an impact detection signal is received. Further, when the gravity direction is erroneously calculated due to the impact generated in the movable part, it is possible to prevent the gravity direction of the predetermined storage area from being updated by the erroneous calculation result.

制御部は、衝撃検知信号を受信した場合に、信号処理手段の重力方向の計算を停止するよう構成されていてもよい。   The control unit may be configured to stop the calculation of the direction of gravity of the signal processing means when the impact detection signal is received.

このような構成によれば、可動部で衝撃が発生している場合は、重力方向の計算が停止されるため、検知装置の負荷をさらに小さくすることができる。   According to such a configuration, when an impact is generated in the movable part, the calculation of the direction of gravity is stopped, so that the load on the detection device can be further reduced.

信号処理手段は、所定の時間間隔で重力方向を計算し、更新手段は、所定の時間間隔で計算された重力方向によって、所定の記憶領域に記憶されている重力方向を更新するよう構成されていてもよい。   The signal processing means calculates the gravitational direction at a predetermined time interval, and the updating means is configured to update the gravitational direction stored in the predetermined storage area by the gravitational direction calculated at the predetermined time interval. May be.

このような構成によれば、所定の記憶領域に記憶されている重力方向を、所定の時間間隔毎に、最新の値に更新することができる。   According to such a configuration, the direction of gravity stored in the predetermined storage area can be updated to the latest value at predetermined time intervals.

制御部は、衝撃検知信号を受信した場合に、信号処理手段の重力方向の計算を停止し、重力方向の計算を停止してから所定時間の経過後に、信号処理手段の重力方向の計算を再開させるよう構成されていてもよい。   When the control unit receives the impact detection signal, it stops the calculation of the direction of gravity of the signal processing unit, and restarts the calculation of the direction of gravity of the signal processing unit after a predetermined time has elapsed after stopping the calculation of the direction of gravity. You may be comprised so that it may make.

信号処理手段は、重力方向の計算に用いる加速度信号が、1つ前の計算に用いた加速度信号と同一である場合に、重力方向を計算しないよう構成されていてもよい。   The signal processing means may be configured not to calculate the direction of gravity when the acceleration signal used for calculation of the gravity direction is the same as the acceleration signal used for the previous calculation.

このような構成によれば、所定の時間毎に生成する加速度信号の値に変化が無かった場合、重力方向の計算処理を行わないため、検知装置の負荷を更に小さくすることができる。   According to such a configuration, when there is no change in the value of the acceleration signal generated every predetermined time, since the calculation process in the direction of gravity is not performed, the load on the detection device can be further reduced.

加速度検出手段は、加速度信号が、所定の振幅の範囲の加速度が所定の時間持続していることを示している場合に、衝撃が発生していると判定するよう構成されていてもよい。   The acceleration detection means may be configured to determine that an impact has occurred when the acceleration signal indicates that the acceleration within a predetermined amplitude range has continued for a predetermined time.

このような構成によれば、可動部で発生する衝撃に合わせて、所定の振幅の加速度信号の持続時間を設定することにより、可動部で衝撃が発生したかどうかを判定することができる。また、衝撃の検知は、信号処理手段ではなく、加速度検出手段が行っているため、衝撃を検知するために信号処理手段の負荷が高くなってしまうことを防止できる。   According to such a configuration, it is possible to determine whether or not an impact has occurred in the movable portion by setting the duration of the acceleration signal having a predetermined amplitude in accordance with the impact generated in the movable portion. Further, since the impact detection is performed not by the signal processing means but by the acceleration detection means, it is possible to prevent the load of the signal processing means from increasing to detect the impact.

所定の記憶領域に記憶されている重力方向に応じた情報を表示する表示部を更に備え、表示部は、更新手段による重力方向の更新に応じて、表示される情報を更新する、よう構成されていてもよい。   The display unit further includes a display unit that displays information according to the gravity direction stored in the predetermined storage area, and the display unit is configured to update the displayed information in accordance with the update of the gravity direction by the updating unit. It may be.

このような構成によれば、検知装置のユーザは、表示部に表示される情報を見ることで、検知装置の傾きの方向や度合いを認識することができる。   According to such a configuration, the user of the detection device can recognize the direction and degree of inclination of the detection device by looking at the information displayed on the display unit.

表示部は、衝撃検知信号を受信した場合に、表示される情報の更新を所定の時間停止するよう構成されていてもよい。   The display unit may be configured to stop updating the displayed information for a predetermined time when an impact detection signal is received.

加速度検出手段は、それぞれ互いに直交する3方向の加速度に基づく加速度信号を生成する3つの加速度センサユニットを備えるよう構成されていてもよい。 The acceleration detection means may be configured to include three acceleration sensor units that generate acceleration signals based on accelerations in three directions orthogonal to each other.

検知装置は、撮影画像データを生成する撮影手段と、撮影画像データを、所定のデータ記憶領域に、所定の記憶領域に記憶されている重力方向と対応付けて記憶するデータ記憶手段と、を更に備えるよう構成されていてもよい。   The detection apparatus further includes photographing means for generating photographed image data, and data storage means for storing the photographed image data in a predetermined data storage area in association with a gravitational direction stored in the predetermined storage area. It may be configured to include.

検知装置は、撮影画像データに基づいて、所定の表示装置に表示する撮影画像、または、所定の印刷装置によって印刷する撮影画像を生成する画像生成手段を更に備え、画像生成手段は、撮影画像データと対応付けて記憶されている重力方向に応じて、生成する撮影画像の向きを変更するよう構成されていてもよい。   The detection apparatus further includes an image generation unit that generates a captured image to be displayed on a predetermined display device or a captured image to be printed by a predetermined printing device based on the captured image data. The image generation unit includes the captured image data. The direction of the captured image to be generated may be changed in accordance with the gravity direction stored in association with.

本発明の実施形態に係る撮影装置は、撮影画像データを生成する撮影手段と、加えられた加速度を検出する加速度検出手段と、制御部と、可動部と、を備え、加速度検出手段は、加速度が所定の変化をした場合に、可動部が駆動した場合に生じる衝撃が発生したと判定する判定手段を備え、制御部は加速度に基づいて重力方向を計算する計算手段と、重力方向によって、所定の記憶領域に記憶されている重力方向を更新する更新手段と、を備え、制御部は、判定手段が可動部が駆動した場合に生じる衝撃が発生したと判定した場合、更新手段の更新を禁止し、更新手段の更新を禁止してから所定の時間経過後、更新手段に更新を再開させる、ことを特徴とするよう構成されている。   An imaging apparatus according to an embodiment of the present invention includes an imaging unit that generates captured image data, an acceleration detection unit that detects applied acceleration, a control unit, and a movable unit. Is provided with a determination means for determining that an impact generated when the movable part is driven when the movable part is driven, and the control part is configured to calculate a gravitational direction based on acceleration, Updating means for updating the gravitational direction stored in the storage area, and the control unit prohibits updating of the updating means when the determining means determines that an impact occurs when the movable part is driven The updating unit is configured to restart the updating unit after a predetermined time has elapsed since the updating unit is prohibited from updating.

制御部は、撮影画像データを、所定のデータ記憶領域に、所定の記憶領域に記憶されている重力方向と対応付けて記憶するよう構成されていてもよい。   The control unit may be configured to store the captured image data in a predetermined data storage area in association with a gravity direction stored in the predetermined storage area.

本実施形態によれば、重力方向を正常に検知可能な検知装置が提供される。   According to this embodiment, a detection device capable of normally detecting the direction of gravity is provided.

図1は、本発明の実施形態の撮影装置の斜視図および背面図である。FIG. 1 is a perspective view and a rear view of a photographing apparatus according to an embodiment of the present invention. 図2は、本発明の実施形態の撮影装置の構成を示すブロック図である。FIG. 2 is a block diagram illustrating a configuration of the photographing apparatus according to the embodiment of the present invention. 図3は、本発明の実施形態の加速度センサユニットの構成を示すブロック図である。FIG. 3 is a block diagram showing a configuration of the acceleration sensor unit according to the embodiment of the present invention. 図4は、本発明の実施形態の重力方向の更新処理のフローチャートである。FIG. 4 is a flowchart of the gravity direction update process according to the embodiment of the present invention.

以下、本発明の実施形態の表示装置について図面を参照しながら説明する。以下においては、本発明の一実施形態として、加速度検出手段を備えるデジタル一眼レフカメラについて説明する。なお、表示装置が搭載される電気機器は、デジタル一眼レフカメラに限らず、例えば、ミラーレス一眼カメラ、コンパクトデジタルカメラ、カムコーダ、タブレット端末、PHS(Personal Handy phone System)、スマートフォン、フィーチャフォン、携帯ゲーム機、デスクトップPC(Personal Computer)、ノートPCなど、加速度検出手段を備える別の形態の電子機器に置き換えてもよい。   Hereinafter, a display device according to an embodiment of the present invention will be described with reference to the drawings. In the following, a digital single-lens reflex camera provided with acceleration detection means will be described as an embodiment of the present invention. In addition, the electric device on which the display device is mounted is not limited to a digital single-lens reflex camera. For example, a mirrorless single-lens camera, a compact digital camera, a camcorder, a tablet terminal, a PHS (Personal Handy phone System), a smartphone, a feature phone, a mobile phone The electronic device may be replaced with another form of electronic device including acceleration detecting means such as a game machine, a desktop PC (Personal Computer), or a notebook PC.

図1(a)および(b)は、それぞれ本実施形態のデジタル一眼レフカメラ(以下、便宜上、単に「撮影装置」と記す。)1の斜視図および背面図である。撮影装置1は、正面側にレンズや絞りが設けられており(図1では不図示)、背面側にLCD124が設けられている。撮影装置1の筐体には、複数の操作部102が適宜配置されている。撮影装置1の内部には、撮影装置1を駆動するための電気回路や記憶領域、重力方向を検知し撮影装置1の向きを計算するために、重力方向を検知する加速度センサなどが設けられている。   FIGS. 1A and 1B are a perspective view and a rear view of a digital single-lens reflex camera (hereinafter simply referred to as “imaging device”) 1 of the present embodiment, respectively. The photographing apparatus 1 is provided with a lens and a diaphragm on the front side (not shown in FIG. 1) and an LCD 124 on the back side. A plurality of operation units 102 are appropriately disposed in the casing of the photographing apparatus 1. In the photographing apparatus 1, an electric circuit and a storage area for driving the photographing apparatus 1, an acceleration sensor for detecting the direction of gravity and the direction of the photographing apparatus 1 are calculated in order to detect the direction of gravity and the like. Yes.

計算される撮影装置1の向きには、撮影装置の上下方向の仰俯角(ピッチまたはチルト)や、撮影装置の光学系の光軸周りの回転角(ロール)が含まれる。図1中に示す、X軸は水平方向、Y軸は鉛直方向、Z軸はレンズの光軸と平行で、3つの軸は互いに直交している。ここで、撮影装置のピッチまたはチルトは、撮影装置をX軸の周りの回転に対応し、ロールはZ軸の周りの回転に対応する。   The calculated orientation of the photographing apparatus 1 includes the vertical elevation angle (pitch or tilt) of the photographing apparatus and the rotation angle (roll) around the optical axis of the optical system of the photographing apparatus. In FIG. 1, the X axis is horizontal, the Y axis is vertical, the Z axis is parallel to the optical axis of the lens, and the three axes are orthogonal to each other. Here, the pitch or tilt of the photographing apparatus corresponds to rotation of the photographing apparatus around the X axis, and the roll corresponds to rotation around the Z axis.

図2は、本実施形態のデジタル一眼レフカメラ(以下、便宜上、単に「撮影装置」と記す。)1の構成を示すブロック図である。図2に示されるように、撮影装置1は、CPU(Central Processing Unit)100、CPUメモリ101、操作部102、駆動回路104、撮影レンズ106、絞り108、シャッタ110、イメージセンサ112、信号処理回路114、画像処理エンジン116、バッファメモリ118、カード用インターフェース120、LCD124(Liquid Crystal Display)制御回路122、LCD124、ROM(Read Only Memory)126、クイックリターンミラー132、ミラー駆動機構134、ミラー駆動回路136、プリズム138、ファインダ140、AFユニット107、及び外部接続インターフェース128を備えている。また、図2のブロック図において、ブロック間の電気的な接続を実線で示し、光学部品のブロック間における光路を点線で示している。なお、図2では、説明の便宜上、一部のブロックや電気的接続、光路を省略している。   FIG. 2 is a block diagram illustrating a configuration of a digital single-lens reflex camera (hereinafter simply referred to as “imaging device”) 1 according to the present embodiment. As shown in FIG. 2, the photographing apparatus 1 includes a CPU (Central Processing Unit) 100, a CPU memory 101, an operation unit 102, a driving circuit 104, a photographing lens 106, an aperture 108, a shutter 110, an image sensor 112, and a signal processing circuit. 114, image processing engine 116, buffer memory 118, card interface 120, LCD 124 (Liquid Crystal Display) control circuit 122, LCD 124, ROM (Read Only Memory) 126, quick return mirror 132, mirror drive mechanism 134, mirror drive circuit 136 , A prism 138, a viewfinder 140, an AF unit 107, and an external connection interface 128. In the block diagram of FIG. 2, the electrical connection between the blocks is indicated by a solid line, and the optical path between the blocks of the optical component is indicated by a dotted line. In FIG. 2, for convenience of explanation, some blocks, electrical connections, and optical paths are omitted.

操作部102には、電源スイッチやレリーズスイッチ、撮影モードスイッチなど、ユーザが撮影装置1を操作するために必要な各種スイッチが含まれる。ユーザにより電源スイッチが押されると、図示省略されたバッテリから撮影装置1の各種回路に電源ラインを通じて電源供給が行われる。CPU100は電源供給後、ROM126にアクセスして制御プログラムを読み出してワークエリア(不図示)にロードし、ロードされた制御プログラムを実行することにより、撮影装置1全体の制御を行う。   The operation unit 102 includes various switches necessary for the user to operate the photographing apparatus 1, such as a power switch, a release switch, and a photographing mode switch. When the user presses the power switch, power is supplied from the battery (not shown) to the various circuits of the photographing apparatus 1 through the power line. After supplying power, the CPU 100 accesses the ROM 126, reads out a control program, loads it into a work area (not shown), and executes the loaded control program to control the entire photographing apparatus 1.

CPU100は、撮影装置1に内蔵されたTTL(Through The Lens)露出計(不図示)で測定された測光値に基づき適正露出が得られるように、駆動回路104を介してレンズ駆動部107及び絞り108及びシャッタ110を駆動制御する。より詳細には、絞り108及びシャッタ110の駆動制御は、プログラムAE(Automatic Exposure)、シャッタ速度優先AE、絞り優先AEなど、撮影モードスイッチにより指定されるAE機能に基づいて行われる。   The CPU 100 includes a lens driving unit 107 and an aperture through a driving circuit 104 so that appropriate exposure can be obtained based on a photometric value measured by a TTL (Through The Lens) exposure meter (not shown) built in the photographing apparatus 1. 108 and the shutter 110 are driven and controlled. More specifically, drive control of the aperture 108 and the shutter 110 is performed based on an AE function designated by a shooting mode switch, such as a program AE (Automatic Exposure), shutter speed priority AE, aperture priority AE, or the like.

また、AFユニット107の駆動制御(以下、AF制御)は、AF(Autofocus)機能に基づいて行われる。AF制御には、アクティブ方式、位相差検出方式、コントラスト検出方式等が適用される。AF制御が行われると、AFユニット107によって撮影レンズ106が変位され、被写体にピントが合わせられる。   Further, drive control of the AF unit 107 (hereinafter referred to as AF control) is performed based on an AF (Autofocus) function. An active method, a phase difference detection method, a contrast detection method, or the like is applied to the AF control. When AF control is performed, the photographing lens 106 is displaced by the AF unit 107, and the subject is brought into focus.

撮影装置1は少なくとも一枚の可動式のクイックリターンミラー132を備えている。クイックリターンミラー132は、撮影装置1の動作に応じて移動し、ミラー駆動機構134によって開状態および閉状態の間で変化する。クイックリターンミラー132が閉状態のとき、被写体から出射した光は撮影レンズ106、絞り108、シャッタ110を通過し、クイックリターンミラー132で2つに分離され、それぞれAFユニット107およびプリズム138に入射する。AFユニット107に入射した光は、AF制御を行うために使用される。また、プリズム138に入射した光は、プリズム138内で反射されファインダ140に入射する。これにより、ユーザはファインダ140を覗くことで、被写体を観察することができる。   The photographing apparatus 1 includes at least one movable quick return mirror 132. The quick return mirror 132 moves according to the operation of the photographing apparatus 1 and is changed between the open state and the closed state by the mirror drive mechanism 134. When the quick return mirror 132 is in the closed state, the light emitted from the subject passes through the photographing lens 106, the diaphragm 108, and the shutter 110, is divided into two by the quick return mirror 132, and enters the AF unit 107 and the prism 138, respectively. . The light incident on the AF unit 107 is used for performing AF control. Further, the light incident on the prism 138 is reflected in the prism 138 and enters the finder 140. Thereby, the user can observe the subject by looking through the viewfinder 140.

一方、ユーザが操作部102を操作し、被写体を撮影する指示を入力すると、ミラー駆動回路136がミラー駆動機構134を駆動し、クイックリターンミラー132は、一時的に閉状態となる。クイックリターンミラー132が閉状態のとき、被写体から出射した光は、撮影レンズ106、絞り108、シャッタ110を通過してイメージセンサ112により受光される。イメージセンサ112は、例えばCCD(Charge Coupled Device)イメージセンサやCMOS(Complementary Metal Oxide Semiconductor)イメージセンサであり、撮像面上の各画素で結像した光学像を光量に応じた電荷として蓄積して電気信号に変換し、信号処理回路114に出力する。信号処理回路114は、イメージセンサ112より入力される電気信号(撮影データ)に対して所定の信号処理を施して、画像処理エンジン116に出力する。   On the other hand, when the user operates the operation unit 102 and inputs an instruction to shoot a subject, the mirror drive circuit 136 drives the mirror drive mechanism 134, and the quick return mirror 132 is temporarily closed. When the quick return mirror 132 is in the closed state, the light emitted from the subject passes through the photographing lens 106, the diaphragm 108, and the shutter 110 and is received by the image sensor 112. The image sensor 112 is, for example, a CCD (Charge Coupled Device) image sensor or a CMOS (Complementary Metal Oxide Semiconductor) image sensor. The image sensor 112 accumulates an optical image formed by each pixel on the imaging surface as an electric charge corresponding to the amount of light. The signal is converted into a signal and output to the signal processing circuit 114. The signal processing circuit 114 performs predetermined signal processing on the electrical signal (photographed data) input from the image sensor 112 and outputs the processed signal to the image processing engine 116.

画像処理エンジン116は、信号処理回路114より入力される信号に対して色補間、マトリクス演算、Y/C分離等の所定の信号処理を施して輝度信号Y、色差信号Cb、Crを生成し、JPEG(Joint Photographic Experts Group)等の所定のフォーマットで圧縮する。バッファメモリ118は、画像処理エンジン116による処理の実行時、処理データの一時的な保存場所として用いられる。   The image processing engine 116 performs predetermined signal processing such as color interpolation, matrix calculation, and Y / C separation on the signal input from the signal processing circuit 114 to generate a luminance signal Y and color difference signals Cb, Cr, The image is compressed in a predetermined format such as JPEG (Joint Photographic Experts Group). The buffer memory 118 is used as a temporary storage location for processing data when the image processing engine 116 executes processing.

カード用インターフェース120のカードスロットには、メモリカード200が着脱可能に差し込まれている。   A memory card 200 is detachably inserted into a card slot of the card interface 120.

画像処理エンジン116は、カード用インターフェース120を介してメモリカード200と通信可能である。画像処理エンジン116は、生成された圧縮画像信号(撮影画像データ)をメモリカード200(又は撮影装置1に備えられる不図示の内蔵メモリ)に保存する。   The image processing engine 116 can communicate with the memory card 200 via the card interface 120. The image processing engine 116 stores the generated compressed image signal (captured image data) in the memory card 200 (or a built-in memory (not shown) provided in the image capturing apparatus 1).

また、画像処理エンジン116は、Y/C分離後の信号に所定の信号処理を施して、フレームメモリ(不図示)にフレーム単位でバッファリングする。画像処理エンジン116は、バッファリングされた信号を所定のタイミングで各フレームメモリから掃き出して所定のフォーマットのビデオ信号に変換し、LCD制御回路122に出力する。LCD制御回路122は、画像処理エンジン116より入力される画像信号を基に液晶を変調制御する。これにより、被写体の撮影画像がLCD124に表示される。ここで、LCD124に表示される撮影画像は、撮影装置1の撮影画角に対応している。ユーザは、AE制御及びAF制御に基づいて適正な輝度及びピントで撮影されたリアルタイムのスルー画を、LCD124を通じて視認することができる。   Further, the image processing engine 116 performs predetermined signal processing on the signal after Y / C separation, and buffers it in a frame memory (not shown) in units of frames. The image processing engine 116 sweeps the buffered signal from each frame memory at a predetermined timing, converts it into a video signal of a predetermined format, and outputs it to the LCD control circuit 122. The LCD control circuit 122 modulates and controls the liquid crystal based on the image signal input from the image processing engine 116. Thereby, the photographed image of the subject is displayed on the LCD 124. Here, the photographed image displayed on the LCD 124 corresponds to the photographing field angle of the photographing apparatus 1. The user can view through the LCD 124 a real-time through image captured with appropriate brightness and focus based on the AE control and AF control.

画像処理エンジン116は、ユーザにより撮影画像の再生操作が行われると、操作により指定された撮影画像データをメモリカード200又は不図示の内蔵メモリより読み出して所定のフォーマットの画像信号に変換し、LCD制御回路122に出力する。LCD制御回路122が画像処理エンジン116より入力される画像信号を基に液晶を変調制御することで、被写体の撮影画像がLCD124に表示される。   When the user performs a playback operation of the captured image, the image processing engine 116 reads the captured image data designated by the operation from the memory card 200 or a built-in memory (not shown), converts the image data into an image signal of a predetermined format, and the LCD Output to the control circuit 122. The LCD control circuit 122 performs modulation control on the liquid crystal based on the image signal input from the image processing engine 116, so that a photographed image of the subject is displayed on the LCD 124.

外部接続インターフェース128は、外部表示装置2と接続するためのインターフェースである。外部表示装置2は、表示画面202を備える電子機器であり、例えば、デジタル一眼レフカメラ、ミラーレス一眼カメラ、コンパクトデジタルカメラ、カムコーダ、タブレット端末、PHS、スマートフォン、フィーチャフォン、携帯ゲーム機、デスクトップPC、ノートPC、テレビモニタである。   The external connection interface 128 is an interface for connecting to the external display device 2. The external display device 2 is an electronic device provided with a display screen 202. For example, a digital single lens reflex camera, a mirrorless single lens camera, a compact digital camera, a camcorder, a tablet terminal, a PHS, a smartphone, a feature phone, a portable game machine, a desktop PC , Notebook PC, TV monitor.

外部接続インターフェース128は、HDMI(登録商標)、USB(Universal Serial Bus)等の有線接続プロトコルや、Wi−Fi(登録商標)、Bluetooth(登録商標)、IrDA(登録商標)等の無線接続プロトコルを用いてデスクトップPC等と通信可能である。撮影画像データは、外部接続インターフェース128を介して外部表示装置2へ転送される。外部表示装置2は、転送された撮影画像データをローカル又はネットワーク上のURI(Uniform Resource Identifier)に保存する。外部表示装置2は、例えば、ユーザによる操作に従い、ローカル又はネットワーク上のURIに保存された撮影画像データをデコードし、デコードにより得られた撮影画像を表示画面202に表示する。   The external connection interface 128 uses a wired connection protocol such as HDMI (registered trademark) or USB (Universal Serial Bus), or a wireless connection protocol such as Wi-Fi (registered trademark), Bluetooth (registered trademark), or IrDA (registered trademark). It can be used to communicate with a desktop PC or the like. The captured image data is transferred to the external display device 2 via the external connection interface 128. The external display device 2 stores the transferred captured image data in a URI (Uniform Resource Identifier) on the local or network. For example, the external display device 2 decodes the captured image data stored in the URI on the local or network according to the operation by the user, and displays the captured image obtained by the decoding on the display screen 202.

また、外部表示装置2の表示画面202には、例えば、LCD124と同期した内容(静止画やスルー画)が表示される。一例として、ユーザにより撮影画像(静止画)の再生操作が行われた場合を考える。この場合、画像処理エンジン116は、操作により指定された撮影画像(静止画)をLCD124に表示すると共に外部接続インターフェース128を介して外部表示装置2へ転送し、LCD124に表示されている撮影画像と同一のものを表示画面202に表示させる。   Further, on the display screen 202 of the external display device 2, for example, content (still image or through image) synchronized with the LCD 124 is displayed. As an example, let us consider a case where a user performs a reproduction operation of a captured image (still image). In this case, the image processing engine 116 displays the captured image (still image) designated by the operation on the LCD 124 and transfers it to the external display device 2 via the external connection interface 128, and the captured image displayed on the LCD 124. The same thing is displayed on the display screen 202.

外部接続インターフェース128は、テレビモニタと接続されている場合、撮影画像のコンポーネント映像信号等を出力する。テレビモニタには、LCD124と同期した内容(静止画やスルー画)が表示される。   The external connection interface 128 outputs a component video signal of a photographed image and the like when connected to a television monitor. On the television monitor, the contents (still image or through image) synchronized with the LCD 124 are displayed.

なお、オーバレイテキスト等の付加情報については、ユーザによる操作部102の設定や表示内容に応じて同期又は非同期に表示される。   Note that additional information such as overlay text is displayed synchronously or asynchronously depending on the setting of the operation unit 102 by the user and the display content.

加速度センサユニット130は、互いに直交する3方向の加速度を検知可能で、撮影装置1の向きを計算するために用いられる。加速度センサユニット130からは、3方向の加速度に基づいた3つの加速度信号が出力される。CPU100は、出力された加速度信号に基づいて、重力方向を計算する。そして、重力方向を用いて、加速度信号を生成されたときの撮影装置1の向きが計算される。ここで、撮影装置1の向きとは、撮影装置1の上下方向の仰俯角(ピッチまたはチルト)と、撮影装置1の光学系の光軸周りの回転角(ロール)が含まれる。なお、3方向の加速度を用いた重力方向の計算方法、および、重力方向を用いた撮影装置1の向きの計算方法は周知であり、ここでは説明を省略する。   The acceleration sensor unit 130 can detect accelerations in three directions orthogonal to each other, and is used to calculate the orientation of the photographing apparatus 1. The acceleration sensor unit 130 outputs three acceleration signals based on accelerations in three directions. The CPU 100 calculates the direction of gravity based on the output acceleration signal. Then, the direction of the photographing apparatus 1 when the acceleration signal is generated is calculated using the direction of gravity. Here, the orientation of the photographing apparatus 1 includes the vertical elevation angle (pitch or tilt) of the photographing apparatus 1 and the rotation angle (roll) around the optical axis of the optical system of the photographing apparatus 1. Note that a method for calculating the direction of gravity using acceleration in three directions and a method for calculating the direction of the photographing apparatus 1 using directions of gravity are well known, and a description thereof will be omitted here.

撮影装置1によって被写体が撮影され、撮影画像データが生成されると、撮影画像データは、計算された重力方向または撮影装置1の向きに相当する情報と共にメモリカード200に記憶される。これにより、撮影画像をLCD124に表示するときや、不図示の印刷装置によって印刷するときなどに、重力方向または撮影装置1の向きに相当する情報を参照することで、撮影画像を表示する方向あるいは印刷する方向を適切な向きに設定することができる。なお、以下では、CPUメモリ101に計算された重力方向が記憶され、撮影画像は重力方向と共にメモリカード200に記憶されるとして説明する。ただし、CPUメモリ101およびメモリカードに記憶されるのは、計算された重力方向ではなく、撮影装置の向きであってもよい。   When a subject is photographed by the photographing apparatus 1 and photographed image data is generated, the photographed image data is stored in the memory card 200 together with information corresponding to the calculated gravity direction or the orientation of the photographing apparatus 1. Thereby, when displaying the photographed image on the LCD 124 or when printing it by a printing device (not shown), the direction of displaying the photographed image or the direction of displaying the photographed image by referring to the information corresponding to the direction of gravity or the orientation of the photographing device 1 The printing direction can be set to an appropriate direction. In the following description, it is assumed that the calculated gravity direction is stored in the CPU memory 101 and the captured image is stored in the memory card 200 together with the gravity direction. However, what is stored in the CPU memory 101 and the memory card may be the orientation of the photographing apparatus instead of the calculated gravity direction.

撮影装置1の向きは、撮影装置1と被写体の位置関係や、ユーザによる操作に応じて常時変化し得る。そのため、本実施形態によれば、CPU100による重力方向の計算は、所定の間隔で繰り返し実行され、重力方向が計算される度に、CPUメモリ101に記憶されている重力方向が更新されるよう構成されている。   The orientation of the imaging device 1 can always change according to the positional relationship between the imaging device 1 and the subject and the operation by the user. Therefore, according to the present embodiment, the calculation of the gravity direction by the CPU 100 is repeatedly executed at predetermined intervals, and the gravity direction stored in the CPU memory 101 is updated each time the gravity direction is calculated. Has been.

また、上記の説明では、新たに生成される撮影画像データは重力方向と共に記憶されるとしたが、本実施形態はこれに限定されない。本実施形態では、CPUメモリ101に記憶されている重力方向が更新されると、それに応じて、LCD124上に表示されている撮影画像やスルー画、オーバーレイ情報などの向きが変更されるように構成されていても良い。例えば、既に記憶されている撮影画像データに基づく撮影画像をLCD124に表示する場合に、計算された重力方向に応じて、LCD124に表示する撮影画像の向きを回転させるよう構成しても良い。また、LCD124上に表示するオーバーレイ情報やステータス情報などを、撮影装置の向きに応じて回転させるように構成しても良い。これにより、オーバーレイ情報やステータス情報などを、常にユーザに見易い方向で表示させることができる。   In the above description, the newly generated captured image data is stored together with the direction of gravity, but the present embodiment is not limited to this. In the present embodiment, when the direction of gravity stored in the CPU memory 101 is updated, the direction of a captured image, a through image, overlay information, or the like displayed on the LCD 124 is changed accordingly. May be. For example, when a captured image based on already stored captured image data is displayed on the LCD 124, the orientation of the captured image displayed on the LCD 124 may be rotated according to the calculated direction of gravity. Further, the overlay information and status information displayed on the LCD 124 may be rotated according to the orientation of the photographing apparatus. Thereby, overlay information, status information, etc. can always be displayed in a direction that is easy for the user to see.

撮影装置1の向きに合わせて撮影画像をどのように回転させるかは、適宜設定される項目である。例えば、撮影装置1のロールの大きさが、基準位置から±45度以内の範囲で変化した場合、LCD124に表示される撮影画像の向きは変化しないよう構成されていても良い。また、ロールの大きさが±45度から±135度の範囲で変化した場合は、ユーザにとって見易くなるように、撮影画像の向きが±90度のいずれかに回転されて表示されるように構成されていても良い。また、ロールの大きさが±135度から±180度の範囲で変化した場合は、撮影画像は向きが180度回転されて表示されるように構成されていても良い。   How to rotate the photographed image in accordance with the orientation of the photographing apparatus 1 is an item set as appropriate. For example, when the roll size of the photographing apparatus 1 changes within a range of ± 45 degrees from the reference position, the orientation of the photographed image displayed on the LCD 124 may not be changed. Further, when the roll size changes in the range of ± 45 degrees to ± 135 degrees, the orientation of the captured image is rotated and displayed to any one of ± 90 degrees so that it is easy for the user to see. May be. Further, when the roll size changes in the range of ± 135 degrees to ± 180 degrees, the captured image may be configured to be displayed with the orientation rotated by 180 degrees.

また、LCD124に表示される撮影画像などの向きは、撮影装置1の向きに合わせてリアルタイムで変化する必要は無い。例えば、撮影装置1の向きが変化してから所定の時間経過後に、撮影画像などの表示される向きが変化しても良い。これにより、撮影装置1の向きが頻繁に変化する場合に、それに応じて表示される撮影画像などの向きが頻繁に切り替わり、ユーザにとって撮影画像などが見づらくなってしまうのを防止できる。   In addition, the orientation of the photographed image displayed on the LCD 124 does not need to change in real time according to the orientation of the photographing apparatus 1. For example, the direction in which a photographed image or the like is displayed may change after a predetermined time has elapsed since the orientation of the photographing apparatus 1 has changed. Thereby, when the orientation of the photographing apparatus 1 is frequently changed, the orientation of the photographed image displayed in accordance with the orientation is frequently switched, and it is possible to prevent the photographed image from being difficult to see for the user.

また、計算された重力方向は、撮影装置1の傾きを表す電子水準器として、撮影装置1のいずれかの箇所(例えば、LCD124)に表示されても良い。電子水準器は、撮影装置1の傾き(例えば、ロール)の向きおよび大きさを表すゲージとして表示され、重力方向が計算される度に表示されるゲージは更新される。電子水準器をLCD124にスルー画と共にオーバーレイ情報として表示することにより、撮影装置1のユーザは、スルー画を観察しながら、撮影装置1の傾きを把握することができ、傾いた撮影画像が生成されることを防止できる。なお、電子水準器は、スルー画のオーバーレイ情報として表示されるだけでなく、スルー画が表示されていない場合に表示されても良い。また、電子水準器は、撮影装置1のLCD124とは別に設けられたLCDや表示部に表示されるよう構成されていても良い。   Further, the calculated direction of gravity may be displayed on any part (for example, LCD 124) of the photographing apparatus 1 as an electronic level indicating the inclination of the photographing apparatus 1. The electronic level is displayed as a gauge indicating the direction and size of the inclination (for example, roll) of the photographing apparatus 1, and the displayed gauge is updated each time the gravity direction is calculated. By displaying the electronic level on the LCD 124 as the overlay information together with the through image, the user of the photographing apparatus 1 can grasp the inclination of the photographing apparatus 1 while observing the through image, and a tilted photographed image is generated. Can be prevented. The electronic level is not only displayed as the overlay information of the through image, but may be displayed when the through image is not displayed. Further, the electronic level may be configured to be displayed on an LCD or a display unit provided separately from the LCD 124 of the photographing apparatus 1.

また、計算された重力方向の表示の仕方は、電子水準器としての表示に限定されない。例えば、撮影装置1のいずれかの箇所に、重力方向から求めた傾き角度を数値で表示しても良く、傾きの程度を示すイメージを表示しても良く、不図示のランプの明滅などにより、傾きの大きさが所定の値を越えているかどうかをユーザに知らせるように構成されていても良い。   Further, the way of displaying the calculated direction of gravity is not limited to the display as an electronic level. For example, an inclination angle obtained from the direction of gravity may be displayed as a numerical value or an image indicating the degree of inclination may be displayed at any part of the photographing apparatus 1, or a lamp (not shown) may blink. You may be comprised so that a user may be notified whether the magnitude | size of inclination exceeds a predetermined value.

次に、撮影装置1に生じる衝撃および衝撃の重力方向の計算への影響について説明する。   Next, the impact that occurs in the photographing apparatus 1 and the influence of the impact on the calculation of the direction of gravity will be described.

撮影装置1が静止している場合や、撮影装置1は動いているが、撮影装置1に衝撃が加わっていない場合は、撮影装置1の加速度の変化は緩やかであるため、加速度センサユニット130による加速度の検知は撮影装置1の動きに追従できる。そのため、重力方向の計算は、加速度センサユニット130から出力された加速度信号を用いて正常に行うことができる。しかしながら、撮影装置1に衝撃が加わった場合、撮影装置1の加速度は急峻に変化するため、加速度センサユニット130による加速度の検知が撮影装置1の動きに追従できない、あるいは、加速度センサユニット130が加速度信号を検知している間に、撮影装置1の加速度が変化してしまう。そのため、撮影装置1に衝撃が加わると、重力方向の計算を正常に行うことが出来ない場合がある。   When the photographing apparatus 1 is stationary or when the photographing apparatus 1 is moving but no impact is applied to the photographing apparatus 1, the acceleration sensor unit 130 changes the acceleration of the photographing apparatus 1 because the change in acceleration is moderate. The detection of acceleration can follow the movement of the photographing apparatus 1. Therefore, the calculation of the direction of gravity can be normally performed using the acceleration signal output from the acceleration sensor unit 130. However, when an impact is applied to the photographing apparatus 1, the acceleration of the photographing apparatus 1 changes abruptly. Therefore, the acceleration detection by the acceleration sensor unit 130 cannot follow the movement of the photographing apparatus 1, or the acceleration sensor unit 130 accelerates. While the signal is detected, the acceleration of the photographing apparatus 1 changes. For this reason, when an impact is applied to the photographing apparatus 1, the gravity direction may not be normally calculated.

撮影装置1に加えられる衝撃には、撮影装置1の外部から撮影装置1の不図示の筐体に対して加えられる衝撃と、撮影装置1の内部で発生する衝撃がある。   The impact applied to the imaging device 1 includes an impact applied to the housing (not shown) of the imaging device 1 from the outside of the imaging device 1 and an impact generated inside the imaging device 1.

撮影装置1に対し、外部から加えられる衝撃としては、ユーザが撮影装置1を動かしている間に、ユーザまたは撮影装置1が障害物などに当たった時に生じる衝撃が考えられる。外部から加えられた衝撃は、振動として撮影装置1内を伝搬する。この振動は、加速度センサユニット130に到達する前に、筐体や撮影装置1の内部構造によって減衰する。そのため、衝撃が大きくない限り、衝撃の重力方向の計算に与える影響は小さくなる。また、ユーザによる撮影装置1を用いた撮影動作の前後は、通常、ユーザの手や、不図示の三脚などによって固定されているため、撮影装置1に対して外部からの衝撃が発生する可能性は低い。このことから、生成された撮影画像と対応付けて記憶する重力方向は、正常に計算されたものである場合が多いと考えられる。   As an impact applied to the photographing apparatus 1 from the outside, an impact that occurs when the user or the photographing apparatus 1 hits an obstacle or the like while the user moves the photographing apparatus 1 can be considered. The impact applied from the outside propagates in the photographing apparatus 1 as vibration. This vibration is attenuated by the housing and the internal structure of the photographing apparatus 1 before reaching the acceleration sensor unit 130. Therefore, unless the impact is large, the impact of the impact on the calculation of the gravity direction is small. In addition, before and after the photographing operation using the photographing apparatus 1 by the user is usually fixed by the user's hand or a tripod (not shown), there is a possibility that an external impact may occur on the photographing apparatus 1. Is low. From this, it is considered that the gravity direction stored in association with the generated captured image is often calculated normally.

また、撮影装置1の内部で発生する衝撃としては、撮影装置1内のクイックリターンミラー132を駆動する際に、ミラー駆動機構134で生じる衝撃や、シャッタ110の駆動によって生じる衝撃、撮影装置1に内蔵されている不図示の可動式のフラッシュ(ストロボ)装置で生じる衝撃などが考えられる。これらの衝撃は、撮影やストロボ装置の駆動を行うごとに発生し、振動として加速度センサユニット130に到達する。ミラー駆動機構134やシャッタ110、ストロボ装置は撮影装置1の内部にあるため、同じく内部にある加速度センサユニットまでの距離が近い。そのため、内部で発生する振動は、外部から衝撃によって生じる振動よりも、減衰せずに加速度センサユニットに到達しやすい。従って、撮影装置1の内部で衝撃が発生すると、重力方向の計算に影響を与え、誤った重力方向を算出してしまう可能性がある。   Further, as an impact generated in the photographing apparatus 1, an impact generated by the mirror driving mechanism 134 when driving the quick return mirror 132 in the photographing apparatus 1, an impact generated by driving the shutter 110, An impact generated by a built-in movable flash (strobe) device (not shown) can be considered. These impacts are generated every time shooting is performed or the strobe device is driven, and reach the acceleration sensor unit 130 as vibration. Since the mirror driving mechanism 134, the shutter 110, and the strobe device are inside the photographing apparatus 1, the distance to the acceleration sensor unit inside is also short. Therefore, the vibration generated inside is more likely to reach the acceleration sensor unit without being attenuated than the vibration generated by an impact from the outside. Therefore, if an impact occurs inside the photographing apparatus 1, it may affect the calculation of the direction of gravity and may calculate the wrong direction of gravity.

誤って計算された重力方向が撮影画像データと対応付けて記憶されると、撮影画像データに基づいて生成された撮影画像を表示する際や印刷する際に、撮影画像の向きが正しく表示されない、あるいは、正しい向きで印刷されない可能性がある。   If the gravitational direction calculated in error is stored in association with the captured image data, the orientation of the captured image is not displayed correctly when displaying or printing the captured image generated based on the captured image data. Or it may not be printed in the correct orientation.

このような問題が発生するのを防ぐため、本実施形態では、撮影装置1に衝撃が加わっているかどうかを検知するように構成されている。また、本実施形態では、撮影装置1に衝撃が加わっている場合は、CPUメモリ101に記憶される重力方向に相当する信号の更新を停止するように構成されている。   In order to prevent such a problem from occurring, the present embodiment is configured to detect whether or not an impact is applied to the photographing apparatus 1. Further, in the present embodiment, when an impact is applied to the photographing apparatus 1, updating of a signal corresponding to the direction of gravity stored in the CPU memory 101 is stopped.

また、撮影装置1は、LCD124に電子水準器が表示されている場合、撮影装置1に衝撃が加わり、重力方向の更新が停止すると、電子水準器の表示の更新が停止するように構成されていてもよい。電子水準器の表示の更新が停止すると、LCD124には更新が停止する直前の電子水準器が、一定時間、あるいは、更新が再開するまで表示される。あるいは、電子水準器の表示の更新が停止すると、LCD124には、電子水準器の代わりに、電子水準器の表示の更新が停止していることを示す情報が表示されるように構成されていても良い。なお、電子水準器の表示の更新が停止している間は、撮影装置1を傾けて重力方向を変化させても、電子水準器の表示は更新されない。   In addition, when the electronic level is displayed on the LCD 124, the photographing apparatus 1 is configured to stop updating the display of the electronic level when an impact is applied to the photographing apparatus 1 and the update in the direction of gravity is stopped. May be. When the updating of the display of the electronic level stops, the electronic level immediately before the updating stops is displayed on the LCD 124 for a certain time or until the updating is resumed. Alternatively, when the update of the electronic level display is stopped, the LCD 124 is configured to display information indicating that the update of the electronic level display is stopped instead of the electronic level. Also good. Note that while updating of the electronic level display is stopped, the display of the electronic level is not updated even if the photographing apparatus 1 is tilted to change the direction of gravity.

また、撮影装置1は、衝撃を検知したことや重力方向の更新が停止していることを、メッセージやイメージとしてLCD124上に表示されるように構成されていても良い。あるいは、撮影装置1は、衝撃を検知したことや重力方向の更新が停止してことを、LCD124の輝度や、表示されているスルー画の色味の変更、撮影装置1に設けられた不図示のランプの点灯や点滅などによって、ユーザに知らせるように構成されていても良い。   Further, the photographing apparatus 1 may be configured to display on the LCD 124 as a message or an image that the impact has been detected or the update in the direction of gravity has stopped. Alternatively, the photographing apparatus 1 indicates that the impact has been detected or the update of the direction of gravity has stopped, the brightness of the LCD 124, the color of the displayed through image being changed, the unillustrated provided in the photographing apparatus 1 It may be configured to notify the user by lighting or blinking the lamp.

次に、撮影装置1の内部で発生する衝撃として、ミラー駆動機構134で生じる衝撃を検知する場合について説明する。ただし、本実施形態はこれに限定されるものではなく、シャッタ110やストロボ装置、その他の撮影装置1内の駆動機構で発生する衝撃を検知するよう構成されていても良い。   Next, a case where an impact generated in the mirror drive mechanism 134 is detected as an impact generated inside the photographing apparatus 1 will be described. However, the present embodiment is not limited to this, and may be configured to detect an impact generated by the shutter 110, the strobe device, or other driving mechanism in the photographing apparatus 1.

ミラー駆動機構134で生じる衝撃は、加速度センサユニット130のタップ検知機能を用いて検知される。加速度センサユニット130のタップ検知機能について図3を用いて説明する。図3は、加速度センサユニット130のブロック図の一例を示したものである。加速度センサユニット130は、内部に3方向(X方向、Y方向、Z方向)の加速度を検知するための3つの加速度センサ30、各加速度センサ30からアナログ信号として出力された加速度信号を、それぞれデジタル信号に変換する3つのAD変換部32、デジタル信号に変換された加速度信号に対してフィルタ処理を行う信号処理部34、フィルタ処理された信号を一時的に記憶するためのメモリ36、メモリ36に記憶されている信号を撮影装置1内のCPU100に送信するための通信部38を備える。   The impact generated by the mirror drive mechanism 134 is detected using the tap detection function of the acceleration sensor unit 130. The tap detection function of the acceleration sensor unit 130 will be described with reference to FIG. FIG. 3 shows an example of a block diagram of the acceleration sensor unit 130. The acceleration sensor unit 130 internally includes three acceleration sensors 30 for detecting acceleration in three directions (X direction, Y direction, and Z direction) and digitally outputs acceleration signals output from the respective acceleration sensors 30 as analog signals. Three AD conversion units 32 that convert signals, a signal processing unit 34 that performs filtering on the acceleration signals converted into digital signals, a memory 36 that temporarily stores the filtered signals, and a memory 36 A communication unit 38 for transmitting the stored signal to the CPU 100 in the photographing apparatus 1 is provided.

3つの加速度センサ30は、加速度の検知方向が互いに直交するように配置されている。加速度センサ30に加速度が発生すると、加速度の大きさに応じた加速度信号がアナログ信号として出力される。図3に示すブロック図では、加速度信号として電圧が発生する構成としているが、本実施形態はこれに限定されない。例えば、加速度センサとしては、MEMSを用いた加速度センサや圧電素子を用いた圧電型加速度センサ、加速度に応じて静電容量が変化する静電容量型加速度センサなど、様々なタイプの加速度センサを用いることができる。3つの加速度センサ30から出力された各加速度信号は、それぞれAD変換部32でデジタル信号に変換され、信号処理部34に送られる。   The three acceleration sensors 30 are arranged so that the acceleration detection directions are orthogonal to each other. When acceleration is generated in the acceleration sensor 30, an acceleration signal corresponding to the magnitude of the acceleration is output as an analog signal. In the block diagram shown in FIG. 3, a voltage is generated as the acceleration signal, but the present embodiment is not limited to this. For example, as an acceleration sensor, various types of acceleration sensors such as an acceleration sensor using MEMS, a piezoelectric acceleration sensor using a piezoelectric element, and a capacitive acceleration sensor whose capacitance changes according to acceleration are used. be able to. Each acceleration signal output from the three acceleration sensors 30 is converted into a digital signal by the AD conversion unit 32 and sent to the signal processing unit 34.

信号処理部34では、入力された加速度信号に対して2つの処理を行う。1つ目の処理は、重力方向を計算に使用する加速度信号を生成するためのフィルタ処理である。このフィルタ処理では、入力された3つの加速度信号に対してローパスフィルタ処理を行い、加速度信号の高周波成分を除去する。これにより、加速度信号に重畳するノイズ成分や、微小な加速度成分が除去される。ローパスフィルタ処理された3つの加速度信号は、信号処理部34と接続されたメモリ36に一時的に記憶される。メモリ36に記憶された加速度信号は、所定の時間間隔で、通信部38を介してCPU100へ送信される。   The signal processing unit 34 performs two processes on the input acceleration signal. The first process is a filter process for generating an acceleration signal that uses the direction of gravity for calculation. In this filter processing, low-pass filter processing is performed on the three input acceleration signals to remove high-frequency components of the acceleration signal. Thereby, the noise component superimposed on the acceleration signal and the minute acceleration component are removed. The three acceleration signals subjected to the low-pass filter processing are temporarily stored in a memory 36 connected to the signal processing unit 34. The acceleration signal stored in the memory 36 is transmitted to the CPU 100 via the communication unit 38 at predetermined time intervals.

なお、撮影装置1が静止しているときは、メモリ36に記憶されているフィルタ処理後の加速度信号は、前回記憶した加速度情報と全く同じになる場合がある。また、信号処理部34において、フィルタ処理以外の割り込み処理が発生した場合、フィルタ処理後の加速度信号は、メモリ36に記憶されない場合がある。そのため、信号処理部34は、CPU100に対して、メモリ36に記憶されている加速度信号が前回の通信時と異なっているかどうかを示す更新信号を送信するよう構成されていても良い。これにより、前回の通信時から加速度信号が更新されていない場合は、更新されていないことを示す信号のみを送り、再度同一の加速度信号を送信する必要が無くなる。また、CPU100は、更新されていないことを示す信号を受け取った場合は、前回と同一の重力方向計算を行わずに済むため、計算処理による負荷を低減することができる。   Note that when the photographing apparatus 1 is stationary, the filtered acceleration signal stored in the memory 36 may be exactly the same as the previously stored acceleration information. In addition, when an interrupt process other than the filter process occurs in the signal processing unit 34, the acceleration signal after the filter process may not be stored in the memory 36. Therefore, the signal processing unit 34 may be configured to transmit an update signal indicating whether or not the acceleration signal stored in the memory 36 is different from the previous communication time to the CPU 100. Thereby, when the acceleration signal has not been updated since the previous communication, it is not necessary to send only the signal indicating that the acceleration signal has not been updated and to transmit the same acceleration signal again. In addition, when the CPU 100 receives a signal indicating that it has not been updated, it is not necessary to perform the same gravitational direction calculation as in the previous time, so the load due to the calculation process can be reduced.

また、信号処理部34における2つ目の処理は、ミラー駆動機構134で衝撃が発生したかどうかを示す衝撃検知信号を生成するための衝撃検知処理である。衝撃検知処理では、1つ目のフィルタ処理とは別に、加速度信号に対して閾値判定処理および時間判定処理が行われる。この閾値判定処理では、加速度センサ30から出力された加速度信号の振幅が所定の閾値を越えたかどうかが判定される。また、時間判定処理では、閾値を越えている加速度信号の持続時間が所定の時間範囲内にあるかどうかが判定される。   The second process in the signal processing unit 34 is an impact detection process for generating an impact detection signal indicating whether or not an impact has occurred in the mirror drive mechanism 134. In the impact detection process, a threshold determination process and a time determination process are performed on the acceleration signal separately from the first filter process. In this threshold value determination process, it is determined whether or not the amplitude of the acceleration signal output from the acceleration sensor 30 exceeds a predetermined threshold value. In the time determination process, it is determined whether or not the duration of the acceleration signal exceeding the threshold is within a predetermined time range.

ミラー駆動機構134で衝撃が発生し、振動として加速度センサ30に到達すると、加速度センサ30では、振幅が大きく短時間の加速度信号が生成される。それに対し、衝撃ではなく、ユーザによって撮影装置1の向きが変えられた場合、加速度信号の変化は、比較的振幅が小さく、持続時間が長い。そのため、予め、ミラー駆動機構134で発生する衝撃によって生じる加速度信号の特性を調べておき、それに合わせて閾値および所定の時間を設定しておくことで、加速度センサ30からの出力を用いてミラー駆動機構134で衝撃が発生したかどうかを検知することができる。   When an impact is generated in the mirror driving mechanism 134 and reaches the acceleration sensor 30 as vibration, the acceleration sensor 30 generates an acceleration signal having a large amplitude and a short time. On the other hand, when the direction of the photographing apparatus 1 is changed by the user instead of an impact, the change in the acceleration signal has a relatively small amplitude and a long duration. Therefore, the characteristics of the acceleration signal generated by the impact generated by the mirror drive mechanism 134 are examined in advance, and the threshold value and a predetermined time are set in accordance with the characteristics, so that the mirror drive is performed using the output from the acceleration sensor 30. It is possible to detect whether an impact has occurred in the mechanism 134.

閾値判定処理および時間判定処理によってミラー駆動機構134で衝撃が発生したと判定された場合、通信部38を介して、衝撃検知信号がCPU100へ送信される。この衝撃検知信号のCPU100への送信は、1つ目の処理において生成された加速度信号をCPU100に送信することとは独立に行われる。   When it is determined by the threshold determination process and the time determination process that an impact has occurred in the mirror drive mechanism 134, an impact detection signal is transmitted to the CPU 100 via the communication unit 38. The transmission of the impact detection signal to the CPU 100 is performed independently of transmitting the acceleration signal generated in the first process to the CPU 100.

以上のことから、本実施形態では、CPU100は、加速度センサユニット130から、加速度信号を所定の時間間隔で読み出すよう構成されており、加速度センサユニット130は、ミラー駆動機構134で衝撃が発生したことを検知すると、その都度、衝撃検知信号をCPU100へ送信するよう構成されている。   From the above, in this embodiment, the CPU 100 is configured to read the acceleration signal from the acceleration sensor unit 130 at a predetermined time interval, and the acceleration sensor unit 130 has received an impact from the mirror drive mechanism 134. It is configured so that an impact detection signal is transmitted to the CPU 100 each time.

CPU100は、加速度センサユニット130から読み出した加速度信号に基づいて重力方向や撮影装置1の向きを計算し、CPUメモリ101に記憶されている重力方向を更新する。また、CPU100は、加速度センサユニット130から送信された衝撃検知信号を受信すると、重力方向の計算および更新を一時的に停止する。また、CPU100は、衝撃検知信号を受信してから所定の時間の間、次の衝撃検知信号を受信しなければ、重力方向の計算および更新処理を再開する。これにより、撮影画像データが誤って計算された重力方向と関連付けられて記憶されるのを防止でき、撮影画像データを撮影画像として表示や印刷を行う際に、撮影画像の向きを正しく設定することができる。   The CPU 100 calculates the direction of gravity and the direction of the photographing apparatus 1 based on the acceleration signal read from the acceleration sensor unit 130, and updates the direction of gravity stored in the CPU memory 101. Further, when the CPU 100 receives the impact detection signal transmitted from the acceleration sensor unit 130, the CPU 100 temporarily stops the calculation and update of the direction of gravity. If the CPU 100 does not receive the next impact detection signal for a predetermined time after receiving the impact detection signal, the CPU 100 restarts the gravity direction calculation and update processing. As a result, it is possible to prevent the captured image data from being stored in association with the erroneously calculated gravity direction, and to correctly set the orientation of the captured image when displaying or printing the captured image data as a captured image. Can do.

本実施形態では、加速度信号の振幅および持続時間が、所定の閾値または範囲内にあるかどうかを判定することにより、ミラー駆動機構134で発生した衝撃に伴う振動を検知しているが、本実施形態はこれに限定されない。例えば、特許文献2(特開2012−146156)には、加速度センサユニットで生成された加速度信号を所定の時間間隔でRAMに記憶し、記憶された加速度信号の周波数解析を行うことによって、衝撃が発生しているかどうか、および、どのような衝撃が発生しているかを検知する方法が開示されている。   In this embodiment, the vibration and vibration generated by the mirror drive mechanism 134 are detected by determining whether the amplitude and duration of the acceleration signal are within a predetermined threshold value or range. The form is not limited to this. For example, in Patent Document 2 (Japanese Patent Application Laid-Open No. 2012-146156), an acceleration signal generated by an acceleration sensor unit is stored in a RAM at a predetermined time interval, and a frequency analysis of the stored acceleration signal is performed, thereby causing an impact. A method for detecting whether or not an impact has occurred and how the impact is occurring is disclosed.

特許文献2のように、所定の時間間隔で加速度信号の周波数解析を行うことによっても、ミラー駆動機構134で衝撃が発生したかどうかを検知することができる。しかしながら、ミラー駆動機構134で発生する衝撃は、間欠的かつ不規則に発生するものである。そのため、特許文献2の方法を用いる場合、不規則に発生する衝撃を検知するため、高いサンプリングレートで加速度信号を記憶し、記憶した全ての加速度信号に対して周波数解析を行う必要がある。この様な高いサンプリングレートでの周波数解析を行うと、加速度信号に対する信号処理の負荷が大きく、消費電力が増加してしまうという問題が生じる。   As in Patent Document 2, it is also possible to detect whether or not an impact has occurred in the mirror drive mechanism 134 by performing frequency analysis of the acceleration signal at predetermined time intervals. However, the impact generated by the mirror drive mechanism 134 is intermittently and irregularly generated. Therefore, when using the method of Patent Document 2, it is necessary to store acceleration signals at a high sampling rate and perform frequency analysis on all stored acceleration signals in order to detect irregularly generated impacts. When frequency analysis is performed at such a high sampling rate, there is a problem in that the load of signal processing on the acceleration signal is large and power consumption increases.

それに対し、本実施形態では、上記のように、生成された加速度信号に対して、加速度センサユニット130が閾値判定および時間判定を行っているのみであり、高いサンプリングレートでの加速度信号の記憶および周波数解析を行っていない。従って、CPU100における加速度信号に対する信号処理の負荷を上げることなく、ミラー駆動機構134で衝撃が発生したかどうかを判定することができる。   On the other hand, in the present embodiment, as described above, the acceleration sensor unit 130 only performs threshold determination and time determination on the generated acceleration signal, and stores acceleration signals at a high sampling rate. Frequency analysis is not performed. Therefore, it is possible to determine whether or not an impact has occurred in the mirror drive mechanism 134 without increasing the signal processing load on the acceleration signal in the CPU 100.

なお、上記の衝撃検知処理では、加速度信号の閾値判定処理および時間判定処理が行われるとしたが、本実施形態はこれに限定されない。例えば、衝撃検知処理では、加速度の時間変化、すなわち、時間微分を用いて、衝撃が発生したかどうかを検知しても良い。ミラー駆動機構134で発生する衝撃は、短時間に力が発生する撃力によるものであるため、ミラー駆動機構134で発生する加速度の時間微分は大きくなる。そのため、衝撃検知処理では、加速度の時間微分に閾値を設け、加速度の時間部分が閾値よりも大きい加速度が発生したときに、衝撃が発生したと判定しても良い。   In the above-described impact detection process, the acceleration signal threshold determination process and the time determination process are performed. However, the present embodiment is not limited to this. For example, in the impact detection process, it may be detected whether or not an impact has occurred by using a time change of acceleration, that is, time differentiation. Since the impact generated by the mirror drive mechanism 134 is due to the striking force generated in a short time, the time differentiation of the acceleration generated by the mirror drive mechanism 134 becomes large. Therefore, in the impact detection process, a threshold value may be provided for the time differentiation of acceleration, and it may be determined that an impact has occurred when an acceleration having a time portion greater than the threshold value occurs.

また、衝撃検知処理では、ミラー駆動機構134で発生する衝撃を検知した場合に、衝撃検知信号を生成することを目的としているが、本実施形態はこれに限定されない。例えば、撮影装置1の内部で発生する衝撃は、ミラー駆動機構134だけでなく、シャッタ110の駆動や、不図示のストロボ装置、メモリカード200の脱着などによっても発生し得る。撮影装置1に外部から大きな衝撃が加わると、内部で発生した衝撃と同様に、衝撃によって発生した振動が重力方向の計算に影響を与える可能性がある。そのため、衝撃検知処理では、ミラー駆動機構134だけでなく、撮影装置1の内部のミラー駆動機構134以外の場所で生じた衝撃や、外部から加えられた衝撃を検知するよう構成されていても良い。   Further, the impact detection process is intended to generate an impact detection signal when an impact generated by the mirror drive mechanism 134 is detected, but the present embodiment is not limited to this. For example, the impact generated inside the photographing apparatus 1 can be generated not only by the mirror driving mechanism 134 but also by driving the shutter 110, a strobe device (not shown), and the memory card 200 being attached or detached. When a large impact is applied to the photographing apparatus 1 from the outside, the vibration generated by the impact may affect the calculation of the direction of gravity, similarly to the impact generated inside. Therefore, the impact detection process may be configured to detect not only the mirror drive mechanism 134 but also an impact generated in a place other than the mirror drive mechanism 134 inside the photographing apparatus 1 or an externally applied impact. .

衝撃検知処理において、複数の種類の衝撃を検知するために、閾値判定処理や時間判定処理に用いる閾値および所定の時間範囲を広く設定してもよい。これにより、ミラー駆動機構134だけでなく、他の要因で発生した衝撃を検知することができる。あるいは、衝撃の種類に合わせて、複数の閾値および時間範囲を設定してもよい。   In the impact detection process, in order to detect a plurality of types of impacts, the threshold value used for the threshold determination process and the time determination process and a predetermined time range may be set wide. Thereby, not only the mirror drive mechanism 134 but also an impact generated by other factors can be detected. Alternatively, a plurality of threshold values and time ranges may be set according to the type of impact.

また、加速度センサユニット130は、メモリ36を有しており、メモリ36に記憶された加速度信号を、通信部38を通してCPU100に送信するよう構成されているが、本実施形態はこれに限定されない。例えば、加速度センサユニット130は、信号処理部34において、所定の時間間隔で加速度信号に対するフィルタ処理を行い、フィルタ処理された加速度信号をメモリに記憶せずに順次CPU100に送信するよう構成されていても良い。この場合、メモリ36には過去の加速度信号が記憶されないため、加速度センサユニット130は、検知された加速度信号が前回に測定された加速度信号と一致しているかどうかを判定しない。そのため、この場合は、CPU100に対して更新信号は送信されない。   Moreover, although the acceleration sensor unit 130 has the memory 36 and is configured to transmit the acceleration signal stored in the memory 36 to the CPU 100 through the communication unit 38, the present embodiment is not limited to this. For example, the acceleration sensor unit 130 is configured such that the signal processing unit 34 performs a filtering process on the acceleration signal at predetermined time intervals, and sequentially transmits the filtered acceleration signal to the CPU 100 without storing it in the memory. Also good. In this case, since the past acceleration signal is not stored in the memory 36, the acceleration sensor unit 130 does not determine whether or not the detected acceleration signal matches the previously measured acceleration signal. Therefore, in this case, an update signal is not transmitted to the CPU 100.

次に、CPUメモリ101に記憶される重力方向の更新について、図4(a)、(b)に示すフローチャートを用いて説明する。図4(a)、(b)に示すフローチャートは、CPU100が行う様々な処理のうち、CPUメモリ101に記憶される重力方向の更新に関わる部分の一例を示したものである。   Next, the update of the gravity direction stored in the CPU memory 101 will be described with reference to the flowcharts shown in FIGS. The flowcharts shown in FIGS. 4A and 4B show an example of a part related to the update of the gravity direction stored in the CPU memory 101 among various processes performed by the CPU 100.

図4(a)に示すフローチャートにおいて、撮影装置1の電源が入れられ、重力方向を更新するフローが開始される(S100)と、ミラー駆動機構134で衝撃が発生したかどうかを検知するためのパラメータがROMから読み出され、CPUメモリ101に記憶される(S101)。このパラメータには、閾値判定処理および時間判定処理に使用する幅の閾値や所定の時間が含まれる。パラメータが読み出されると、重力方向を更新する時間間隔に応じて、所定の時間待機する(S102)。この待機している間、撮影装置1は、AE制御やAF制御、撮影処理、LCD124の画面制御など、ユーザによる操作部102へ入力された操作内容に応じた処理を行っている。所定の時間の待機が終了すると、重力方向の更新処理が行われる(S103)。重力方向の更新処理では、加速度センサユニット130から受信した加速度信号に基づいて重力方向が計算され、CPUメモリ101に記憶される。その後、撮影装置1の電源が切られなければ(S104:No)、再度、所定の時間待機し(S102)、重力方向の更新処理(S103)が行われる。撮影装置1の電源が切られた場合(S104:Yes)、更新処理は終了する(S105)。   In the flowchart shown in FIG. 4A, when the photographing apparatus 1 is turned on and a flow for updating the direction of gravity is started (S100), it is detected whether or not an impact has occurred in the mirror drive mechanism 134. The parameters are read from the ROM and stored in the CPU memory 101 (S101). This parameter includes a threshold of a width used for the threshold determination process and the time determination process and a predetermined time. When the parameters are read, the system waits for a predetermined time according to the time interval for updating the direction of gravity (S102). While waiting, the photographing apparatus 1 performs processing according to the operation contents input to the operation unit 102 by the user, such as AE control, AF control, photographing processing, and screen control of the LCD 124. When waiting for a predetermined time is completed, an update process in the direction of gravity is performed (S103). In the gravity direction update process, the gravity direction is calculated based on the acceleration signal received from the acceleration sensor unit 130 and stored in the CPU memory 101. After that, if the photographing apparatus 1 is not turned off (S104: No), it waits again for a predetermined time (S102), and the gravity direction update process (S103) is performed. When the photographing apparatus 1 is turned off (S104: Yes), the update process ends (S105).

次に、重力方向の更新処理(S103)について、図4(b)を用いて説明する。重力方向の更新処理が開始されると(S200)、CPU100は通信部38を介して加速度センサユニット130と通信を行い、加速度センサユニット130から更新信号と加速度信号を受信する(S201)。CPU100は、更新信号に基づいて、受信した加速度信号が前回の通信時に受信した値から変化しているかどうかを判定する(S202)。なお、加速度信号が前回の値から変化してない場合、加速度センサユニット130は加速度信号を送信せず、更新信号のみを送信しても良い。ステップS202において、加速度信号が前回の値から更新されていないと判定された場合(S202:No)、重力方向の更新処理を終了する(S207)。一方、加速度信号が前回の値から更新されている場合(S202:Yes)、加速度センサユニット130から、ミラー駆動装置で衝撃が発生したことを示す衝撃検知信号が送信されているかどうかが判定される(S203)。   Next, the gravity direction update process (S103) will be described with reference to FIG. When the gravity direction update process is started (S200), the CPU 100 communicates with the acceleration sensor unit 130 via the communication unit 38, and receives an update signal and an acceleration signal from the acceleration sensor unit 130 (S201). Based on the update signal, the CPU 100 determines whether the received acceleration signal has changed from the value received during the previous communication (S202). When the acceleration signal has not changed from the previous value, the acceleration sensor unit 130 may transmit only the update signal without transmitting the acceleration signal. If it is determined in step S202 that the acceleration signal has not been updated from the previous value (S202: No), the gravity direction updating process is terminated (S207). On the other hand, if the acceleration signal has been updated from the previous value (S202: Yes), it is determined whether or not an impact detection signal indicating that an impact has occurred in the mirror driving device is transmitted from the acceleration sensor unit 130. (S203).

加速度センサユニット130からCPU100へは、加速度情報と衝撃検知信号とが、それぞれ独立に送信されており、ステップS203では、これらの2つの信号を受信したタイミングによって、加速度信号に衝撃によって発生した振動の影響が含まれているかどうかを判定する。すなわち、CPU100が加速度信号を受信した時間と、衝撃検知信号を受信した時間との時間差が所定の値よりも小さい場合、加速度信号には衝撃による影響が含まれていると判定し(S203:Yes)、計算処理を終了する(S207)。一方、加速度信号を受信した時間と、衝撃検知信号を受信した時間との時間差が所定の時間よりも大きい場合、加速度信号には衝撃によって発生した振動による影響が含まれていないと判定し(S203:No)、加速度信号を用いた重力方向の計算処理を実行する(S204)。   The acceleration information and the impact detection signal are independently transmitted from the acceleration sensor unit 130 to the CPU 100. In step S203, the vibration of the acceleration signal generated by the impact is generated at the timing at which these two signals are received. Determine if the impact is included. That is, when the time difference between the time when the CPU 100 receives the acceleration signal and the time when the impact detection signal is received is smaller than a predetermined value, it is determined that the impact is included in the acceleration signal (S203: Yes). ), And finishes the calculation process (S207). On the other hand, when the time difference between the time when the acceleration signal is received and the time when the impact detection signal is received is larger than the predetermined time, it is determined that the acceleration signal does not include the influence due to the vibration generated by the impact (S203). : No), the gravity direction calculation processing using the acceleration signal is executed (S204).

なお、上記のステップS203では、2つの信号の時間差に基づいて、加速度信号に衝撃によって発生した振動の影響が含まれているかどうかを判定したが、本実施形態のステップS203の処理はこれに限定されない。本実施形態のステップS203では、衝撃検知信号を受信した後に検知された最初の加速度信号には衝撃によって発生した振動の影響が含まれていると判定しても良い。あるいは、衝撃検知信号を受信した後に検知された、初めの2つ以上の所定の数の加速度信号には、衝撃によって発生した振動の影響が含まれていると判定しても良い。   In step S203 described above, based on the time difference between the two signals, it is determined whether or not the acceleration signal includes the influence of vibration generated by the impact. However, the process in step S203 of the present embodiment is limited to this. Not. In step S203 of the present embodiment, it may be determined that the first acceleration signal detected after receiving the impact detection signal includes the influence of vibration generated by the impact. Alternatively, it may be determined that the first two or more predetermined numbers of acceleration signals detected after receiving the impact detection signal include the influence of vibration generated by the impact.

重力方向の計算処理(S204)では、周知の方法により、加速度信号に基づいて重力方向が計算される。また、このステップS204では、重力方向と同時に、あるいは、択一的に撮影装置1の向き(ロールやピッチ、チルトなど)が計算されても良い。重力方向の計算処理(S204)で、重力方向や撮影装置1の向きが計算されると、次に、計算された重力方向や撮影装置1の向きに対してフィルタ計算が行われる(S205)。   In the gravity direction calculation process (S204), the gravity direction is calculated based on the acceleration signal by a known method. In step S204, the direction (roll, pitch, tilt, etc.) of the photographing apparatus 1 may be calculated simultaneously with the gravity direction or alternatively. When the gravity direction and the direction of the photographing apparatus 1 are calculated in the gravity direction calculation process (S204), the filter calculation is performed on the calculated gravity direction and the direction of the photographing apparatus 1 (S205).

フィルタ計算(S205)は、CPUメモリ101に記憶する撮影装置1の向きを遅延させることを目的とする。例えば、フィルタ計算を行なわずに、記憶された重力方向に基づいて、LCD124に表示する撮影画像やステータス画面などの向きを変える場合、撮影装置1の向きが常に変化したり、短時間の間で何度も変化したりすると、LCD124に表示される撮影画像やステータス情報などの向きが頻繁に切り替わってしまう。そのため、ユーザにとって、撮影画像やステータス情報などが見づらくなってしまう。このような問題を抑制するため、フィルタ処理(S205)では、LCD124に表示される撮影画像などを見易くするために、撮影装置1の向きに応じて、表示される撮影画像の向きが頻繁に切り替わらないような処理が行われる。   The purpose of the filter calculation (S205) is to delay the orientation of the photographing apparatus 1 stored in the CPU memory 101. For example, when the orientation of the photographed image displayed on the LCD 124 or the status screen is changed based on the stored gravity direction without performing filter calculation, the orientation of the photographing apparatus 1 is always changed or within a short time. If it changes many times, the orientation of the captured image, status information, etc. displayed on the LCD 124 will change frequently. Therefore, it is difficult for the user to see the captured image and status information. In order to suppress such a problem, in the filter process (S205), in order to make the captured image displayed on the LCD 124 easy to see, the orientation of the captured image displayed is frequently switched according to the orientation of the imaging apparatus 1. No processing is performed.

このようなフィルタ処理(S205)として、例えば、最新の重力方向の計算結果と過去数回分の計算結果との平均値(時間平均)、あるいは、重み付け平均値を計算し、計算された平均値をCPUメモリ101に記憶する方法がある。これにより、ステップS206においてCPUメモリ101に記憶される重力方向には、常に過去の重力方向の情報が含まれることになる。そのため、記憶された重力方向に応じてLCD124に表示される撮影画像の向きを変化させると、撮影装置1の向きの変化に対して、表示される撮影画像の向きは時間的に遅れて変化する。表示される撮影画像の向きは、過去複数回の重力方向の計算結果が平均化されたものに基づくため、撮影装置1の向きが常に変化したり、短時間の間で何度も変化したりしても、表示される撮影画像の向きが頻繁に切り替わってしまうことを防止することができる。   As such a filtering process (S205), for example, an average value (time average) or a weighted average value of the latest gravity direction calculation result and the past several calculation results is calculated, and the calculated average value is calculated. There is a method of storing in the CPU memory 101. Thus, the gravity direction stored in the CPU memory 101 in step S206 always includes information on the past gravity direction. Therefore, when the orientation of the captured image displayed on the LCD 124 is changed in accordance with the stored gravity direction, the orientation of the captured image displayed changes with a time delay with respect to the change in the orientation of the imaging apparatus 1. . Since the orientation of the displayed captured image is based on an average of the calculation results of the gravitational direction in the past several times, the orientation of the imaging device 1 always changes or changes many times in a short time. Even so, it is possible to prevent the orientation of the displayed captured image from being frequently switched.

また、このフィルタ処理(S205)の別の例では、計算された重力方向の計算結果の時間的な変化をモニタし、所定の時間(あるいは所定の数の計算結果)の間で、計算結果の変化が所定量よりも小さい場合に、重力方向をCPUメモリ101に記憶する方法がある。この例では、重力方向が所定の時間よりも短い間に、所定量よりも大きく変化した場合、変化している間の重力方向はCPUメモリ101に記憶されない。そのため、撮影装置1の向きが頻繁に切り替わった場合に、LCD124に表示される撮影画像の向きが頻繁に切り替わってしまうことを防止できる。なお、フィルタ処理(S205)の例として、2つの例を説明したが、本実施形態は、これらに限定されるものではない。   In another example of this filtering process (S205), the temporal change in the calculated calculation result in the direction of gravity is monitored, and the calculation result is calculated during a predetermined time (or a predetermined number of calculation results). There is a method of storing the direction of gravity in the CPU memory 101 when the change is smaller than a predetermined amount. In this example, if the direction of gravity changes to be larger than a predetermined amount while shorter than a predetermined time, the direction of gravity during the change is not stored in the CPU memory 101. Therefore, when the orientation of the photographing apparatus 1 is frequently switched, it is possible to prevent the orientation of the captured image displayed on the LCD 124 from being frequently switched. In addition, although two examples were demonstrated as an example of a filter process (S205), this embodiment is not limited to these.

フィルタ処理(S205)が行われた重力方向や撮影装置1の向きは、記録領域に記憶される(S206)。CPUメモリ101に既にこれらの情報が記憶されている場合は、上書き保存することによって更新される。なお、CPUメモリ101には、上記のフィルタ計算に用いるための、過去数回分の計算結果が記憶されていても良い。   The gravity direction on which the filter process (S205) has been performed and the orientation of the photographing apparatus 1 are stored in the recording area (S206). If these pieces of information are already stored in the CPU memory 101, they are updated by overwriting them. The CPU memory 101 may store calculation results for the past several times for use in the above filter calculation.

CPUメモリ101に記憶される重力方向や撮影装置1の向き更新されると、重力方向の更新処理は終了し(S207)、図4(a)に示す、ステップS104が実行される。   When the gravity direction stored in the CPU memory 101 and the direction of the photographing apparatus 1 are updated, the gravity direction update processing ends (S207), and step S104 shown in FIG. 4A is executed.

本実施形態によれば、撮影装置1の内部で衝撃が発生した場合に、衝撃が発生している時に生成された加速度信号を用いた重力方向の計算が行われないよう構成されている。あるいは、本実施形態によれば、撮影装置1の内部で衝撃が発生した場合に、衝撃が発生している時に生成された加速度信号を用いて誤った重力方向が計算されても、CPUメモリ101に記憶されている重力方向は、誤った重力方向によって更新されないように構成されている。これにより、撮影画像が誤った重力方向と関連付けられて記憶されるのを防止でき、撮影画像データを撮影画像として表示や印刷を行う際に、撮影画像の向きを正しく設定することができる。   According to the present embodiment, when an impact is generated inside the photographing apparatus 1, the gravitational direction is not calculated using the acceleration signal generated when the impact is generated. Alternatively, according to the present embodiment, when an impact occurs inside the photographing apparatus 1, even if an incorrect gravity direction is calculated using an acceleration signal generated when the impact is occurring, the CPU memory 101 The gravitational direction stored in is not updated by an incorrect gravitational direction. Thereby, it is possible to prevent the photographed image from being stored in association with the wrong direction of gravity, and to correctly set the orientation of the photographed image when displaying or printing the photographed image data as the photographed image.

以上が本発明の例示的な実施形態の説明である。本発明の実施形態は、上記に説明したものに限定されず、本発明の技術的思想の範囲において様々な変形が可能である。例えば明細書中に例示的に明示される実施形態等又は自明な実施形態等を適宜組み合わせた内容も本願の実施形態に含まれる。   The above is the description of the exemplary embodiments of the present invention. Embodiments of the present invention are not limited to those described above, and various modifications are possible within the scope of the technical idea of the present invention. For example, the embodiment of the present application also includes an embodiment that is exemplarily specified in the specification or a combination of obvious embodiments and the like as appropriate.

1 撮影装置
2 外部表示装置
30 加速度センサ
32 AD変換部
34 信号処理部
36 メモリ
38 通信部
100 CPU
101 CPUメモリ
102 操作部
104 駆動回路
106 撮影レンズ
107 AFユニット
108 絞り
110 シャッタ
112 イメージセンサ
114 信号処理回路
116 画像処理エンジン
118 バッファメモリ
120 カード用インターフェース
122 LCD制御回路
124 LCD
126 ROM
128 外部接続インターフェース
130 加速度センサユニット
132 クイックリターンミラー
134 ミラー駆動機構
136 ミラー駆動回路
138 プリズム
140 ファインダ
200 メモリカード
202 表示画面
DESCRIPTION OF SYMBOLS 1 Image pick-up device 2 External display device 30 Acceleration sensor 32 AD conversion part 34 Signal processing part 36 Memory 38 Communication part 100 CPU
101 CPU Memory 102 Operation Unit 104 Drive Circuit 106 Shooting Lens 107 AF Unit 108 Aperture 110 Shutter 112 Image Sensor 114 Signal Processing Circuit 116 Image Processing Engine 118 Buffer Memory 120 Card Interface 122 LCD Control Circuit 124 LCD
126 ROM
128 External connection interface 130 Acceleration sensor unit 132 Quick return mirror 134 Mirror drive mechanism 136 Mirror drive circuit 138 Prism 140 Finder 200 Memory card 202 Display screen

Claims (13)

制御部と、
可動部と、
加えられた加速度を示す加速度信号を生成し、生成された加速度信号に基づいて前記可動部の移動によって衝撃が発生したことを示す衝撃検知信号を生成する加速度検出手段と、
を備え、
前記制御部は、
前記加速度信号に基づいて重力方向を計算する信号処理手段と、
前記重力方向によって、所定の記憶領域に記憶されている重力方向を更新する更新手段と、
を備え、
前記加速度検出手段は、
加速度信号処理手段を有し、
前記加速度信号処理手段は、
所定の記憶媒体に記憶された閾値及び前記加速度信号に基づいて前記衝撃が発生したかどうかを判定し、前記衝撃が発生したと判定されると、前記衝撃検知信号を生成し、生成された前記衝撃検知信号を前記制御部に送信し、
前記制御部は、
前記信号処理手段よる重力方向を計算する信号処理を実行中に前記衝撃検知信号を受信した場合、前記更新手段の前記重力方向の更新を停止する、
検知装置。
A control unit;
Moving parts;
Acceleration detection means for generating an acceleration signal indicating the applied acceleration, and generating an impact detection signal indicating that an impact has occurred due to the movement of the movable part based on the generated acceleration signal;
With
The controller is
Signal processing means for calculating the direction of gravity based on the acceleration signal;
Update means for updating the gravitational direction stored in a predetermined storage area according to the gravitational direction;
With
The acceleration detecting means includes
Having acceleration signal processing means;
The acceleration signal processing means includes
It is determined whether the impact has occurred based on the threshold value stored in a predetermined storage medium and the acceleration signal. When it is determined that the impact has occurred, the impact detection signal is generated, and the generated Send an impact detection signal to the control unit,
The controller is
When the impact detection signal is received during execution of signal processing for calculating the direction of gravity by the signal processing means, the updating of the gravity direction of the updating means is stopped.
Detection device.
前記制御部は、前記衝撃検知信号を受信した場合に、前記信号処理手段の前記重力方向の計算を停止する、
請求項1に記載の検知装置。
When the control unit receives the impact detection signal, the control unit stops the calculation of the gravity direction of the signal processing unit,
The detection device according to claim 1.
前記信号処理手段は、所定の時間間隔で前記重力方向を計算し、
前記更新手段は、前記所定の時間間隔で計算された前記重力方向によって、前記所定の記憶領域に記憶されている前記重力方向を更新する、
請求項2に記載の検知装置。
The signal processing means calculates the direction of gravity at a predetermined time interval,
The update means updates the gravitational direction stored in the predetermined storage area by the gravitational direction calculated at the predetermined time interval.
The detection device according to claim 2.
前記制御部は、前記衝撃検知信号を受信した場合に、前記信号処理手段の前記重力方向の計算を停止し、該重力方向の計算を停止してから所定時間の経過後に、該信号処理手段の該重力方向の計算を再開させる、
請求項3に記載の検知装置。
The control unit, when receiving the impact detection signal, stops the calculation of the gravitational direction of the signal processing unit, and after a predetermined time has elapsed after stopping the calculation of the gravitational direction of the signal processing unit. Restart the calculation of the direction of gravity,
The detection device according to claim 3.
前記信号処理手段は、前記重力方向の計算に用いる前記加速度信号が、1つ前の計算に用いた前記加速度信号と同一である場合に、前記重力方向を計算しない、
請求項3に記載の検知装置。
The signal processing means does not calculate the gravity direction when the acceleration signal used for the calculation of the gravity direction is the same as the acceleration signal used for the previous calculation,
The detection device according to claim 3.
前記加速度検出手段は、前記閾値以上の前記加速度の持続時間が、所定の持続時間以下である場合に、前記衝撃が発生していると判定する、
請求項1から請求項5のいずれか一項に記載の検知装置。
The acceleration detection means determines that the impact has occurred when the acceleration duration equal to or greater than the threshold is equal to or less than a predetermined duration.
The detection device according to any one of claims 1 to 5.
前記所定の記憶領域に記憶されている前記重力方向に応じた情報を表示する表示部を更に備え、
前記表示部は、前記更新手段による前記重力方向の更新に応じて、前記表示される情報を更新する、
請求項1から請求項6のいずれか一項に記載の検知装置。
A display unit for displaying information according to the direction of gravity stored in the predetermined storage area;
The display unit updates the displayed information according to the update of the gravity direction by the update unit.
The detection device according to any one of claims 1 to 6.
前記表示部は、前記衝撃検知信号を受信した場合に、前記表示される情報の更新を所定の時間停止する、
請求項7に記載の検知装置。
The display unit stops updating the displayed information for a predetermined time when the shock detection signal is received.
The detection device according to claim 7.
前記加速度検出手段は、それぞれ互いに直交する3方向の加速度に基づく加速度信号を生成する3つの加速度センサユニットを備える、
請求項1から請求項5のいずれか一項に記載の検知装置。
The acceleration detection means includes three acceleration sensor units that generate acceleration signals based on accelerations in three directions orthogonal to each other.
The detection device according to any one of claims 1 to 5.
撮影画像データを生成する撮影手段と、
前記撮影画像データを、所定のデータ記憶領域に、前記所定の記憶領域に記憶されている前記重力方向と対応付けて記憶するデータ記憶手段と、を更に備える、
請求項1から請求項9のいずれか一項に記載の検知装置。
Photographing means for generating photographed image data;
Data storage means for storing the captured image data in a predetermined data storage area in association with the gravitational direction stored in the predetermined storage area;
The detection device according to any one of claims 1 to 9.
前記撮影画像データに基づいて、所定の表示装置に表示する撮影画像、または、所定の印刷装置によって印刷する撮影画像を生成する画像生成手段を更に備え、
前記画像生成手段は、前記撮影画像データと対応付けて記憶されている前記重力方向に応じて、前記生成する撮影画像の向きを変更する、
請求項10に記載の検知装置。
Based on the photographed image data, further comprising an image generation means for generating a photographed image to be displayed on a predetermined display device or a photographed image to be printed by a predetermined printer
The image generation means changes the direction of the captured image to be generated according to the gravity direction stored in association with the captured image data.
The detection device according to claim 10.
制御部と、
可動部と、
撮影画像データを生成する撮影手段と、
加えられた加速度を示す加速度信号を生成し、生成された加速度信号に基づいて前記可動部の移動によって衝撃が発生したことを示す衝撃検知信号を生成する加速度検出手段と、
を備え、
前記制御部は、
前記加速度信号に基づいて重力方向を計算する信号処理手段と、
前記重力方向によって、所定の記憶領域に記憶されている重力方向を更新する更新手段と、
を備え、
前記加速度検出手段は、
加速度信号処理手段を有し、
前記加速度信号処理手段は、
所定の記憶媒体に記憶された閾値及び前記加速度信号に基づいて前記衝撃が発生したかどうかを判定し、前記衝撃が発生したと判定されると、前記衝撃検知信号を生成し、生成された前記衝撃検知信号を前記制御部に送信し、
前記制御部は、
前記信号処理手段よる重力方向を計算する信号処理を実行中に前記衝撃検知信号を受信した場合、前記更新手段の更新を禁止し、該更新手段の更新を禁止してから所定の時間経過後、該更新手段に更新を再開させる、
撮影装置。
A control unit;
Moving parts;
Photographing means for generating photographed image data;
Acceleration detection means for generating an acceleration signal indicating the applied acceleration, and generating an impact detection signal indicating that an impact has occurred due to the movement of the movable part based on the generated acceleration signal;
With
The controller is
Signal processing means for calculating the direction of gravity based on the acceleration signal;
Update means for updating the gravitational direction stored in a predetermined storage area according to the gravitational direction;
With
The acceleration detecting means includes
Having acceleration signal processing means;
The acceleration signal processing means includes
It is determined whether the impact has occurred based on the threshold value stored in a predetermined storage medium and the acceleration signal. When it is determined that the impact has occurred, the impact detection signal is generated, and the generated Send an impact detection signal to the control unit,
The controller is
When the impact detection signal is received during the execution of signal processing for calculating the direction of gravity by the signal processing means, the updating of the updating means is prohibited, and after a predetermined time has passed since the updating of the updating means is prohibited, Causing the updating means to resume updating;
Shooting device.
前記制御部は、前記撮影画像データを、所定のデータ記憶領域に、前記所定の記憶領域に記憶されている前記重力方向と対応付けて記憶する、
請求項12に記載の撮影装置。
The control unit stores the captured image data in a predetermined data storage area in association with the gravitational direction stored in the predetermined storage area.
The imaging device according to claim 12.
JP2013223602A 2013-10-28 2013-10-28 Gravity direction detection device and photographing device Active JP6222520B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013223602A JP6222520B2 (en) 2013-10-28 2013-10-28 Gravity direction detection device and photographing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013223602A JP6222520B2 (en) 2013-10-28 2013-10-28 Gravity direction detection device and photographing device

Publications (3)

Publication Number Publication Date
JP2015088795A JP2015088795A (en) 2015-05-07
JP2015088795A5 JP2015088795A5 (en) 2016-12-22
JP6222520B2 true JP6222520B2 (en) 2017-11-01

Family

ID=53051202

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013223602A Active JP6222520B2 (en) 2013-10-28 2013-10-28 Gravity direction detection device and photographing device

Country Status (1)

Country Link
JP (1) JP6222520B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2020179869A1 (en) * 2019-03-06 2020-09-10

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4530910B2 (en) * 2005-05-20 2010-08-25 Hoya株式会社 Camera shake detection device and photographing device
JP2011118315A (en) * 2009-12-07 2011-06-16 Nikon Corp Imaging apparatus
JP5648487B2 (en) * 2011-01-11 2015-01-07 株式会社リコー Imaging device
JP5321704B2 (en) * 2012-02-17 2013-10-23 株式会社ニコン Camera and image recording program

Also Published As

Publication number Publication date
JP2015088795A (en) 2015-05-07

Similar Documents

Publication Publication Date Title
JP5489572B2 (en) Acceleration detection apparatus, control method therefor, and program
JP6103503B2 (en) Imaging device
WO2014132465A1 (en) Electronic apparatus
JP2015185925A (en) Imaging device and control method thereof
JP5648487B2 (en) Imaging device
CN101557470A (en) Camera device
US20080049134A1 (en) Camera system and method for controlling display during focus operation
US8970772B2 (en) Digital photographing apparatus
CN114430453B (en) Camera anti-shake system, control method, equipment and medium
JP6377286B2 (en) Imaging apparatus, control method therefor, and operation program
JP6222520B2 (en) Gravity direction detection device and photographing device
US10944899B2 (en) Image processing device and image processing method
JP2009260599A (en) Image display apparatus and electronic camera
JP7120235B2 (en) IMAGING DEVICE, CONTROL METHOD OF IMAGING DEVICE, AND PROGRAM
JP2019144535A (en) Imaging device
JP5145747B2 (en) Imaging apparatus, camera shake correction method, and program
JP2012123092A (en) Imaging apparatus and program
JP6489350B2 (en) Image blur correction apparatus and image blur correction method in the image blur correction apparatus
JP6312519B2 (en) Imaging device, control method thereof, and program
JP6544106B2 (en) Imaging device
JP2024021407A (en) Imaging device and its control method and program
JP2014147028A (en) Imaging apparatus and imaging apparatus control method
KR20140124431A (en) Photographing apparatus
JP5471263B2 (en) Imaging apparatus, imaging method, and computer program
JP2013175811A (en) Electronic apparatus, image pickup device, and electronic apparatus control program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160906

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20161101

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170530

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170602

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20170717

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170721

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170809

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170823

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170920

R150 Certificate of patent or registration of utility model

Ref document number: 6222520

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250