JP2010193067A - Image capturing apparatus, method and program for controlling the same - Google Patents

Image capturing apparatus, method and program for controlling the same Download PDF

Info

Publication number
JP2010193067A
JP2010193067A JP2009034028A JP2009034028A JP2010193067A JP 2010193067 A JP2010193067 A JP 2010193067A JP 2009034028 A JP2009034028 A JP 2009034028A JP 2009034028 A JP2009034028 A JP 2009034028A JP 2010193067 A JP2010193067 A JP 2010193067A
Authority
JP
Japan
Prior art keywords
acceleration
threshold
waveform
image
detected
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.)
Granted
Application number
JP2009034028A
Other languages
Japanese (ja)
Other versions
JP2010193067A5 (en
JP5495579B2 (en
Inventor
Teruhiko Ueyama
輝彦 植山
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 JP2009034028A priority Critical patent/JP5495579B2/en
Priority to US12/704,718 priority patent/US9363428B2/en
Priority to CN2010101171521A priority patent/CN101827213B/en
Publication of JP2010193067A publication Critical patent/JP2010193067A/en
Publication of JP2010193067A5 publication Critical patent/JP2010193067A5/en
Application granted granted Critical
Publication of JP5495579B2 publication Critical patent/JP5495579B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

<P>PROBLEM TO BE SOLVED: To solve the problem that erroneous detection may occur since each user performs an operation with different strength and motion size when using an operation means for detecting a prescribed motion by acceleration detection. <P>SOLUTION: An image capturing apparatus includes a display section for displaying an optical image formed by an image sensor as an image, a change means for changing the image to be displayed on the display section, an acceleration detection means for detecting an acceleration component of deflection for output, and a motion detection means for detecting deflection given by an operator to change the image to be displayed on the display section from an output of the acceleration detection means. The motion detection means detects that an acceleration signal reaches and exceeds the first threshold, and then detects deflection given by the operator and changes an image to be displayed on the display section when the acceleration signal reaches a second threshold having a sign differing from that of the first threshold and an absolute value larger than the first threshold, and then reaches a third threshold having a sign identical to that of the second threshold and an absolute value larger than the second threshold. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、デジタルカメラなどの撮像装置における操作性を改善する技術に関するものである。   The present invention relates to a technique for improving operability in an imaging apparatus such as a digital camera.

デジタルカメラの操作方法としては、従来からボタンやダイアルといった操作部材とLCDのような表示装置を組み合わせてメニュー選択などによって操作してきた。   Conventionally, a digital camera has been operated by selecting a menu by combining an operation member such as a button or a dial with a display device such as an LCD.

しかし近年では機能が増える傾向にあり、操作方法が複雑になってしまうことで、逆にカメラの機能が使われなくなっているという課題がある。そこで、直感的な操作方法として近年注目されているのが加速度検出による動き検出を用いた操作方法が挙げられる。カメラを振るという動作に機能を割り当てることで、簡単にカメラの機能を使用することが出来るようになる技術が知られている。   However, in recent years, functions tend to increase, and the operation method becomes complicated, so that there is a problem that the functions of the camera are not used. Therefore, an operation method using motion detection by acceleration detection is recently attracting attention as an intuitive operation method. There is known a technique that allows a camera function to be easily used by assigning a function to an operation of shaking the camera.

図16は撮像装置の表示部を見ながら撮像装置を振る時の振る動作を表した図である。   FIG. 16 is a diagram illustrating a shaking operation when the imaging device is shaken while looking at the display unit of the imaging device.

人がカメラを持つ場合、大抵の場合シャッターボタンとの関係上、右手によって水平な状態(図16の(1)の状態)保持する状態が基本的な持ち方となる。そしてカメラを振る場合は、その持ち方のまま、手首またはひじを回転中心として振り上げたり振り下ろしたりという動作になることが考えられる。このため、この撮像装置を下に振り下げようとすると、一旦水平な状態から振り上げ、振り上げた後に振り下げるという動作になる。   When a person has a camera, the state in which the person holds the camera in a horizontal state (the state (1) in FIG. 16) with the right hand is the basic way of holding because of the relationship with the shutter button. When the camera is shaken, it is conceivable that the camera can be swung up or down with the wrist or elbow as the center of rotation while keeping the way it is held. For this reason, when trying to swing down the imaging apparatus, the operation is to swing up from a horizontal state, swing up and then swing down.

その際の撮像装置は振り上げる際の動作は、図16の(1)状態のように地面と水平の状態から、図16の(2)の状態を経て、図16の(3)の状態へ移行する。また、振り下げる際の動作は、振り上げの動作とは逆に、図16の(3)の状態から図16の(1)の状態へと移行する。しかし、カメラを右手によって水平な状態(図16の(1)の状態)保持する状態が基本的な持ち方であるため、カメラを下の方向に振る(本動作)場合、本動作前に準備動作として一旦振り上げてから本動作に入ることが多い。また、逆に上方向に振り上げる際にも、勢いをつけるために一旦下方向にカメラを傾けてから振り上げることが多い。   In this case, the image pickup apparatus swings up from the state horizontal to the ground as shown in FIG. 16 (1) to the state shown in FIG. 16 (3) through the state shown in FIG. 16 (2). Transition. Further, the operation for swinging down shifts from the state of (3) in FIG. 16 to the state of (1) in FIG. 16, contrary to the operation of swinging up. However, since holding the camera in a horizontal state (the state (1) in FIG. 16) with the right hand is the basic way to hold it, prepare it before the main operation when shaking the camera downward (the main operation). In many cases, this operation is started after it is swung up as an operation. On the other hand, when swinging upward, the camera is often tilted downward once in order to gain momentum.

特許文献1には、加速度を検出するそれぞれの軸方向にカメラを振ることで、異なる機能を割り当てることが可能になると開示されている。特許文献1の発明は、±X、±Y、±Z方向に検知できる加速度センサを有するカメラであって、各軸の加速度検出量が閾値を超えた時に、各軸に割り振られた動作を実行するというものである。   Patent Document 1 discloses that different functions can be assigned by shaking the camera in each axial direction for detecting acceleration. The invention of Patent Document 1 is a camera having an acceleration sensor that can detect in the ± X, ± Y, and ± Z directions, and executes an operation assigned to each axis when the acceleration detection amount of each axis exceeds a threshold value It is to do.

特登録04009887号公報Japanese Patent Registration No. 04008787

しかしながら、加速度を検出することが可能なカメラにおいて、加速度を検出する軸方向に正確にカメラを振ることは困難であり、人の腕の構造上、ひじや手首といった間接を中心とした回転運動の影響を受けてしまう。これによって加速度を検出する別方向に加速度が発生することが多い。   However, in a camera capable of detecting acceleration, it is difficult to shake the camera accurately in the axial direction for detecting acceleration, and due to the structure of a person's arm, rotational motion centering on the elbows and wrists is not possible. It will be affected. As a result, acceleration often occurs in a different direction in which acceleration is detected.

そのため、従来のようにただ加速度が閾値を越えたか判定する検出法を用いると、本動作とは別方向への振りである動作を本動作として検出してしまい、検出精度に課題があった。   For this reason, if a detection method for determining whether the acceleration exceeds the threshold value as in the conventional case, an operation that is a swing in a direction different from the main operation is detected as the main operation, and there is a problem in detection accuracy.

また、加速度を検出することが可能なカメラにおいて、従来の本動作の波形を検出した後にカメラを振る本動作をした時に割り当てられた機能を実行するのでは、振った時と機能の実行時との間にタイムラグが生じる。このタイムラグによって、撮像装置の直感的な操作方法を実現しようとするにも関らず、使用しにくいと言った課題があった
本発明は、上記の問題点に鑑みてなされたものであり、実際の操作方法に応じた加速度波形の特徴を用いて検出を行うことにより、高い検出精度で所定の動作を検出可能とし、直感的な操作方法を実現する技術を提供するものである。
In addition, in a camera capable of detecting acceleration, the function assigned when performing the main operation of shaking the camera after detecting the waveform of the conventional main operation is executed when the camera is shaken and when the function is executed. There is a time lag between Due to this time lag, despite trying to realize an intuitive operation method of the imaging device, there was a problem that it was difficult to use the present invention, which was made in view of the above problems, By performing detection using the characteristics of the acceleration waveform according to the actual operation method, it is possible to detect a predetermined operation with high detection accuracy and provide a technique for realizing an intuitive operation method.

本発明は、以上の課題を解決するものであり、光学像を電気的な信号に変換する撮像素子を有する撮像装置であって、前記撮像素子にて結像した光学像を画像として表示する表示部と、前記表示部に表示する画像を変更する変更手段と、前記撮像装置に加わる振れの加速成分を検出して出力する加速度検出手段と、前記加速度検出手段の出力から、前記変更手段によって前記表示部に表示する画像を変更するために操作者によって加えられた振れを検出する動作検出手段とを有し、前記動作検出手段は、前記加速度信号が第1の閾値に達し、かつ前記第1の閾値を超えたことを検出した後に前記第1の閾値と異符号かつ前記第1の閾値よりも絶対値が大きい第2の閾値に達した後に、前記加速度信号が前記第2の閾値と同じ符号かつ前記第2の閾値よりも絶対値が小さい第3の閾値に達すると、前記操作者によって加えられた振れを検出し、前記変更手段は、前記動作検出手段の検出結果に応じて前記表示部に表示する画像を変更することを特徴とする。   The present invention solves the above-described problems, and is an image pickup apparatus having an image pickup device that converts an optical image into an electrical signal, and displays the optical image formed by the image pickup device as an image. A change unit that changes an image displayed on the display unit, an acceleration detection unit that detects and outputs an acceleration component of a shake applied to the imaging device, and an output from the acceleration detection unit. Motion detection means for detecting a shake applied by an operator to change an image displayed on the display unit, wherein the motion detection means has the acceleration signal reach a first threshold value, and the first The acceleration signal is the same as the second threshold value after reaching a second threshold value that is different from the first threshold value and has a larger absolute value than the first threshold value after detecting that the threshold value is exceeded. Sign and said second When the third threshold value, which is smaller than the threshold value, is reached, the shake applied by the operator is detected, and the changing unit displays an image to be displayed on the display unit according to the detection result of the motion detecting unit. It is characterized by changing.

本発明によれば、検出装置や検出装置を搭載した携帯機器、撮像装置などを振ったことを正確に検知することを可能とし、従来よりも直感的で分かりやすい操作系を提供するものである。   According to the present invention, it is possible to accurately detect that a detection device, a portable device equipped with the detection device, an imaging device, or the like is shaken, and to provide an intuitive and easy-to-understand operation system. .

本発明の実施例に係わる撮像装置を示すシステム構成図である。1 is a system configuration diagram illustrating an imaging apparatus according to an embodiment of the present invention. 撮像装置の傾きに応じて重力加速度が変化する具体的な一例を説明する図である。It is a figure explaining a specific example which gravity acceleration changes according to the inclination of an imaging device. (a)本発明に係る撮像装置において、振り上げ動作によって得られる加速度波形の具体的な一例を説明する図である。(b)本発明に係る撮像装置において、振り下げ動作によって得られる加速度波形の具体的な一例を説明する図である。(c)本発明に係る撮像装置において、振り上げた後に振り下げた動作によって得られる加速度波形の具体的な一例を説明する図である。(A) In the imaging device which concerns on this invention, it is a figure explaining a specific example of the acceleration waveform obtained by swing-up operation. (B) In the imaging device which concerns on this invention, it is a figure explaining a specific example of the acceleration waveform obtained by swing-down operation. (C) In the imaging device which concerns on this invention, it is a figure explaining a specific example of the acceleration waveform obtained by the operation | movement swung down after swinging up. 本発明に係る撮像装置において、本発明による振り動作によって得られる加速度波形の具体的な一例を説明する図である。It is a figure explaining a specific example of the acceleration waveform obtained by the swing operation | movement by this invention in the imaging device which concerns on this invention. 本発明の実施例1から3に係る撮像装置において、振り動作検出の処理の流れを示すフローチャート。5 is a flowchart showing a flow of processing for detecting a swing motion in the imaging apparatus according to Embodiments 1 to 3 of the present invention. 本発明の実施例1に係る撮像装置において、図5のステップS100の処理の流れを示すフローチャート。6 is a flowchart showing the flow of processing in step S100 of FIG. 5 in the imaging apparatus according to Embodiment 1 of the present invention. 本発明の実施例1に係る撮像装置において、図5のステップS101の処理の流れを示すフローチャート。6 is a flowchart showing the flow of processing in step S101 of FIG. 5 in the imaging apparatus according to Embodiment 1 of the present invention. 本発明の実施例1に係る撮像装置において、図5のステップS102の処理の流れを示すフローチャート。6 is a flowchart showing the flow of processing in step S102 of FIG. 5 in the imaging apparatus according to Embodiment 1 of the present invention. 本発明の実施例2に係る撮像装置において、図5のステップS100の処理の流れを示すフローチャート。6 is a flowchart showing the flow of processing in step S100 of FIG. 5 in the imaging apparatus according to Embodiment 2 of the present invention. 本発明の実施例2に係る撮像装置において、図5のステップS101の処理の流れを示すフローチャート。6 is a flowchart showing the flow of processing in step S101 of FIG. 5 in the imaging apparatus according to Embodiment 2 of the present invention. 本発明の実施例3に係る撮像装置において、図5のステップS101の処理の流れを示すフローチャート。6 is a flowchart showing a flow of processing in step S101 in FIG. 5 in the imaging apparatus according to Embodiment 3 of the present invention. 本発明の実施例4と5に係る撮像装置において、振り動作検出の処理の流れを示すフローチャート。7 is a flowchart showing a flow of processing for detecting a swinging motion in an imaging apparatus according to Embodiments 4 and 5 of the present invention. 本発明の実施例4に係る撮像装置において、図12のステップS101の処理の流れを示すフローチャート。12 is a flowchart showing the flow of processing in step S101 of FIG. 12 in the imaging apparatus according to Embodiment 4 of the present invention. 本発明の実施例4に係る撮像装置において、図12のステップS104の処理の流れを示すフローチャート。12 is a flowchart showing the flow of processing in step S104 of FIG. 12 in the imaging apparatus according to Embodiment 4 of the present invention. 本発明の実施例5に係る撮像装置において、図12のステップS101の処理の流れを示すフローチャート。12 is a flowchart showing the flow of processing in step S101 of FIG. 12 in the imaging apparatus according to Embodiment 5 of the present invention. 振り動作の具体的な一例を説明する図である。It is a figure explaining a specific example of a swing operation | movement.

図1は本発明の実施例に係わる撮像装置を示すシステム構成図である。図1において、10は撮像装置1の光学系であり、ズームレンズ11a、焦点調節レンズ11b、シャッタ12、絞りユニット13などによって構成される。14は、光学系10の光軸を表す。21は光学像を電気信号に変換する撮像素子、22は撮像素子21にて結像した光学像のアナログ信号出力をデジタル信号に変換するA/D変換器(アナログ トゥ ディジタル変換器)である。24は撮像素子21、A/D変換器22、D/A変換器27にクロック信号や制御信号を供給するタイミング発生部であり、メモリ制御部25及びシステム制御部50により制御される。   FIG. 1 is a system configuration diagram showing an imaging apparatus according to an embodiment of the present invention. In FIG. 1, reference numeral 10 denotes an optical system of the image pickup apparatus 1, which includes a zoom lens 11a, a focus adjustment lens 11b, a shutter 12, a diaphragm unit 13, and the like. Reference numeral 14 denotes an optical axis of the optical system 10. An image sensor 21 converts an optical image into an electrical signal, and an A / D converter (analog-to-digital converter) 22 converts an analog signal output of the optical image formed by the image sensor 21 into a digital signal. A timing generator 24 supplies a clock signal and a control signal to the image sensor 21, A / D converter 22, and D / A converter 27, and is controlled by the memory control unit 25 and the system control unit 50.

23は画像処理部であり、A/D変換器22からのデータ或いはメモリ制御部25からのデータに対して所定の画素補間処理や色変換処理やガンマ処理を行う。また、画像処理部23では、撮像した画像データを用いて所定の処理を行い、得られた結果に基づいてシステム制御部50が露光制御部41、フォーカス制御部42に対して制御を行う。つまり、コントラスト方式のAF(オートフォーカス)処理、AE(自動露出)処理等を行う。さらに、画像処理部23では、撮像した画像データを用いて所定の演算処理を行い、得られた演算結果に基づいてAWB(オートホワイトバランス)処理も行うことも可能である。なお、露光制御部の具体的な演算処理については後に詳述する。   An image processing unit 23 performs predetermined pixel interpolation processing, color conversion processing, and gamma processing on the data from the A / D converter 22 or the data from the memory control unit 25. Further, the image processing unit 23 performs predetermined processing using the captured image data, and the system control unit 50 controls the exposure control unit 41 and the focus control unit 42 based on the obtained result. That is, contrast AF (autofocus) processing, AE (automatic exposure) processing, and the like are performed. Further, the image processing unit 23 can perform a predetermined calculation process using the captured image data, and can also perform an AWB (auto white balance) process based on the obtained calculation result. The specific calculation processing of the exposure control unit will be described in detail later.

25はメモリ制御部であり、A/D変換器22、画像処理部23、タイミング発生部24、画像表示メモリ26、D/A変換器27、圧縮伸長部28、内部メモリ29を制御する。A/D変換器22のデータが画像処理部23、メモリ制御部25を介して、或いはA/D変換器22のデータが直接メモリ制御部25を介して、画像表示メモリ26或いは内部メモリ29に書き込まれる。26は画像表示メモリ、27はD/A変換器である。7はTFT,LCD等から成る画像表示部であり、画像表示メモリ26に書き込まれた表示用の画像データはD/A変換器27を介して画像表示部7により表示される。画像表示部7を用いて撮像した画像データを逐次表示すれば、電子ファインダ機能を実現することが可能である。また、画像表示部7には画像が表示されるだけでなく、画像表示と共に、もしくは画像を表示することなく、撮像装置1の各種設定に関する様々なメニュー項目も表示する。ユーザは画像表示部7に表示されたメニュー項目を、操作スイッチ5を操作しながら適宜選択することにより、指定した項目の設定を変更することができる。   A memory control unit 25 controls the A / D converter 22, the image processing unit 23, the timing generation unit 24, the image display memory 26, the D / A converter 27, the compression / decompression unit 28, and the internal memory 29. The data of the A / D converter 22 is sent to the image display memory 26 or the internal memory 29 via the image processing unit 23 and the memory control unit 25, or the data of the A / D converter 22 is directly sent to the memory control unit 25. Written. 26 is an image display memory, and 27 is a D / A converter. Reference numeral 7 denotes an image display unit including a TFT, an LCD, and the like. Display image data written in the image display memory 26 is displayed on the image display unit 7 via a D / A converter 27. If image data captured using the image display unit 7 is sequentially displayed, an electronic finder function can be realized. The image display unit 7 not only displays an image, but also displays various menu items related to various settings of the imaging apparatus 1 together with or without displaying the image. The user can change the setting of the designated item by appropriately selecting the menu item displayed on the image display unit 7 while operating the operation switch 5.

28は適応離散コサイン変換(ADCT)等により画像データを圧縮伸長する圧縮伸長部であり、内部メモリ29に格納された画像を読み込んで圧縮処理或いは伸長処理を行い、処理を終えたデータを内部メモリ29に書き込む。29は撮影した静止画像や動画像を格納するための内部メモリであり、所定枚数の静止画像や所定時間の動画像を格納するのに十分な記憶量を備えている。これにより、複数枚の静止画像を連続して撮影する連写撮影やパノラマ撮影の場合にも、高速かつ大量の画像書き込みを内部メモリ29に対して行うことが可能となる。また、内部メモリ29はシステム制御部50の作業領域としても使用することが可能である。   A compression / decompression unit 28 compresses and decompresses image data by adaptive discrete cosine transform (ADCT) or the like, reads an image stored in the internal memory 29, performs compression processing or decompression processing, and stores the processed data in the internal memory. Write to 29. Reference numeral 29 denotes an internal memory for storing captured still images and moving images, and has a sufficient storage capacity for storing a predetermined number of still images and a predetermined time of moving images. As a result, even in the case of continuous shooting or panoramic shooting in which a plurality of still images are continuously shot, it is possible to write a large amount of images to the internal memory 29 at high speed. The internal memory 29 can also be used as a work area for the system control unit 50.

41はシャッタ12や絞りユニット13を制御する露光制御部であり、ストロボ制御部8を介して制御されるストロボ9と連携することにより、ストロボ撮影にも対応する。42は焦点調節レンズ11bを制御するフォーカス制御部であり、43はスームレンズ11aによってズーミングを制御するズーム制御部であり、44はレンズの前面に配置される保護部材であるバリア2の動作を制御するバリア制御部である。   Reference numeral 41 denotes an exposure control unit that controls the shutter 12 and the aperture unit 13, and supports flash photography by cooperating with the strobe 9 controlled via the strobe control unit 8. Reference numeral 42 denotes a focus control unit that controls the focusing lens 11b, 43 denotes a zoom control unit that controls zooming by the smooth lens 11a, and 44 controls the operation of the barrier 2 that is a protective member disposed on the front surface of the lens. It is a barrier control unit.

9はストロボであり、ストロボ制御部8によって制御されることにより、AF補助光の投光機能、ストロボ調光機能にも対応する。50は撮像装置1全体を制御するシステム制御部であり、45はシステム制御部50の動作用の定数、変数、プログラム等を一時的に記憶する揮発性メモリである。   Reference numeral 9 denotes a strobe, which is controlled by the strobe control unit 8 and corresponds to the AF auxiliary light projection function and the strobe dimming function. Reference numeral 50 denotes a system control unit that controls the entire imaging apparatus 1, and reference numeral 45 denotes a volatile memory that temporarily stores constants, variables, programs, and the like for operation of the system control unit 50.

46は電気的に消去・記録可能な不揮発性メモリであり、例えばEEPROM等が用いられる。撮像装置1の動作時に必要な定数、変数、プログラム等を、撮像装置1の非動作時にも失われないように記録している。撮像装置1の動作時には、システム制御部50の呼び出し指示に応じて記録されている定数、変数、プログラム等をシステム制御部50に送る。システム制御部は必要に応じて、呼び出した定数、変数、プログラム等を、適宜利用できるようにメモリ45に展開する。   Reference numeral 46 denotes an electrically erasable / recordable nonvolatile memory such as an EEPROM. Constants, variables, programs, and the like necessary for the operation of the imaging apparatus 1 are recorded so that they are not lost even when the imaging apparatus 1 is not operating. During operation of the imaging apparatus 1, constants, variables, programs, and the like that are recorded in response to a call instruction from the system control unit 50 are sent to the system control unit 50. The system control unit expands the called constants, variables, programs, and the like in the memory 45 so that they can be used as needed.

加速度センサ83はX−Y軸またはX−Y−Z軸の振動検出センサであり、撮像装置1に加わる振れの加速成分(加速度)を検出する。この加速度センサ83は、撮像装置1に加わる振れの加速成分(加速度)を検出する。この加速度センサ83は、ジャイロセンサや姿勢センサなど、振動検出や姿勢検出が可能なセンサであれば1つのセンサであっても、複数のセンサを組み合わせて使用しても構わない。80は加速度検出センサ制御部であり、動作検出部81と姿勢検出部82で構成される。加速度センサ83からの加速度信号を検出して撮像装置1の姿勢状態の検出を行う。また、動作検出部81によって所定の振動の判定や、静止状態の判定を行う。更に、姿勢検出部82において所定の姿勢であることを検出した場合は、システム制御部を介して操作スイッチ5やレリーズスイッチ3、モードダイヤル4といった操作部材からの操作入力を無効にする。また、加速度検出センサ制御部80は検出周期制御部84に対して加速度センサの検出周期を制御している。   The acceleration sensor 83 is an XY-axis or XY-Z-axis vibration detection sensor, and detects an acceleration component (acceleration) of shake applied to the imaging apparatus 1. The acceleration sensor 83 detects an acceleration component (acceleration) of shake applied to the imaging device 1. The acceleration sensor 83 may be a single sensor or a combination of a plurality of sensors as long as the sensor can detect vibration and posture, such as a gyro sensor and a posture sensor. Reference numeral 80 denotes an acceleration detection sensor control unit, which includes an operation detection unit 81 and an attitude detection unit 82. An acceleration signal from the acceleration sensor 83 is detected to detect the posture state of the imaging apparatus 1. Further, the motion detector 81 determines a predetermined vibration or a stationary state. Further, when the posture detection unit 82 detects that the posture is a predetermined posture, the operation input from the operation members such as the operation switch 5, the release switch 3, and the mode dial 4 is invalidated via the system control unit. Further, the acceleration detection sensor control unit 80 controls the detection cycle of the acceleration sensor with respect to the detection cycle control unit 84.

47はシステム制御部50でのプログラムの実行に応じて、文字、画像、音声等を用いて動作状態やメッセージ等を表示する液晶表示装置等の表示部である。この表示部47は撮像装置1の操作部近辺の視認し易い位置に単数或いは複数個所設置され、例えばLCDやLEDの組み合わせにより構成されている。また、表示部47は、その一部の機能が光学ファインダ6内に設置されていることもある。表示部47では、例えばシャッタスピードや絞り値、露出補正やストロボ発光の設定などを表示する。さらに、表示部47は撮影準備の完了や撮像装置1の静止状態をユーザに対し報知するために撮像装置1の正面(光学レンズ側)に単数または複数個設置されている。   Reference numeral 47 denotes a display unit such as a liquid crystal display device that displays an operation state, a message, and the like using characters, images, sounds, and the like in accordance with execution of a program in the system control unit 50. The display unit 47 is installed in a single or a plurality of positions near the operation unit of the image pickup apparatus 1 so as to be easily visible, and is configured by a combination of an LCD and an LED, for example. In addition, the display unit 47 may have a part of the function installed in the optical viewfinder 6. The display unit 47 displays, for example, shutter speed, aperture value, exposure correction, strobe light emission setting, and the like. Further, one or a plurality of display units 47 are installed on the front surface (optical lens side) of the image pickup apparatus 1 in order to notify the user of the completion of shooting preparation and the stationary state of the image pickup apparatus 1.

3,4および5はシステム制御部50の各種の動作指示を入力するための操作部であり、スイッチやダイアル、タッチパネル、音声認識装置等の単数或いは複数の組み合わせで構成される。   Reference numerals 3, 4 and 5 are operation units for inputting various operation instructions of the system control unit 50, and are configured by a single or a combination of a switch, a dial, a touch panel, a voice recognition device, and the like.

3はレリーズスイッチであり、具体的には2段階に押し込むことができるように構成されている。ユーザは、1段目までの押し込み操作である半押し操作(SW1のオン)で撮影準備指示を行い、2段目までの押し込み操作である全押し(SW2のオン)操作で撮影指示を行うことができる。撮影準備指示であるSW1のオンで、システム制御部50は、AF(オートフォーカス)処理や、AE(自動露出)処理などの撮影準備動作を行うように制御する。そして、撮影指示であるSW2のオンで、システム制御部50は、露光制御部41を介してシャッタ12や絞りユニット13を駆動して、被写体画像を撮像素子21により取り込む制御を行う。具体的には、撮像素子21を蓄積状態にして、シャッタ12を開閉駆動することで被写体像を露光する。シャッタ12が閉状態に戻って撮像素子21の電荷蓄積を終了した後に、蓄積された電荷を信号として読み出す。システム制御部50およびメモリ制御部25は、撮像素子21から読み出した信号を、A/D変換器22、画像処理部23、圧縮伸張部28および内部メモリ29を用いて一連の現像処理や画像処理を行って画像データを生成する。そして、生成された画像データは、撮像装置1側のインタフェース51とコネクタ52、および着脱可能である記録媒体60側のコネクタ61とインタフェース62を介して、記録媒体60の記録部63に画像ファイルとして記録される。記録部60としては、ハードディスクやフラッシュメモリなどの、複数枚の画像データを記録するのに十分な容量を有するものが適している。なお、53は撮像装置1に対して記録媒体60が装着されているか否かを検出する記録媒体着脱検出部である。   A release switch 3 is specifically configured to be pushed in two stages. The user gives a shooting preparation instruction by a half-press operation (SW1 on) that is a push operation up to the first stage, and gives a shooting instruction by a full press (SW2 on) operation that is a push operation up to the second stage. Can do. When the photographing preparation instruction SW1 is turned on, the system control unit 50 performs control so as to perform photographing preparation operations such as AF (autofocus) processing and AE (automatic exposure) processing. When the image capturing instruction SW2 is turned on, the system control unit 50 drives the shutter 12 and the aperture unit 13 via the exposure control unit 41 to perform control for capturing the subject image by the image sensor 21. Specifically, the subject image is exposed by driving the shutter 12 to open and close while the image sensor 21 is in the accumulation state. After the shutter 12 returns to the closed state and the charge accumulation of the image sensor 21 is completed, the accumulated charge is read out as a signal. The system control unit 50 and the memory control unit 25 use the A / D converter 22, the image processing unit 23, the compression / decompression unit 28, and the internal memory 29 to perform a series of development processing and image processing on the signal read from the image sensor 21. To generate image data. The generated image data is stored as an image file in the recording unit 63 of the recording medium 60 via the interface 51 and connector 52 on the imaging device 1 side, and the connector 61 and interface 62 on the recording medium 60 side that can be attached and detached. To be recorded. As the recording unit 60, a recording unit having a sufficient capacity for recording a plurality of pieces of image data, such as a hard disk or a flash memory, is suitable. Reference numeral 53 denotes a recording medium attachment / detachment detection unit that detects whether or not the recording medium 60 is attached to the imaging apparatus 1.

4はモードダイアルスイッチであり、電源オフ、撮影モード、再生モード、PC接続モード等の各機能モードを切り換えて設定することができる。5は各種ボタンやタッチパネル等からなる操作スイッチであり、メニューボタン、セットボタン、ストロボ設定ボタン等が設けられている。   Reference numeral 4 denotes a mode dial switch, which can be set by switching each function mode such as power-off, shooting mode, playback mode, PC connection mode, and the like. Reference numeral 5 denotes an operation switch including various buttons, a touch panel, and the like, and a menu button, a set button, a strobe setting button, and the like are provided.

6は光学ファインダであり、直接的に被写体を確認することが可能である。この場合、画像表示部7による電子ファインダ機能を使用すること無しに、光学ファインダ6のみを用いて撮影を行える。また、光学ファインダ6内には表示部47の一部を配設して、例えば、シャッタスピードや絞り値などを確認できるようにしても良い。   Reference numeral 6 denotes an optical viewfinder, which can directly check the subject. In this case, shooting can be performed using only the optical viewfinder 6 without using the electronic viewfinder function of the image display unit 7. In addition, a part of the display unit 47 may be provided in the optical viewfinder 6 so that, for example, the shutter speed and the aperture value can be confirmed.

48は電源制御部であり、電池検出回路、DC/DCコンバータ、通電するブロックを切り換えるスイッチ回路等により構成されている。そして、電池の装着の有無、電池の種類、電池残量の検出を行い検出結果をシステム制御部50に送る。また、システム制御部50の指示に基づいて、必要な電力を適宜撮像装置1の各部へ供給する。   A power control unit 48 includes a battery detection circuit, a DC / DC converter, a switch circuit that switches a block to be energized, and the like. Then, the presence / absence of a battery, the type of battery, and the remaining battery level are detected, and the detection result is sent to the system control unit 50. Further, necessary power is appropriately supplied to each unit of the imaging apparatus 1 based on an instruction from the system control unit 50.

70は供給電源であり、コネクタ71と撮像装置1側のコネクタ49を介して、電源部72の電力を撮像装置1側に供給する。電源部72は、アルカリ電池やリチウム電池等の一次電池、またはNiCd電池やNiMH電池やLi電池等の二次電池、ACアダプター等のいずれか、もしくはこれらの組合わせにより構成される。   A power supply 70 supplies power from the power supply unit 72 to the imaging device 1 side via the connector 71 and the connector 49 on the imaging device 1 side. The power supply unit 72 is configured by either 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, or a combination thereof.

54は通信制御部であり、USBやIEEE1394、LAN、無線通信等の各種通信機能をサポートする。55は、通信部54により撮像装置1を他の機器と接続するためのコネクタ、あるいは無線通信をするためのアンテナである。   A communication control unit 54 supports various communication functions such as USB, IEEE 1394, LAN, and wireless communication. Reference numeral 55 denotes a connector for connecting the imaging device 1 to another device by the communication unit 54 or an antenna for wireless communication.

次に図2と図4を用いて本発明の一実施例としての撮像装置を振った動作を加速度波形によって検出する方法について説明する。   Next, a method for detecting an operation of shaking an imaging apparatus as an embodiment of the present invention using an acceleration waveform will be described with reference to FIGS.

撮像装置に生じる加速度には、地球の重力による重力加速度と動きによって発生する加速と減速による加速度が挙げられる。重力加速度は常に物体に対してかかっているものであり、自由落下したときには0になる。一方、物体が動く時に生じる加速度には、進行方向を正方向としたときに、物体が動き始める時(加速時)に発生する正の加速度成分を持った加速度と、物体が止まる時(減速時)に発生する負の加速度成分を持った加速度が発生する。この際、加速度波形では、加速時には正の向きを持った山が現れ、また減速時には負の向きを持った山が現れる。即ち、加速時と減速時にはそれぞれ逆向きなって波形の山が現れる。また等速運動している間は、加速度は発生しないため0である。   Examples of the acceleration generated in the imaging device include acceleration due to gravity caused by the earth's gravity and acceleration caused by movement and acceleration caused by deceleration. Gravitational acceleration is always applied to an object, and becomes zero when it falls freely. On the other hand, the acceleration that occurs when an object moves includes acceleration with a positive acceleration component that occurs when the object starts moving (acceleration) and when the object stops (decelerates) when the traveling direction is positive. ), An acceleration having a negative acceleration component is generated. At this time, in the acceleration waveform, a mountain having a positive direction appears during acceleration, and a mountain having a negative direction appears during deceleration. That is, when accelerating and decelerating, the waveform peaks in opposite directions. In addition, during the constant speed movement, no acceleration is generated, so the value is zero.

ここで、撮像装置を振ったときにはどのような加速度波形になるのかを例を挙げて説明する。   Here, an example of an acceleration waveform when the imaging apparatus is shaken will be described.

図2は、本実施例の撮像装置が図16の(1)状態のように地面と水平の状態にあった場合と図16の(3)の状態のように振り上げた状態での座標系と、X軸方向とY軸方向への加速度を検出する加速度センサを搭載した時の、重力加速度の検出を表した図である。   2 shows a coordinate system in the case where the imaging apparatus of the present embodiment is in a horizontal state with respect to the ground as in the state (1) in FIG. 16 and a state in which the imaging apparatus is swung up as in the state (3) in FIG. FIG. 5 is a diagram illustrating detection of gravitational acceleration when an acceleration sensor that detects acceleration in the X-axis direction and the Y-axis direction is mounted.

撮像装置の縦方向をY軸、横方向をX軸とする。Y軸は図2(a)のように、光軸と垂直をなす平面内においての鉛直方向であり、上向きを正とする。同様に、X軸は図2(a)のように、光軸と垂直をなす平面内においてY軸と垂直となる方向であり、表示部7を前にして右向きを正とする。これは、通常の撮像装置が右手でシャッタ等の操作部材を操作するようになっているため、撮像装置を振る動作は、大抵の場合、右手で持って手首またはひじを回転中心として振り上げたり振り下ろしたりという動作になるからである。よって、左手で操作する用の撮像装置であっても、X軸の正負を逆にすれば同じ効果が得られることになる。   The vertical direction of the imaging apparatus is the Y axis, and the horizontal direction is the X axis. As shown in FIG. 2A, the Y axis is a vertical direction in a plane perpendicular to the optical axis, and the upward direction is positive. Similarly, as shown in FIG. 2A, the X axis is a direction perpendicular to the Y axis in a plane perpendicular to the optical axis, and the right direction with the display unit 7 facing forward is positive. This is because a normal image pickup device operates an operation member such as a shutter with the right hand. In most cases, the operation of shaking the image pickup device is held with the right hand and swings up or down around the wrist or elbow. It is because it becomes the operation of lowering. Therefore, even if the imaging device is operated with the left hand, the same effect can be obtained by reversing the positive and negative of the X axis.

図2(a)は撮像装置が地面に対して水平に配置されている状態である。この状態は、撮像装置の表示部に表示された画像を見る時などに多く用いられる姿勢である。図2(c)は、図2(a)の姿勢における重力加速度の検出を表した図である。この場合、水平な姿勢ではY軸方向に重力加速度が全て発生し、X軸方向には重力加速度の影響を受けないため、静止状態での重力加速度は、X軸方向は0gレベル、Y軸方向は1gレベルになる。   FIG. 2A shows a state where the imaging device is arranged horizontally with respect to the ground. This state is a posture often used when viewing an image displayed on the display unit of the imaging apparatus. FIG. 2C is a diagram showing detection of gravitational acceleration in the posture of FIG. In this case, in a horizontal posture, all gravitational acceleration occurs in the Y-axis direction and is not affected by the gravitational acceleration in the X-axis direction. Therefore, the gravitational acceleration in a stationary state is 0 g level in the X-axis direction and the Y-axis direction. Becomes 1g level.

一方で、図2(b)は撮像装置を地面に対して角度αだけ傾いた状態である。この場合、図2(d)のように、撮像装置を水平からα傾けた角度まで振り上げたときの状態でのX軸の重力加速度は(sinα)gレベルとなり、Y軸の重力加速度は(cosα)gレベルとなる。このため、静止状態であっても、振り上げたときの状態と水平な姿勢との加速度レベルには差が生じることになる。   On the other hand, FIG. 2B shows a state in which the imaging apparatus is inclined by an angle α with respect to the ground. In this case, as shown in FIG. 2D, the X-axis gravitational acceleration when the image pickup apparatus is swung up to an angle inclined by α from the horizontal is (sin α) g level, and the Y-axis gravitational acceleration is (cos α ) It becomes g level. For this reason, even in the stationary state, there is a difference between the acceleration level between the state of swinging up and the horizontal posture.

図3(a)から(c)は、撮像装置を振り上げた時もしくは振り下げた時に加速度センサから検出される加速度のX軸方向成分を表した波形である。横軸が時間、縦軸が撮像装置を水平な姿勢から振り上げた時の加速度成分を表している。   FIGS. 3A to 3C are waveforms showing the X-axis direction component of acceleration detected from the acceleration sensor when the imaging apparatus is swung up or down. The horizontal axis represents time, and the vertical axis represents the acceleration component when the imaging apparatus is swung up from a horizontal posture.

図3(a)は、撮像装置を水平な状態から、振り上げ始めのタイミングで加速し、振り上げ終わりのところで減速して停止した時の、加速度のX軸方向成分の波形を示している。即ち、図16の(1)から図16の(2)を経て、図16の(3)に移行した状態である。この場合、振り始めの加速時にピーク501と、振り終わりの減速時にピーク502において加速度が検出される。座標系においては図2(a)の状態から図2(b)の状態へと移行したので、振り前後の静止中における重力加速度のX軸方向成分は、図2(c)のように0gレベルから図2(d)のように(sinα)gレベルに移行する。   FIG. 3A shows the waveform of the X-axis direction component of the acceleration when the imaging apparatus is accelerated from the horizontal state at the start timing of swinging up, decelerated at the end of swinging up and stopped. That is, the state is shifted from (1) in FIG. 16 to (3) in FIG. 16 through (2) in FIG. In this case, the acceleration is detected at the peak 501 at the acceleration of the swing start and at the peak 502 at the deceleration of the swing end. In the coordinate system, since the state shown in FIG. 2 (a) is shifted to the state shown in FIG. 2 (b), the X-axis direction component of gravitational acceleration before and after swinging is 0 g level as shown in FIG. 2 (c). To (sin α) g level as shown in FIG.

また、図3(b)は、撮像装置を振り上げた状態から加速して振り下ろし、水平位置へ振り下ろしたところで減速して停止した時の、加速度センサから検出される加速度のX軸成分の波形を示している。即ち、図16の(3)から図16の(2)を経て、図16の(1)に移行した状態である。この場合、加速度は振り始めの加速時にピーク503が、振り終わりの減速時にピーク504が検出される。座標系においては図2(b)の状態から図2(a)の状態へと移行したので、振り前後の静止中における重力加速度のX軸方向成分は、図2(d)のように(sinα)gレベルから図2(c)のように0gレベルに移行する。   FIG. 3B shows the waveform of the X-axis component of the acceleration detected from the acceleration sensor when the imaging device is accelerated and swung down from a state where it has been swung up, decelerated and stopped when swung down to a horizontal position. Is shown. That is, the state is shifted from (3) in FIG. 16 to (1) in FIG. 16 through (2) in FIG. In this case, a peak 503 is detected at the acceleration at the start of the swing, and a peak 504 is detected at the deceleration at the end of the swing. Since the coordinate system has shifted from the state of FIG. 2B to the state of FIG. 2A, the X-axis direction component of the gravitational acceleration during the stationary state before and after swinging is expressed as (sin α ) Transition from the g level to the 0 g level as shown in FIG.

そして、実際に撮像装置を振り上げた後に振り下げる際の加速度波形は、図3(c)に示すように、ちょうど図3(a)と図3(b)の加速度波形を組み合わせたような波形になる。図3(c)のピーク505は振り上げ動作を実行した時の加速によって表れる加速度のピークである。そしてピーク506は、振り上げが終わり、振り下げに入ろうとしている状態での、振り上げ時の減速と振り下げ時の加速が合わさって表れる加速度のピークである。そして、ピーク507は振り下ろしを行った際の、減速時に表れる加速度のピーク507である。このピーク505を第一の加速度波形、ピーク506を第2の加速度波形、ピーク507を第3の加速度波形とする。   The acceleration waveform when the image pickup apparatus is actually swung up and then lowered is a waveform that is a combination of the acceleration waveforms of FIGS. 3 (a) and 3 (b), as shown in FIG. 3 (c). Become. A peak 505 in FIG. 3C is an acceleration peak that appears due to acceleration when the swing-up operation is executed. A peak 506 is a peak of acceleration that appears when the deceleration at the time of swinging up and the acceleration at the time of swinging down are combined in a state where the swinging is finished and the swinging is about to be started. A peak 507 is an acceleration peak 507 that appears during deceleration when swinging down. The peak 505 is a first acceleration waveform, the peak 506 is a second acceleration waveform, and the peak 507 is a third acceleration waveform.

ピーク506は重力加速度の影響を含んでいるため、重力加速度分だけピークが大きくなる傾向があり、加速度によって撮像装置を振る動作の検出に有効に利用することができる。また、図3(c)は一旦振り上げてから振り下ろす動作の加速度波形を示しているが、一旦振り下げてから振り上げる動作の場合は図3(c)の波形に対して逆位相の波形になり、静止時の出力が(sinα)gレベルとなる。   Since the peak 506 includes the influence of gravitational acceleration, the peak tends to increase by the amount corresponding to the gravitational acceleration, and can be effectively used to detect the motion of shaking the imaging device by the acceleration. FIG. 3 (c) shows the acceleration waveform of the operation of swinging up and then swinging down. In the case of the operation of swinging up and swinging down, the waveform has an opposite phase to the waveform of FIG. 3 (c). Thus, the stationary output becomes (sin α) g level.

図4は図3(c)のように実際に撮像装置を振り下ろしたときの、加速度検出器(本実施例においては加速度センサ)によって検出された、加速度のX軸方向成分の一例を示すものである。横軸は時間、縦軸は加速度センサの出力であり、符号によって加速度の方向を表すものとする。   FIG. 4 shows an example of the X-axis direction component of acceleration detected by the acceleration detector (acceleration sensor in this embodiment) when the imaging apparatus is actually swung down as shown in FIG. It is. The horizontal axis represents time, the vertical axis represents the output of the acceleration sensor, and the direction of acceleration is represented by a sign.

第1の閾値である閾値Aおよび閾値−Aは、本実施例の撮像装置が動いているか否かを判定するための閾値であるとする。静止状態において水平状態にある場合は、図2(c)より加速度のX軸成分は検出されないため0(0g)である。よって、検出された加速度が閾値−A以上若しくは閾値A未満の範囲であれば、撮像装置は動いていない状態と判定され、逆に検出された加速度が閾値−A以下または閾値Aより大きければ撮像装置が動いていると判定される。   It is assumed that the first threshold value A and the threshold value −A are threshold values for determining whether or not the imaging apparatus of the present embodiment is moving. In the horizontal state in a stationary state, the X-axis component of acceleration is not detected from FIG. 2C, and is 0 (0 g). Therefore, if the detected acceleration is in a range greater than or equal to threshold −A or less than threshold A, it is determined that the imaging apparatus is not moving. Conversely, if the detected acceleration is less than or equal to threshold −A or greater than threshold A, imaging is performed. It is determined that the device is moving.

一方、第2の閾値である閾値Bおよび閾値−Bは、撮像装置が所定の振り方で振られたかを判定するための閾値である。そのため、閾値−B<閾値−A、閾値A<閾値Bという関係で閾値が設定されているものである。よって、検出された加速度が閾値A以上であり閾値B未満であるか、若しくは閾値−A以下であり−Bより大きければ、撮像装置が動いてはいるものの所定の振り方では振られていないと判定する。その一方で、検出された加速度が閾値B以上若しくは−B以下であれば、撮像装置が動いており、かつ所定の振り方で振られていると判定する。   On the other hand, the threshold value B and the threshold value −B, which are the second threshold values, are threshold values for determining whether the imaging apparatus is shaken in a predetermined manner. For this reason, the thresholds are set in the relationship of threshold-B <threshold-A, threshold A <threshold B. Therefore, if the detected acceleration is greater than or equal to the threshold A and less than the threshold B or greater than or equal to the threshold −A and greater than −B, the imaging apparatus is moving but not being shaken in a predetermined manner. judge. On the other hand, if the detected acceleration is greater than or equal to the threshold value B or less than or equal to −B, it is determined that the imaging device is moving and is shaken in a predetermined manner.

また、第3の閾値である閾値Cおよび閾値−Cは、撮像装置が所定の強さの範囲内で振られたかを判定するための閾値である。そのため、閾値−C<閾値−B、閾値B<閾値Cという関係で閾値が設定されているものである。よって、検出された加速度が閾値B以上であり閾値C未満であるか、若しくは閾値−B以下であり−Cより大きければ、撮像装置が所定の振り方で振られていると判定する。その一方で、検出された加速度が閾値C以上若しくは−C以下であれば、撮像装置の振り方が強過ぎると判定する。撮像装置を強く振ると、誤って手から離れて落下する可能性が高くなるため、撮像装置の振り方が強過ぎると判定された場合は警告する。警告の方法は表示部47に警告文を表示しても良いし、不図示のスピーカーから警告音を発しても良い。   The third threshold value C and threshold value -C are threshold values for determining whether the imaging apparatus is shaken within a predetermined strength range. For this reason, the threshold values are set in the relationship of threshold-C <threshold-B and threshold B <threshold C. Therefore, if the detected acceleration is greater than or equal to the threshold B and less than the threshold C, or less than or equal to the threshold −B and greater than −C, it is determined that the imaging apparatus is being shaken in a predetermined manner. On the other hand, if the detected acceleration is greater than or equal to the threshold value C or less than or equal to −C, it is determined that the imaging device is too strong to swing. If the imaging device is shaken strongly, there is a high possibility that the imaging device will fall off the hand by mistake, so that a warning is given if it is determined that the imaging device is too strong. As a warning method, a warning text may be displayed on the display unit 47, or a warning sound may be emitted from a speaker (not shown).

なお、図4のピークである301から303のうち、最も加速度の絶対値が大きい302が図3(c)における第2の加速度波形に該当する。そして撮像装置を振り下げることが目的である場合は振り下げ動作を表し、振り上げることが目的である場合は振り上げ動作を表している。この場合、301は図3(c)における第1の加速度波形であり、振り下げのための準備動作である振り上げ動作の加速である。また、303は図3(c)における第3の加速度波形であり、振り下げ時の減速を検出した時の波形である。もし本動作が振り上げ動作であった場合は、波形がX軸に対して線対称になる(正負が逆になる)ことになり、第1の加速度波形301と第3の加速度波形303は上向きとなる。なお、最も加速度の絶対値が大きい波形が必ずしも本動作を示すとは限らず、本動作は準備動作よりも強く振られる可能性が高いというだけである。本発明における本動作の波形検出方法は後に説明する。   Of the peaks 301 to 303 shown in FIG. 4, 302 having the largest absolute value of acceleration corresponds to the second acceleration waveform in FIG. When the purpose is to swing the imaging device down, it represents a swing-down operation, and when the purpose is to swing it up, it represents a swing-up operation. In this case, reference numeral 301 denotes the first acceleration waveform in FIG. 3C, which is an acceleration of the swing-up operation that is a preparatory operation for swing-down. Reference numeral 303 denotes a third acceleration waveform in FIG. 3C, which is a waveform when deceleration at the time of swing-down is detected. If this operation is a swing-up operation, the waveform is axisymmetric with respect to the X axis (positive and negative are reversed), and the first acceleration waveform 301 and the third acceleration waveform 303 are upward. Become. It should be noted that the waveform having the largest absolute value of the acceleration does not necessarily indicate the main operation, and the main operation is more likely to be shaken more strongly than the preparation operation. The waveform detection method of this operation in the present invention will be described later.

310は第2の加速度波形302が閾値A(若しくは−A)を跨いだ時である。また、311は、第2の加速度波形302が閾値A(若しくは−A)を1回跨いだ後に再び跨いだ時である。そして312は、第3の加速度波形303が閾値A(若しくは−A)を1回跨いだ後に再び跨いだ時である。閾値S1および閾値S2は、第2の加速度波形(本動作)が閾値A以上または閾値−A以下になっている間の時間t1に対する閾値である。即ち、第2の加速度波形302が閾値Aを越えて再びAを下回る(若しくは、閾値−Aを下回って、再び閾値−Aを越える)までの時間である。閾値S1≦時間t1≦閾値S2の条件を満たす時、第2の加速度波形(本動作)が検出されたとする。   310 is the time when the second acceleration waveform 302 crosses the threshold A (or -A). Reference numeral 311 denotes a time when the second acceleration waveform 302 crosses the threshold A (or -A) once and then crosses again. Reference numeral 312 denotes a time when the third acceleration waveform 303 straddles the threshold A (or -A) once and then straddles again. The threshold S1 and the threshold S2 are thresholds for the time t1 while the second acceleration waveform (main operation) is equal to or higher than the threshold A or equal to or lower than the threshold −A. That is, it is the time until the second acceleration waveform 302 exceeds the threshold A and falls below A again (or falls below the threshold −A and exceeds the threshold −A again). It is assumed that the second acceleration waveform (main operation) is detected when the condition of threshold value S1 ≦ time t1 ≦ threshold value S2 is satisfied.

また、撮像装置が動いていない状態(加速度が閾値−Aより大きく、閾値A未満の範囲)が閾値Eの時間以上継続されていれば、振り動作が停止した位置であると判定する。この場合、撮像装置が動いていない状態、即ち加速度が閾値−Aより大きく、閾値A未満の範囲が閾値Eの時間以上継続されていない状態である時は、初めに加速度が閾値A若しくは−Aを越えたときから1回の動作であるとする。   Further, if the state where the imaging device is not moving (the range where the acceleration is greater than the threshold value −A and less than the threshold value A) is continued for a time equal to or longer than the threshold value E, it is determined that the swing motion is stopped. In this case, when the imaging apparatus is not moving, that is, when the acceleration is greater than the threshold value -A and the range less than the threshold value A is not continued for the threshold time E or longer, the acceleration is first set to the threshold value A or -A. It is assumed that the operation is one time from when the value is exceeded.

そのため、例えば図4の第3の加速度波形303は第1の加速度波形301と第2の加速度波形302と一連の動作と見なされる。そして第3の加速度波形303の後に加速度が閾値−Aより大きく、閾値A未満の範囲が閾値Eの時間以上継続された後に、再び加速度が閾値−A以下若しくは閾値A以上になったときに、新たな振りの検出を開始する。   Therefore, for example, the third acceleration waveform 303 in FIG. 4 is regarded as a series of operations with the first acceleration waveform 301 and the second acceleration waveform 302. Then, after the third acceleration waveform 303, when the acceleration is greater than the threshold value -A and the range less than the threshold value A is continued for a time equal to or greater than the threshold value E, the acceleration becomes the threshold value -A or less or the threshold value A or more again. Start detecting a new swing.

なお、図4では加速度レベルの閾値として、A、B、Cの3種類の値があり、それに加えてそれぞれに異符号となる値があるため、6つの値があるように説明しているが、それぞれ異なる6種類の値としても良い。   In FIG. 4, there are three types of values A, B, and C as acceleration level threshold values, and in addition to these, there are values that have different signs, so that there are six values. , Six different values may be used.

上記の特徴を利用して撮像装置を振った方向を検出する一手法について、撮像装置を振ったときの加速度出力を表している図4の波形と、図5から図8のフローチャートを用いて説明する。   One method for detecting the direction in which the imaging device is shaken using the above features will be described with reference to the waveform in FIG. 4 representing the acceleration output when the imaging device is shaken and the flowcharts in FIGS. 5 to 8. To do.

図5は動作検出部81が撮像装置を振り動作を検出する処理の流れを示すフローチャートである。図4の波形を例にとって、撮像装置を振った動作を検出する処理を説明する。   FIG. 5 is a flowchart showing a flow of processing in which the motion detection unit 81 swings the imaging apparatus to detect motion. With reference to the waveform of FIG. 4 as an example, processing for detecting an operation of shaking the imaging apparatus will be described.

加速度が図4に示した閾値A若しくは閾値−Aを跨いだとき(図4のプロット310)、撮像装置が振られたことを検出する処理が開始される。撮像装置が振られたことを検出する処理が開始されると、まずステップS100にて第1の加速度波形検出を行う。   When the acceleration crosses the threshold value A or the threshold value -A shown in FIG. 4 (plot 310 in FIG. 4), processing for detecting that the imaging device is shaken is started. When the process of detecting that the imaging device is shaken is started, first acceleration waveform detection is performed in step S100.

第1の加速度波形が閾値A若しくは−Aを跨ぐと、第1の加速度波形が検出されたと判断される(S100でYes)。このステップS100の動作については、後に図6を用いて詳細に説明する。   When the first acceleration waveform crosses the threshold A or -A, it is determined that the first acceleration waveform has been detected (Yes in S100). The operation in step S100 will be described later in detail with reference to FIG.

第1の加速度波形が検出されると、次にステップS101にて第2の加速度波形の検出処理を行う。第2の加速度波形が閾値B若しくは−Bを跨ぐと(図4のプロット312)、第2の加速度波形が検出したと判断される(S101でYes)このステップS101の動作については、後に図7を用いて詳細に説明する。   When the first acceleration waveform is detected, a second acceleration waveform detection process is performed in step S101. When the second acceleration waveform crosses the threshold value B or -B (plot 312 in FIG. 4), it is determined that the second acceleration waveform has been detected (Yes in S101). Will be described in detail.

ステップS102においては、第1の加速度波形が検出され(ステップS100でYes)、かつ第2の加速度波形が検出されると(ステップS101でYes)、撮像装置が振られたか、また上に振られたか下に降られたかを判定する。なお、詳細は後述するが、第2の加速度波形は第1の加速度波形検出で跨いだ閾値とは異符号である必要がある。例えば、第1の加速度波形検出が閾値−Bを跨ぐことによって行われた場合は、第2の加速度波形検出が閾値Bを跨ぐ必要がある。これは第1の加速度波形検出が本動作の前の準備動作であり、本動作とは逆向きに振られているためである。このステップS102の動作については、後に図8を用いて詳細に説明する。   In step S102, when the first acceleration waveform is detected (Yes in step S100) and the second acceleration waveform is detected (Yes in step S101), the imaging apparatus is shaken or shaken upward. It is determined whether it has fallen below. In addition, although mentioned later for details, the 2nd acceleration waveform needs to be a different sign from the threshold value straddled by the 1st acceleration waveform detection. For example, when the first acceleration waveform detection is performed by straddling the threshold value −B, the second acceleration waveform detection needs to straddle the threshold value B. This is because the first acceleration waveform detection is a preparatory operation before the main operation and is swung in the opposite direction to the main operation. The operation in step S102 will be described in detail later with reference to FIG.

そして、ステップS102で撮像装置が振られたと判定されれば(ステップS102でYes)、振り動作検出を終了する。なお、上記ステップS100からステップS102までの判定条件で何れかがNoの判定になると、直ぐに振り動作検出が出来なかったと判定して(ステップS103)、振り動作検出を終了する。   If it is determined in step S102 that the imaging device has been shaken (Yes in step S102), the swing motion detection is terminated. If any of the determination conditions from Step S100 to Step S102 is No, it is determined that the swing motion cannot be detected immediately (Step S103), and the swing motion detection is terminated.

次に、本実施例における第1の加速度波形検出(図5におけるステップS100)について、図4の振り動作波形の一例と図6の第1の加速度波形を検出するためのフローチャートを用いて詳しく説明する。   Next, the first acceleration waveform detection (step S100 in FIG. 5) in the present embodiment will be described in detail with reference to an example of the swing motion waveform in FIG. 4 and a flowchart for detecting the first acceleration waveform in FIG. To do.

ステップS200は、加速度が閾値−A以下になったかどうかを判定する。加速度が閾値−A以下になったとき(ステップS200でYes)、第1の加速度波形は下向きの波形として検出され(ステップS203)、第1の加速度波形検出を終了する。   In step S200, it is determined whether or not the acceleration is equal to or less than the threshold −A. When the acceleration is equal to or lower than the threshold −A (Yes in step S200), the first acceleration waveform is detected as a downward waveform (step S203), and the first acceleration waveform detection is terminated.

また、加速度が閾値−Aより大きい場合(ステップS200でNo)、ステップS204にて、加速度が閾値A以上になったかどうかを判定する。加速度が閾値A以上になったとき(ステップS204でYes)、第1の加速度波形は上向きの波形として検出され(ステップS207)、第1の加速度波形検出を終了する。   If the acceleration is larger than the threshold −A (No in step S200), it is determined whether or not the acceleration is greater than or equal to the threshold A in step S204. When the acceleration is equal to or greater than the threshold A (Yes in step S204), the first acceleration waveform is detected as an upward waveform (step S207), and the first acceleration waveform detection is terminated.

なお、ステップS204で加速度が閾値A未満の場合は、ステップS200にて加速度が閾値−Aより大きいため、閾値を跨いでおらず、静止状態であるため、再びS200へ戻る。   If the acceleration is less than the threshold value A in step S204, the acceleration is larger than the threshold value -A in step S200, so the threshold value is not crossed and the vehicle is in a stationary state, so the process returns to S200 again.

続いて、本実施例における第2の加速度波形検出(図5におけるステップS101)について、図4の振り動作波形の一例と図7の第2の加速度波形を検出するためのフローチャートを用いて詳しく説明する。   Subsequently, the second acceleration waveform detection (step S101 in FIG. 5) in the present embodiment will be described in detail with reference to an example of the swing motion waveform in FIG. 4 and a flowchart for detecting the second acceleration waveform in FIG. To do.

図5のステップS100にて第1の加速度波形が検出された直後に、加速度が閾値A以上になったとき(ステップS300)、加速度が閾値A以上になっている間のピーク値(最大値)を検出する。加速度の検出は、検出周期制御部84にて制御されている加速度センサの検出周期にて検出を行っている。そのため、閾値Aを越えてからのピーク値(最大値)を更新した際にピーク値(最大値)を上書きすることによって、閾値Aを越えてからの検出した波形のピーク値(最大値)を測定することができる。この波形のピーク値(最大値)が閾値B以上となったとき(ステップS301でYes)、第2の加速度波形は上向きの波形として検出され(ステップS304)、次の処理に移る。   Immediately after the first acceleration waveform is detected in step S100 of FIG. 5, when the acceleration becomes greater than or equal to the threshold A (step S300), the peak value (maximum value) while the acceleration is greater than or equal to the threshold A. Is detected. The acceleration is detected at the detection cycle of the acceleration sensor controlled by the detection cycle control unit 84. Therefore, the peak value (maximum value) of the detected waveform after exceeding the threshold A is overwritten by overwriting the peak value (maximum value) when the peak value (maximum value) exceeding the threshold A is updated. Can be measured. When the peak value (maximum value) of this waveform is equal to or greater than the threshold value B (Yes in step S301), the second acceleration waveform is detected as an upward waveform (step S304), and the process proceeds to the next process.

しかし、ステップS301において波形のピーク値が閾値B未満であり、閾値Bを越えないまま閾値Aを下回ってしまったら(ステップS301でNo)、第2の加速度波形を検出できなかったとする(ステップS310)。この場合は、図5のステップ103へと進み、直ちに加速度波形検出処理を終了する。   However, if the peak value of the waveform is less than the threshold B in step S301 and falls below the threshold A without exceeding the threshold B (No in step S301), it is assumed that the second acceleration waveform cannot be detected (step S310). ). In this case, the process proceeds to step 103 in FIG. 5, and the acceleration waveform detection process is immediately terminated.

図5のステップS100にて第1の加速度波形が検出された直後に、加速度が閾値A未満であるとき(ステップS300でNo)、加速度が閾値−A以下になったかどうかを判定する(ステップS305)。加速度が閾値−A以下になったと判定されたとき(ステップS305でYes)、加速度が閾値−A以下になっている間のピーク値(最小値)を検出する。加速度の検出は、検出周期制御部84にて制御されている加速度センサの検出周期にて検出を行っている。そのため、閾値−Aを下回ってからのピーク値(最小値)を更新した際に、ピーク値(最小値)を上書きすることによって、閾値−Aを下回ってからの検出した波形のピーク値(最小値)を測定することができる。この波形のピーク値(最小値)が、閾値−Aを再び跨ぐ前に、閾値−B以下となったとき(ステップS306でYes)、第2の加速度波形は下向きの波形として検出され(ステップS309)、次の処理に移る。   Immediately after the first acceleration waveform is detected in step S100 of FIG. 5, when the acceleration is less than the threshold A (No in step S300), it is determined whether the acceleration is equal to or less than the threshold −A (step S305). ). When it is determined that the acceleration is equal to or lower than the threshold −A (Yes in step S305), a peak value (minimum value) while the acceleration is equal to or lower than the threshold −A is detected. The acceleration is detected at the detection cycle of the acceleration sensor controlled by the detection cycle control unit 84. Therefore, when the peak value (minimum value) after updating below the threshold value -A is updated, the peak value (minimum value) of the detected waveform after the threshold value -A is overwritten by overwriting the peak value (minimum value). Value) can be measured. When the peak value (minimum value) of this waveform becomes equal to or lower than threshold-B before crossing over threshold-A again (Yes in step S306), the second acceleration waveform is detected as a downward waveform (step S309). ) And proceed to the next process.

しかし、ステップS306において波形のピーク値が閾値−Bより大きく、閾値−Bを下回らないまま閾値−Aを上回ってしまったら(ステップS306でNo)、第2の加速度波形を検出できなかったとする(ステップS310)。この場合は、図5のステップ103へと進み、直ちに加速度波形検出処理を終了する。   However, if the peak value of the waveform is larger than the threshold value −B in step S306 and exceeds the threshold value −A without falling below the threshold value −B (No in step S306), it is assumed that the second acceleration waveform cannot be detected (step S306). Step S310). In this case, the process proceeds to step 103 in FIG. 5, and the acceleration waveform detection process is immediately terminated.

次に、本実施例における振り動作判定(図5におけるステップS102)について、図4の振り動作波形の一例と図8の第2の加速度波形を検出するためのフローチャートを用いて詳しく説明する。   Next, the swing motion determination (step S102 in FIG. 5) in the present embodiment will be described in detail using an example of the swing motion waveform in FIG. 4 and a flowchart for detecting the second acceleration waveform in FIG.

ステップs400においては、ステップS203にて検出された第1の加速度波形が下向きの波形であったと判定されたかどうかを判断する。ステップS203にて検出された第1の加速度波形が下向きの波形であったと判定された場合(ステップS400でYes)は、ステップS401へ進む。また、ステップS203にて検出された第1の加速度波形が下向きの波形であったと判定されなかった場合(ステップS400でNo)、つまりステップS207にて上向きの波形と判定された場合は、ステップS403へ進む。   In step s400, it is determined whether or not it is determined that the first acceleration waveform detected in step S203 is a downward waveform. If it is determined that the first acceleration waveform detected in step S203 is a downward waveform (Yes in step S400), the process proceeds to step S401. If it is not determined that the first acceleration waveform detected in step S203 is a downward waveform (No in step S400), that is, if it is determined that the waveform is an upward waveform in step S207, step S403 is performed. Proceed to

ステップS401においては、ステップS304にて第2の加速度波形の向きが上向きと判定されているかどうかを判断する。もしステップS304にて第2の加速度波形の向きが上向きと判定されていれば(ステップS401でYes)、ステップS402へ進み、ステップS402にて撮像装置は振り下ろし動作が行われたと判定される。ここで、もしステップS304にて第2の加速度波形の向きが上向きと判定されなかったときは(ステップS401でNo)、ステップS405へ進み、振り動作は検出されなかったと判定される。この場合は、図5のステップ103へと進み、直ちに加速度波形検出処理を終了する。   In step S401, it is determined whether or not the direction of the second acceleration waveform is determined to be upward in step S304. If it is determined in step S304 that the direction of the second acceleration waveform is upward (Yes in step S401), the process proceeds to step S402, and it is determined in step S402 that the imaging apparatus has performed the swing-down operation. Here, if the direction of the second acceleration waveform is not determined to be upward in step S304 (No in step S401), the process proceeds to step S405, where it is determined that no swing motion has been detected. In this case, the process proceeds to step 103 in FIG. 5, and the acceleration waveform detection process is immediately terminated.

ステップS403においては、ステップS309にて第2の加速度波形の向きが下向きと判定されているかどうかを判断する。もしステップS309にて第2の加速度波形の向きが下向きと判定されていれば(ステップS403でYes)、ステップS405へ進み、ステップS405にて撮像装置は振り上げ動作が行われたと判定される。ここで、もしステップS309にて第2の加速度波形の向きが下向きと判定されなかったときは(ステップS403でNo)、ステップS405へ進み、振り動作は検出されなかったと判定される。この場合は、図5のステップ103へと進み、直ちに加速度波形検出処理を終了する。   In step S403, it is determined whether or not the direction of the second acceleration waveform is determined to be downward in step S309. If it is determined in step S309 that the direction of the second acceleration waveform is downward (Yes in step S403), the process proceeds to step S405, and it is determined in step S405 that the imaging apparatus has performed a swing-up operation. Here, if the direction of the second acceleration waveform is not determined to be downward in step S309 (No in step S403), the process proceeds to step S405, where it is determined that no swing motion has been detected. In this case, the process proceeds to step 103 in FIG. 5, and the acceleration waveform detection process is immediately terminated.

本実施例においては、撮像装置などの携帯機器を振って操作する場合、所定の振る強さよりも強い動作で振られた場合は、操作者に対して強すぎることを警告する実施例である。   In the present embodiment, when a portable device such as an imaging device is shaken and operated, if it is shaken with an action stronger than a predetermined shaking strength, the operator is warned that it is too strong.

本実施例は、実施例1と同じ構成の撮像装置を用いて説明する。図5は動作検出部81が撮像装置の振り動作を検出する処理の流れを示すフローチャートである。図4の波形を例にとって、撮像装置を振った動作を検出する処理を説明する。   This embodiment will be described using an imaging apparatus having the same configuration as that of the first embodiment. FIG. 5 is a flowchart showing a flow of processing in which the motion detection unit 81 detects a swing motion of the imaging apparatus. With reference to the waveform of FIG. 4 as an example, processing for detecting an operation of shaking the imaging apparatus will be described.

加速度が図4に示した閾値A若しくは閾値−Aを跨いだとき(図4のプロット310)、撮像装置が振られたことを検出する処理が開始される。撮像装置が振られたことを検出する処理が開始されると、まずステップS100にて第1の加速度波形検出を行う。第1の加速度波形が閾値A若しくは−Aを跨ぐと、第1の加速度波形が検出されたと判断される(S100でYes)。このステップS100の動作については、後に図9を用いて詳細に説明する。   When the acceleration crosses the threshold value A or the threshold value -A shown in FIG. 4 (plot 310 in FIG. 4), processing for detecting that the imaging device is shaken is started. When the process of detecting that the imaging device is shaken is started, first acceleration waveform detection is performed in step S100. When the first acceleration waveform crosses the threshold A or -A, it is determined that the first acceleration waveform has been detected (Yes in S100). The operation in step S100 will be described later in detail with reference to FIG.

第1の加速度波形が検出されると、次にステップS101にて第2の加速度波形の検出処理を行う。第2の加速度波形が閾値B若しくは−Bを跨ぐと(図4のプロット312)、第2の加速度波形が検出したと判断される(S101でYes)。このステップS101の動作については、後に図9を用いて詳細に説明する。   When the first acceleration waveform is detected, a second acceleration waveform detection process is performed in step S101. When the second acceleration waveform crosses the threshold B or -B (plot 312 in FIG. 4), it is determined that the second acceleration waveform has been detected (Yes in S101). The operation in step S101 will be described in detail later with reference to FIG.

ステップS102においては、第1の加速度波形が検出され(ステップS100でYes)、かつ第2の加速度波形が検出されると(ステップS101でYes)、撮像装置が振られたか、また上に振られたか下に降られたかを判定する。なお、第2の加速度波形は第1の加速度波形検出で跨いだ閾値とは異符号である必要がある。例えば、第1の加速度波形検出が閾値−Aを跨ぐことによって行われた場合は、第2の加速度波形検出が閾値Bを跨ぐ必要がある。これは第1の加速度波形検出が本動作の前の準備動作であり、本動作とは逆向きに振られているためである。このステップS102の動作についての詳細な説明は、実施例1のステップ102と同じであるため割愛する。   In step S102, when the first acceleration waveform is detected (Yes in step S100) and the second acceleration waveform is detected (Yes in step S101), the imaging apparatus is shaken or shaken upward. It is determined whether it has fallen below. The second acceleration waveform needs to have a different sign from the threshold value straddled by the first acceleration waveform detection. For example, when the first acceleration waveform detection is performed by straddling the threshold value -A, the second acceleration waveform detection needs to straddle the threshold value B. This is because the first acceleration waveform detection is a preparatory operation before the main operation and is swung in the opposite direction to the main operation. The detailed description of the operation in step S102 is omitted because it is the same as that in step 102 of the first embodiment.

そして、ステップS102で撮像装置が振られたと判定されれば、振り動作検出を終了する(ステップS102でYes)。なお、上記ステップS100からステップS102までの判定条件で何れかがNoの判定になると、直ぐに振り動作検出が出来なかったとして(ステップS103)、振り動作検出を終了する。   If it is determined in step S102 that the imaging apparatus has been shaken, the swing motion detection is terminated (Yes in step S102). If any of the determination conditions from Step S100 to Step S102 is No, it is determined that the swing motion cannot be detected immediately (Step S103), and the swing motion detection is terminated.

次に、本実施例における第1の加速度波形検出(図5におけるステップS100)について、図4の振り動作波形の一例と図9の第1の加速度波形を検出するためのフローチャートを用いて詳しく説明する。   Next, the first acceleration waveform detection (step S100 in FIG. 5) in the present embodiment will be described in detail with reference to an example of the swing motion waveform in FIG. 4 and a flowchart for detecting the first acceleration waveform in FIG. To do.

ステップS200は、加速度が閾値−A以下になったかどうかを判定する。加速度が閾値−A以下になったとき(ステップS200でYes)、ステップS202へ進む。ステップS202では、加速度が閾値−C以下になっていないかを判定する。加速度が閾値−Cより大きい場合は、第1の加速度波形は下向きの波形として検出され(ステップS203)、第1の加速度波形検出を終了する。加速度が閾値−C以下である場合は、第1の加速度波形を検出できなかったとし、(ステップS208)。画像表示部7に振り方が強すぎる旨の警告表示を行う。また、警告は表示だけに限られず、不図示のスピーカーより音声による警告をしても良い。そして、図5のステップ103へと進む(ステップS100にてNo)。   In step S200, it is determined whether or not the acceleration is equal to or less than the threshold −A. When the acceleration is equal to or less than the threshold −A (Yes in step S200), the process proceeds to step S202. In step S202, it is determined whether or not the acceleration is equal to or less than a threshold −C. When the acceleration is larger than the threshold −C, the first acceleration waveform is detected as a downward waveform (step S203), and the first acceleration waveform detection is terminated. If the acceleration is equal to or lower than the threshold −C, it is assumed that the first acceleration waveform cannot be detected (step S208). A warning display indicating that the swing is too strong is displayed on the image display unit 7. Further, the warning is not limited to display only, and a voice warning may be given from a speaker (not shown). Then, the process proceeds to step 103 in FIG. 5 (No in step S100).

また、加速度が閾値−Aより大きい場合(ステップS200でNo)、ステップS204にて、加速度が閾値A以上になったかどうかを判定する。加速度が閾値A以上になったとき(ステップS204でYes)、ステップS206へと進む。ステップS206では、加速度が閾値Cより大きくなっていないかを判定する。加速度が閾値Cより大きい場合は、第1の加速度波形は上向きの波形として検出され(ステップS207)、第1の加速度波形検出を終了し、次の処理へ移る。加速度が閾値Cよりも大きい場合は、第1の加速度波形を検出できなかったとする(ステップS208)。この場合は、図5のステップ103へと進む(ステップS100にてNo)。   If the acceleration is larger than the threshold −A (No in step S200), it is determined whether or not the acceleration is greater than or equal to the threshold A in step S204. When the acceleration is equal to or greater than the threshold A (Yes in step S204), the process proceeds to step S206. In step S206, it is determined whether the acceleration is greater than a threshold value C. When the acceleration is larger than the threshold value C, the first acceleration waveform is detected as an upward waveform (step S207), the first acceleration waveform detection is terminated, and the process proceeds to the next process. If the acceleration is larger than the threshold value C, it is assumed that the first acceleration waveform cannot be detected (step S208). In this case, the process proceeds to step 103 in FIG. 5 (No in step S100).

なお、ステップS204で加速度が閾値A未満の場合は、ステップS200にて加速度が閾値−Aより大きいため、閾値を跨いでおらず、静止状態であるため、再びS200へ戻る。   If the acceleration is less than the threshold value A in step S204, the acceleration is larger than the threshold value -A in step S200, so the threshold value is not crossed and the vehicle is in a stationary state, so the process returns to S200 again.

続いて、本実施例における第2の加速度波形検出(図5におけるステップS101)について、図4の振り動作波形の一例と図10の第2の加速度波形を検出するためのフローチャートを用いて詳しく説明する。   Subsequently, the second acceleration waveform detection (step S101 in FIG. 5) in the present embodiment will be described in detail using an example of the swing motion waveform in FIG. 4 and a flowchart for detecting the second acceleration waveform in FIG. To do.

図5のステップS100にて第1の加速度波形が検出された直後に、加速度が閾値A以上になったとき(ステップS300)、加速度が閾値A以上になっている間のピーク値(最大値)を検出する。加速度の検出は、検出周期制御部84にて制御されている加速度センサの検出周期にて検出を行っている。そのため、閾値Aを越えてからのピーク値(最大値)を更新した際にピーク値(最大値)を上書きすることによって、閾値Aを越えてからの検出した波形のピーク値(最大値)を測定することができる。この波形のピーク値(最大値)が閾値B以上となったとき(ステップS301でYes、時間310)、ステップS302へ進む。   Immediately after the first acceleration waveform is detected in step S100 of FIG. 5, when the acceleration becomes greater than or equal to the threshold A (step S300), the peak value (maximum value) while the acceleration is greater than or equal to the threshold A. Is detected. The acceleration is detected at the detection cycle of the acceleration sensor controlled by the detection cycle control unit 84. Therefore, the peak value (maximum value) of the detected waveform after exceeding the threshold A is overwritten by overwriting the peak value (maximum value) when the peak value (maximum value) exceeding the threshold A is updated. Can be measured. When the peak value (maximum value) of the waveform is equal to or greater than the threshold value B (Yes in step S301, time 310), the process proceeds to step S302.

しかし、ステップS301において波形のピーク値が閾値B未満であり、閾値Bを越えないまま閾値Aを下回ってしまったら(ステップS301でNo、時間311)、ステップS310へ進む。そして第2の加速度波形を検出できなかったとして第2の加速度波形検出を終了し、次の処理へ移る。この場合、図5のステップ103へと進む(ステップS101にてNo)。   However, if the peak value of the waveform is less than the threshold B in step S301 and falls below the threshold A without exceeding the threshold B (No in step S301, time 311), the process proceeds to step S310. If the second acceleration waveform cannot be detected, the second acceleration waveform detection is terminated, and the next process is started. In this case, the process proceeds to step 103 in FIG. 5 (No in step S101).

ステップS302では、加速度のピーク値(最大値)が閾値C以上になっていないかを判定する。加速度のピーク値(最大値)が閾値C未満の場合は、第2の加速度波形は上向きの波形として検出され(ステップS304)、第2の加速度波形検出を終了する。加速度のピーク値(最大値)が閾値C以上である場合は(ステップS302でNo)、加速度波形検出を終了し、画像表示部7などに振り方が強すぎる旨の警告表示を行う(ステップS311)。また、警告は表示だけに限られず、不図示のスピーカーより音声による警告をしても良い。この場合、図5のステップ103へと進む(ステップS101にてNo)。   In step S302, it is determined whether the acceleration peak value (maximum value) is equal to or greater than the threshold value C. When the acceleration peak value (maximum value) is less than the threshold value C, the second acceleration waveform is detected as an upward waveform (step S304), and the second acceleration waveform detection is terminated. If the acceleration peak value (maximum value) is equal to or greater than the threshold value C (No in step S302), the acceleration waveform detection is terminated, and a warning display indicating that the swing is too strong is displayed on the image display unit 7 or the like (step S311). ). Further, the warning is not limited to display only, and a voice warning may be given from a speaker (not shown). In this case, the process proceeds to step 103 in FIG. 5 (No in step S101).

一方で、図5のステップS100にて第1の加速度波形が検出された直後に、加速度が閾値A未満であるとき(ステップS300でNo)、加速度が閾値−A以下になったかどうかを判定する(ステップS305)。加速度が閾値−A以下になったと判定されたとき(ステップS305でYes)、加速度が閾値−A以下になっている間のピーク値(最小値)を検出する。加速度の検出は、検出周期制御部84にて制御されている加速度センサの検出周期にて検出を行っている。そのため、閾値−Aを下回ってからのピーク値(最小値)を更新した際に、ピーク値(最小値)を上書きすることによって、閾値−Aを下回ってからの検出した波形のピーク値(最小値)を測定することができる。この波形のピーク値(最小値)が、閾値−Aを再び跨ぐ前に、閾値−B以下となったとき(ステップS306でYes)、ステップS307へ進む。   On the other hand, immediately after the first acceleration waveform is detected in step S100 in FIG. 5, when the acceleration is less than the threshold A (No in step S300), it is determined whether the acceleration is equal to or less than the threshold −A. (Step S305). When it is determined that the acceleration is equal to or lower than the threshold −A (Yes in step S305), a peak value (minimum value) while the acceleration is equal to or lower than the threshold −A is detected. The acceleration is detected at the detection cycle of the acceleration sensor controlled by the detection cycle control unit 84. Therefore, when the peak value (minimum value) after updating below the threshold value -A is updated, the peak value (minimum value) of the detected waveform after the threshold value -A is overwritten by overwriting the peak value (minimum value). Value) can be measured. When the peak value (minimum value) of this waveform becomes equal to or less than threshold-B before crossing over threshold-A again (Yes in step S306), the process proceeds to step S307.

しかし、ステップS306において波形のピーク値が閾値−Bより大きく、閾値−Bを下回らないまま閾値−Aを上回ってしまったら(ステップS306でNo)、第2の加速度波形を検出できなかったとする(ステップS310)。この場合は、図5のステップ103へと進み、直ちに加速度波形検出処理を終了する。   However, if the peak value of the waveform is larger than the threshold value −B in step S306 and exceeds the threshold value −A without falling below the threshold value −B (No in step S306), it is assumed that the second acceleration waveform cannot be detected (step S306). Step S310). In this case, the process proceeds to step 103 in FIG. 5, and the acceleration waveform detection process is immediately terminated.

ステップS307では、加速度のピーク値(最小値)が閾値−C以下になっていないかを判定する。加速度のピーク値(最小値)が閾値−C以上の場合は、第2の加速度波形は下向きの波形として検出され(ステップS309)、第2の加速度波形検出を終了する。加速度のピーク値(最小値)が閾値−C未満である場合は(ステップS307でNo)、加速度波形検出を終了し、画像表示部7などに振り方が強すぎる旨の警告表示を行う(ステップS311)。また、警告は表示だけに限られず、不図示のスピーカーより音声による警告をしても良い。この場合、図5のステップ103へと進む(ステップS101にてNo)。   In step S307, it is determined whether or not the peak value (minimum value) of acceleration is equal to or less than the threshold −C. If the acceleration peak value (minimum value) is equal to or greater than the threshold −C, the second acceleration waveform is detected as a downward waveform (step S309), and the second acceleration waveform detection is terminated. If the peak value (minimum value) of acceleration is less than the threshold value −C (No in step S307), the acceleration waveform detection is terminated and a warning display indicating that the swing is too strong is displayed on the image display unit 7 or the like (step) S311). Further, the warning is not limited to display only, and a voice warning may be given from a speaker (not shown). In this case, the process proceeds to step 103 in FIG. 5 (No in step S101).

以上、第2の実施形態について撮像装置は、振り動作を検出する際に、振り加減が所望な強さよりも強いときには、落下などの注意を促すために強すぎることを警告表示する。これによって撮像装置などの携帯機器を振って操作する場合、操作者の手から誤って離れてしまい、携帯機器が投げ出されてしまったり、落下させてしまったりするなどを防止に繋がる。なお、弱い時は振り方が弱すぎることを警告表示しても良い。   As described above, regarding the second embodiment, when the swing motion is detected, the imaging apparatus displays a warning that the swing is too strong to call attention such as dropping when the swing is more than desired. As a result, when the portable device such as the imaging device is operated by shaking, it is prevented from accidentally leaving the hand of the operator and the portable device being thrown out or dropped. When it is weak, a warning may be displayed that the swing is too weak.

本実施例においては、再生モードと撮影モードがある撮像装置などの携帯機器を振って操作することで、再生する画像の順送り若しくは逆送りを実行する実施例である。なお、再生モードを実行することによって、使用者は画像表示部7などを通して記憶部63に記憶した画像を見ることができる。   The present embodiment is an embodiment in which forward playback or reverse playback of images to be reproduced is performed by shaking and operating a portable device such as an imaging apparatus having a playback mode and a shooting mode. By executing the playback mode, the user can view the image stored in the storage unit 63 through the image display unit 7 or the like.

本実施例は、実施例1と同じ構成の撮像装置を用いて説明する。図5は動作検出部81が撮像装置を振り動作を検出する処理の流れを示すフローチャートである。図4の波形を例にとって、撮像装置を振った動作を検出する処理を説明する。   This embodiment will be described using an imaging apparatus having the same configuration as that of the first embodiment. FIG. 5 is a flowchart showing a flow of processing in which the motion detection unit 81 swings the imaging apparatus to detect motion. With reference to the waveform of FIG. 4 as an example, processing for detecting an operation of shaking the imaging apparatus will be described.

加速度が図4に示した閾値A若しくは閾値−Aを跨いだとき(図4のプロット310)、撮像装置が振られたことを検出する処理が開始される。撮像装置が振られたことを検出する処理が開始されると、まずステップS100にて第1の加速度波形検出を行う。第1の加速度波形が閾値A若しくは−Aを跨ぐと、第1の加速度波形が検出したと判断される(S100でYes)。このステップS100の動作についての詳細な説明は、実施例1のステップ100と同じであるため割愛する。   When the acceleration crosses the threshold value A or the threshold value -A shown in FIG. 4 (plot 310 in FIG. 4), processing for detecting that the imaging device is shaken is started. When the process of detecting that the imaging device is shaken is started, first acceleration waveform detection is performed in step S100. If the first acceleration waveform crosses the threshold A or -A, it is determined that the first acceleration waveform has been detected (Yes in S100). Since the detailed description of the operation in step S100 is the same as that in step 100 of the first embodiment, it is omitted.

第1の加速度波形が検出されると、次にステップS101にて第2の加速度波形の検出処理を行う。第2の加速度波形が閾値B若しくは−Bを跨ぐと(図4のプロット312)、第2の加速度波形が検出したと判断される(S101でYes)。このステップS101の動作についての詳細な説明は、後に図11を用いて詳細に説明する。   When the first acceleration waveform is detected, a second acceleration waveform detection process is performed in step S101. When the second acceleration waveform crosses the threshold B or -B (plot 312 in FIG. 4), it is determined that the second acceleration waveform has been detected (Yes in S101). The detailed description of the operation in step S101 will be described later in detail with reference to FIG.

ステップS102においては、第1の加速度波形が検出され(ステップS100でYes)、かつ第2の加速度波形が検出されると(ステップS101でYes)、撮像装置が振られたか、また上に振られたか下に降られたかを判定する。なお、第2の加速度波形は第1の加速度波形検出で跨いだ閾値とは異符号である必要がある。例えば、第1の加速度波形検出が閾値−Bを跨ぐことによって行われた場合は、第2の加速度波形検出が閾値Bを跨ぐ必要がある。これは第1の加速度波形検出が本動作の前の準備動作であり、本動作とは逆向きに振られているためである。このステップS102の動作については、実施例1のステップS102の動作と同じであるため、本実施例においての詳細な説明は省略する。   In step S102, when the first acceleration waveform is detected (Yes in step S100) and the second acceleration waveform is detected (Yes in step S101), the imaging apparatus is shaken or shaken upward. It is determined whether it has fallen below. The second acceleration waveform needs to have a different sign from the threshold value straddled by the first acceleration waveform detection. For example, when the first acceleration waveform detection is performed by straddling the threshold value −B, the second acceleration waveform detection needs to straddle the threshold value B. This is because the first acceleration waveform detection is a preparatory operation before the main operation and is swung in the opposite direction to the main operation. Since the operation in step S102 is the same as the operation in step S102 in the first embodiment, detailed description in this embodiment is omitted.

そして、ステップS102で撮像装置が振られたと判定されれば、振り動作検出を終了する(ステップS102でYes)。なお、上記ステップS100からステップS102までの判定条件で何れかがNoの判定になると、直ぐに振り動作検出が出来なかったとして(ステップS103)、振り動作検出を終了する。   If it is determined in step S102 that the imaging apparatus has been shaken, the swing motion detection is terminated (Yes in step S102). If any of the determination conditions from Step S100 to Step S102 is No, it is determined that the swing motion cannot be detected immediately (Step S103), and the swing motion detection is terminated.

続いて、本実施例におけるの第2の加速度波形検出(図5におけるステップS101)について、図4の振り動作波形の一例と図11の第2の加速度波形を検出するためのフローチャートを用いて詳しく説明する。   Subsequently, the second acceleration waveform detection (step S101 in FIG. 5) in the present embodiment will be described in detail using an example of the swing motion waveform in FIG. 4 and a flowchart for detecting the second acceleration waveform in FIG. explain.

図5のステップS100にて第1の加速度波形が検出された直後に、加速度が閾値A以上になったとき(ステップS300)、加速度が閾値A以上になっている間のピーク値(最大値)を検出する。加速度の検出は、検出周期制御部84にて制御されている加速度センサの検出周期にて検出を行っている。そのため、閾値Aを越えてからのピーク値(最大値)を更新した際にピーク値(最大値)を上書きすることによって、閾値Aを越えてからの検出した波形のピーク値(最大値)を測定することができる。この波形のピーク値(最大値)が閾値B以上となったとき(ステップS301でYes)、第2の加速度波形は上向きの波形として検出され(ステップS304)、ステップS320へと移る。ステップS320においては、画像表示部7に表示している画像を、次の画像に変更する。また、ステップS320においては、図4のプロット313のタイミング、即ち再び閾値Aを越えるタイミングで、画像表示部7に表示している画像を、前の画像に変更する。このとき、画像の表示順序はファイルの名前や番号であってもよいし、撮影した日時や記録部61に記憶した日時であっても構わない。   Immediately after the first acceleration waveform is detected in step S100 of FIG. 5, when the acceleration is greater than or equal to the threshold A (step S300), the peak value (maximum value) while the acceleration is greater than or equal to the threshold A. Is detected. The acceleration is detected at the detection cycle of the acceleration sensor controlled by the detection cycle control unit 84. Therefore, the peak value (maximum value) of the detected waveform after exceeding the threshold A is overwritten by overwriting the peak value (maximum value) when the peak value (maximum value) exceeding the threshold A is updated. Can be measured. When the peak value (maximum value) of this waveform is equal to or greater than the threshold value B (Yes in step S301), the second acceleration waveform is detected as an upward waveform (step S304), and the process proceeds to step S320. In step S320, the image displayed on the image display unit 7 is changed to the next image. In step S320, the image displayed on the image display unit 7 is changed to the previous image at the timing of the plot 313 in FIG. At this time, the display order of the images may be the name and number of the file, the date and time when the image was taken, and the date and time stored in the recording unit 61.

しかし、ステップS301において波形のピーク値が閾値B未満であり、閾値Bを越えないまま閾値Aを下回ってしまったら(ステップS301でNo)、第2の加速度波形を検出できなかったとする(ステップS310)。この場合は、図5のステップ103へと進み、直ちに加速度波形検出処理を終了し、次の処理へ移る。   However, if the peak value of the waveform is less than the threshold B in step S301 and falls below the threshold A without exceeding the threshold B (No in step S301), it is assumed that the second acceleration waveform cannot be detected (step S310). ). In this case, the process proceeds to step 103 in FIG. 5, and the acceleration waveform detection process is immediately terminated and the process proceeds to the next process.

図5のステップS100にて第1の加速度波形が検出された直後に、加速度が閾値A未満であるとき(ステップS300でNo)、加速度が閾値−A以下になったかどうかを判定する(ステップS305)。加速度が閾値−A以下になったと判定されたとき(ステップS305でYes)、加速度が閾値−A以下になっている間のピーク値(最小値)を検出する。加速度の検出は、検出周期制御部84にて制御されている加速度センサの検出周期にて検出を行っている。そのため、閾値−Aを下回ってからのピーク値(最小値)を更新した際に、ピーク値(最小値)を上書きすることによって、閾値−Aを下回ってからの検出した波形のピーク値(最小値)を測定することができる。この波形のピーク値(最小値)が、閾値−Aを再び跨ぐ前に、閾値−B以下となったとき(ステップS306でYes)、第2の加速度波形は下向きの波形として検出され(ステップS309)、ステップS321へと移る。ステップS321においては、図4のプロット313のタイミング、即ち再び閾値Aを越えるタイミングで、画像表示部7に表示している画像を、前の画像に変更する。このとき、画像の表示順序はファイルの名前や番号であってもよいし、撮影した日時や記録部61に記憶した日時であっても構わないが、ステップS320で表示される画像と順序が逆になるようにする。但し、ランダム再生のようにランダムで画像の表示順序を決める特殊なモードがあるときは、その限りではない。   Immediately after the first acceleration waveform is detected in step S100 of FIG. 5, when the acceleration is less than the threshold A (No in step S300), it is determined whether the acceleration is equal to or less than the threshold −A (step S305). ). When it is determined that the acceleration is equal to or lower than the threshold −A (Yes in step S305), a peak value (minimum value) while the acceleration is equal to or lower than the threshold −A is detected. The acceleration is detected at the detection cycle of the acceleration sensor controlled by the detection cycle control unit 84. Therefore, when the peak value (minimum value) after updating below the threshold value -A is updated, the peak value (minimum value) of the detected waveform after the threshold value -A is overwritten by overwriting the peak value (minimum value). Value) can be measured. When the peak value (minimum value) of this waveform becomes equal to or lower than threshold-B before crossing over threshold-A again (Yes in step S306), the second acceleration waveform is detected as a downward waveform (step S309). ), The process proceeds to step S321. In step S321, the image displayed on the image display unit 7 is changed to the previous image at the timing of the plot 313 in FIG. At this time, the display order of the images may be the name or number of the file, or may be the date / time of shooting or the date / time stored in the recording unit 61, but the order of the images displayed in step S320 is reversed. To be. However, this is not the case when there is a special mode that randomly determines the image display order, such as random playback.

しかし、ステップS306において波形のピーク値が閾値−Bより大きく、閾値−Bを下回らないまま閾値−Aを上回ってしまったら(ステップS306でNo)、第2の加速度波形を検出できなかったとする(ステップS310)。この場合は、図5のステップ103へと進み、直ちに加速度波形検出処理を終了し、次の処理へ移る。   However, if the peak value of the waveform is larger than the threshold value −B in step S306 and exceeds the threshold value −A without falling below the threshold value −B (No in step S306), it is assumed that the second acceleration waveform cannot be detected (step S306). Step S310). In this case, the process proceeds to step 103 in FIG. 5, and the acceleration waveform detection process is immediately terminated and the process proceeds to the next process.

これによって、再生モード時に画像が表示されている状態で撮像装置を決められた方向に振ることで、振る方向によって画像の送り方向が変えられる撮像装置を提供することができる。また、本実施例に係る撮像装置は、第2の加速度波形を検出した際にどちらに振られたか判定するので、本動作時に画像送りが開始できる。これによって、使用者がスムーズかつ直感的に画像送りをすることができる操作系を搭載した撮像装置を提供することができる。   Accordingly, it is possible to provide an imaging apparatus in which the image feeding direction can be changed according to the shaking direction by shaking the imaging apparatus in a predetermined direction while an image is displayed in the playback mode. In addition, since the image pickup apparatus according to the present embodiment determines which one is shaken when the second acceleration waveform is detected, image feeding can be started during this operation. Accordingly, it is possible to provide an imaging apparatus equipped with an operation system that allows the user to smoothly and intuitively send an image.

(実施例3の変形例)
ここまで、実施例3における第2の加速度波形検出(図5におけるステップS101)について、図4の振り動作波形の一例と図11の第2の加速度波形を検出するためのフローチャートを用いて詳しく説明した。ここで、実施例3におけるの第2の加速度波形検出(図5におけるステップS101)について、図11の代わりに図9の第1の加速度波形を検出するためのフローチャートを流用してもよい。即ち、図9の第1の加速度波形を検出するためのフローチャートのうち、ステップS304の後にステップS320の処理を行い、ステップS304の後にステップS321の処理を行っても同様の効果を得られる。
(Modification of Example 3)
Up to this point, the second acceleration waveform detection (step S101 in FIG. 5) in the third embodiment will be described in detail using the example of the swing motion waveform in FIG. 4 and the flowchart for detecting the second acceleration waveform in FIG. did. Here, for the second acceleration waveform detection (step S101 in FIG. 5) in the third embodiment, a flowchart for detecting the first acceleration waveform in FIG. 9 may be used instead of FIG. That is, in the flowchart for detecting the first acceleration waveform in FIG. 9, the same effect can be obtained by performing the process of step S320 after step S304 and performing the process of step S321 after step S304.

また、実施例3においては、ステップS320及びステップS321にて、図4のプロット313のタイミングにて画像の変更を行った。ただし、効果が同じであれば特に限定は無く、プロット312の時点(閾値Bを越えたタイミング)で行っても、プロット315の時点(閾値Bを再び越えたタイミング)であってもよい。またプロット312のタイミングからプロット315のタイミングであれば、任意のタイミングで良い。   In Example 3, the image was changed at the timing of the plot 313 in FIG. 4 in Step S320 and Step S321. However, as long as the effect is the same, there is no particular limitation, and it may be performed at the time point of the plot 312 (timing when the threshold value B is exceeded) or at the time point of the plot 315 (timing when the threshold value B is exceeded again). Any timing may be used as long as it is from the timing of the plot 312 to the timing of the plot 315.

本実施例においては、本実施例に係る撮像装置が連続して振られたときの波形検出について説明する。なお、本実施例は、実施例1同じ構成の撮像装置を用いて説明する。   In this embodiment, waveform detection when the imaging apparatus according to this embodiment is continuously shaken will be described. This embodiment will be described using an imaging apparatus having the same configuration as that of the first embodiment.

図12は動作検出部81が撮像装置を振り動作を検出する処理の流れを示すフローチャートである。図4の波形を例にとって、撮像装置を振った動作を検出する処理を説明する。   FIG. 12 is a flowchart illustrating a flow of processing in which the motion detection unit 81 swings the imaging apparatus to detect motion. With reference to the waveform of FIG. 4 as an example, processing for detecting an operation of shaking the imaging apparatus will be described.

加速度が図4に示した閾値A若しくは閾値−Aを跨いだとき(図4のプロット310)、撮像装置が振られたことを検出する処理が開始される。撮像装置が振られたことを検出する処理が開始されると、まずステップS100にて第1の加速度波形検出を行う。   When the acceleration crosses the threshold value A or the threshold value -A shown in FIG. 4 (plot 310 in FIG. 4), processing for detecting that the imaging device is shaken is started. When the process of detecting that the imaging device is shaken is started, first acceleration waveform detection is performed in step S100.

第1の加速度波形が閾値A若しくは−Aを跨ぐと、第1の加速度波形が検出されたと判断される(S100でYes)。このステップS100の動作についての詳細な説明は、実施例1のステップ100と同じであるため割愛する。   When the first acceleration waveform crosses the threshold A or -A, it is determined that the first acceleration waveform has been detected (Yes in S100). Since the detailed description of the operation in step S100 is the same as that in step 100 of the first embodiment, it is omitted.

第1の加速度波形が検出されると、次にステップS101にて第2の加速度波形の検出処理を行う。第2の加速度波形が閾値B若しくは−Bを跨ぐと(図4のプロット312)、第2の加速度波形が検出したと判断される(S101でYes)。このステップS101の動作についての詳細な説明は、後に図13を用いて詳細に説明する。   When the first acceleration waveform is detected, a second acceleration waveform detection process is performed in step S101. When the second acceleration waveform crosses the threshold B or -B (plot 312 in FIG. 4), it is determined that the second acceleration waveform has been detected (Yes in S101). The detailed description of the operation in step S101 will be described later in detail with reference to FIG.

ステップS102においては、第1の加速度波形が検出され(ステップS100でYes)、かつ第2の加速度波形が検出されると(ステップS101でYes)、撮像装置が振られたか、また上に振られたか下に降られたかを判定する。なお、第2の加速度波形は第1の加速度波形検出で跨いだ閾値とは異符号である必要がある。例えば、第1の加速度波形検出が閾値−Aを跨ぐことによって行われた場合は、第2の加速度波形検出が閾値Bを跨ぐ必要がある。これは第1の加速度波形検出が本動作の前の準備動作であり、本動作とは逆向きに振られているためである。このステップS102の動作についての詳細な説明は、実施例1のステップ102と同じであるため割愛する。   In step S102, when the first acceleration waveform is detected (Yes in step S100) and the second acceleration waveform is detected (Yes in step S101), the imaging apparatus is shaken or shaken upward. It is determined whether it has fallen below. The second acceleration waveform needs to have a different sign from the threshold value straddled by the first acceleration waveform detection. For example, when the first acceleration waveform detection is performed by straddling the threshold value -A, the second acceleration waveform detection needs to straddle the threshold value B. This is because the first acceleration waveform detection is a preparatory operation before the main operation and is swung in the opposite direction to the main operation. The detailed description of the operation in step S102 is omitted because it is the same as that in step 102 of the first embodiment.

そして、ステップS102で撮像装置が振られたと判定されれば(ステップS102でYes)、ステップS104へ進む。なお、上記ステップS100からステップS102までの判定条件で何れかがNoの判定になると、直ぐに振り動作検出が出来なかったと判定して(ステップS103)、ステップS104へ進む。   If it is determined in step S102 that the imaging apparatus has been shaken (Yes in step S102), the process proceeds to step S104. If any of the determination conditions from step S100 to step S102 is determined as No, it is determined that the swing motion cannot be detected immediately (step S103), and the process proceeds to step S104.

ステップS104においては、撮像装置が動いていない状態(加速度が閾値−Aより大きく、閾値A未満の範囲)が閾値Eの時間以上継続されていれば、振り動作が停止した位置であると判定し、加速度波形検出が終了したことを検出する。そして、そして振り動作検出を終了する。このステップS104の動作についての詳細な説明は、後に図14を用いて詳細に説明する。   In step S104, if the state in which the imaging device is not moving (the range in which the acceleration is greater than the threshold −A and less than the threshold A) continues for a time equal to or longer than the threshold E, it is determined that the swing motion has stopped. Then, it is detected that the acceleration waveform detection is completed. Then, the swing motion detection ends. The detailed description of the operation in step S104 will be described later in detail with reference to FIG.

次に、本実施例における第2の加速度波形検出(図12におけるステップS101)について、図4の振り動作波形の一例と図13の第2の加速度波形を検出するためのフローチャートを用いて詳しく説明する。   Next, the second acceleration waveform detection (step S101 in FIG. 12) in the present embodiment will be described in detail with reference to an example of the swing motion waveform in FIG. 4 and a flowchart for detecting the second acceleration waveform in FIG. To do.

図12のステップS100にて第1の加速度波形が検出された直後に、加速度が閾値A以上になったとき(ステップS300)、加速度が閾値A以上になっている間のピーク値(最大値)を検出する。加速度の検出は、検出周期制御部84にて制御されている加速度センサの検出周期にて検出を行っている。そのため、閾値Aを越えてからのピーク値(最大値)を更新した際にピーク値(最大値)を上書きすることによって、閾値Aを越えてからの検出した波形のピーク値(最大値)を測定することができる。この波形のピーク値(最大値)が閾値B以上となったとき(ステップS301でYes)、ステップS303へ進む。   Immediately after the first acceleration waveform is detected in step S100 of FIG. 12, when the acceleration is greater than or equal to the threshold A (step S300), the peak value (maximum value) while the acceleration is greater than or equal to the threshold A. Is detected. The acceleration is detected at the detection cycle of the acceleration sensor controlled by the detection cycle control unit 84. Therefore, the peak value (maximum value) of the detected waveform after exceeding the threshold A is overwritten by overwriting the peak value (maximum value) when the peak value (maximum value) exceeding the threshold A is updated. Can be measured. When the peak value (maximum value) of this waveform is equal to or greater than the threshold value B (Yes in step S301), the process proceeds to step S303.

しかし、ステップS301において波形のピーク値が閾値B未満であり、閾値Bを越えないまま閾値Aを下回ってしまったら(ステップS301でNo)、第2の加速度波形を検出できなかったとする(ステップS310)。この場合は、図12のステップ103へと進み、加速度波形検出処理が出来なかったとして、ステップS104へ進む。   However, if the peak value of the waveform is less than the threshold B in step S301 and falls below the threshold A without exceeding the threshold B (No in step S301), it is assumed that the second acceleration waveform cannot be detected (step S310). ). In this case, the process proceeds to step 103 in FIG. 12, and the process proceeds to step S104, assuming that the acceleration waveform detection process cannot be performed.

ステップS303においては、加速度が閾値A以上になっている時間t1が、閾値S1以上かつ閾値S2以下であるかどうかを判断する。加速度が閾値A以上になっている時間t1が、閾値S1以上かつ閾値S2以下である場合は(S303でYes)、第2の加速度波形は上向きの波形として検出され(ステップS304)、第2の加速度波形検出を終了する。また、加速度が閾値A以上になっている時間t1が、閾値S1未満若しくは閾値S2より長い場合は(S303でNo)、第2の加速度波形を検出できなかったとする(ステップS310)。この場合は、図12のステップ103へと進み、加速度波形検出処理が出来なかったとして、ステップS104へ進む。   In step S303, it is determined whether the time t1 when the acceleration is equal to or greater than the threshold A is equal to or greater than the threshold S1 and equal to or less than the threshold S2. When the time t1 when the acceleration is equal to or greater than the threshold A is equal to or greater than the threshold S1 and equal to or less than the threshold S2 (Yes in S303), the second acceleration waveform is detected as an upward waveform (step S304), and the second Acceleration waveform detection ends. If the time t1 when the acceleration is equal to or greater than the threshold A is less than the threshold S1 or longer than the threshold S2 (No in S303), it is assumed that the second acceleration waveform cannot be detected (step S310). In this case, the process proceeds to step 103 in FIG. 12, and the process proceeds to step S104, assuming that the acceleration waveform detection process cannot be performed.

図12のステップS100にて第1の加速度波形が検出された直後に、加速度が閾値A未満であるとき(ステップS300でNo)、加速度が閾値−A以下になったかどうかを判定する(ステップS305)。加速度が閾値−A以下になったと判定されたとき(ステップS305でYes)、加速度が閾値−A以下になっている間のピーク値(最小値)を検出する。加速度の検出は、検出周期制御部84にて制御されている加速度センサの検出周期にて検出を行っている。そのため、閾値−Aを下回ってからのピーク値(最小値)を更新した際に、ピーク値(最小値)を上書きすることによって、閾値−Aを下回ってからの検出した波形のピーク値(最小値)を測定することができる。この波形のピーク値(最小値)が、閾値−Aを再び跨ぐ前に、閾値−B以下となったとき(ステップS306でYes)、ステップS308へ進む。   Immediately after the first acceleration waveform is detected in step S100 of FIG. 12, when the acceleration is less than the threshold A (No in step S300), it is determined whether the acceleration is equal to or less than the threshold −A (step S305). ). When it is determined that the acceleration is equal to or lower than the threshold −A (Yes in step S305), a peak value (minimum value) while the acceleration is equal to or lower than the threshold −A is detected. The acceleration is detected at the detection cycle of the acceleration sensor controlled by the detection cycle control unit 84. Therefore, when the peak value (minimum value) after updating below the threshold value -A is updated, the peak value (minimum value) of the detected waveform after the threshold value -A is overwritten by overwriting the peak value (minimum value). Value) can be measured. When the peak value (minimum value) of this waveform becomes equal to or less than threshold-B before crossing over threshold-A again (Yes in step S306), the process proceeds to step S308.

しかし、ステップS306において波形のピーク値が閾値−Bより大きく、閾値−Bを下回らないまま閾値−Aを上回ってしまったら(ステップS306でNo)、第2の加速度波形を検出できなかったとする(ステップS310)。この場合は、図12のステップ103へと進み、加速度波形検出処理が出来なかったとして、図12のステップS104へ進む。   However, if the peak value of the waveform is larger than the threshold value −B in step S306 and exceeds the threshold value −A without falling below the threshold value −B (No in step S306), it is assumed that the second acceleration waveform cannot be detected (step S306). Step S310). In this case, the process proceeds to step 103 in FIG. 12, and it is determined that the acceleration waveform detection process cannot be performed, and the process proceeds to step S104 in FIG.

ステップS308においては、加速度が閾値−A未満になっている時間t1が、閾値S1以上かつ閾値S2以下であるかどうかを判断する。加速度が閾値−A未満になっている時間t1が、閾値S1以上かつ閾値S2以下である場合は(S308でYes)、第2の加速度波形は下向きの波形として検出され(ステップS309)、第2の加速度波形検出を終了する。また、加速度が閾値−A未満になっている時間t1が、閾値S1未満若しくは閾値S2より長い場合は(S308でNo)、第2の加速度波形を検出できなかったとする(ステップS310)。この場合は、図12のステップ103へと進み、加速度波形検出処理が出来なかったとして、図12のステップS104へ進む。   In step S308, it is determined whether the time t1 when the acceleration is less than the threshold −A is equal to or greater than the threshold S1 and equal to or less than the threshold S2. When the time t1 when the acceleration is less than the threshold −A is equal to or greater than the threshold S1 and equal to or less than the threshold S2 (Yes in S308), the second acceleration waveform is detected as a downward waveform (step S309), and the second This completes the acceleration waveform detection. In addition, when the time t1 when the acceleration is less than the threshold −A is less than the threshold S1 or longer than the threshold S2 (No in S308), it is assumed that the second acceleration waveform cannot be detected (step S310). In this case, the process proceeds to step 103 in FIG. 12, and it is determined that the acceleration waveform detection process cannot be performed, and the process proceeds to step S104 in FIG.

次に、本実施例における加速度波形終了検出(図12におけるステップS104)について、図4の振り動作波形の一例と図14の加速度波形終了検出のためフローチャートを用いて詳しく説明する。   Next, the acceleration waveform end detection (step S104 in FIG. 12) in the present embodiment will be described in detail using an example of the swing motion waveform in FIG. 4 and a flowchart for detecting the acceleration waveform end in FIG.

ステップS500においては、加速度が閾値−A以上かつ閾値A以下の範囲内であるかどうかを判定する。ステップS500にて、加速度が閾値−A以上かつ閾値A以下の範囲内であると判定された場合には(ステップS500でYes)、ステップS501へ進む。ステップS500にて加速度が閾値−A以上かつ閾値A以下の範囲内であると判定さなかった場合(ステップS500でNo)、即ち加速度が閾値−A未満若しくは閾値Aより大きいかった場合は、ステップS504へ進む。そしてステップS504にて加速度が閾値−A以上かつ閾値A以下の状態が継続されている時間(加速度継続時間)t2を初期化して、再びステップS500の判定を行う。   In step S500, it is determined whether or not the acceleration is in a range not less than threshold −A and not more than threshold A. If it is determined in step S500 that the acceleration is within the range of the threshold −A or more and the threshold A or less (Yes in step S500), the process proceeds to step S501. If it is not determined in step S500 that the acceleration is within the range of threshold-A or more and threshold A or less (No in step S500), that is, if the acceleration is less than threshold-A or greater than threshold A, step The process proceeds to S504. In step S504, a time (acceleration continuation time) t2 in which the acceleration is in a state of being equal to or greater than the threshold value −A and equal to or less than the threshold value A is initialized, and the determination in step S500 is performed again.

ステップS501においては、加速度継続時間t2を計測し、ステップS502へ進む。そしてステップS502においては、加速度継続時間t2が閾値Eを越えているかどうかを判定する。加速度継続時間t2が閾値E以上である場合、ステップS503へと進み、加速度波形終了を検出する。一方で、加速度継続時間t2が閾値E未満である場合は、加速度継続時間t2のカウント続行しながら、再びステップS500へ戻る。   In step S501, acceleration continuation time t2 is measured, and the process proceeds to step S502. In step S502, it is determined whether or not the acceleration duration t2 exceeds the threshold value E. If the acceleration duration t2 is equal to or greater than the threshold value E, the process proceeds to step S503, and the end of the acceleration waveform is detected. On the other hand, when the acceleration duration t2 is less than the threshold value E, the process returns to step S500 again while continuing to count the acceleration duration t2.

この場合、加速度が閾値−A以上、閾値A以下の範囲が閾値Eの時間以上継続されていない状態である時は、初めに加速度が閾値A若しくは−Aを越えたときから1回の動作であるとする。そのため、例えば図4のピーク303はピーク301と302と一連の動作と見なされ、第3の加速度波形が新たな振りであると判定されることを防いでいる。   In this case, when the acceleration is not less than the threshold value -A and the range below the threshold value A is not continued for the threshold value E or longer, the operation can be performed once after the acceleration first exceeds the threshold value A or -A. Suppose there is. Therefore, for example, the peak 303 in FIG. 4 is regarded as a series of operations with the peaks 301 and 302, and it is prevented that the third acceleration waveform is determined to be a new swing.

本実施例に係る撮像装置は、加速度がある一定以上の大きさであっても、加速度の加わり方が短すぎたり長すぎたりした際には、エラーと判定することで振られたと検知しない。これによって、より正確に波形を検知し、直感的で分かりやすい操作系を提供する。また静止状態がある時間以上続かない場合は、1波形の検出とすることで、準備動作から本動作に該当する、第1、第2、第3の加速度波形の正確に検出できるようにするようになる。   The imaging apparatus according to the present embodiment does not detect that the camera is shaken by determining an error when the acceleration is applied too short or too long, even if the acceleration is greater than a certain magnitude. As a result, the waveform is detected more accurately, and an intuitive and easy-to-understand operation system is provided. If the stationary state does not last for a certain period of time, one waveform is detected so that the first, second, and third acceleration waveforms corresponding to this operation can be accurately detected from the preparation operation. become.

本実施例においては、実施例1から4までの機能を全て搭載した撮像装置での波形検出について説明する。なお、本実施例は、実施例1と同じ構成の撮像装置を用いて説明する。   In this embodiment, waveform detection in an imaging apparatus equipped with all the functions of Embodiments 1 to 4 will be described. This embodiment will be described using an imaging apparatus having the same configuration as that of the first embodiment.

図12は動作検出部81が撮像装置を振り動作を検出する処理の流れを示すフローチャートである。図4の波形を例にとって、撮像装置を振った動作を検出する処理を説明する。   FIG. 12 is a flowchart illustrating a flow of processing in which the motion detection unit 81 swings the imaging apparatus to detect motion. With reference to the waveform of FIG. 4 as an example, processing for detecting an operation of shaking the imaging apparatus will be described.

加速度が図4に示した閾値A若しくは閾値−Aを跨いだとき(図4のプロット310)、撮像装置が振られたことを検出する処理が開始される。撮像装置が振られたことを検出する処理が開始されると、まずステップS100にて第1の加速度波形検出を行う。   When the acceleration crosses the threshold value A or the threshold value -A shown in FIG. 4 (plot 310 in FIG. 4), processing for detecting that the imaging device is shaken is started. When the process of detecting that the imaging device is shaken is started, first acceleration waveform detection is performed in step S100.

第1の加速度波形が閾値A若しくは−Aを跨ぐと、第1の加速度波形が検出されたと判断される(S100でYes)。このステップS100の動作についての詳細な説明は、実施例2のステップ100と同じであるため割愛する。   When the first acceleration waveform crosses the threshold A or -A, it is determined that the first acceleration waveform has been detected (Yes in S100). Since the detailed description of the operation in step S100 is the same as that in step 100 of the second embodiment, a description thereof will be omitted.

第1の加速度波形が検出されると、次にステップS101にて第2の加速度波形の検出処理を行う。第2の加速度波形が閾値B若しくは−Bを跨ぐと(図4のプロット311)、第2の加速度波形が検出したと判断される(S101でYes)。このステップS101の動作についての詳細な説明は、後に図15を用いて詳細に説明する。   When the first acceleration waveform is detected, a second acceleration waveform detection process is performed in step S101. When the second acceleration waveform crosses the threshold B or -B (plot 311 in FIG. 4), it is determined that the second acceleration waveform has been detected (Yes in S101). The detailed description of the operation in step S101 will be described later in detail with reference to FIG.

ステップS102においては、第1の加速度波形が検出され(ステップS100でYes)、かつ第2の加速度波形が検出されると(ステップS101でYes)、撮像装置が振られたか、また上に振られたか下に降られたかを判定する。なお、第2の加速度波形は第1の加速度波形検出で跨いだ閾値とは異符号である必要がある。例えば、第1の加速度波形検出が閾値−Aを跨ぐことによって行われた場合は、第2の加速度波形検出が閾値Bを跨ぐ必要がある。これは第1の加速度波形検出が本動作の前の準備動作であり、本動作とは逆向きに振られているためである。このステップS102の動作についての詳細な説明は、実施例1のステップ102と同じであるため割愛する。   In step S102, when the first acceleration waveform is detected (Yes in step S100) and the second acceleration waveform is detected (Yes in step S101), the imaging apparatus is shaken or shaken upward. It is determined whether it has fallen below. The second acceleration waveform needs to have a different sign from the threshold value straddled by the first acceleration waveform detection. For example, when the first acceleration waveform detection is performed by straddling the threshold value -A, the second acceleration waveform detection needs to straddle the threshold value B. This is because the first acceleration waveform detection is a preparatory operation before the main operation and is swung in the opposite direction to the main operation. The detailed description of the operation in step S102 is omitted because it is the same as that in step 102 of the first embodiment.

そして、ステップS102で撮像装置が振られたと判定されれば(ステップS102でYes)、ステップS104へ進む。なお、上記ステップS100からステップS102までの判定条件で何れかがNoの判定になると、直ぐに振り動作検出が出来なかったと判定して(ステップS103)、ステップS104へ進む。   If it is determined in step S102 that the imaging apparatus has been shaken (Yes in step S102), the process proceeds to step S104. If any of the determination conditions from step S100 to step S102 is determined as No, it is determined that the swing motion cannot be detected immediately (step S103), and the process proceeds to step S104.

ステップS104においては、撮像装置が動いていない状態(加速度が閾値−Aより大きく、閾値A未満の範囲)が閾値Eの時間以上継続されていれば、振り動作が停止した位置であると判定し、加速度波形検出が終了したことを検出する。そして、そして振り動作検出を終了する。このステップS104の動作についての詳細な説明は、実施例4と同じであるため割愛する。   In step S104, if the state in which the imaging device is not moving (the range in which the acceleration is greater than the threshold −A and less than the threshold A) continues for a time equal to or longer than the threshold E, it is determined that the swing motion has stopped. Then, it is detected that the acceleration waveform detection is completed. Then, the swing motion detection ends. Since the detailed description of the operation in step S104 is the same as that in the fourth embodiment, it is omitted.

次に、本実施例における第2の加速度波形検出(図12におけるステップS101)について、図4の振り動作波形の一例と図15の第2の加速度波形を検出するためのフローチャートを用いて詳しく説明する。   Next, the second acceleration waveform detection (step S101 in FIG. 12) in the present embodiment will be described in detail using an example of the swing motion waveform in FIG. 4 and a flowchart for detecting the second acceleration waveform in FIG. To do.

図12のステップS100にて第1の加速度波形が検出された直後に、加速度が閾値A以上になったとき(ステップS300)、加速度が閾値A以上になっている間のピーク値(最大値)を検出する。加速度の検出は、検出周期制御部84にて制御されている加速度センサの検出周期にて検出を行っている。そのため、閾値Aを越えてからのピーク値(最大値)を更新した際にピーク値(最大値)を上書きすることによって、閾値Aを越えてからの検出した波形のピーク値(最大値)を測定することができる。この波形のピーク値(最大値)が閾値B以上となったとき(ステップS301でYes)、ステップS302へ進む。   Immediately after the first acceleration waveform is detected in step S100 of FIG. 12, when the acceleration is greater than or equal to the threshold A (step S300), the peak value (maximum value) while the acceleration is greater than or equal to the threshold A. Is detected. The acceleration is detected at the detection cycle of the acceleration sensor controlled by the detection cycle control unit 84. Therefore, the peak value (maximum value) of the detected waveform after exceeding the threshold A is overwritten by overwriting the peak value (maximum value) when the peak value (maximum value) exceeding the threshold A is updated. Can be measured. When the peak value (maximum value) of this waveform is equal to or greater than the threshold value B (Yes in step S301), the process proceeds to step S302.

しかし、ステップS301において波形のピーク値が閾値B未満であり、閾値Bを越えないまま閾値Aを下回ってしまったら(ステップS301でNo)、第2の加速度波形を検出できなかったとする(ステップS310)。この場合は、図12のステップ103へと進み、加速度波形検出処理が出来なかったとして、図12のステップS104へ進む。   However, if the peak value of the waveform is less than the threshold B in step S301 and falls below the threshold A without exceeding the threshold B (No in step S301), it is assumed that the second acceleration waveform cannot be detected (step S310). ). In this case, the process proceeds to step 103 in FIG. 12, and it is determined that the acceleration waveform detection process cannot be performed, and the process proceeds to step S104 in FIG.

ステップS302では、加速度のピーク値(最大値)が閾値C以上になっていないかを判定する。加速度のピーク値(最大値)が閾値C未満の場合は、ステップS303へ進む。加速度のピーク値(最大値)が閾値C以上である場合は(ステップS302でNo)、加速度波形検出を終了し、画像表示部7などに振り方が強すぎる旨の警告表示を行う(ステップS311)。また、警告は表示だけに限られず、不図示のスピーカーより音声による警告をしても良い。この場合、図12のステップ103へと進む(ステップS101にてNo)。   In step S302, it is determined whether the acceleration peak value (maximum value) is equal to or greater than the threshold value C. When the acceleration peak value (maximum value) is less than the threshold value C, the process proceeds to step S303. If the acceleration peak value (maximum value) is equal to or greater than the threshold value C (No in step S302), the acceleration waveform detection is terminated, and a warning display indicating that the swing is too strong is displayed on the image display unit 7 or the like (step S311). ). Further, the warning is not limited to display only, and a voice warning may be given from a speaker (not shown). In this case, the process proceeds to step 103 in FIG. 12 (No in step S101).

ステップS303においては、加速度が閾値A以上になっている時間t1が、閾値S1以上かつ閾値S2以下であるかどうかを判断する。加速度が閾値A以上になっている時間t1が、閾値S1以上かつ閾値S2以下である場合は(S303でYes)、第2の加速度波形は上向きの波形として検出され(ステップS304)、ステップS320へと移る。   In step S303, it is determined whether the time t1 when the acceleration is equal to or greater than the threshold A is equal to or greater than the threshold S1 and equal to or less than the threshold S2. If the time t1 when the acceleration is equal to or greater than the threshold A is equal to or greater than the threshold S1 and equal to or less than the threshold S2 (Yes in S303), the second acceleration waveform is detected as an upward waveform (step S304), and the process proceeds to step S320. Move on.

ステップS320においては、画像表示部7に表示している画像を、次の画像に変更する。また、ステップS320においては、図4のプロット313のタイミング、即ち再び閾値Aを越えるタイミングで、画像表示部7に表示している画像を、前の画像に変更する。このとき、画像の表示順序はファイルの名前や番号であってもよいし、撮影した日時や記録部61に記憶した日時であっても構わない。その後、第2の加速度波形検出を終了する。   In step S320, the image displayed on the image display unit 7 is changed to the next image. In step S320, the image displayed on the image display unit 7 is changed to the previous image at the timing of the plot 313 in FIG. At this time, the display order of the images may be the name and number of the file, the date and time when the image was taken, and the date and time stored in the recording unit 61. Thereafter, the second acceleration waveform detection ends.

また、加速度が閾値A以上になっている時間t1が、閾値S1未満若しくは閾値S2より長い場合は(S303でNo)、第2の加速度波形を検出できなかったとする(ステップS310)。この場合は、図12のステップ103へと進み、加速度波形検出処理が出来なかったとして、図12のステップS104へ進む。   If the time t1 when the acceleration is equal to or greater than the threshold A is less than the threshold S1 or longer than the threshold S2 (No in S303), it is assumed that the second acceleration waveform cannot be detected (step S310). In this case, the process proceeds to step 103 in FIG. 12, and it is determined that the acceleration waveform detection process cannot be performed, and the process proceeds to step S104 in FIG.

一方で、図12のステップS100にて第1の加速度波形が検出された直後に、加速度が閾値A未満であるとき(ステップS300でNo)、加速度が閾値−A以下になったかどうかを判定する(ステップS305)。加速度が閾値−A以下になったと判定されたとき(ステップS305でYes)、加速度が閾値−A以下になっている間のピーク値(最小値)を検出する。加速度の検出は、検出周期制御部84にて制御されている加速度センサの検出周期にて検出を行っている。そのため、閾値−Aを下回ってからのピーク値(最小値)を更新した際に、ピーク値(最小値)を上書きすることによって、閾値−Aを下回ってからの検出した波形のピーク値(最小値)を測定することができる。この波形のピーク値(最小値)が、閾値−Aを再び跨ぐ前に、閾値−B以下となったとき(ステップS306でYes)、ステップS307へ進む。   On the other hand, immediately after the first acceleration waveform is detected in step S100 in FIG. 12, when the acceleration is less than the threshold A (No in step S300), it is determined whether the acceleration is equal to or less than the threshold −A. (Step S305). When it is determined that the acceleration is equal to or lower than the threshold −A (Yes in step S305), a peak value (minimum value) while the acceleration is equal to or lower than the threshold −A is detected. The acceleration is detected at the detection cycle of the acceleration sensor controlled by the detection cycle control unit 84. Therefore, when the peak value (minimum value) after updating below the threshold value -A is updated, the peak value (minimum value) of the detected waveform after the threshold value -A is overwritten by overwriting the peak value (minimum value). Value) can be measured. When the peak value (minimum value) of this waveform becomes equal to or less than threshold-B before crossing over threshold-A again (Yes in step S306), the process proceeds to step S307.

しかし、ステップS306において波形のピーク値が閾値−Bより大きく、閾値−Bを下回らないまま閾値−Aを上回ってしまったら(ステップS306でNo)、第2の加速度波形を検出できなかったとする(ステップS310)。この場合は、図12のステップ103へと進み、直ちに加速度波形検出処理を終了する。   However, if the peak value of the waveform is larger than the threshold value −B in step S306 and exceeds the threshold value −A without falling below the threshold value −B (No in step S306), it is assumed that the second acceleration waveform cannot be detected (step S306). Step S310). In this case, the process proceeds to step 103 in FIG. 12, and the acceleration waveform detection process is immediately terminated.

ステップS307では、加速度のピーク値(最小値)が閾値−C以下になっていないかを判定する。加速度のピーク値(最小値)が閾値−C以上の場合は、ステップS308へ進む。加速度のピーク値(最小値)が閾値−C未満である場合は(ステップS307でNo)、加速度波形検出を終了し、画像表示部7などに振り方が強すぎる旨の警告表示を行う(ステップS311)。また、警告は表示だけに限られず、不図示のスピーカーより音声による警告をしても良い。この場合、図12のステップ103へと進む(ステップS101にてNo)。   In step S307, it is determined whether or not the peak value (minimum value) of acceleration is equal to or less than the threshold −C. If the peak value (minimum value) of acceleration is equal to or greater than the threshold value −C, the process proceeds to step S308. If the peak value (minimum value) of acceleration is less than the threshold value −C (No in step S307), the acceleration waveform detection is terminated and a warning display indicating that the swing is too strong is displayed on the image display unit 7 or the like (step) S311). Further, the warning is not limited to display only, and a voice warning may be given from a speaker (not shown). In this case, the process proceeds to step 103 in FIG. 12 (No in step S101).

ステップS308においては、加速度が閾値−A未満になっている時間t1が、閾値S1以上かつ閾値S2以下であるかどうかを判断する。加速度が閾値−A未満になっている時間t1が、閾値S1以上かつ閾値S2以下である場合は(S308でYes)、第2の加速度波形は下向きの波形として検出され(ステップS309)、ステップS321へと移る。ステップS321においては、画像表示部7に表示している画像を、前の画像に変更する。また、ステップS321においては、図4のプロット313のタイミング、即ち再び閾値Aを越えるタイミングで、画像表示部7に表示している画像を、前の画像に変更する。このとき、画像の表示順序はファイルの名前や番号であってもよいし、撮影した日時や記録部61に記憶した日時であっても構わないが、ステップS320で表示される画像と順序が逆になるようにする。但し、ランダム再生のようにランダムで画像の表示順序を決める特殊なモードがあるときは、その限りではない。そして、第2の加速度波形検出を終了する。   In step S308, it is determined whether the time t1 when the acceleration is less than the threshold −A is equal to or greater than the threshold S1 and equal to or less than the threshold S2. When the time t1 when the acceleration is less than the threshold −A is equal to or greater than the threshold S1 and equal to or less than the threshold S2 (Yes in S308), the second acceleration waveform is detected as a downward waveform (step S309), and step S321. Move on. In step S321, the image displayed on the image display unit 7 is changed to the previous image. In step S321, the image displayed on the image display unit 7 is changed to the previous image at the timing of the plot 313 in FIG. At this time, the display order of the images may be the name or number of the file, or may be the date / time of shooting or the date / time stored in the recording unit 61, but the order of the images displayed in step S320 is reversed. To be. However, this is not the case when there is a special mode that randomly determines the image display order, such as random playback. Then, the second acceleration waveform detection ends.

また、加速度が閾値A以上になっている時間t1が、閾値S1未満若しくは閾値S2より長い場合は(S308でNo)、第2の加速度波形を検出できなかったとする(ステップS310)。この場合は、図12のステップ103へと進み、加速度波形検出処理が出来なかったとして、ステップS104へ進む。   If the time t1 when the acceleration is equal to or greater than the threshold A is less than the threshold S1 or longer than the threshold S2 (No in S308), it is assumed that the second acceleration waveform cannot be detected (step S310). In this case, the process proceeds to step 103 in FIG. 12, and the process proceeds to step S104, assuming that the acceleration waveform detection process cannot be performed.

実施例5においては、ステップS320及びステップS321にて、図4のプロット313のタイミングにて画像の変更を行った。ただし、効果が同じであれば特に限定は無く、プロット312の時点(閾値Bを越えたタイミング)で行っても、プロット315の時点(閾値Bを再び越えたタイミング)であってもよい。またプロット312のタイミングからプロット315のタイミングであれば、任意のタイミングで良い。   In Example 5, the image was changed at the timing of the plot 313 in FIG. 4 in Step S320 and Step S321. However, as long as the effect is the same, there is no particular limitation, and it may be performed at the time point of the plot 312 (timing when the threshold value B is exceeded) or at the time point of the plot 315 (timing when the threshold value B is exceeded again). Any timing may be used as long as it is from the timing of the plot 312 to the timing of the plot 315.

以上のような構成により、本実施例における撮像装置は、実施例1から実施例4までの撮像装置の有する効果を得ることができる。そして、撮像装置などの携帯機器によって振ったことを正確に検知することを可能となり、従来よりも直感的で分かりやすい操作系を提供することができる。   With the configuration as described above, the imaging apparatus according to the present embodiment can obtain the effects of the imaging apparatuses according to the first to fourth embodiments. And it becomes possible to detect correctly that it shakes with portable devices, such as an imaging device, and can provide an intuitive and easy-to-understand operation system than before.

以上、第1〜第5の実施形態について撮像装置の振り動作の検出方法を説明してきたが、検出動作は振る動作に限らず、例えば揺らすなどのように、加速度センサ利用できる動作であれば良い。さらに、加速度の波形について検出方法を説明してきたが、加速度波形にハイパスフィルタやローパスフィルタなどのフィルタ処理を加えてから所定の動作の検出を行っても良い。実施形態の説明の中では、X軸に限定して説明しているが、検出したい動作や種類に応じて閾値を設定し、図示していないがカメラレンズの光軸方向をZ軸とするとき、Y軸やZ軸を含めた複数の検出軸を組み合わせて動作の検出を行っても良いことは言うまでもない。   As described above, the detection method of the swing operation of the imaging apparatus has been described for the first to fifth embodiments. However, the detection operation is not limited to the swing operation, and may be any operation that can use the acceleration sensor, such as shaking. . Furthermore, although the detection method has been described for the acceleration waveform, a predetermined operation may be detected after applying a filtering process such as a high-pass filter or a low-pass filter to the acceleration waveform. In the description of the embodiment, the description is limited to the X axis. However, when the threshold value is set according to the operation and type to be detected and the optical axis direction of the camera lens is set to the Z axis, which is not illustrated, Needless to say, the motion may be detected by combining a plurality of detection axes including the Y axis and the Z axis.

また、第3と第5の実施形態について、撮像装置を振る動作を検出することによって、撮影した動画像の再生と停止や、早送りと巻き戻しの機能を割り当てることによって動画再生にも対応できる・
上記では加速度検出手段によって所定の動作を検出する一手法として説明してきたが、角速度や振動を検出する手段を用いて所定の動作を検出するようにしても良い。また、上記の実施例中では撮像装置について説明したが、撮影を実行できる電子機器、通信機器などでも同様の効果を得ることができる。
In addition, with respect to the third and fifth embodiments, by detecting the motion of shaking the imaging device, it is possible to support moving image playback by assigning functions for playback and stop of the captured moving image and fast forward and rewind.
In the above description, a method for detecting a predetermined motion by the acceleration detecting means has been described. However, the predetermined motion may be detected by using a means for detecting angular velocity or vibration. In the above-described embodiments, the imaging apparatus has been described. However, the same effect can be obtained with an electronic device, a communication device, or the like that can execute photographing.

(その他の実施例)
本発明の目的は、以下の処理を実行することによって達成される。即ち、上述した実施の形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)が記憶媒体に格納されたプログラムコードを読み出す処理である。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施の形態の機能を実現することになり、そのプログラムコード及び該プログラムコードを記憶した記憶媒体は本発明を構成することになる。
(Other examples)
The object of the present invention is achieved by executing the following processing. That is, a storage medium storing software program codes for realizing the functions of the above-described embodiments is supplied to a system or apparatus, and a computer (or CPU, MPU, etc.) of the system or apparatus is stored in the storage medium. This is a process of reading the program code. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the program code and the storage medium storing the program code constitute the present invention.

また、プログラムコードを供給するための記憶媒体としては、次のものを用いることができる。例えば、フロッピー(登録商標)ディスク、ハードディスク、光磁気ディスク、CD−ROM、CD−R、CD−RW、DVD−ROM、DVD−RAM、DVD−RW、DVD+RW、磁気テープ、不揮発性のメモリカード、ROM等である。または、プログラムコードをネットワークを介してダウンロードしてもよい。   Moreover, the following can be used as a storage medium for supplying the program code. For example, floppy (registered trademark) disk, hard disk, magneto-optical disk, CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW, magnetic tape, nonvolatile memory card, ROM or the like. Alternatively, the program code may be downloaded via a network.

また、コンピュータが読み出したプログラムコードを実行することにより、上記実施の形態の機能が実現される場合も本発明に含まれる。加えて、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行い、その処理によって前述した実施の形態の機能が実現される場合も含まれる。   Further, the present invention includes a case where the function of the above embodiment is realized by executing the program code read by the computer. In addition, an OS (operating system) running on the computer performs part or all of the actual processing based on the instruction of the program code, and the functions of the above-described embodiments are realized by the processing. Cases are also included.

更に、前述した実施の形態の機能が以下の処理によって実現される場合も本発明に含まれる。即ち、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれる。その後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部または全部を行う場合である。   Furthermore, the present invention includes a case where the functions of the above-described embodiment are realized by the following processing. That is, the program code read from the storage medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. Thereafter, based on the instruction of the program code, the CPU or the like provided in the function expansion board or function expansion unit performs part or all of the actual processing.

本発明を上記記憶媒体に適用する場合、その記憶媒体には、先に説明した手順に対応するプログラムコードが格納されることになる。   When the present invention is applied to the above storage medium, the storage medium stores program codes corresponding to the procedure described above.

1 撮像装置
21 撮像素子
41 露光制御部
50 システム制御部
80 加速度センサ制御部
81 動作検出部
82 姿勢検出部
83 加速度センサ
84 振動検出周期制御部
DESCRIPTION OF SYMBOLS 1 Imaging device 21 Imaging element 41 Exposure control part 50 System control part 80 Acceleration sensor control part 81 Motion detection part 82 Posture detection part 83 Acceleration sensor 84 Vibration detection period control part

Claims (5)

光学像を電気的な信号に変換する撮像素子を有する撮像装置であって、
前記撮像素子にて結像した光学像を画像として表示する表示部と、
前記表示部に表示する画像を変更する変更手段と、
前記撮像装置に加わる振れの加速成分を検出して出力する加速度検出手段と、
前記加速度検出手段の出力から、前記変更手段によって前記表示部に表示する画像を変更するために操作者によって加えられた振れを検出する動作検出手段とを有し、
前記動作検出手段は、前記加速度信号が第1の閾値に達し、かつ前記第1の閾値を超えたことを検出した後に前記第1の閾値と異符号かつ前記第1の閾値よりも絶対値が大きい第2の閾値に達した後に、前記加速度信号が前記第2の閾値と同じ符号かつ前記第2の閾値よりも絶対値が小さい第3の閾値に達すると、前記操作者によって加えられた振れを検出し、
前記変更手段は、前記動作検出手段の検出結果に応じて前記表示部に表示する画像を変更することを特徴とする撮像装置。
An imaging apparatus having an imaging element that converts an optical image into an electrical signal,
A display unit for displaying an optical image formed by the image sensor as an image;
Changing means for changing an image displayed on the display unit;
Acceleration detecting means for detecting and outputting an acceleration component of shake applied to the imaging device;
Motion detection means for detecting a shake applied by an operator to change an image displayed on the display unit by the changing means from an output of the acceleration detecting means;
The motion detection means detects that the acceleration signal has reached a first threshold value and has exceeded the first threshold value, and has a different sign from the first threshold value and has an absolute value greater than the first threshold value. When the acceleration signal reaches a third threshold having the same sign as the second threshold and an absolute value smaller than the second threshold after reaching a large second threshold, the shake applied by the operator Detect
The image pickup apparatus, wherein the changing unit changes an image displayed on the display unit in accordance with a detection result of the operation detecting unit.
前記動作検出手段は、前記操作者によって加えられた振れの前記振れの向きを判定する向き判定手段を更に備え、
前記向き判定手段は前記第1の閾値もしくは第2の閾値の符号によって前記操作者によって加えられた振れの方向を判定することを特徴とする請求項1に記載の撮像装置。
The motion detection means further comprises a direction determination means for determining the direction of the shake of the shake applied by the operator,
The imaging apparatus according to claim 1, wherein the direction determination unit determines a direction of shake applied by the operator based on a sign of the first threshold value or the second threshold value.
前記変更手段は、前記操作者によって加えられた振れの方向に応じて前記表示部に表示する画像を変更することを特徴とする請求項2に記載の撮像装置。   The imaging apparatus according to claim 2, wherein the changing unit changes an image displayed on the display unit according to a direction of a shake applied by the operator. 光学像を電気的な信号に変換する撮像素子と、前記撮像素子にて結像した光学像を画像として表示する表示部とを有する撮像装置であって、
前記表示部に表示する画像を変更する変更工程と、
振れの加速成分を検出して出力する加速度検出工程と、
前記加速度検出工程の出力から、前記変更工程によって前記表示部に表示する画像を変更するために操作者によって加えられた振れを検出する動作検出工程とを有し、
前記動作検出工程は、前記加速度信号が第1の閾値に達し、かつ前記第1の閾値を超えたことを検出した後に前記第1の閾値と異符号かつ前記第1の閾値よりも絶対値が大きい第2の閾値に達した後に、前記加速度信号が前記第2の閾値と同じ符号かつ前記第2の閾値よりも絶対値が小さい第3の閾値に達すると、前記操作者によって加えられた振れを検出し、
前記変更工程は、前記動作検出工程の検出結果に応じて前記表示部に表示する画像を変更することを特徴とする撮像装置の制御方法。
An imaging device having an imaging device that converts an optical image into an electrical signal, and a display unit that displays an optical image formed by the imaging device as an image,
A changing step of changing an image displayed on the display unit;
An acceleration detection step for detecting and outputting an acceleration component of shake;
From the output of the acceleration detection step, it has an operation detection step of detecting shake added by an operator to change the image displayed on the display unit by the change step,
In the motion detection step, after detecting that the acceleration signal reaches the first threshold and exceeds the first threshold, the absolute value is different from the first threshold and has an absolute value greater than the first threshold. When the acceleration signal reaches a third threshold having the same sign as the second threshold and an absolute value smaller than the second threshold after reaching a large second threshold, the shake applied by the operator Detect
The method for controlling an imaging apparatus, wherein the changing step changes an image displayed on the display unit in accordance with a detection result of the operation detecting step.
請求項4に記載の制御方法をコンピュータに実行させることを特徴とするプログラム。   A program for causing a computer to execute the control method according to claim 4.
JP2009034028A 2009-02-17 2009-02-17 Detection device and control method of detection device Expired - Fee Related JP5495579B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2009034028A JP5495579B2 (en) 2009-02-17 2009-02-17 Detection device and control method of detection device
US12/704,718 US9363428B2 (en) 2009-02-17 2010-02-12 Image processing apparatus and method
CN2010101171521A CN101827213B (en) 2009-02-17 2010-02-20 Image pickup device and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009034028A JP5495579B2 (en) 2009-02-17 2009-02-17 Detection device and control method of detection device

Publications (3)

Publication Number Publication Date
JP2010193067A true JP2010193067A (en) 2010-09-02
JP2010193067A5 JP2010193067A5 (en) 2012-04-05
JP5495579B2 JP5495579B2 (en) 2014-05-21

Family

ID=42818653

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009034028A Expired - Fee Related JP5495579B2 (en) 2009-02-17 2009-02-17 Detection device and control method of detection device

Country Status (1)

Country Link
JP (1) JP5495579B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015529911A (en) * 2012-09-28 2015-10-08 インテル コーポレイション Determination of augmented reality information

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000047813A (en) * 1998-07-24 2000-02-18 Casio Comput Co Ltd Event signal generating device and electronic apparatus using the generating device
JP2000125184A (en) * 1998-10-20 2000-04-28 Fuji Photo Film Co Ltd Camera
JP2000148351A (en) * 1998-09-09 2000-05-26 Matsushita Electric Ind Co Ltd Operation instruction output device giving operation instruction in accordance with kind of user's action and computer-readable recording medium
JP2007293191A (en) * 2006-04-27 2007-11-08 Nintendo Co Ltd Sound outputting program and sound outputting device
JP2008117256A (en) * 2006-11-07 2008-05-22 Sony Computer Entertainment Inc Operation data input system, operation data input method and program
JP2008136696A (en) * 2006-12-01 2008-06-19 Namco Bandai Games Inc Program, information storage medium, and game device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000047813A (en) * 1998-07-24 2000-02-18 Casio Comput Co Ltd Event signal generating device and electronic apparatus using the generating device
JP2000148351A (en) * 1998-09-09 2000-05-26 Matsushita Electric Ind Co Ltd Operation instruction output device giving operation instruction in accordance with kind of user's action and computer-readable recording medium
JP2000125184A (en) * 1998-10-20 2000-04-28 Fuji Photo Film Co Ltd Camera
JP2007293191A (en) * 2006-04-27 2007-11-08 Nintendo Co Ltd Sound outputting program and sound outputting device
JP2008117256A (en) * 2006-11-07 2008-05-22 Sony Computer Entertainment Inc Operation data input system, operation data input method and program
JP2008136696A (en) * 2006-12-01 2008-06-19 Namco Bandai Games Inc Program, information storage medium, and game device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015529911A (en) * 2012-09-28 2015-10-08 インテル コーポレイション Determination of augmented reality information
US9691180B2 (en) 2012-09-28 2017-06-27 Intel Corporation Determination of augmented reality information

Also Published As

Publication number Publication date
JP5495579B2 (en) 2014-05-21

Similar Documents

Publication Publication Date Title
JP3896505B2 (en) Electronic camera
JP5259464B2 (en) Imaging apparatus and mode switching method thereof
JP5357800B2 (en) Electronic device and control method thereof
JP5558956B2 (en) Imaging apparatus and control method thereof
US20100208118A1 (en) Image processing apparatus and method
JP2010193031A (en) Photographic apparatus and method for controlling the same
JP2009222921A (en) Image display device, photographing device and image display method
JP5312086B2 (en) Electronic device, imaging apparatus, and control method and program for electronic device
JP5495579B2 (en) Detection device and control method of detection device
JP2010193069A (en) Detection device and method, and program
JP5735759B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP2010193068A (en) Detection device and method, and program
JP2012019321A (en) Imaging apparatus, control method thereof, program, and storage medium
JP2008249928A (en) Imaging apparatus
JP5458202B2 (en) Imaging apparatus and mode switching method thereof
JP5744289B2 (en) Electronic device, control method of electronic device, program, and storage medium
JP5559399B2 (en) Electronic device and control method thereof
JP2011075831A (en) Image pickup device, control method therefor and program thereof
JP5736014B2 (en) Electronic device and control method thereof
JP2010217778A (en) Imaging apparatus
JP5325626B2 (en) Camera and subject tracking method
JP2013225773A (en) Image pickup device and control method and program thereof and recording medium
JP2010109516A (en) Imaging device
JP2011082753A (en) Electronic camera
JP2017005470A (en) Imaging device, control method for imaging device and program

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20100630

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120217

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120217

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130307

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130319

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130520

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131112

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140114

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140304

R151 Written notification of patent or utility model registration

Ref document number: 5495579

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees