JP2015197724A - Gesture detection apparatus, operation method thereof, and control program - Google Patents

Gesture detection apparatus, operation method thereof, and control program Download PDF

Info

Publication number
JP2015197724A
JP2015197724A JP2014074178A JP2014074178A JP2015197724A JP 2015197724 A JP2015197724 A JP 2015197724A JP 2014074178 A JP2014074178 A JP 2014074178A JP 2014074178 A JP2014074178 A JP 2014074178A JP 2015197724 A JP2015197724 A JP 2015197724A
Authority
JP
Japan
Prior art keywords
coordinate value
detection
unit
motion
coordinate
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
JP2014074178A
Other languages
Japanese (ja)
Other versions
JP6322029B2 (en
Inventor
良治 栗林
Ryoji Kuribayashi
良治 栗林
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.)
MegaChips Corp
Original Assignee
MegaChips Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by MegaChips Corp filed Critical MegaChips Corp
Priority to JP2014074178A priority Critical patent/JP6322029B2/en
Publication of JP2015197724A publication Critical patent/JP2015197724A/en
Application granted granted Critical
Publication of JP6322029B2 publication Critical patent/JP6322029B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a technology of detecting gestures through simple processing with high accuracy.SOLUTION: A gesture detection apparatus 1 includes: a table holding section 12 which holds a first table for holding information on a first coordinate value indicating a position of a detection object 60 in a first coordinate axis, and a second table for holding information on a second coordinate value indicating a position of the detection object 60 in a second coordinate axis perpendicular to the first coordinate axis; a table updating section 11 which updates information on the first coordinate value in the first table, on the basis of the first coordinate values sequentially input, and updates information on the second coordinate value in the second table, on the basis of the second coordinate values sequentially input; and a gesture detection section 13 which detects a motion pattern of the detection object 60, on the basis of the first and second tables.

Description

本発明は、ジェスチャー検出装置に関する。   The present invention relates to a gesture detection device.

特許文献1〜3にも記載されているように、検知対象物の動きパターン(ジェスチャー)を検出する技術が従来から提案されている。   As described in Patent Documents 1 to 3, techniques for detecting a motion pattern (gesture) of a detection target have been proposed.

特許第3637226号公報Japanese Patent No. 3637226 特許第5116754号公報Japanese Patent No. 5116754 特開2012−123617号公報JP 2012-123617 A

さて、ジェスチャー検出装置については、簡単な処理で精度よくジェスチャーを検出することが望まれる。   As for the gesture detection device, it is desired to detect a gesture with high accuracy by simple processing.

そこで、本発明は上述した点に鑑みて成されたものであり、簡単な処理で精度よくジェスチャーを検出することを可能とする技術を提供することを目的とする。   Accordingly, the present invention has been made in view of the above-described points, and an object of the present invention is to provide a technique that can accurately detect a gesture with simple processing.

上記課題を解決するため、本発明に係るジェスチャー検出装置の一態様は、第1座標軸での検知対象物の位置を示す第1座標値が同一方向に連続して変化する回数、および前記第1座標値が同一方向に連続して変化する際の前記第1座標値の変化量の累積値のうちの少なくとも1つと、前記第1座標値が同一方向に連続して変化する際の前記第1座標値の変化方向とを含む、前記第1座標値に関する情報を保持する第1テーブルと、当該第1座標軸に垂直な第2座標軸での当該検知対象物の位置を示す第2座標値が同一方向に連続して変化する回数、および前記第2座標値が同一方向に連続して変化する際の前記第2座標値の変化量の累積値のうちの少なくとも1つと、前記第2座標値が同一方向に連続して変化する際の前記第2座標値の変化方向とを含む、前記第2座標値に関する情報を保持する第2テーブルとを保持するテーブル保持部と、順次入力される前記第1座標値に基づいて前記第1テーブル内の前記第1座標値に関する情報を更新し、順次入力される前記第2座標値に基づいて前記第2テーブル内の前記第2座標値に関する情報を更新するテーブル更新部と、前記第1及び第2テーブルに基づいて、前記検知対象物の動きパターンを検出するジェスチャー検出部とを備える。   In order to solve the above-described problem, an aspect of the gesture detection device according to the present invention includes a number of times that the first coordinate value indicating the position of the detection target on the first coordinate axis continuously changes in the same direction, and the first At least one of the accumulated values of the change amount of the first coordinate value when the coordinate value continuously changes in the same direction, and the first when the first coordinate value continuously changes in the same direction. The first table that holds information about the first coordinate value including the change direction of the coordinate value is the same as the second coordinate value indicating the position of the detection object on the second coordinate axis perpendicular to the first coordinate axis. At least one of the number of continuous changes in the direction and the cumulative value of the change amount of the second coordinate value when the second coordinate value continuously changes in the same direction; and the second coordinate value is Change of the second coordinate value when continuously changing in the same direction A table holding unit that holds a second table that holds information about the second coordinate value including a direction, and the first coordinate value in the first table based on the first coordinate value that is sequentially input A table updating unit for updating information on the second coordinate value in the second table based on the second coordinate value sequentially input, and on the basis of the first and second tables, A gesture detection unit that detects a movement pattern of the detection object.

また、本発明に係るジェスチャー検出装置の一態様では、前記ジェスチャー検出部は、前記第1及び第2座標軸で特定される座標平面上で前記検知対象物が回転する第1動作を、前記第1及び第2テーブルに基づいて検出する動作検出部を備え、前記ジェスチャー検出部は、前記動作検出部で検出される前記第1動作を前記動きパターンとし、前記動作検出部は、前記第1テーブルに基づいて、前記第1座標軸のプラス方向に沿った前記検出対象物の第1移動方向と、前記第1座標軸のマイナス方向に沿った前記検出対象物の第2移動方向とを特定し、前記第2テーブルに基づいて、前記第2座標軸のプラス方向に沿った前記検出対象物の第3移動方向と、前記第2座標軸のマイナス方向に沿った前記検出対象物の第4移動方向とを特定する移動方向特定部と、前記移動方向特定部において前記検知対象物の移動方向が特定された順序が所定順序を示す場合に、前記検知対象物が前記第1動作を行っていると判定する判定部とを有する。   In one aspect of the gesture detection apparatus according to the present invention, the gesture detection unit performs a first operation in which the detection target rotates on a coordinate plane specified by the first and second coordinate axes. And a motion detection unit that detects based on the second table, wherein the gesture detection unit uses the first motion detected by the motion detection unit as the motion pattern, and the motion detection unit stores the motion detection unit in the first table. Based on the first movement direction of the detection object along the plus direction of the first coordinate axis and the second movement direction of the detection object along the minus direction of the first coordinate axis, Based on two tables, a third movement direction of the detection object along the plus direction of the second coordinate axis and a fourth movement direction of the detection object along the minus direction of the second coordinate axis are specified. And a determination unit that determines that the detection target is performing the first operation when the order in which the movement direction of the detection target is specified in the movement direction specification unit indicates a predetermined order. And have.

また、本発明に係るジェスチャー検出装置の一態様では、前記判定部は、前記移動方向特定部において前記検知対象物の移動方向が特定された順序を履歴情報として保持し、前記履歴情報に基づいて、前記移動方向特定部において前記移動方向が特定された順序が前記所定順序を示すかどうかを判断し、前記移動方向特定部で前記移動方向が特定されたとき、当該移動方向と前記履歴情報が示す前記移動方向特定部において前記検知対象物の移動方向が特定された順序との組み合わせが前記所定順序のうちの先頭から始まる部分に含まれる場合には前記履歴情報を更新し、当該組み合わせが前記所定順序のうちの先頭から始まる部分に含まれない場合には前記履歴情報をクリアする。   Moreover, in one aspect of the gesture detection apparatus according to the present invention, the determination unit holds, as history information, the order in which the movement direction of the detection target is specified by the movement direction specification unit, and based on the history information. Determining whether the order in which the moving directions are specified in the moving direction specifying unit indicates the predetermined order, and when the moving direction is specified in the moving direction specifying unit, the moving direction and the history information are When the combination with the order in which the movement direction of the detection target is specified in the movement direction specifying unit is included in a portion starting from the top of the predetermined order, the history information is updated, and the combination is The history information is cleared when it is not included in the part starting from the top in the predetermined order.

また、本発明に係るジェスチャー検出装置の一態様では、前記判定部は、前記移動方向特定部において前記検知対象物の移動方向が特定された順序が、前記所定順序を含む複数種類の順序に含まれる場合に、前記検知対象物が前記第1動作を行っていると判定する。   Moreover, in one aspect of the gesture detection apparatus according to the present invention, the determination unit includes the order in which the movement direction of the detection target is specified by the movement direction specification unit in a plurality of types of orders including the predetermined order. When it is determined that the detection target is performing the first operation.

また、本発明に係るジェスチャー検出装置の一態様では、前記第1動作には、前記座標平面上で前記検知対象物が第1方向に回転する第1回転動作と、前記座標平面上で前記検知対象物が前記第1方向とは反対の第2方向に回転する第2回転動作とが含まれ、前記判定部は、前記移動方向特定部において前記検知対象物の移動方向が特定された順序が第1所定順序を示す場合に、前記検知対象物が前記第1回転動作を行っていると判定し、前記移動方向特定部において前記検知対象物の移動方向が特定された順序が前記第1所定順序とは異なる第2所定順序を示す場合に、前記検知対象物が前記第2回転動作を行っていると判定する。   In the aspect of the gesture detection device according to the present invention, the first operation includes a first rotation operation in which the detection target object rotates in the first direction on the coordinate plane, and the detection on the coordinate plane. A second rotation operation in which the object rotates in a second direction opposite to the first direction, and the determination unit has an order in which the movement direction of the detection object is specified by the movement direction specifying unit. When the first predetermined order is indicated, it is determined that the detection object is performing the first rotation operation, and the order in which the movement direction of the detection object is specified by the movement direction specifying unit is the first predetermined order. When the second predetermined order different from the order is indicated, it is determined that the detection target object is performing the second rotation operation.

また、本発明に係るジェスチャー検出装置の一態様では、前記判定部は、前記移動方向特定部において前記検知対象物の移動方向が特定された順序を履歴情報として保持し、前記履歴情報に基づいて、前記移動方向特定部において前記移動方向が特定された順序が前記第1及び第2所定順序のいずれを示すかどうかを判断し、前記移動方向特定部で前記移動方向が特定されたとき、当該移動方向と前記履歴情報が示す前記移動方向特定部において前記検知対象物の移動方向が特定された順序との組み合わせが、前記第1所定順序のうちの先頭から始まる部分及び前記第2所定順序のうちの先頭から始まる部分のいずれかに含まれる場合には前記履歴情報を更新し、当該組み合わせが前記第1所定順序のうちの先頭から始まる部分及び前記第2所定順序のうちの先頭から始まる部分のいずれにも含まれない場合には前記履歴情報をクリアする。   Moreover, in one aspect of the gesture detection apparatus according to the present invention, the determination unit holds, as history information, the order in which the movement direction of the detection target is specified by the movement direction specification unit, and based on the history information. Determining whether the order in which the moving direction is specified in the moving direction specifying unit indicates the first or second predetermined order, and when the moving direction is specified in the moving direction specifying unit, The combination of the moving direction and the order in which the moving direction of the detection target is specified in the moving direction specifying unit indicated by the history information is a portion starting from the top of the first predetermined order and the second predetermined order. If it is included in any of the parts starting from the beginning, the history information is updated, and the combination starts from the beginning of the first predetermined order and the second If not included in any of the parts that start from the beginning of the constant sequence clears the history information.

また、本発明に係るジェスチャー検出装置の一態様では、前記判定部は、前記移動方向特定部において前記検知対象物の移動方向が特定された順序が、前記第1所定順序を含む複数種類の第1順序に含まれる場合に、前記検知対象物が前記第1回転動作を行っていると判定し、前記移動方向特定部において前記検知対象物の移動方向が特定された順序が、前記第2所定順序を含む複数種類の第2順序に含まれる場合に、前記検知対象物が前記第2回転動作を行っていると判定する。   Further, in one aspect of the gesture detection apparatus according to the present invention, the determination unit includes a plurality of types of first orders in which the movement direction specifying unit specifies the movement direction of the detection target object including the first predetermined order. When the detection target is included in one order, it is determined that the detection target is performing the first rotation operation, and the order in which the movement direction of the detection target is specified in the movement direction specifying unit is the second predetermined value. When included in a plurality of types of second orders including the order, it is determined that the detection target object is performing the second rotation operation.

また、本発明に係るジェスチャー検出装置の一態様では、前記動作検出部は、前記第1座標軸に沿って前記検知対象物が動く第2動作を前記第1テーブルに基づいて検出し、前記ジェスチャー検出部は、前記動作検出部が前記第1及び第2動作の両方を検出したときには、前記第1動作を前記動きパターンとし、前記動作検出部が前記第2動作を検出し、かつ前記第1動作を検出しないときには、前記第2動作を前記動きパターンとする。   Further, in one aspect of the gesture detection apparatus according to the present invention, the motion detection unit detects a second motion of the detection target moving along the first coordinate axis based on the first table, and detects the gesture. When the motion detection unit detects both the first and second motions, the first motion is used as the motion pattern, the motion detection unit detects the second motion, and the first motion When the second motion is not detected, the second motion is set as the motion pattern.

また、本発明に係るジェスチャー検出装置の一態様では、前記テーブル保持部は、前記第1及び第2座標軸に垂直な第3座標軸での前記検知対象物の位置を示す第3座標値が同一方向に連続して変化する回数、および前記第3座標値が同一方向に連続して変化する際の前記第3座標値の変化量の累積値のうちの少なくとも1つと、前記第3座標値が同一方向に連続して変化する際の前記第3座標値の変化方向とを含む、前記第3座標値に関する情報を保持する第3テーブルを保持し、前記テーブル更新部は、順次入力される前記第3座標値に基づいて前記第3テーブル内の前記第3座標値に関する情報を更新し、前記動作検出部は、前記第3座標軸に沿って前記検知対象物が動く第2動作を前記第3テーブルに基づいて検出し、前記ジェスチャー検出部は、前記動作検出部が前記第1及び第2動作の両方を検出したときには、前記第1動作を前記動きパターンとし、前記動作検出部が前記第2動作を検出し、かつ前記第1動作を検出しないときには、前記第2動作を前記動きパターンとする。   In the aspect of the gesture detection apparatus according to the present invention, the table holding unit may have a third coordinate value indicating a position of the detection target on a third coordinate axis perpendicular to the first and second coordinate axes in the same direction. The third coordinate value is the same as at least one of the number of times the third coordinate value continuously changes and the cumulative value of the change amount of the third coordinate value when the third coordinate value continuously changes in the same direction. A third table that holds information about the third coordinate value, including a change direction of the third coordinate value when the direction continuously changes, and the table update unit sequentially inputs the first table Information on the third coordinate value in the third table is updated based on the three coordinate values, and the motion detection unit performs a second motion of the detection target object along the third coordinate axis in the third table. Detect based on the gesture The detection unit detects the first motion as the motion pattern when the motion detection unit detects both the first and second motions, the motion detection unit detects the second motion, and the first motion; When one motion is not detected, the second motion is set as the motion pattern.

また、本発明に係るジェスチャー検出装置の一態様では、前記動作検出部は、前記第1座標軸に沿って前記検知対象物がプラス方向及びマイナス方向に交互に動く第3動作を前記第1テーブルに基づいて検出し、前記ジェスチャー検出部は、前記動作検出部が前記第3動作を検出したときには、前記第3動作を前記動きパターンとする。   Further, in one aspect of the gesture detection apparatus according to the present invention, the motion detection unit causes the first table to perform a third motion in which the detection target moves alternately in the plus direction and the minus direction along the first coordinate axis. The gesture detection unit detects the third motion as the motion pattern when the motion detection unit detects the third motion.

また、本発明に係るジェスチャー検出装置の一態様では、前記テーブル保持部は、前記1及び第2座標軸に垂直な第3座標軸での前記検知対象物の位置を示す第3座標値が同一方向に連続して変化する回数、および前記第3座標値が同一方向に連続して変化する際の前記第3座標値の変化量の累積値のうちの少なくとも1つと、前記第3座標値が同一方向に連続して変化する際の前記第3座標値の変化方向とを含む、前記第3座標値に関する情報を保持する第3テーブルを保持し、前記テーブル更新部は、順次入力される前記第3座標値に基づいて前記第3テーブル内の前記第3座標値に関する情報を更新し、前記動作検出部は、前記第3座標軸に沿って前記検知対象物がプラス方向およびマイナス方向に交互に動く第3動作を前記第3テーブルに基づいて検出し、前記ジェスチャー検出部は、前記動作検出部が前記第3動作を検出したときには、前記第3動作を前記動きパターンとする。   Further, in one aspect of the gesture detection apparatus according to the present invention, the table holding unit has a third coordinate value indicating a position of the detection object on a third coordinate axis perpendicular to the first and second coordinate axes in the same direction. The third coordinate value is in the same direction as at least one of the number of times of continuous change and the cumulative value of the amount of change in the third coordinate value when the third coordinate value continuously changes in the same direction. And a third table that holds information about the third coordinate value, including a change direction of the third coordinate value when continuously changing, and the table updating unit sequentially inputs the third table Information on the third coordinate value in the third table is updated based on the coordinate value, and the motion detection unit is configured to move the detection target alternately in the plus direction and the minus direction along the third coordinate axis. 3 movements in the third table It detected based on Le, the gesture detection unit, when the operation detecting section detects the third operation, the third operation and the motion pattern.

また、本発明に係るジェスチャー検出装置の一態様では、前記第1及び第2座標値は、前記検知対象物の位置を検出し、前記座標平面に平行な検出面を有する位置検出装置から出力され、前記位置検出装置は、前記第1及び第2座標軸に垂直な第3座標軸での前記検知対象物の位置を示す第3座標値を出力し、前記動作検出部は、前記第1座標軸に沿って前記検知対象物が動く第2動作を前記第1テーブルに基づいて検出し、前記第3座標値に基づいて、前記検知対象物が存在するか否かを特定する検知対象物有無特定部を更に備え、前記ジェスチャー検出部は、前記動作検出部が前記第1及び第2動作の両方を検出したときには、前記第1動作を前記動きパターンとし、前記判定部が履歴情報を保持しておらず、かつ前記動作検出部によって前記第2動作が検出されているときには、当該第2動作を動きパターンとし、前記検知対象物有無特定部によって前記検知対象物が存在すると特定された場合において、前記判定部が前記履歴情報を保持し、かつ前記動作検出部によって前記第2動作が検出されているときには、当該第2動作を前記動きパターンとせず、前記検知対象物有無特定部によって前記検知対象物が存在しないと特定された場合において、前記判定部が前記履歴情報を保持し、かつ前記動作検出部によって前記第1動作が検出されず前記第2動作が検出されているときには、当該第2動作を前記動きパターンとする。   In one aspect of the gesture detection apparatus according to the present invention, the first and second coordinate values are output from a position detection apparatus that detects a position of the detection target and has a detection surface parallel to the coordinate plane. The position detection device outputs a third coordinate value indicating a position of the detection object on a third coordinate axis perpendicular to the first and second coordinate axes, and the motion detection unit is along the first coordinate axis. Detecting a second motion of the detection target based on the first table, and detecting whether or not the detection target exists based on the third coordinate value; The gesture detection unit further includes the first motion as the motion pattern when the motion detection unit detects both the first and second motions, and the determination unit does not hold history information. And by the motion detector When the second motion is detected, the second motion is used as a motion pattern, and the determination unit retains the history information when the detection target presence / absence specifying unit specifies that the detection target exists. And when the second motion is detected by the motion detection unit, the second motion is not used as the motion pattern, and the detection target presence / absence specifying unit specifies that the detection target does not exist When the determination unit holds the history information and the first operation is not detected by the operation detection unit and the second operation is detected, the second operation is set as the motion pattern.

また、本発明に係るジェスチャー検出装置の一態様では、前記第1及び第2座標値は、前記検知対象物の位置を検出し、前記第1座標軸に垂直な検出面を有する位置検出装置から出力され、前記動作検出部は、前記第1座標軸に沿って前記検知対象物が動く第2動作を前記第1テーブルに基づいて検出し、前記第1座標値に基づいて前記検知対象物が存在するか否かを特定する検知対象物有無特定部を更に備え、前記ジェスチャー検出部は、前記動作検出部が前記第1及び第2動作の両方を検出したときには、前記第1動作を前記動きパターンとし、前記判定部が履歴情報を保持しておらず、かつ前記動作検出部によって前記第2動作が検出されているときには、当該第2動作を動きパターンとし、前記検知対象物有無特定部によって前記検知対象物が存在すると特定された場合において、前記判定部が前記履歴情報を保持し、かつ前記動作検出部によって前記第2動作が検出されているときには、当該第2動作を前記動きパターンとせず、前記検知対象物有無特定部によって前記検知対象物が存在しないと特定された場合において、前記判定部が前記履歴情報を保持し、かつ前記動作検出部によって前記第1動作が検出されず前記第2動作が検出されているときには、当該第2動作を前記動きパターンとする。   In one aspect of the gesture detection apparatus according to the present invention, the first and second coordinate values are detected from a position of the detection target and output from a position detection apparatus having a detection surface perpendicular to the first coordinate axis. The motion detection unit detects a second motion of the detection target moving along the first coordinate axis based on the first table, and the detection target exists based on the first coordinate value. A detection target presence / absence specifying unit that specifies whether the motion detection unit detects both the first and second motions, and the gesture detection unit uses the first motion as the motion pattern. When the determination unit does not hold history information and the second motion is detected by the motion detection unit, the second motion is used as a motion pattern, and the detection target presence / absence specifying unit performs the detection. When it is specified that an object exists, when the determination unit holds the history information and the second motion is detected by the motion detection unit, the second motion is not used as the motion pattern, When the detection object presence / absence specifying unit specifies that the detection object does not exist, the determination unit holds the history information, and the operation detection unit does not detect the first operation and the second operation is not performed. When the motion is detected, the second motion is set as the motion pattern.

また、本発明に係るジェスチャー検出装置の一態様では、前記第1及び第2座標値は、前記検知対象物の位置を検出し、前記座標平面に平行な検出面を有する位置検出装置から出力され、前記位置検出装置は、前記第1及び第2座標軸に垂直な第3座標軸での前記検知対象物の位置を示す第3座標値を出力し、前記テーブル保持部は、前記第3座標値が同一方向に連続して変化する回数、および前記第3座標値が同一方向に連続して変化する際の前記第3座標値の変化量の累積値のうちの少なくとも1つと、前記第3座標値が同一方向に連続して変化する際の前記第3座標値の変化方向とを含む、前記第3座標値に関する情報を保持する第3テーブルを保持し、前記テーブル更新部は、前記位置検出装置が順次出力する前記第3座標値に基づいて前記第3テーブル内の前記第3座標値に関する情報を更新し、前記動作検出部は、前記第3座標軸に沿って前記検知対象物が動く第2動作を前記第3テーブルに基づいて検出し、前記第3座標値に基づいて前記検知対象物が存在するか否かを特定する検知対象物有無特定部を更に備え、前記ジェスチャー検出部は、前記動作検出部が前記第1及び第2動作の両方を検出したときには、前記第1動作を前記動きパターンとし、前記判定部が履歴情報を保持しておらず、かつ前記動作検出部によって前記第2動作が検出されているときには、当該第2動作を動きパターンとし、前記検知対象物有無特定部によって前記検知対象物が存在すると特定された場合において、前記判定部が前記履歴情報を保持し、かつ前記動作検出部によって前記第2動作が検出されているときには、当該第2動作を前記動きパターンとせず、前記検知対象物有無特定部によって前記検知対象物が存在しないと特定された場合において、前記判定部が前記履歴情報を保持し、かつ前記動作検出部によって前記第1動作が検出されず前記第2動作が検出されているときには、当該第2動作を前記動きパターンとする。   In one aspect of the gesture detection apparatus according to the present invention, the first and second coordinate values are output from a position detection apparatus that detects a position of the detection target and has a detection surface parallel to the coordinate plane. The position detection device outputs a third coordinate value indicating a position of the detection object on a third coordinate axis perpendicular to the first and second coordinate axes, and the table holding unit has the third coordinate value At least one of the number of times of continuous change in the same direction, the cumulative value of the amount of change of the third coordinate value when the third coordinate value continuously changes in the same direction, and the third coordinate value And a third table that holds information about the third coordinate value, including a change direction of the third coordinate value when the values continuously change in the same direction, and the table update unit includes the position detection device. Are sequentially output based on the third coordinate values. The information on the third coordinate value in the third table is updated, and the motion detection unit detects a second motion of the detection target moving along the third coordinate axis based on the third table. A detection target presence / absence specifying unit that specifies whether or not the detection target exists based on the third coordinate value, wherein the gesture detection unit includes the first and second movements. When both are detected, the first motion is set as the motion pattern, and when the determination unit does not hold history information and the second motion is detected by the motion detection unit, the second motion is detected. When the motion is a movement pattern, and the detection target presence / absence specifying unit specifies that the detection target exists, the determination unit holds the history information, and the motion detection unit When a motion is detected, the determination unit holds the history information when the second motion is not used as the motion pattern and the detection target presence / absence specifying unit specifies that the detection target does not exist. When the first motion is not detected by the motion detector and the second motion is detected, the second motion is set as the motion pattern.

また、本発明に係るジェスチャー検出装置の一態様では、前記第1及び第2座標値は、前記検知対象物の位置を検出し、前記第1座標軸に垂直な検出面を有する位置検出装置から出力され、前記位置検出装置は、前記第1及び第2座標軸に垂直な第3座標軸での前記検知対象物の位置を示す第3座標値を出力し、前記テーブル保持部は、前記第3座標値が同一方向に連続して変化する回数、および前記第3座標値が同一方向に連続して変化する際の前記第3座標値の変化量の累積値のうちの少なくとも1つと、前記第3座標値が同一方向に連続して変化する際の前記第3座標値の変化方向とを含む、前記第3座標値に関する情報を保持する第3テーブルを保持し、前記テーブル更新部は、前記位置検出装置が順次出力する前記第3座標値に基づいて前記第3テーブル内の前記第3座標値に関する情報を更新し、前記動作検出部は、前記第3座標軸に沿って前記検知対象物が動く第2動作を前記第3テーブルに基づいて検出し、前記第1座標値に基づいて、前記検知対象物が存在するか否かを特定する検知対象物有無特定部を更に備え、前記ジェスチャー検出部は、前記動作検出部が前記第1及び第2動作の両方を検出したときには、前記第1動作を前記動きパターンとし、前記判定部が履歴情報を保持しておらず、かつ前記動作検出部によって前記第2動作が検出されているときには、当該第2動作を動きパターンとし、前記検知対象物有無特定部によって前記検知対象物が存在すると特定された場合において、前記判定部が前記履歴情報を保持し、かつ前記動作検出部によって前記第2動作が検出されているときには、当該第2動作を前記動きパターンとせず、前記検知対象物有無特定部によって前記検知対象物が存在しないと特定された場合において、前記判定部が前記履歴情報を保持し、かつ前記動作検出部によって前記第1動作が検出されず前記第2動作が検出されているときには、当該第2動作を前記動きパターンとする。   In one aspect of the gesture detection apparatus according to the present invention, the first and second coordinate values are detected from a position of the detection target and output from a position detection apparatus having a detection surface perpendicular to the first coordinate axis. The position detecting device outputs a third coordinate value indicating a position of the detection object on a third coordinate axis perpendicular to the first and second coordinate axes, and the table holding unit is configured to output the third coordinate value. At least one of the number of times the second coordinate continuously changes in the same direction, and the cumulative value of the amount of change in the third coordinate value when the third coordinate value continuously changes in the same direction, and the third coordinate A third table that holds information about the third coordinate value, including a change direction of the third coordinate value when the value continuously changes in the same direction, and the table update unit is configured to detect the position Based on the third coordinate value sequentially output by the device. And updating the information related to the third coordinate value in the third table, and the motion detection unit detects a second motion of the detection target moving along the third coordinate axis based on the third table. , Further comprising a detection object presence / absence specifying unit for specifying whether or not the detection object exists based on the first coordinate value, wherein the gesture detection unit includes the first and second motion detection units. When both of the motions are detected, the first motion is set as the motion pattern, and when the determination unit does not hold history information and the second motion is detected by the motion detection unit, the first motion is detected. In the case where it is specified that the detection target exists by the detection target presence / absence specifying unit, the determination unit holds the history information, and the motion detection unit When the second motion is detected, the determination unit does not use the second motion as the motion pattern and the determination unit determines that the detection target is not present by the detection target presence / absence specifying unit. And when the first motion is not detected by the motion detector and the second motion is detected, the second motion is set as the motion pattern.

また、本発明に係るジェスチャー検出装置の一態様では、前記テーブル更新部は、前記第1座標値が入力されたとき、前回入力された前記第1座標値に対する、今回入力された前記第1座標値の変化の方向が、前記第1テーブルに保持されている前記変化方向と異なり、かつ前回入力された前記第1座標値と今回入力された前記第1座標値との差が閾値より小さい場合には、前記第1テーブルを更新しない。   In the aspect of the gesture detection device according to the present invention, when the first coordinate value is input, the table update unit is configured to input the first coordinate input this time with respect to the first coordinate value input last time. The direction of change in value is different from the change direction held in the first table, and the difference between the first coordinate value input last time and the first coordinate value input this time is smaller than a threshold value. Does not update the first table.

また、本発明に係るジェスチャー検出装置の一態様では、前記ジェスチャー検出装置に対して前記第1座標値が3つ入力されるたびに、入力された3つの前記第1座標値のうちの中央の座標値を前記テーブル更新部に出力する出力部をさらに備える。   Further, in one aspect of the gesture detection device according to the present invention, each time three of the first coordinate values are input to the gesture detection device, the central one of the three input first coordinate values. An output unit is further provided for outputting the coordinate value to the table update unit.

また、本発明に係るジェスチャー検出装置の動作方法の一態様では、第1座標軸での検知対象物の位置を示す第1座標値に関する情報を保持する第1テーブルと、当該第1座標軸に垂直な第2座標軸での当該検知対象物の位置を示す第2座標値に関する情報を保持する第2テーブルとを保持するジェスチャー検出装置の動作方法であって、前記第1テーブル内の前記第1座標値に関する情報は、前記第1座標値が同一方向に連続して変化する回数、および前記第1座標値が同一方向に連続して変化する際の前記第1座標値の変化量の累積値のうちの少なくとも1つと、前記第1座標値が同一方向に連続して変化する際の前記第1座標値の変化方向とを含み、前記第2テーブル内の前記第2座標値に関する情報は、前記第2座標値が同一方向に連続して変化する回数、および前記第2座標値が同一方向に連続して変化する際の前記第2座標値の変化量の累積値のうちの少なくとも1つと、前記第2座標値が同一方向に連続して変化する際の前記第2座標値の変化方向とを含み、(a)前記ジェスチャー検出装置に順次入力される前記第1座標値に基づいて前記第1テーブル内の前記第1座標値に関する情報を更新し、前記ジェスチャー検出装置に順次入力される前記第2座標値に基づいて前記第2テーブル内の前記第2座標値に関する情報を更新する工程と、(b)前記工程(a)で更新された前記第1及び第2テーブルに基づいて、前記検知対象物の動きのパターンを検出する工程とを備える。   Further, in one aspect of the operation method of the gesture detection apparatus according to the present invention, a first table that holds information about the first coordinate value indicating the position of the detection target object on the first coordinate axis, and a perpendicular to the first coordinate axis. An operation method of a gesture detection apparatus that holds a second table that holds information about a second coordinate value indicating a position of the detection target object on a second coordinate axis, the first coordinate value in the first table The information on the number of times the first coordinate value continuously changes in the same direction and the accumulated value of the change amount of the first coordinate value when the first coordinate value continuously changes in the same direction. And the change direction of the first coordinate value when the first coordinate value continuously changes in the same direction, and the information regarding the second coordinate value in the second table is the first Two coordinate values in the same direction The second coordinate value is in the same direction as at least one of the number of times that the second coordinate value continuously changes and at least one of the accumulated values of the amount of change in the second coordinate value when the second coordinate value continuously changes in the same direction. And (a) the first coordinates in the first table based on the first coordinate values sequentially input to the gesture detecting device. Updating the information on the value, and updating the information on the second coordinate value in the second table based on the second coordinate value sequentially input to the gesture detecting device; and (b) the step (a And a step of detecting a movement pattern of the detection object based on the first and second tables updated in step (1).

また、本発明に係る制御プログラムの一態様は、第1座標軸での検知対象物の位置を示す第1座標値に関する情報を保持する第1テーブルと、当該第1座標軸に垂直な第2座標軸での当該検知対象物の位置を示す第2座標値に関する情報を保持する第2テーブルとを保持するジェスチャー検出装置を制御するための制御プログラムであって、前記第1テーブル内の前記第1座標値に関する情報は、前記第1座標値が同一方向に連続して変化する回数、および前記第1座標値が同一方向に連続して変化する際の前記第1座標値の変化量の累積値のうちの少なくとも1つと、前記第1座標値が同一方向に連続して変化する際の前記第1座標値の変化方向とを含み、前記第2テーブル内の前記第2座標値に関する情報は、前記第2座標値が同一方向に連続して変化する回数、および前記第2座標値が同一方向に連続して変化する際の前記第2座標値の変化量の累積値のうちの少なくとも1つと、前記第2座標値が同一方向に連続して変化する際の前記第2座標値の変化方向とを含み、前記ジェスチャー検出装置に、(a)前記ジェスチャー検出装置に順次入力される前記第1座標値に基づいて前記第1テーブル内の前記第1座標値に関する情報を更新し、前記ジェスチャー検出装置に順次入力される前記第2座標値に基づいて前記第2テーブル内の前記第2座標値に関する情報を更新する工程と、(b)前記工程(a)で更新された前記第1及び第2テーブルに基づいて、前記検知対象物の動きのパターンを検出する工程とを実行させるためのものである。   One aspect of the control program according to the present invention includes a first table that holds information about the first coordinate value indicating the position of the detection target on the first coordinate axis, and a second coordinate axis that is perpendicular to the first coordinate axis. A control program for controlling a gesture detection apparatus that holds a second table that holds information relating to a second coordinate value indicating the position of the detection object, the first coordinate value in the first table The information on the number of times the first coordinate value continuously changes in the same direction and the accumulated value of the change amount of the first coordinate value when the first coordinate value continuously changes in the same direction. And the change direction of the first coordinate value when the first coordinate value continuously changes in the same direction, and the information regarding the second coordinate value in the second table is the first Two coordinate values are in the same direction The second coordinate value is in the same direction as at least one of the number of times of continuous change and the cumulative value of the amount of change in the second coordinate value when the second coordinate value continuously changes in the same direction. The first coordinate table based on the first coordinate values sequentially input to the gesture detection device. Updating information related to the first coordinate value in the second table, and updating information related to the second coordinate value in the second table based on the second coordinate value sequentially input to the gesture detecting device; b) Based on the first and second tables updated in the step (a), the step of detecting the movement pattern of the detection object is executed.

本発明によると、簡単な処理で精度よくジェスチャーを検出することを可能とすることができる。   According to the present invention, it is possible to accurately detect a gesture with simple processing.

実施の形態に係る位置検出装置およびジェスチャー検出装置を示す図である。It is a figure which shows the position detection apparatus and gesture detection apparatus which concern on embodiment. ジェスチャー検出システムの動作を説明するための図である。It is a figure for demonstrating operation | movement of a gesture detection system. 実施の形態に係るジェスチャー検出装置の電気的構成を示すブロック図である。It is a block diagram which shows the electrical structure of the gesture detection apparatus which concerns on embodiment. 第一実施形態に係る制御部の機能的な構成を示す図である。It is a figure which shows the functional structure of the control part which concerns on 1st embodiment. 第1動作を説明するための図である。It is a figure for demonstrating a 1st operation | movement. 第2動作を説明するための図である。It is a figure for demonstrating 2nd operation | movement. 第3動作を説明するための図である。It is a figure for demonstrating 3rd operation | movement. 第一実施形態に係る制御部の動作を説明するための図である。It is a figure for demonstrating operation | movement of the control part which concerns on 1st embodiment. テーブルに保持される情報を説明するための図である。It is a figure for demonstrating the information hold | maintained at a table. 第一実施形態に係るテーブル更新部の処理を説明するための図である。It is a figure for demonstrating the process of the table update part which concerns on 1st embodiment. 第1テーブルの一例を示す図である。It is a figure which shows an example of a 1st table. 第一実施形態に係るテーブル更新部の処理を説明するための図である。It is a figure for demonstrating the process of the table update part which concerns on 1st embodiment. 第一実施形態に係るテーブル更新部の処理を説明するための図である。It is a figure for demonstrating the process of the table update part which concerns on 1st embodiment. 第一実施形態に係る第1動作検出部の構成を示す図である。It is a figure which shows the structure of the 1st operation | movement detection part which concerns on 1st embodiment. 第一実施形態に係る第1動作検出部での処理を説明するための図である。It is a figure for demonstrating the process in the 1st operation | movement detection part which concerns on 1st embodiment. xy座標平面上で検知対象物が第1動作を行った場合の一例を示す図である。It is a figure which shows an example when a detection target object performs 1st operation | movement on xy coordinate plane. 位置検出装置で検出されたx座標値およびy座標値を示す図である。It is a figure which shows the x coordinate value and y coordinate value which were detected with the position detection apparatus. 位置検出装置で検出されたx座標値を示す図である。It is a figure which shows the x coordinate value detected by the position detection apparatus. 第1テーブルの一例を示す図である。It is a figure which shows an example of a 1st table. 第一実施形態に係る移動方向特定部での処理を説明するための図である。It is a figure for demonstrating the process in the movement direction specific | specification part which concerns on 1st embodiment. 第一実施形態に係る移動方向特定部での処理を説明するための図である。It is a figure for demonstrating the process in the movement direction specific | specification part which concerns on 1st embodiment. 履歴情報の一例を示す図である。It is a figure which shows an example of log | history information. 所定順序の一覧を示す図である。It is a figure which shows the list | wrist of a predetermined order. xy座標平面上で検知対象物の動作の一例を示す図である。It is a figure which shows an example of operation | movement of a detection target object on xy coordinate plane. 履歴情報の一例を説明するための図である。It is a figure for demonstrating an example of log | history information. 第一実施形態に係る第1判定部での処理を説明するための図である。It is a figure for demonstrating the process in the 1st determination part which concerns on 1st embodiment. 第一実施形態に係る第1判定部での処理を説明するための図である。It is a figure for demonstrating the process in the 1st determination part which concerns on 1st embodiment. 第一実施形態に係る第1判定部での処理を説明するための図である。It is a figure for demonstrating the process in the 1st determination part which concerns on 1st embodiment. 第一実施形態に係る第2動作検出部での処理を説明するための図である。It is a figure for demonstrating the process in the 2nd operation | movement detection part which concerns on 1st embodiment. 第一実施形態に係る第3動作検出部の構成を示す図である。It is a figure which shows the structure of the 3rd operation | movement detection part which concerns on 1st embodiment. 位置検出装置で検出されたx座標値を示す図である。It is a figure which shows the x coordinate value detected by the position detection apparatus. 第一実施形態に係る第3動作検出部での処理を説明するための図である。It is a figure for demonstrating the process in the 3rd operation | movement detection part which concerns on 1st embodiment. 第一実施形態に係る特定部での処理を説明するための図である。It is a figure for demonstrating the process in the specific part which concerns on 1st embodiment. 第一実施形態の変形例に係る制御部の機能的な構成を示す図である。It is a figure which shows the functional structure of the control part which concerns on the modification of 1st embodiment. 第一実施形態の変形例に係る制御部での処理を説明するための図である。It is a figure for demonstrating the process in the control part which concerns on the modification of 1st embodiment. 第二実施形態に係る制御部の機能的な構成を示す図である。It is a figure which shows the functional structure of the control part which concerns on 2nd embodiment. 第二実施形態の変形例に係る制御部での処理を説明するための図である。It is a figure for demonstrating the process in the control part which concerns on the modification of 2nd embodiment. 第二実施形態に係る制御部の機能的な構成を示す図である。It is a figure which shows the functional structure of the control part which concerns on 2nd embodiment. 第二実施形態の変形例に係る制御部での処理を説明するための図である。It is a figure for demonstrating the process in the control part which concerns on the modification of 2nd embodiment. 第三実施形態に係るテーブル更新部での処理を説明するための図である。It is a figure for demonstrating the process in the table update part which concerns on 3rd embodiment. 第四実施形態に係る制御部の機能的な構成を示す図である。It is a figure which shows the functional structure of the control part which concerns on 4th embodiment. 第四実施形態に係る制御部での処理を説明するための図である。It is a figure for demonstrating the process in the control part which concerns on 4th embodiment.

<<1.ジェスチャー検出装置について>>
図1は、位置検出装置100およびジェスチャー検出装置1の外観の一例を示す図である。位置検出装置100は、例えば人の手や指といった検知対象物60の位置を検出する。位置検出装置100は、略直方体の形状を成している。位置検出装置100の最長の一辺の長さは、例えば10mm程度の長さであるが、図1では便宜上、実際よりも大きいサイズで位置検出装置100が示されている。本実施の形態における位置検出装置100には、光を透過させる窓が設けられており、その窓の内側に照明部101と受光部102とを備えている。なお、本実施の形態では、位置検出装置100が、検知対象物60を光学的に検出する場合を例に挙げて説明するが、例えば超音波等を用いて検知対象物60の位置を検出するものであってもよい。
<< 1. About gesture detection device >>
FIG. 1 is a diagram illustrating an example of the appearance of the position detection device 100 and the gesture detection device 1. The position detection device 100 detects the position of the detection target 60 such as a human hand or finger. The position detection device 100 has a substantially rectangular parallelepiped shape. The length of the longest side of the position detection device 100 is, for example, about 10 mm, but in FIG. 1, the position detection device 100 is shown in a size larger than the actual size for convenience. The position detection apparatus 100 according to the present embodiment is provided with a window that transmits light, and includes an illumination unit 101 and a light receiving unit 102 inside the window. In the present embodiment, the case where the position detection device 100 optically detects the detection target 60 will be described as an example. For example, the position of the detection target 60 is detected using ultrasonic waves or the like. It may be a thing.

ジェスチャー検出装置1は、位置検出装置100から時々刻々と入力される検知対象物60の位置に基づいて、当該検知対象物60の動きパターン(以後、検知対象物60の動きパターンを「ジェスチャー」と呼ぶこともある)を検出する。ジェスチャー検出装置1は、図1に例示されるように、位置検出装置100と一体に形成されていてもよいし、位置検出装置100とは別体に形成されていてもよい。また、ジェスチャー検出装置1は、図1に示される例とは異なり、パーソナルコンピュータ(PC)で構成されていてもよい。   Based on the position of the detection target 60 input from the position detection apparatus 100 every moment, the gesture detection device 1 moves the movement pattern of the detection target 60 (hereinafter, the movement pattern of the detection target 60 is referred to as “gesture”). May be called). As illustrated in FIG. 1, the gesture detection device 1 may be formed integrally with the position detection device 100, or may be formed separately from the position detection device 100. Further, unlike the example shown in FIG. 1, the gesture detection device 1 may be configured by a personal computer (PC).

本実施の形態では、位置検出装置100とジェスチャー検出装置1とで、検知対象物60のジェスチャーを非接触で検出するジェスチャー検出システム110として機能する。ジェスチャー検出システム110は、ジェスチャーによって指示入力を行うことが可能な入力装置として用いることができる。なお、図1に示される位置検出装置100およびジェスチャー検出装置1の形状は一例であり、図1に示される形状に限られない。   In the present embodiment, the position detection device 100 and the gesture detection device 1 function as a gesture detection system 110 that detects the gesture of the detection target 60 in a non-contact manner. The gesture detection system 110 can be used as an input device that can input an instruction by a gesture. The shapes of the position detection device 100 and the gesture detection device 1 shown in FIG. 1 are examples, and are not limited to the shapes shown in FIG.

次に、ジェスチャー検出システム110の概略的な動作について、図1,2を参照しながら説明する。図2は、ジェスチャー検出システム110の動作を説明するための図である。図2に示されるステップS100の処理は、位置検出装置100によって行われる処理であり、ステップS104の処理はジェスチャー検出装置1によって行われる処理である。   Next, a schematic operation of the gesture detection system 110 will be described with reference to FIGS. FIG. 2 is a diagram for explaining the operation of the gesture detection system 110. The process of step S100 shown in FIG. 2 is a process performed by the position detection device 100, and the process of step S104 is a process performed by the gesture detection device 1.

まず、照明部101から光61が照射され(図2のステップS101)、照明部101が照射する光61が検知対象物60で反射して反射光62となる(図2のステップS102)。そして、受光部102の受光面で受光された、ステップS102における反射光62に基づいて、位置検出装置100は検知対象物60の位置を求める。位置検出装置100で求められる検知対象物60の位置とは、図1に示されるように、x軸、y軸およびz軸から成るxyz直交座標系での検知対象物60の位置を示す座標値である。   First, the light 61 is emitted from the illumination unit 101 (step S101 in FIG. 2), and the light 61 emitted from the illumination unit 101 is reflected by the detection target 60 to become reflected light 62 (step S102 in FIG. 2). Then, based on the reflected light 62 in step S102 received by the light receiving surface of the light receiving unit 102, the position detection device 100 obtains the position of the detection target 60. As shown in FIG. 1, the position of the detection target 60 obtained by the position detection device 100 is a coordinate value indicating the position of the detection target 60 in the xyz orthogonal coordinate system including the x-axis, the y-axis, and the z-axis. It is.

以後、特に断らない限り、単に「x座標値」と言えば、位置検出装置100で検出されるx軸での検知対象物60の位置を示す値を意味する。また、単に、「y座標値」と言えば、位置検出装置100で検出されるy軸での検知対象物60の位置を示す値を意味する。また、単に「z座標値」と言えば、位置検出装置100で検出されるz軸での検知対象物60の位置を示す値を意味する。なお、本実施の形態では、受光部102の受光面がxy座標平面に含まれる場合を例に挙げて説明する。xy座標平面の原点は、受光部102の受光面の中央位置であり、xy座標平面に垂直な方向の軸をz軸とする。そして、ジェスチャー検出装置1は、ステップS100で検出されるx座標値、y座標値およびz座標値に基づいて、検知対象物60のジェスチャーを検出する(ステップS104)。   Hereinafter, unless otherwise specified, simply saying “x coordinate value” means a value indicating the position of the detection target 60 on the x axis detected by the position detection device 100. Further, simply speaking, “y coordinate value” means a value indicating the position of the detection target 60 on the y axis detected by the position detection device 100. Further, simply speaking “z coordinate value” means a value indicating the position of the detection target 60 on the z axis detected by the position detection device 100. In the present embodiment, a case where the light receiving surface of the light receiving unit 102 is included in the xy coordinate plane will be described as an example. The origin of the xy coordinate plane is the center position of the light receiving surface of the light receiving unit 102, and the axis in the direction perpendicular to the xy coordinate plane is the z axis. Then, the gesture detection device 1 detects the gesture of the detection target 60 based on the x coordinate value, the y coordinate value, and the z coordinate value detected in step S100 (step S104).

以下の第一〜第四実施形態では、位置検出装置100で検出されるx座標値、y座標値およびz座標値に基づいて、検知対象物60のジェスチャーを検出するジェスチャー検出装置1について詳細に説明する。なお、第一〜第四実施形態では、ジェスチャー検出装置1にx座標値、y座標値およびz座標値の3種類の座標値が入力される場合を例に挙げて説明する。しかし、ジェスチャー検出装置1に入力される座標値は1種類であってもよいし、2種類であってもよい。   In the following first to fourth embodiments, the gesture detection device 1 that detects a gesture of the detection target 60 based on the x coordinate value, the y coordinate value, and the z coordinate value detected by the position detection device 100 will be described in detail. explain. In the first to fourth embodiments, a case where three types of coordinate values, that is, an x coordinate value, a y coordinate value, and a z coordinate value are input to the gesture detection device 1 will be described as an example. However, the coordinate value input to the gesture detection apparatus 1 may be one type or two types.

<<2.第一実施形態>>
<2−1.電気的構成について>
図3は、ジェスチャー検出装置1の電気的構成を示すブロック図である。ジェスチャー検出装置1は、例えば、LSI(Large Scale Integration)の一種であるマイクロコントローラ(マイコン)で構成される。
<< 2. First embodiment >>
<2-1. Electrical configuration>
FIG. 3 is a block diagram illustrating an electrical configuration of the gesture detection apparatus 1. The gesture detection device 1 is configured by, for example, a microcontroller (microcomputer) that is a kind of LSI (Large Scale Integration).

図3に示されるように、ジェスチャー検出装置1は、CPU(Central Processing Unit)10aおよび記憶部10b等を有する制御部10を備えている。CPU10aが記憶部10bに記憶されている制御プログラム10cを実行することで、制御部10に係る各種機能が実現される。記憶部10bは、ROM(Read Only Memory)及びRAM(Random Access Memory)等の、CPU10aが読み取り可能な非一時的な記録媒体で構成されている。記憶部10bは、ROM及びRAM以外の、コンピュータが読み取り可能な非一時的な記録媒体を備えていても良い。また、図3に示されるように、制御部10には、位置検出装置100が接続されている。   As shown in FIG. 3, the gesture detection device 1 includes a control unit 10 having a CPU (Central Processing Unit) 10a, a storage unit 10b, and the like. Various functions concerning the control unit 10 are realized by the CPU 10a executing the control program 10c stored in the storage unit 10b. The storage unit 10b includes a non-transitory recording medium that can be read by the CPU 10a, such as a ROM (Read Only Memory) and a RAM (Random Access Memory). The storage unit 10b may include a computer-readable non-transitory recording medium other than the ROM and RAM. Further, as shown in FIG. 3, a position detection device 100 is connected to the control unit 10.

<2−2.機能ブロックについて>
<2−2−1.制御部について>
制御部10では、制御プログラム10cが実行されることによって、複数の機能ブロックが形成される。図4は、制御部10に形成される複数の機能ブロックの一部を示す図である。図4に示されるように、制御部10は、テーブル更新部11、テーブル保持部12およびジェスチャー検出部13を備えている。ジェスチャー検出部13は、第1動作検出部16、第2動作検出部17および第3動作検出部18を有する動作検出部14と、特定部15とを備えている。
<2-2. About functional blocks>
<2-2-1. About the control unit>
In the control unit 10, a plurality of functional blocks are formed by executing the control program 10c. FIG. 4 is a diagram illustrating a part of a plurality of functional blocks formed in the control unit 10. As shown in FIG. 4, the control unit 10 includes a table update unit 11, a table holding unit 12, and a gesture detection unit 13. The gesture detection unit 13 includes a motion detection unit 14 having a first motion detection unit 16, a second motion detection unit 17, and a third motion detection unit 18, and a specifying unit 15.

テーブル保持部12は、x座標値に関する情報を保持するテーブルと、y座標値に関する情報を保持するテーブルと、z座標値に関する情報を保持するテーブルとのうちの少なくとも1つのテーブルを保持している。   The table holding unit 12 holds at least one of a table that holds information about x coordinate values, a table that holds information about y coordinate values, and a table that holds information about z coordinate values. .

本実施の形態では、便宜上、x座標値に関する情報を保持するテーブルを「第1テーブル」と呼ぶ。また、y座標値に関する情報を保持するテーブルを「第2テーブル」と呼ぶ。また、z座標値に関する情報を保持するテーブルを「第3テーブル」と呼ぶ。また、第1テーブル、第2テーブルおよび第3テーブルを特に区別する必要がないときには、それぞれを「テーブル」と呼ぶ。テーブルの詳細については、後で詳しく説明する。   In the present embodiment, for the sake of convenience, a table that holds information related to x coordinate values is referred to as a “first table”. A table holding information regarding the y coordinate value is referred to as a “second table”. A table holding information regarding the z coordinate value is referred to as a “third table”. Further, when it is not necessary to distinguish the first table, the second table, and the third table, each is referred to as a “table”. Details of the table will be described in detail later.

また、テーブル保持部12が保持するテーブルの種類は、ジェスチャー検出装置1に入力される座標値の種類、およびジェスチャー検出装置1で検出させるジェスチャーの種類等に基づいて決定される。   The type of table held by the table holding unit 12 is determined based on the type of coordinate value input to the gesture detection device 1, the type of gesture detected by the gesture detection device 1, and the like.

テーブル更新部11は、位置検出装置100からジェスチャー検出装置1に入力されるx座標値、y座標値およびz座標値に基づいて、テーブル保持部12が保持するテーブルを更新する。より具体的には、テーブル更新部11は、位置検出装置100から順次入力されるx座標値に基づいて、テーブル保持部12が保持する第1テーブル内のx座標値に関する情報を更新する。また、テーブル更新部11は、位置検出装置100から順次入力されるy座標値に基づいて、テーブル保持部12が保持する第2テーブル内のy座標値に関する情報を更新する。また、テーブル更新部11は、位置検出装置100から順次入力されるz座標値に基づいて、テーブル保持部12が保持する第3テーブル内のz座標値に関する情報を更新する。   The table update unit 11 updates the table held by the table holding unit 12 based on the x coordinate value, the y coordinate value, and the z coordinate value input from the position detection device 100 to the gesture detection device 1. More specifically, the table updating unit 11 updates information regarding the x coordinate values in the first table held by the table holding unit 12 based on the x coordinate values sequentially input from the position detection device 100. In addition, the table update unit 11 updates information on the y coordinate value in the second table held by the table holding unit 12 based on the y coordinate values sequentially input from the position detection device 100. Further, the table update unit 11 updates information on the z coordinate value in the third table held by the table holding unit 12 based on the z coordinate value sequentially input from the position detection device 100.

ジェスチャー検出部13は、テーブル更新部11によって更新されたテーブルに基づいて、検知対象物60のジェスチャーを検出する。より具体的には、動作検出部14は、テーブル更新部11によって更新されたテーブルに基づいて検知対象物60のジェスチャーを暫定的に検出する。そして、動作検出部14によって暫定的に検出されたジェスチャー(検出結果)に基づいて、特定部15が検知対象物60のジェスチャーを最終的に特定する。特定部15によって特定されたジェスチャーは、ジェスチャー検出装置1での検出結果としてジェスチャー検出装置1の外部に出力される。   The gesture detection unit 13 detects the gesture of the detection target 60 based on the table updated by the table update unit 11. More specifically, the motion detection unit 14 tentatively detects a gesture of the detection target 60 based on the table updated by the table update unit 11. Then, based on the gesture (detection result) temporarily detected by the motion detection unit 14, the specifying unit 15 finally specifies the gesture of the detection target 60. The gesture specified by the specifying unit 15 is output to the outside of the gesture detection device 1 as a detection result of the gesture detection device 1.

動作検出部14で暫定的に検出することができるジェスチャーは、第1動作、第2動作および第3動作である。より具体的には、第1動作検出部16によって第1動作が検出され、第2動作検出部17によって第2動作が検出され、第3動作検出部18によって第3動作が検出される。   The gestures that can be tentatively detected by the motion detection unit 14 are the first motion, the second motion, and the third motion. More specifically, the first action is detected by the first action detector 16, the second action is detected by the second action detector 17, and the third action is detected by the third action detector 18.

図5は、第1動作を説明するための図である。第1動作は、2つの座標軸で特定される座標平面上で、検知対象物60が回転する動作である。第1動作検出部16は、ある座標平面上での第1動作を、当該座標平面上の座標値に関する情報、つまり2つのテーブルに基づいて検出する。図5に示される例では、検知対象物60は、xy座標平面上で第1動作を行っている。したがって、第1動作検出部16は、図5に示される第1動作を、第1テーブルおよび第2テーブルに基づいて検出する。なお、本実施の形態では、第1動作を「回転動作」と呼ぶこともある。   FIG. 5 is a diagram for explaining the first operation. The first operation is an operation in which the detection target 60 rotates on a coordinate plane specified by two coordinate axes. The first motion detection unit 16 detects a first motion on a certain coordinate plane based on information on coordinate values on the coordinate plane, that is, two tables. In the example shown in FIG. 5, the detection target 60 performs the first operation on the xy coordinate plane. Therefore, the first motion detection unit 16 detects the first motion shown in FIG. 5 based on the first table and the second table. In the present embodiment, the first operation may be referred to as “rotation operation”.

また、図5に示される例とは異なり、第1動作検出部16は、xz座標平面上での第1動作およびyz座標平面上での第1動作を検出することも可能である。第1動作検出部16は、xz座標平面上での第1動作を、第1テーブル及び第3テーブルに基づいて検出する。同様に、第1動作検出部16は、yz座標平面上での第1動作を、第2テーブル及び第3テーブルに基づいて検出する。   In addition, unlike the example shown in FIG. 5, the first motion detector 16 can also detect the first motion on the xz coordinate plane and the first motion on the yz coordinate plane. The first motion detector 16 detects the first motion on the xz coordinate plane based on the first table and the third table. Similarly, the first motion detection unit 16 detects the first motion on the yz coordinate plane based on the second table and the third table.

図6は、第2動作を説明するための図である。第2動作は、1つの座標軸に沿ってプラス方向もしくはマイナス方向に検知対象物60が動く動作である。第2動作検出部17は、ある座標軸に沿った第2動作を、当該座標軸での座標値に関する情報、つまり1つのテーブルに基づいて検出する。図6に示される例では、検知対象物60は、x軸に沿って当該x軸のマイナス方向に向かって動いている。したがって、第2動作検出部17は、図6に示される第2動作を、第1テーブルに基づいて検出する。また、第2動作検出部17は、第1テーブルに基づいて、検知対象物60がx軸に沿ってプラス方向に動く第2動作も検出することができる。本実施の形態では、x軸に沿って検知対象物60が動く第2動作を「左右動作」と呼ぶこともある。   FIG. 6 is a diagram for explaining the second operation. The second operation is an operation in which the detection target 60 moves in the plus direction or the minus direction along one coordinate axis. The second motion detection unit 17 detects a second motion along a certain coordinate axis based on information regarding coordinate values on the coordinate axis, that is, one table. In the example illustrated in FIG. 6, the detection target 60 moves along the x axis in the minus direction of the x axis. Accordingly, the second motion detector 17 detects the second motion shown in FIG. 6 based on the first table. The second motion detection unit 17 can also detect a second motion in which the detection target 60 moves in the plus direction along the x axis based on the first table. In the present embodiment, the second motion in which the detection target 60 moves along the x-axis may be referred to as “left-right motion”.

また、図6に示される例とは異なり、第2動作検出部17は、y軸に沿って検知対象物60が動く第2動作、およびz軸に沿って検知対象物60が動く第2動作を検出することも可能である。第2動作検出部17は、y軸に沿って検知対象物60が動く第2動作を、第2テーブルに基づいて検出する。本実施の形態では、y軸に沿って検知対象物60が動く第2動作を「上下動作」と呼ぶこともある。また、第2動作検出部17は、z軸に沿って検知対象物60が動く第2動作を、第3テーブルに基づいて検出する。本実施の形態では、z軸に沿って検知対象物が動く第2動作を「遠近動作」と呼ぶこともある。   In addition, unlike the example shown in FIG. 6, the second motion detection unit 17 includes a second motion in which the detection target 60 moves along the y axis and a second motion in which the detection target 60 moves along the z axis. Can also be detected. The second motion detection unit 17 detects a second motion in which the detection target 60 moves along the y axis based on the second table. In the present embodiment, the second motion in which the detection target 60 moves along the y axis may be referred to as “vertical motion”. Further, the second motion detection unit 17 detects the second motion in which the detection target 60 moves along the z axis based on the third table. In the present embodiment, the second operation in which the detection target moves along the z-axis may be referred to as “perspective operation”.

図7は、第3動作を説明するための図である。第3動作は、1つの座標軸に沿って検知対象物60がプラス方向およびマイナス方向に交互に短い距離を動く動作である。本実施の形態では、第3動作を「シェーク動作」と呼ぶこともある。第3動作検出部18は、ある座標軸に沿った第3動作を、当該座標軸での座標値に関する情報、つまり1つのテーブルに基づいて検出する。図7に示される例では、検知対象物60は、z軸に沿った第3動作を行っている。したがって、第3動作検出部18は、図7に示される第3動作を、第3テーブルに基づいて検出する。   FIG. 7 is a diagram for explaining the third operation. The third operation is an operation in which the detection target 60 moves along a single coordinate axis for a short distance alternately in the plus direction and the minus direction. In the present embodiment, the third operation may be referred to as a “shake operation”. The third motion detection unit 18 detects a third motion along a certain coordinate axis based on information regarding coordinate values on the coordinate axis, that is, one table. In the example shown in FIG. 7, the detection target 60 performs the third operation along the z axis. Accordingly, the third motion detector 18 detects the third motion shown in FIG. 7 based on the third table.

また、第2動作と同様に、第3動作検出部18は、検知対象物60がx軸に沿って動く第3動作、および検知対象物60がy軸に沿って動く第3動作を検出することも可能である。第3動作検出部18は、検知対象物60がx軸に沿って動く第3動作を、第1テーブルに基づいて検出する。また、第3動作検出部18は、検知対象物60がy軸に沿って動く第3動作を、第2テーブルに基づいて検出する。   Similarly to the second operation, the third operation detection unit 18 detects a third operation in which the detection target 60 moves along the x axis and a third operation in which the detection target 60 moves along the y axis. It is also possible. The third motion detector 18 detects a third motion in which the detection target 60 moves along the x axis based on the first table. The third motion detection unit 18 detects a third motion in which the detection target 60 moves along the y axis based on the second table.

<2−2−2.制御部の動作>
図8は、制御部10の動作を説明するための図である。制御部10の概略的な動作について、図4,8を参照しながら説明する。まず、位置検出装置100からジェスチャー検出装置1に検知対象物60の位置を示す座標値が入力されると、テーブル更新部11が、テーブル保持部12に保持されているテーブルを更新する(ステップS1)。次に、第1動作検出部16が、第1動作を検出する(ステップS2)。次に、第2動作検出部17が、第2動作を検出する(ステップS3)。次に、第3動作検出部18が、第3動作を検出する(ステップS4)。後で詳しく述べるが、ステップS4の処理は、ステップS2及びステップS3の処理とは異なり、ジェスチャー検出装置1に検知対象物60の位置を示す座標値が入力されるたびに行われるのではなく、テーブル更新部11がテーブルを更新する際にある条件を満たした場合のみ行われる。そして、ステップS2〜4で暫定的に検出された第1〜第3動作(検出結果)に基づいて、特定部15が検知対象物60のジェスチャーを特定する(ステップS5)。
<2-2-2. Operation of control unit>
FIG. 8 is a diagram for explaining the operation of the control unit 10. A schematic operation of the control unit 10 will be described with reference to FIGS. First, when a coordinate value indicating the position of the detection target 60 is input from the position detection device 100 to the gesture detection device 1, the table update unit 11 updates the table held in the table holding unit 12 (step S1). ). Next, the 1st operation | movement detection part 16 detects a 1st operation | movement (step S2). Next, the 2nd operation | movement detection part 17 detects a 2nd operation | movement (step S3). Next, the 3rd operation | movement detection part 18 detects a 3rd operation | movement (step S4). As will be described in detail later, the processing of step S4 is not performed every time a coordinate value indicating the position of the detection target 60 is input to the gesture detection device 1, unlike the processing of step S2 and step S3. This is performed only when a certain condition is satisfied when the table updating unit 11 updates the table. And based on the 1st-3rd operation | movement (detection result) tentatively detected by step S2-4, the specific | specification part 15 specifies the gesture of the detection target object 60 (step S5).

ここで、ステップS2〜S4の処理は、図8に示される順で行われなくてもよい。ステップS2〜S4の処理は、ステップS5の処理が開始されるまでに行われれば、どのような順番で処理が行われてもよい。   Here, the processing of steps S2 to S4 may not be performed in the order shown in FIG. The processes in steps S2 to S4 may be performed in any order as long as they are performed before the process in step S5 is started.

以下に、テーブル及びテーブル更新部11と、第1動作検出部16と、第2動作検出部17と、第3動作検出部18と、特定部15とについて詳細に説明する。   Hereinafter, the table and table update unit 11, the first motion detection unit 16, the second motion detection unit 17, the third motion detection unit 18, and the specifying unit 15 will be described in detail.

<2−3.テーブル及びテーブル更新部>
ここでは、テーブル保持部12が保持するテーブルについて説明した後に、テーブル更新部11が行う処理について説明する。
<2-3. Table and Table Update Unit>
Here, after the table held by the table holding unit 12 is described, the process performed by the table update unit 11 will be described.

<テーブルに保持される情報について>
既述したように、テーブル保持部12は、x座標値に関する情報を保持する第1テーブルと、y座標値に関する情報を保持する第2テーブルと、z座標値に関する情報を保持する第3テーブルとのうちの少なくとも1つのテーブルを保持している。
<Information held in the table>
As described above, the table holding unit 12 includes the first table that holds information about the x coordinate value, the second table that holds information about the y coordinate value, and the third table that holds information about the z coordinate value. Holds at least one of the tables.

第1テーブルには、x座標値が同一方向、つまりプラス方向もしくはマイナス方向に連続して変化する回数と、x座標値が同一方向に連続して変化する際の当該x座標値の変化量の累積値とのうちの少なくとも1つと、x座標値が同一方向に連続して変化する際の当該x座標値の変化方向とが保持されている。   The first table shows the number of times the x coordinate value changes continuously in the same direction, that is, the plus direction or the minus direction, and the change amount of the x coordinate value when the x coordinate value changes continuously in the same direction. At least one of the accumulated values and the changing direction of the x coordinate value when the x coordinate value continuously changes in the same direction are held.

図9は、テーブルに保持される情報を説明するための図である。図9の横軸は、時間を示しており、縦軸はジェスチャー検出装置1に入力されたx座標値の値を示している。図9には、時刻t1〜t6のそれぞれにおいて、ジェスチャー検出装置1に入力されたx座標値が示されている。また、図9に示される例では、時刻t2〜t5の間で、ジェスチャー検出装置1に入力されたx座標値がプラス方向に連続して変化している。   FIG. 9 is a diagram for explaining the information held in the table. The horizontal axis in FIG. 9 indicates time, and the vertical axis indicates the value of the x coordinate value input to the gesture detection device 1. FIG. 9 shows the x-coordinate values input to the gesture detection device 1 at each of the times t1 to t6. In the example shown in FIG. 9, the x coordinate value input to the gesture detection device 1 continuously changes in the plus direction between times t2 and t5.

ここで、図9の時刻t5に注目した場合、時刻t5のときに第1テーブルに保持されるx座標値が同一方向に連続して変化する回数はAとなる。x座標値が同一方向に連続して変化する回数は、x座標値の変化が現れたときを1回目と数える。したがって、Aは3となる。   Here, when attention is paid to time t5 in FIG. 9, the number of times that the x coordinate value held in the first table continuously changes in the same direction at time t5 is A. The number of times the x coordinate value continuously changes in the same direction is counted as the first time when the change of the x coordinate value appears. Therefore, A is 3.

同様に、図9の時刻t5に注目した場合、時刻t5のときに第1テーブルに保持されるx座標値が同一方向に連続して変化する際の当該x座標値の変化量の累積値はBとなる。x座標値がある方向に連続して変化する際の注目時刻での当該x座標値の変化量の累積値は、x座標値が当該ある方向へ変化した際の変化の始点となるx座標値から、注目時刻においてジェスチャー検出装置1に入力されたx座標値までの変化量に相当する。つまり、Bは、プラス方向への座標値の変化が始まった時刻t2のときにジェスチャー検出装置1に入力されたx座標値と、注目時刻(即ち、時刻t5)のときにジェスチャー検出装置1に入力されたx座標値との差となる。   Similarly, when attention is paid to time t5 in FIG. 9, the cumulative value of the change amount of the x coordinate value when the x coordinate value held in the first table continuously changes in the same direction at time t5 is B. The cumulative value of the change amount of the x coordinate value at the time of interest when the x coordinate value continuously changes in a certain direction is the x coordinate value that is the starting point of the change when the x coordinate value changes in the certain direction. To the amount of change up to the x coordinate value input to the gesture detection device 1 at the time of interest. That is, B indicates the x coordinate value input to the gesture detection device 1 at the time t2 when the change of the coordinate value in the plus direction starts, and the gesture detection device 1 at the attention time (ie, time t5). This is the difference from the input x coordinate value.

同様に、図9の時刻t5に注目した場合、時刻t5のときに第1テーブルに保持されるx座標値が同一方向に連続して変化する際の当該x座標値の変化方向は、プラス方向となる。x座標値が同一方向に連続して変化する際の当該x座標値の変化方向は、プラス方向およびマイナス方向のいずれかとなる。   Similarly, when attention is paid to time t5 in FIG. 9, the change direction of the x coordinate value when the x coordinate value held in the first table continuously changes in the same direction at time t5 is the plus direction. It becomes. The change direction of the x coordinate value when the x coordinate value continuously changes in the same direction is either the plus direction or the minus direction.

上記の例では、x座標値に関する情報を保持する第1テーブルについて説明したが、y座標値に関する情報を保持する第2テーブル及びz座標値に関する情報を保持する第3テーブルについても第1テーブルと同様に考えることができる。   In the above example, the first table that holds information about the x coordinate value has been described. However, the second table that holds information about the y coordinate value and the third table that holds information about the z coordinate value also differ from the first table. The same can be considered.

また、本実施形態では、テーブルに保持される、ある座標値が同一方向に連続して変化する回数を「変化回数」と呼ぶことがある。また、テーブルに保持される、ある座標値が同一方向に連続して変化する際の当該座標値の変化量の累積値を、「累積変化量」と呼ぶことがある。また、テーブルに保持される、ある座標値が同一方向に連続して変化する際の当該座標値の変化方向を「変化方向」と呼ぶことがある。   In the present embodiment, the number of times that a certain coordinate value held in the table continuously changes in the same direction may be referred to as “the number of changes”. In addition, the cumulative value of the change amount of the coordinate value when the coordinate value held in the table continuously changes in the same direction may be referred to as “cumulative change amount”. In addition, the change direction of the coordinate value when the coordinate value held in the table continuously changes in the same direction may be referred to as “change direction”.

<テーブル更新部が行う処理について>
図10は、テーブル更新部11が行う処理を説明するための図である。図10を参照しながら、テーブル更新部11が行う処理について以下に説明する。なお、以下の説明では、テーブル更新部11が、第1テーブルの更新を行う場合を例に挙げて説明するが、テーブル更新部11が、第2テーブルの更新を行う場合および第3テーブルの更新を行う場合についても、同様に考えることができる。
<About processing performed by the table update unit>
FIG. 10 is a diagram for explaining processing performed by the table update unit 11. Processing performed by the table update unit 11 will be described below with reference to FIG. In the following description, the case where the table update unit 11 updates the first table will be described as an example. However, the table update unit 11 updates the second table and the third table. The same can be said for the case of performing.

まず、テーブル更新部11は、ジェスチャー検出装置1にx座標値が入力されると、テーブル保持部12に保持されている第1テーブルを取得する(ステップS10)。次に、テーブル更新部11は、今回入力されたx座標値から、ジェスチャー検出装置1に前回入力されたx座標値を減算する(ステップS11)。ここで、本実施の形態では、ステップS11で求められた値を、差分値αと呼ぶ。   First, when the x coordinate value is input to the gesture detection device 1, the table update unit 11 acquires the first table held in the table holding unit 12 (step S10). Next, the table updating unit 11 subtracts the previous x coordinate value input to the gesture detection device 1 from the x coordinate value input this time (step S11). Here, in the present embodiment, the value obtained in step S11 is referred to as a difference value α.

ステップS11で求められた差分値αは、今回入力されたx座標値と、前回入力されたx座標値との差を表している。また、ステップS11で求められた差分値αが正の値(α>0)であるときには、前回入力されたx座標値に対する、今回入力されたx座標値の変化の方向がプラス方向であると言える。反対に、ステップS11で求められた差分値αが負の値(α<0)であるときには、前回入力されたx座標値に対する、今回入力されたx座標値の変化の方向がマイナス方向であると言える。   The difference value α obtained in step S11 represents the difference between the x coordinate value input this time and the x coordinate value input last time. When the difference value α obtained in step S11 is a positive value (α> 0), the change direction of the x coordinate value input this time with respect to the previously input x coordinate value is a positive direction. I can say that. On the other hand, when the difference value α obtained in step S11 is a negative value (α <0), the change direction of the x coordinate value input this time with respect to the previously input x coordinate value is a negative direction. It can be said.

なお、ステップS11の処理で用いる、前回入力されたx座標値は、テーブル更新部11によって一時的に記憶されているものとする。ただし、前回入力されたx座標値は、例えば、第1テーブルに保持されている等、テーブル更新部11以外によって記憶されていてもよい。   It is assumed that the previously inputted x coordinate value used in the process of step S11 is temporarily stored by the table updating unit 11. However, the x coordinate value input last time may be stored by other than the table updating unit 11 such as being held in the first table.

次に、テーブル更新部11は、ステップS10で取得した第1テーブルが初期化されているかを調べる(ステップS12)。より具体的には、テーブル更新部11は、ステップS10で取得した第1テーブルに変化回数、累積変化量および変化方向を示すデータが保持されているかを調べる。   Next, the table update unit 11 checks whether the first table acquired in step S10 has been initialized (step S12). More specifically, the table updating unit 11 checks whether data indicating the number of changes, the accumulated change amount, and the change direction is held in the first table acquired in step S10.

ステップS10で取得した第1テーブルが初期化されている場合には(ステップS12でYes)、テーブル更新部11は、テーブル保持部12に保持されている第1テーブルの変化回数に「1」を登録し(ステップS13)、テーブル保持部12に保持されている第1テーブルの累積変化量に、ステップS11で求められた差分値αの絶対値「|α|」を登録する(ステップS14)。そして、テーブル更新部11は、ステップS11で求めた差分値αが正の値か負の値かを判定する(ステップS15)。   When the first table acquired in step S10 is initialized (Yes in step S12), the table update unit 11 sets “1” as the number of changes in the first table held in the table holding unit 12. The absolute value “| α |” of the difference value α obtained in step S11 is registered in the accumulated change amount of the first table held in the table holding unit 12 (step S14). Then, the table updating unit 11 determines whether the difference value α obtained in step S11 is a positive value or a negative value (step S15).

ステップS11で求めたαが正の値である場合には(ステップS15でYes)、今回入力されたx座標値が、前回入力されたx座標値に対してプラス方向に変化しているので、テーブル更新部11は、テーブル保持部12に保持されている第1テーブルの変化方向に「プラス方向」を登録する(ステップS16)。一方、ステップS11で求めた差分値αが負の値である場合には(ステップS15でNo)、今回入力されたx座標値が、前回入力されたx座標値に対してマイナス方向に変化しているので、テーブル更新部11は、テーブル保持部12に保持されている第1テーブルの変化方向に「マイナス方向」を登録する(ステップS17)。   If α obtained in step S11 is a positive value (Yes in step S15), the x-coordinate value input this time has changed in the plus direction with respect to the previously input x-coordinate value. The table updating unit 11 registers “plus direction” as the change direction of the first table held in the table holding unit 12 (step S16). On the other hand, when the difference value α obtained in step S11 is a negative value (No in step S15), the x-coordinate value input this time changes in the minus direction with respect to the x-coordinate value input last time. Therefore, the table updating unit 11 registers “minus direction” as the change direction of the first table held in the table holding unit 12 (step S17).

なお、ステップS15の処理において、ステップS11で求められた差分値αが0である場合には、テーブル更新部11は処理を終了する。つまり、検知対象物60が動いていないときには、テーブル更新部11は、テーブル保持部12に保持されている第1テーブルの更新を行わない。   In the process of step S15, when the difference value α obtained in step S11 is 0, the table update unit 11 ends the process. That is, when the detection target 60 is not moving, the table update unit 11 does not update the first table held in the table holding unit 12.

ステップS12に戻り、ステップS10で取得した第1テーブルが初期されていない場合には(ステップS12でNo)、テーブル更新部11は、ステップS11で求めた差分値αが正の値か負の値かを調べる(ステップS18)。   Returning to step S12, when the first table acquired in step S10 is not initialized (No in step S12), the table updating unit 11 determines whether the difference value α obtained in step S11 is a positive value or a negative value. This is checked (step S18).

ステップS11で求めた差分値αが正の値である場合、つまり、今回入力されたx座標値が、前回入力されたx座標値に対してプラス方向に変化している場合には(ステップS18でYes)、テーブル更新部11は、ステップS10で取得した第1テーブルに保持されている変化方向が「プラス方向」であるか否かを調べる(ステップS19)。第1テーブルに保持されている変化方向がプラス方向である場合、つまりx座標値が前回に引き続き今回もプラス方向に変化している場合には(ステップS19でYes)、テーブル更新部11は、ステップS10で取得した第1テーブルに保持されている変化回数に「+1」を加算した値を、テーブル保持部12に保持されている第1テーブルに登録する(ステップS20)。そして、テーブル更新部11は、ステップS10で取得した第1テーブルに保持されている累積変化量に「|α|」を加算した値を、テーブル保持部12に保持されている第1テーブルに登録する(ステップS21)。なお、x座標値は前回に引き続き同一方向に変化しているため、テーブル更新部11はテーブル保持部12に保持されている第1テーブルの変化方向の更新は行わない。   When the difference value α obtained in step S11 is a positive value, that is, when the x-coordinate value input this time is changing in the plus direction with respect to the previously input x-coordinate value (step S18). Yes), the table updating unit 11 checks whether or not the change direction held in the first table acquired in step S10 is the “plus direction” (step S19). When the change direction held in the first table is the plus direction, that is, when the x coordinate value is changing in the plus direction again this time (Yes in step S19), the table updating unit 11 A value obtained by adding “+1” to the number of changes held in the first table acquired in step S10 is registered in the first table held in the table holding unit 12 (step S20). Then, the table updating unit 11 registers a value obtained by adding “| α |” to the cumulative change amount held in the first table acquired in step S10 in the first table held in the table holding unit 12. (Step S21). Since the x coordinate value continues to change in the same direction as the previous time, the table update unit 11 does not update the change direction of the first table held in the table holding unit 12.

ステップS19に戻り、ステップS10で取得した第1テーブルに保持されている方向がプラス方向でない場合(ステップS19でNo)、つまり前回までのx座標値の変化方向(マイナス方向)と、前回入力されたx座標値に対する、今回入力されたx座標値の変化の方向(プラス方向)とが逆である場合には、テーブル更新部11は、第3動作検出部18に対して、変化方向が変わった旨の通知を行い(ステップS22)、さらにテーブル保持部12に保持されている第1テーブルを初期化する(ステップS23)。このように、x座標値の同一方向に変化していない場合には、テーブル更新部11はテーブル保持部12に保持されている第1テーブルの初期化を行う。また、後で詳しく述べるが、第3動作検出部18は、ステップS23で初期化される直前のテーブルを用いて第3動作の検知処理を行う。そのため、テーブル更新部11は、ステップS23でテーブルの初期化を行う前に、第3動作検出部18に通知を行う。第3動作検出部18は、テーブル更新部11から通知を受けると、初期化される前のテーブルをテーブル保持部12から取得する。   Returning to step S19, if the direction held in the first table acquired in step S10 is not the positive direction (No in step S19), that is, the change direction of the x coordinate value up to the previous time (negative direction) is input last time. If the direction of change of the x coordinate value input this time (plus direction) with respect to the x coordinate value is opposite, the table update unit 11 changes the change direction with respect to the third motion detection unit 18. (Step S22), and the first table held in the table holding unit 12 is initialized (step S23). Thus, when the x coordinate values do not change in the same direction, the table updating unit 11 initializes the first table held in the table holding unit 12. As will be described in detail later, the third motion detection unit 18 performs a third motion detection process using the table immediately before being initialized in step S23. Therefore, the table update unit 11 notifies the third motion detection unit 18 before the table is initialized in step S23. Upon receiving the notification from the table update unit 11, the third motion detection unit 18 acquires the table before being initialized from the table holding unit 12.

ステップS18に戻り、ステップS11で求められた差分値αが負の値である場合、つまり今回入力されたx座標値が、前回入力されたx座標値に対してマイナス方向に変化している場合には(ステップS18でNo)、テーブル更新部11は、ステップS10で取得された第1テーブルに保持されている変化方向が「プラス方向」であるか否かを調べる(ステップS24)。   Returning to step S18, if the difference value α obtained in step S11 is a negative value, that is, the x-coordinate value input this time has changed in the minus direction with respect to the previously input x-coordinate value. (No in step S18), the table updating unit 11 checks whether or not the change direction held in the first table acquired in step S10 is the “plus direction” (step S24).

ステップS10で取得された第1テーブルに保持されている変化方向がプラス方向である場合、つまり、前回までのx座標値の変化方向(プラス方向)と、前回入力されたx座標値に対する、今回入力されたx座標値の変化の方向(マイナス方向)とが逆である場合には(ステップS24でYes)、テーブル更新部11は、第3動作検出部18に対して、変化方向が変わった旨の通知を行い(ステップS22)、テーブル保持部12に保持されている第1テーブルを初期化する(ステップS23)。   If the change direction stored in the first table acquired in step S10 is a positive direction, that is, the change direction of the x coordinate value up to the previous time (plus direction) and the x coordinate value input last time When the input x-coordinate value change direction (minus direction) is opposite (Yes in step S24), the table updating unit 11 changes the change direction with respect to the third motion detection unit 18. A notification to that effect is sent (step S22), and the first table held in the table holding unit 12 is initialized (step S23).

なお、ステップS18の処理において、ステップS11で求められた差分値αが0である場合には、テーブル更新部11は処理を終了する。つまり、検知対象物60がx軸に沿って動いていないときには、テーブル更新部11は、テーブル保持部12に保持されている第1テーブルの更新を行わない。   In the process of step S18, when the difference value α obtained in step S11 is 0, the table update unit 11 ends the process. That is, when the detection target 60 is not moving along the x axis, the table update unit 11 does not update the first table held in the table holding unit 12.

ステップS24に戻り、第1テーブルに保持されている変化方向がプラス方向でない場合、つまりx座標値が前回に引き続き今回もマイナス方向に変化している場合には(ステップS24でNo)、テーブル更新部11は、ステップS10で取得した第1テーブルに保持されている変化回数に「+1」を加算した値を、テーブル保持部12に保持されている第1テーブルに登録する(ステップS20)。そして、テーブル更新部11は、ステップS10で取得した第1テーブルに保持されている累積変化量に、ステップS11で求められたαの絶対値「|α|」を加算した値を、テーブル保持部12に保持されている第1テーブルに登録する(ステップS21)。   Returning to step S24, if the change direction stored in the first table is not the positive direction, that is, if the x coordinate value has changed to the negative direction again this time (No in step S24), the table is updated. The unit 11 registers a value obtained by adding “+1” to the number of changes held in the first table acquired in step S10 in the first table held in the table holding unit 12 (step S20). Then, the table updating unit 11 adds a value obtained by adding the absolute value “| α |” of α obtained in step S11 to the cumulative change amount held in the first table acquired in step S10. 12 is registered in the first table held in 12 (step S21).

このように、本実施の形態では、ジェスチャー検出部13(動作検出部14)が検知対象物60のジェスチャーを検出するために用いる各テーブルを、ジェスチャー検出装置1に入力される検知対象物60の位置を示す座標値と、テーブル保持部12に保持されているテーブルとに基づいて、簡単に更新することができる。その結果、ジェスチャー検出装置1は、簡単な処理で検知対象物60のジェスチャーを検出することができる。   As described above, in the present embodiment, each table used by the gesture detection unit 13 (motion detection unit 14) to detect the gesture of the detection target 60 is used as the detection target 60 input to the gesture detection device 1. It can be easily updated based on the coordinate value indicating the position and the table held in the table holding unit 12. As a result, the gesture detection apparatus 1 can detect the gesture of the detection target 60 by a simple process.

なお、テーブル更新部11は、テーブル保持部12が保持するテーブルに変化回数の情報が保持されない場合には、ステップS13及びステップS20の処理を行わない。同様に、テーブル更新部11は、テーブル保持部12が保持するテーブルに累積変化量の情報が保持されない場合には、ステップS14及びステップS21の処理を行わない。   Note that the table updating unit 11 does not perform the processing of step S13 and step S20 when the information on the number of changes is not held in the table held by the table holding unit 12. Similarly, the table updating unit 11 does not perform the processing of step S14 and step S21 when the information of the accumulated change amount is not held in the table held by the table holding unit 12.

<テーブル更新部が行う処理の一例>
図11は、第1テーブルの一例を示す図である。図11には、時刻t1〜t4においてジェスチャー検出装置1に入力されたx座標値と、第1テーブル(変化回数、累積変化量および変化方向)との関係が示されている。図10,11を参照しながら、テーブル更新部11によって行われる第1テーブルの更新処理の一例を以下に説明する。
<Example of processing performed by table update unit>
FIG. 11 is a diagram illustrating an example of the first table. FIG. 11 shows the relationship between the x-coordinate value input to the gesture detection device 1 at times t1 to t4 and the first table (number of changes, cumulative change amount, and change direction). An example of the first table update process performed by the table update unit 11 will be described below with reference to FIGS.

図11に示されるように、時刻t1では、ジェスチャー検出装置1にx座標値として「30」が入力されている。テーブル更新部11は、時刻t1以前にジェスチャー検出装置1に入力されたx座標値(つまり、前回ジェスチャー検出装置1に入力されたx座標値)を記憶していないため、時刻t1では処理を行わない。   As illustrated in FIG. 11, “30” is input to the gesture detection device 1 as the x coordinate value at time t <b> 1. Since the table updating unit 11 does not store the x coordinate value input to the gesture detection device 1 before time t1 (that is, the x coordinate value input to the gesture detection device 1 last time), the table update unit 11 performs processing at time t1. Absent.

なお、時刻t1では、第1テーブルは初期化されている。つまり、時刻t1のときにテーブル保持部12が保持する第1テーブルには、変化回数、累積変化量および変化方向を示すデータが保持されていない。   At time t1, the first table is initialized. That is, the first table held by the table holding unit 12 at time t1 does not hold data indicating the number of changes, the accumulated change amount, and the change direction.

次に、時刻t2でジェスチャー検出装置1にx座標値として「45」が入力されると、テーブル更新部11は、時刻t1のときにジェスチャー検出装置1にx座標値として入力された「30」と、時刻t2のときにジェスチャー検出装置1に入力されたx座標値「45」と、時刻t1のときの第1テーブルとを用いて、当該第1テーブルに変化回数、累積変化量および変化方向を登録する。   Next, when “45” is input as the x-coordinate value to the gesture detection device 1 at time t2, the table updating unit 11 receives “30” input as the x-coordinate value to the gesture detection device 1 at time t1. And the x-coordinate value “45” input to the gesture detection device 1 at time t2 and the first table at time t1, the number of changes, the accumulated change amount, and the change direction in the first table. Register.

まず、時刻t2のときにジェスチャー検出装置1に入力されたx座標値「45」から、時刻t1のときにジェスチャー検出装置1に入力されたx座標値「30」を減算すると、「15(=α)」となる(図10のステップS11)。そして、時刻t1のときのテーブル(更新前のテーブル)は、初期化されている(図10のステップS12でYes)。   First, when the x coordinate value “30” input to the gesture detection device 1 at time t1 is subtracted from the x coordinate value “45” input to the gesture detection device 1 at time t2, “15 (= α) ”(step S11 in FIG. 10). The table at the time t1 (the table before update) is initialized (Yes in step S12 in FIG. 10).

したがって、時刻t2では、テーブル更新部11は、テーブル保持部12に保持される第1テーブルの変化回数に、x座標値の変化が1回目であることを示す「1」を登録する(図10のステップS13)。続いて、時刻t2では、テーブル更新部11は、テーブル保持部12に保持される第1テーブルの累積変化量に「15(=|α|)」を登録する(図10のステップS15)。そして、ステップS11で求められた値α(=15)が正の値であるため(図10のステップS15でYes)、テーブル更新部11は、テーブル保持部12に保持されている第1テーブルの変化方向に「プラス方向」を登録する(図10のステップS16)。   Therefore, at time t2, the table updating unit 11 registers “1” indicating that the change of the x coordinate value is the first change in the number of changes of the first table held in the table holding unit 12 (FIG. 10). Step S13). Subsequently, at time t2, the table updating unit 11 registers “15 (= | α |)” as the cumulative change amount of the first table held in the table holding unit 12 (step S15 in FIG. 10). Since the value α (= 15) obtained in step S11 is a positive value (Yes in step S15 in FIG. 10), the table update unit 11 stores the first table held in the table holding unit 12. The “plus direction” is registered as the change direction (step S16 in FIG. 10).

次に、時刻t3でジェスチャー検出装置1にx座標値として「48」が入力されると、テーブル更新部11は、時刻t2のときにジェスチャー検出装置1にx座標値として入力された「45」と、時刻t3のときにジェスチャー検出装置1にx座標値として入力された「48」と、時刻t2のときにテーブル更新部11に更新された第1テーブルとを用いて、テーブル保持部12に保持されている第1テーブルを更新する。   Next, when “48” is input as the x-coordinate value to the gesture detection device 1 at time t3, the table update unit 11 receives “45” input as the x-coordinate value to the gesture detection device 1 at time t2. And the table holding unit 12 using “48” input as the x-coordinate value to the gesture detection device 1 at time t3 and the first table updated to the table updating unit 11 at time t2. The held first table is updated.

まず、時刻t3のときにジェスチャー検出装置1に入力されたx座標値「48」から、時刻t2のときにジェスチャー検出装置1に入力されたx座標値「45」を減算すると、「3(=α)」となる(図10のステップS11)。また、時刻t2のときにテーブル更新部11に更新された第1テーブルには、変化回数「1」、累積変化量「15」および変化方向「プラス方向」が登録されている(図10のステップS12でNo)。そして、ステップS11で求められた値α(=3)は正の値であり(図10のステップS18でYes)、ステップS10で取得した第1テーブルの変化方向には「プラス方向」が登録されている(図10のステップS19でYes)。   First, when the x coordinate value “45” input to the gesture detection device 1 at time t2 is subtracted from the x coordinate value “48” input to the gesture detection device 1 at time t3, “3 (= α) ”(step S11 in FIG. 10). Further, the number of changes “1”, the accumulated change amount “15”, and the change direction “plus direction” are registered in the first table updated in the table update unit 11 at time t2 (step in FIG. 10). No in S12). The value α (= 3) obtained in step S11 is a positive value (Yes in step S18 in FIG. 10), and “plus direction” is registered as the change direction of the first table acquired in step S10. (Yes in step S19 in FIG. 10).

したがって、時刻t3では、テーブル更新部11は、ステップS10で取得した第1テーブルに保持されている変化回数「1」に「+1」を加算した値「2」を、テーブル保持部12に保持されている第1テーブルの変化回数に登録する(図10のステップS20)。続いて、テーブル更新部11は、ステップS10で取得した第1テーブルに保持されている累積変化量「15」に「|3(=α)|」を加算した値「18」を、テーブル保持部12に保持されている第1テーブルの累積変化量に登録する。   Therefore, at time t3, the table updating unit 11 holds the value “2” obtained by adding “+1” to the number of changes “1” held in the first table acquired in step S10 in the table holding unit 12. The number of changes in the first table is registered (step S20 in FIG. 10). Subsequently, the table updating unit 11 sets a value “18” obtained by adding “| 3 (= α) |” to the cumulative change amount “15” held in the first table acquired in Step S10, and the table holding unit. 12 is registered in the cumulative change amount of the first table held in 12.

次に、時刻t4でジェスチャー検出装置1にx座標値として「40」が入力されると、テーブル更新部11は、時刻t3のときにジェスチャー検出装置1にx座標値として入力された「48」と、時刻t4のときにジェスチャー検出装置1にx座標値として入力された「40」と、時刻t3のときにテーブル更新部11に更新された第1テーブルとを用いて、テーブル保持部12に保持されている第1テーブルを更新する(図10のステップS10)。   Next, when “40” is input as the x-coordinate value to the gesture detection device 1 at time t4, the table update unit 11 receives “48” input as the x-coordinate value to the gesture detection device 1 at time t3. And the table holding unit 12 using “40” input as the x-coordinate value to the gesture detection device 1 at time t4 and the first table updated to the table updating unit 11 at time t3. The held first table is updated (step S10 in FIG. 10).

まず、時刻t4のときにジェスチャー検出装置1に入力されたx座標値「40」から、時刻t3のときにジェスチャー検出装置1に入力されたx座標値「48」を減算すると、「−8(=α)」となる(図10のステップS11)。また、ステップS10で取得された第1テーブルには、変化回数「2」、累積変化量「18」および変化方向「プラス方向」が登録されている(図10のステップS12でNo)。そして、−8(=α)は負の値であり(図10のステップS18でNo)、ステップS10で取得された第1テーブルの変化方向には「プラス方向」が登録されている(図10のステップS24でYes)。したがって、テーブル更新部11は、第3動作検出部18に、変化方向が変わった旨の通知を行い(図10のステップS22)、テーブル保持部12に保持されている第1テーブルの初期化を行う(図10のステップS23)。   First, when the x-coordinate value “48” input to the gesture detection device 1 at time t3 is subtracted from the x-coordinate value “40” input to the gesture detection device 1 at time t4, “−8 ( = Α) ”(step S11 in FIG. 10). Further, the number of changes “2”, the accumulated change amount “18”, and the change direction “plus direction” are registered in the first table acquired in step S10 (No in step S12 of FIG. 10). Further, −8 (= α) is a negative value (No in step S18 in FIG. 10), and “plus direction” is registered in the change direction of the first table acquired in step S10 (FIG. 10). (Yes in step S24). Therefore, the table update unit 11 notifies the third motion detection unit 18 that the change direction has changed (step S22 in FIG. 10), and initializes the first table held in the table holding unit 12. This is performed (step S23 in FIG. 10).

以後、同様にして、テーブル更新部11は、ジェスチャー検出装置1に入力されたx座標値と、第1テーブルとに基づいてテーブル保持部12に保持されている第1テーブルの更新を行う。   Thereafter, similarly, the table updating unit 11 updates the first table held in the table holding unit 12 based on the x coordinate value input to the gesture detection device 1 and the first table.

<テーブル更新部が複数のテーブルの更新を行う場合>
図12,13は、テーブル更新部11が、テーブル保持部12に保持されている3種類のテーブル(第1テーブル、第2テーブルおよび第3テーブル)の更新を行うときの処理の流れを示す図である。
<When the table update unit updates multiple tables>
FIGS. 12 and 13 are diagrams showing the flow of processing when the table update unit 11 updates three types of tables (first table, second table, and third table) held in the table holding unit 12. It is.

図12に例示されるように、テーブル更新部11は、3種類のテーブルの更新を行うときには、ジェスチャー検出装置1に入力されたx座標値を用いて、テーブル保持部12に保持されている第1テーブルの更新を行った後に(ステップS1a)、ジェスチャー検出装置1に入力されたy座標値を用いて、テーブル保持部12に保持されている第2テーブルの更新を行い(ステップS1b)、ジェスチャー検出装置1に入力されたz座標値を用いて、テーブル保持部12に保持されている第3テーブルの更新を行う(ステップS1c)。なお、図12に示される処理は一例であり、テーブル更新部11によって更新が行われるテーブルの数および更新が行われる順番は、図12に示される例に限定されない。   As illustrated in FIG. 12, when updating the three types of tables, the table update unit 11 uses the x coordinate value input to the gesture detection device 1 to hold the first table held in the table holding unit 12. After updating one table (step S1a), the second table held in the table holding unit 12 is updated using the y coordinate value input to the gesture detection device 1 (step S1b), and the gesture The third table held in the table holding unit 12 is updated using the z coordinate value input to the detection device 1 (step S1c). The process illustrated in FIG. 12 is an example, and the number of tables updated by the table update unit 11 and the order in which the update is performed are not limited to the example illustrated in FIG.

また、テーブル更新部11は、図13に示されるように、前回ジェスチャー検出装置1に入力された値と、今回ジェスチャー検出装置1に入力された値とに変化がない(つまり、前回ジェスチャー検出装置1に入力された値と、今回ジェスチャー検出装置1に入力された値とが同じ値である)場合には、座標値を用いたテーブルの更新処理は行わなくてもよい。   Further, as shown in FIG. 13, the table update unit 11 does not change between the value input to the previous gesture detection device 1 and the value input to the gesture detection device 1 this time (that is, the previous gesture detection device 1). In the case where the value input to 1 and the value input to the gesture detection device 1 this time are the same value), the table update process using the coordinate values may not be performed.

図13に示されるように、テーブル更新部11は今回ジェスチャー検出装置1に入力されたx座標値と、前回ジェスチャー検出装置1に入力されたx座標値とに変化があるかを判定する(ステップS25a)。今回ジェスチャー検出装置1に入力されたx座標値と前回ジェスチャー検出装置1に入力されたx座標値とに変化がある場合には(ステップS25aでYes)、テーブル更新部11は、テーブル保持部12に保持されている第1テーブルの更新処理を行う(ステップS1a)。   As shown in FIG. 13, the table updating unit 11 determines whether there is a change between the x coordinate value input to the gesture detection device 1 this time and the x coordinate value input to the gesture detection device 1 last time (step). S25a). When there is a change between the x coordinate value input to the gesture detection device 1 this time and the x coordinate value input to the gesture detection device 1 last time (Yes in step S25a), the table update unit 11 performs the table holding unit 12 The update process of the first table held in the table is performed (step S1a).

一方、今回ジェスチャー検出装置1に入力されたx座標値と前回ジェスチャー検出装置1に入力されたx座標値とに変化がない場合には(ステップS25aでNo)、テーブル更新部11は、テーブル保持部12に保持されている第1テーブルの更新処理を行わずに次の処理(図13に示される例ではステップS25b)を開始する。   On the other hand, when there is no change between the x coordinate value input to the gesture detection device 1 this time and the x coordinate value input to the gesture detection device 1 last time (No in step S25a), the table update unit 11 holds the table. The next process (step S25b in the example shown in FIG. 13) is started without updating the first table held in the unit 12.

今回ジェスチャー検出装置1に入力されたx座標値と、前回ジェスチャー検出装置に入力されたx座標値とが同じであることから、検知対象物60がx軸に沿って動いていないと言える。検知対象物60がx軸に沿って動いていないときには、テーブル更新部11がテーブル保持部12に保持される第1テーブルの更新処理を行っても、当該第1テーブルが保持する情報は変わらない。そのため、上記のように、前回ジェスチャー検出装置1に入力されたx座標値と、前回ジェスチャー検出装置に入力されたx座標値とが同じである場合に、テーブル更新部11が、テーブル保持部12に保持されている第1テーブルの更新を行わない。その結果、ジェスチャー検出装置1は、検知対象物60が動いていないときの、ジェスチャー検出装置1が行う処理の量を削減することができる。   Since the x coordinate value input to the gesture detection device 1 this time is the same as the x coordinate value input to the gesture detection device last time, it can be said that the detection target 60 does not move along the x axis. When the detection object 60 is not moving along the x-axis, even if the table update unit 11 performs the update process of the first table held in the table holding unit 12, the information held in the first table does not change. . Therefore, as described above, when the x-coordinate value input to the previous gesture detection device 1 is the same as the x-coordinate value input to the previous gesture detection device, the table update unit 11 performs the table holding unit 12. The first table held in is not updated. As a result, the gesture detection device 1 can reduce the amount of processing performed by the gesture detection device 1 when the detection target 60 is not moving.

同様に、テーブル更新部11は、今回ジェスチャー検出装置1に入力されたy座標値と、前回ジェスチャー検出装置1に入力されたy座標値とに変化があるかを調べる(ステップS25b)。今回ジェスチャー検出装置1に入力されたy座標値と前回ジェスチャー検出装置1に入力されたy座標値とに変化がある場合には(ステップS25bでYes)、テーブル更新部11は、テーブル保持部12に保持されている第2テーブルを更新処理を行う(ステップS1b)。反対に、ジェスチャー検出装置1に入力されたy座標値と前回ジェスチャー検出装置1に入力されたy座標値とに変化がない場合には(ステップS25bでNo)、テーブル更新部11は、テーブル保持部12に保持されている第2テーブルの更新処理を行わない。   Similarly, the table updating unit 11 checks whether there is a change between the y coordinate value input to the gesture detection device 1 this time and the y coordinate value input to the gesture detection device 1 last time (step S25b). If there is a change between the y coordinate value input to the gesture detection device 1 this time and the y coordinate value input to the gesture detection device 1 last time (Yes in step S25b), the table update unit 11 performs the table holding unit 12 The second table held in is updated (step S1b). On the other hand, when there is no change between the y coordinate value input to the gesture detection device 1 and the y coordinate value input to the previous gesture detection device 1 (No in step S25b), the table update unit 11 holds the table. The second table held in the unit 12 is not updated.

同様に、テーブル更新部11は、今回ジェスチャー検出装置1に入力されたz座標値と、前回ジェスチャー検出装置1に入力されたz座標値とに変化があるかを調べる(ステップS25c)。今回ジェスチャー検出装置1に入力されたz座標値と前回ジェスチャー検出装置1に入力されたz座標値とに変化がある場合には(ステップS25cでYes)、テーブル更新部11は、テーブル保持部12に保持されている第3テーブルの更新処理を行う(ステップS1c)。反対に、ジェスチャー検出装置1に入力されたz座標値と前回ジェスチャー検出装置1に入力されたz座標値とに変化がない場合には(ステップS25cでNo)、テーブル更新部11は、テーブル保持部12に保持されている第3テーブルの更新処理を行わない。   Similarly, the table updating unit 11 checks whether there is a change between the z coordinate value input to the gesture detection device 1 this time and the z coordinate value input to the gesture detection device 1 last time (step S25c). When there is a change between the z coordinate value input to the gesture detection device 1 this time and the z coordinate value input to the gesture detection device 1 last time (Yes in step S25c), the table update unit 11 performs the table holding unit 12 The third table held in the table is updated (step S1c). On the other hand, when there is no change between the z coordinate value input to the gesture detection device 1 and the z coordinate value input to the previous gesture detection device 1 (No in step S25c), the table update unit 11 holds the table. The third table held in the unit 12 is not updated.

<2−4.第1動作検出部の概要>
既述したように、第1動作検出部16は、図5に示されるような回転動作を、2つのテーブルに基づいて検出する。より具体的には、第1動作検出部16は、xy座標平面上で検知対象物60が回転する第1動作を検出する場合には、テーブル更新部11によって更新された第1および第2テーブルを用いて検出処理を行う。また、第1動作検出部16は、xz座標平面上で検知対象物60が回転する第1動作を検出する場合には、テーブル更新部11によって更新された第1および第3テーブルを用いて検出処理を行う。また、第1動作検出部16は、yz座標平面上で検知対象物60が回転する第1動作を検出する場合には、テーブル更新部11によって更新された第2及び第3テーブルを用いて検出処理を行う。
<2-4. Overview of first motion detection unit>
As described above, the first motion detector 16 detects the rotational motion as shown in FIG. 5 based on the two tables. More specifically, when the first motion detection unit 16 detects the first motion of the detection target 60 rotating on the xy coordinate plane, the first and second tables updated by the table update unit 11. The detection process is performed using. In addition, when detecting the first motion of the detection target 60 rotating on the xz coordinate plane, the first motion detection unit 16 detects using the first and third tables updated by the table update unit 11. Process. In addition, when detecting the first motion of the detection target 60 rotating on the yz coordinate plane, the first motion detection unit 16 detects using the second and third tables updated by the table update unit 11. Process.

図14は、第1動作検出部16の構成を示す図である。図15は、第1動作検出部16での処理を説明するための図である。図14に示されるように、第1動作検出部16は、移動方向特定部20および第1判定部21を有している。第1動作検出部16の概略的な動作について、図14,15を参照しながら以下に説明する。   FIG. 14 is a diagram illustrating a configuration of the first motion detection unit 16. FIG. 15 is a diagram for explaining processing in the first motion detection unit 16. As illustrated in FIG. 14, the first motion detection unit 16 includes a movement direction identification unit 20 and a first determination unit 21. A schematic operation of the first motion detection unit 16 will be described below with reference to FIGS.

まず、移動方向特定部20が、テーブル更新部11によって更新された2つのテーブルに基づいて検知対象物60が移動した方向(移動方向)を特定する(ステップS30)。続いて、第1判定部21が、移動方向特定部20において検知対象物60の移動方向が特定された順序を履歴情報として保持する(ステップS31)。そして、第1判定部21は、履歴情報に基づいて、移動方向特定部20において検知対象物60の移動方向が特定された順序が、所定順序を示すか否かを判定する(ステップS32)。履歴情報に基づいて、移動方向特定部20において検知対象物60の移動方向が特定された順序が、所定順序を示す場合には、第1判定部21は、検知対象物60が第1動作を行ったと判定する。   First, the moving direction specifying unit 20 specifies the direction (moving direction) in which the detection target 60 has moved based on the two tables updated by the table updating unit 11 (step S30). Then, the 1st determination part 21 hold | maintains the order in which the moving direction of the detection target object 60 was specified in the moving direction specific | specification part 20 as log | history information (step S31). And the 1st determination part 21 determines whether the order in which the movement direction of the detection target object 60 was specified in the movement direction specific | specification part 20 shows a predetermined order based on historical information (step S32). If the order in which the movement direction of the detection object 60 is specified by the movement direction specification unit 20 based on the history information indicates a predetermined order, the first determination unit 21 causes the detection object 60 to perform the first operation. Judge that it has been done.

図16,17を参照しながら、第1判定部21がステップS32の処理で用いる所定順序について以下に説明する。図16は、xy座標平面上で検知対象物60が第1動作を行った場合の一例を示す図である。図17は、検知対象物60によって図16に示される第1動作が行われたときに、位置検出装置100が検出したx座標値およびy座標値を示す図である。なお、以下の説明では、検知対象物60がxy座標平面上で第1動作を行った場合を例に挙げて説明するが、検知対象物60が他の座標平面上(より具体的には、xz座標平面上もしくはyz座標平面上)で第1動作を行う場合も同様に考えることができる。   The predetermined order used by the first determination unit 21 in the process of step S32 will be described below with reference to FIGS. FIG. 16 is a diagram illustrating an example when the detection target 60 performs the first operation on the xy coordinate plane. FIG. 17 is a diagram illustrating the x-coordinate value and the y-coordinate value detected by the position detection device 100 when the first operation shown in FIG. In the following description, the case where the detection target 60 performs the first operation on the xy coordinate plane will be described as an example. However, the detection target 60 may be on another coordinate plane (more specifically, The same can be considered when the first operation is performed on the xz coordinate plane or the yz coordinate plane.

図16には、時刻T0〜T4までの検知対象物60の動きが示されている。図16に示される例では、検知対象物60は、時刻T0〜T4に示される動きを行うことで、時計回りに回転する第1動作を行っている。本実施の形態では、便宜上、図16に示されるように、x軸のプラス方向を「右方向」と呼び、x軸のマイナス方向を「左方向」と呼ぶ。同様に、y軸のプラス方向を「上方向」と呼び、y軸のマイナス方向を「下方向」と呼ぶ。   FIG. 16 shows the movement of the detection object 60 from time T0 to T4. In the example shown in FIG. 16, the detection target 60 performs the first operation of rotating clockwise by performing the movement shown at times T0 to T4. In the present embodiment, for the sake of convenience, as shown in FIG. 16, the positive direction of the x axis is referred to as “right direction”, and the negative direction of the x axis is referred to as “left direction”. Similarly, the positive direction of the y axis is referred to as “upward”, and the negative direction of the y axis is referred to as “downward”.

より具体的には、時刻T0〜T1では、検知対象物60はxy座標平面における左下の領域から、xy座標平面における左上の領域に向かって、xy座標平面の原点を中心に円弧を描くように移動している。時刻T1〜T2では、検知対象物60はxy座標平面における左上の領域から、xy座標平面における右上の領域に向かって、xy座標平面の原点を中心に円弧を描くように移動している。時刻T2〜T3では、検知対象物60は、xy座標平面における右上の領域から、xy座標平面における右下の領域に向かって、xy座標平面の原点を中心に円弧を描くように移動している。そして、時刻T3〜T4では、検知対象物60は、xy座標平面における右下の領域から、xy座標平面における左下の領域に向かって、xy座標平面の原点を中心に円弧を描くように移動している。   More specifically, at time T0 to T1, the detection target 60 draws an arc around the origin of the xy coordinate plane from the lower left area on the xy coordinate plane toward the upper left area on the xy coordinate plane. Has moved. At times T1 to T2, the detection target 60 moves from an upper left area on the xy coordinate plane toward an upper right area on the xy coordinate plane so as to draw an arc centering on the origin of the xy coordinate plane. At times T2 to T3, the detection target 60 moves from an upper right region on the xy coordinate plane toward a lower right region on the xy coordinate plane so as to draw an arc centering on the origin of the xy coordinate plane. . Then, at times T3 to T4, the detection object 60 moves from the lower right region on the xy coordinate plane toward the lower left region on the xy coordinate plane so as to draw an arc centering on the origin of the xy coordinate plane. ing.

一方、図17の上側のグラフには位置検出装置100が検出したx座標値が示されており、下側のグラフには位置検出装置100が検出したy座標値が示されている。それぞれのグラフにおいて、横軸は時間を示しており、縦軸は位置検出装置100によって検出された座標値を示している。   On the other hand, the x-coordinate value detected by the position detection device 100 is shown in the upper graph of FIG. 17, and the y-coordinate value detected by the position detection device 100 is shown in the lower graph. In each graph, the horizontal axis indicates time, and the vertical axis indicates coordinate values detected by the position detection device 100.

検知対象物60が図16に示されるような第1動作を行っている場合には、図17に示されるように、時刻T0〜T1では、x座標値はほとんど変化せず、y座標値は上方向に変化する。つまり、時刻T0〜T1において、位置検出装置100から入力されたx座標値及びy座標値から特定される検知対象物60が移動する方向は、上方向であると言える。   When the detection target 60 performs the first operation as shown in FIG. 16, as shown in FIG. 17, the x coordinate value hardly changes at time T0 to T1, and the y coordinate value is Changes upward. That is, at time T0 to T1, it can be said that the direction in which the detection target 60 specified by the x-coordinate value and the y-coordinate value input from the position detection device 100 moves is the upward direction.

続いて、時刻T1〜T2では、x座標値は右方向に変化し、y座標値はほとんど変化しない。つまり、時刻T1〜T2において、位置検出装置100から入力されたx座標値及びy座標値から特定される検知対象物60が移動する方向は、右方向であると言える。   Subsequently, at times T1 to T2, the x coordinate value changes to the right and the y coordinate value hardly changes. That is, at time T1 to T2, it can be said that the direction in which the detection target 60 specified by the x coordinate value and the y coordinate value input from the position detection device 100 moves is the right direction.

続いて、時刻T2〜T3では、x座標値はほとんど変化せず、y座標値は下方向に変化する。つまり、時刻T2〜T3において、位置検出装置100から入力されたx座標値及びy座標値から特定される検知対象物60が移動する方向は、下方向であると言える。   Subsequently, at times T2 to T3, the x coordinate value hardly changes and the y coordinate value changes downward. That is, at time T2 to T3, it can be said that the direction in which the detection target 60 specified by the x coordinate value and the y coordinate value input from the position detection device 100 moves is the downward direction.

そして、時刻T3〜T4では、x座標値は左方向に変化し、y座標値はほとんど変化しない。つまり、時刻T3〜T4において、位置検出装置100から入力されたx座標値及びy座標値から特定される検知対象物60が移動する方向は、左方向であると言える。   At times T3 to T4, the x coordinate value changes to the left, and the y coordinate value hardly changes. That is, at time T3 to T4, it can be said that the direction in which the detection target 60 specified from the x coordinate value and the y coordinate value input from the position detection device 100 moves is the left direction.

したがって、検知対象物60が時計回りに回転する第1動作を行う場合には、位置検出装置100から入力されたx座標値及びy座標値に基づいて、検知対象物60が上方向に移動(図16の時刻T0〜T1)したと特定された後には、当該検知対象物60が右方向に移動(図16の時刻T1〜T2)すると特定される。同様に、位置検出装置100から入力されたx座標値及びy座標値に基づいて、検知対象物60が右方向に移動(図16の時刻T1〜T2)したと特定された後には、当該検知対象物60が下方向に移動(図16の時刻T2〜T3)すると特定される。同様に、位置検出装置100から入力されたx座標値及びy座標値に基づいて、検知対象物60が下方向に移動(図16の時刻T2〜T3)したと特定された後には、検知対象物60が左方向に移動(図16の時刻T3〜T4)すると特定される。   Therefore, when performing the first operation in which the detection target 60 rotates clockwise, the detection target 60 moves upward based on the x-coordinate value and the y-coordinate value input from the position detection device 100 ( After it is specified that the times T0 to T1 in FIG. 16), the detection object 60 is specified to move rightward (times T1 to T2 in FIG. 16). Similarly, after it is determined that the detection target 60 has moved rightward (time T1 to T2 in FIG. 16) based on the x-coordinate value and the y-coordinate value input from the position detection device 100, the detection is performed. It is specified when the object 60 moves downward (time T2 to T3 in FIG. 16). Similarly, after it is determined that the detection target 60 has moved downward (time T2 to T3 in FIG. 16) based on the x-coordinate value and the y-coordinate value input from the position detection device 100, the detection target It is specified when the object 60 moves leftward (time T3 to T4 in FIG. 16).

そして、検知対象物60が図16に示されるように、xy座標平面における左下の領域から時計回りに回転する第1動作を行った場合には、位置検出装置100から入力されたx座標値及びy座標値に基づいて特定される検知対象物60の移動方向は、上記のように上方向、右方向、下方向、左方向の順(所定順序)で変化する。   As shown in FIG. 16, when the first operation is performed in which the detection target 60 rotates clockwise from the lower left region on the xy coordinate plane, the x coordinate value input from the position detection device 100 and As described above, the moving direction of the detection target 60 specified based on the y coordinate value changes in the order (predetermined order) in the upward direction, the right direction, the downward direction, and the left direction.

したがって、本実施の形態における第1動作検出部16では、移動方向特定部20がテーブル更新部11によって更新された2つのテーブルに基づいて、検知対象物60の移動方向を特定し(ステップS30)、第1判定部21は、移動方向特定部20において検知対象物60の移動方向が特定された順序が、上方向、右方向、下方向、左方向といった所定順序を示す場合に、検知対象物60が第1動作を行っていると判定する(ステップS31,S32)。   Therefore, in the 1st operation | movement detection part 16 in this Embodiment, the movement direction specific | specification part 20 specifies the movement direction of the detection target object 60 based on the two tables updated by the table update part 11 (step S30). The first determination unit 21 detects the detection target object when the order in which the movement direction of the detection target object 60 is specified by the movement direction specification unit 20 indicates a predetermined order such as upward, rightward, downward, and leftward. It is determined that 60 is performing the first operation (steps S31 and S32).

なお、ステップS32の処理で用いる所定順序は、上述した上方向、右方向、下方向、左方向の順序に限られない。検知対象物60が座標平面上のどの位置から開始するか、当該時計回りに回転を行うか反時計回りに回転を行うかによって、x座標値およびy座標値から特定されるべきである検知対象物60の移動方向の順序は異なる。したがって、ステップS32の処理で用いられる所定順序は、複数種類存在する。所定順序の種類については、後で説明する。   Note that the predetermined order used in the process of step S32 is not limited to the above-described order of upward, rightward, downward, and leftward. A detection target that should be specified from the x-coordinate value and the y-coordinate value depending on from which position on the coordinate plane the detection target object 60 starts, whether it rotates clockwise or counterclockwise The order of the moving direction of the object 60 is different. Therefore, there are a plurality of predetermined orders used in the process of step S32. The types of the predetermined order will be described later.

なお、第1動作検出部16は、複数の座標平面での第1動作を検出する場合には、図15に示されるステップS2の処理を繰り返し行う。例えば、第1動作検出部16が、xy座標平面上の第1動作と、xz座標平面上の第1動作とを検出する場合には、第1動作検出部16は、xy座標平面上の第1動作を検出するために第1及び第2テーブルを用いてステップS2の処理を行った後に、xz座標平面上の第1動作を検出するために第1及び第3テーブルを用いてステップS2の処理を行えばよい。   In addition, the 1st motion detection part 16 repeatedly performs the process of step S2 shown by FIG. 15, when detecting the 1st motion in a some coordinate plane. For example, when the first motion detection unit 16 detects the first motion on the xy coordinate plane and the first motion on the xz coordinate plane, the first motion detection unit 16 detects the first motion on the xy coordinate plane. After performing the process of step S2 using the first and second tables to detect one motion, the first and third tables are used to detect the first motion on the xz coordinate plane. What is necessary is just to process.

以下に、移動方向特定部20および第1判定部21について詳細に説明する。   Below, the moving direction specific | specification part 20 and the 1st determination part 21 are demonstrated in detail.

<2−4−1.移動方向特定部>
<移動方向特定部で行われる処理について>
既述したように移動方向特定部20は、検知対象物60が移動した方向を特定する。図18は、位置検出装置100で検出されたx座標値を示す図である。図19は、図18に示される時刻T10,T11でテーブル更新部11に更新された第1テーブルを示す図である。図18,19を参照しながら、移動方向特定部20が行う処理の概要を説明する。
<2-4-1. Moving direction identification section>
<About processing performed in the moving direction specifying unit>
As described above, the movement direction specifying unit 20 specifies the direction in which the detection target 60 has moved. FIG. 18 is a diagram illustrating x-coordinate values detected by the position detection device 100. FIG. 19 is a diagram showing the first table updated in the table update unit 11 at times T10 and T11 shown in FIG. The outline of the processing performed by the movement direction identification unit 20 will be described with reference to FIGS.

なお、以下の説明では、移動方向特定部20が、第1テーブルに基づいて検知対象物60の移動方向を特定する場合を例に挙げて説明するが、移動方向特定部20が、第2テーブルに基づいて検知対象物60の移動方向を特定する場合および第3テーブルに基づいて検知対象物60の移動方向を特定する場合についても、同様に考えることができる。   In the following description, a case where the moving direction specifying unit 20 specifies the moving direction of the detection target 60 based on the first table will be described as an example. The same applies to the case where the movement direction of the detection object 60 is specified based on the above and the case where the movement direction of the detection object 60 is specified based on the third table.

図18,19に示されるように、時刻T10のときにテーブル更新部11に更新された第1テーブルには、変化回数に「C1」が保持されており、累積変化量に「L1」が保持されており、変化方向に「プラス方向」が保持されている。この場合には、移動方向特定部20は、変化回数C1が第1の閾値より大きく、かつ累積変化量L1が第2の閾値より大きい場合に、検知対象物60がプラス方向(つまり、右方向)に移動していると特定する。   As shown in FIGS. 18 and 19, the first table updated by the table updating unit 11 at time T <b> 10 holds “C1” as the number of changes and “L1” as the cumulative change amount. The “plus direction” is maintained in the change direction. In this case, when the number of changes C1 is greater than the first threshold value and the cumulative change amount L1 is greater than the second threshold value, the movement direction specifying unit 20 moves the detection target 60 in the plus direction (that is, rightward direction). ).

同様に、時刻T11のときにテーブル更新部11に更新された第1テーブルには、変化回数に「C2」が保持されており、累積変化量に「L2」が保持されており、変化方向に「マイナス方向」が保持されている。この場合には、移動方向特定部20は、変化回数C2が第1の閾値より大きく、かつ累積変化量L2が第2の閾値より大きい場合に、検知対象物60がマイナス方向(つまり、左方向)に移動していると特定する。   Similarly, in the first table updated to the table update unit 11 at time T11, “C2” is held as the number of changes, “L2” is held as the cumulative change amount, and the change direction is changed. “Negative direction” is held. In this case, when the number of changes C2 is greater than the first threshold value and the cumulative change amount L2 is greater than the second threshold value, the movement direction specifying unit 20 moves the detection target 60 in the minus direction (that is, leftward direction). ).

移動方向特定部20は、テーブル更新部11に更新されたテーブルに保持されている変化回数が第1の閾値より大きいか否かを判定することによって、当該第1の閾値に応じた第1時間より長い時間、検知対象物60が同一方向に移動しているか否かを判定している。また、移動方向特定部20は、テーブル更新部11に更新されたテーブルに保持されている累積変化量が第2の閾値より大きいか否かを判定することによって、当該第2の閾値に応じた第1距離より長い距離を、検知対象物60が同一方向に移動しているか否かを判定している。   The movement direction identification unit 20 determines whether or not the number of changes held in the table updated by the table update unit 11 is larger than the first threshold, thereby determining the first time corresponding to the first threshold. It is determined whether or not the detection object 60 has moved in the same direction for a longer time. In addition, the movement direction identification unit 20 determines whether or not the cumulative change amount stored in the table updated by the table update unit 11 is larger than the second threshold value, thereby responding to the second threshold value. It is determined whether or not the detection object 60 is moving in the same direction over a distance longer than the first distance.

移動方向特定部20は、テーブル更新部11に更新されたテーブルに保持されている累積変化量が第2の閾値より大きい場合であっても、当該テーブルに保持されている変化回数が第1の閾値より小さい場合には、検知対象物60が当該テーブルが保持する変化方向が示す方向に移動したと特定しない。つまり、検知対象物60が早い速度で動作を行って、第1距離より長い距離を移動したとしても、当該動作を行う時間が第1時間より短い場合には、移動方向特定部20は、検知対象物60がテーブル更新部11に更新されたテーブルに保持されている変化方向が示す方向に移動したと特定しない。そのため、本実施の形態に係る移動方向特定部20は、ノイズ等の影響によりジェスチャー検出装置1に入力される座標値が一時的に大きく変化していた場合であっても、当該座標値の変化が検知対象物60の動作によるものと判断しない。   Even when the cumulative change amount stored in the table updated by the table update unit 11 is larger than the second threshold, the movement direction identification unit 20 determines that the number of changes held in the table is the first. When it is smaller than the threshold, it is not specified that the detection target 60 has moved in the direction indicated by the change direction held by the table. That is, even if the detection target 60 operates at a high speed and moves a distance longer than the first distance, if the time for performing the operation is shorter than the first time, the movement direction specifying unit 20 detects It is not specified that the object 60 has moved in the direction indicated by the change direction held in the table updated by the table updating unit 11. For this reason, the movement direction specifying unit 20 according to the present embodiment changes the coordinate value even when the coordinate value input to the gesture detection device 1 has temporarily changed significantly due to the influence of noise or the like. Is not determined to be due to the operation of the detection object 60.

同様に、移動方向特定部20は、テーブル更新部11に更新されたテーブルに保持されている変化回数が第1の閾値より大きい場合であっても、当該テーブルに保持されている累積変化量が第2の閾値より小さい場合には、検知対象物60が当該テーブルに保持されている変化方向が示す方向に移動したと判定しない。つまり、検知対象物60が遅い速度で動作を行い、当該動作が第1時間より長い時間行われていても、検知対象物60が第1距離より短い距離しか動いていない場合には、移動方向特定部20は、検知対象物60が移動したと判定しない。そのため、本実施の形態に係る移動方向特定部20は、例えば、検知対象物60がジェスチャーを行っていないときに、ジェスチャー検出装置1に入力される座標値に小さな変化が発生した場合でも、当該座標値の変化が検知対象物60の動作によるものと判断しない。   Similarly, even when the number of changes held in the table updated by the table update unit 11 is greater than the first threshold, the movement direction identification unit 20 determines that the accumulated change amount held in the table is the same. When it is smaller than the second threshold value, it is not determined that the detection target 60 has moved in the direction indicated by the change direction held in the table. That is, if the detection object 60 operates at a slow speed and the operation is performed for a time longer than the first time, but the detection object 60 moves only a distance shorter than the first distance, the movement direction The identifying unit 20 does not determine that the detection target 60 has moved. Therefore, the moving direction specifying unit 20 according to the present embodiment, for example, even when a small change occurs in the coordinate value input to the gesture detection device 1 when the detection target 60 is not performing a gesture, It is not determined that the change in the coordinate value is due to the operation of the detection target 60.

また、例えば、第1の閾値には4[回]が採用され、第2の閾値には30[mm]が採用される。第1の閾値および第2の閾値は、ジェスチャー検出装置1の使用用途(例えば検知対象物60が動く早さ、第1動作を行うときの回転の軌跡の大きさ等)等に応じて選択される。   For example, 4 [times] is adopted as the first threshold, and 30 [mm] is adopted as the second threshold. The first threshold value and the second threshold value are selected according to the usage application of the gesture detection device 1 (for example, the speed at which the detection target 60 moves, the size of the rotation trajectory when performing the first action, etc.), and the like. The

このように、本実施の形態では、移動方向特定部20が、テーブルに保持されている変化回数(検知対象物60が移動した時間)と累積変化量(検知対象物60が動いた距離)とを用いて、検知対象物60が移動したか否かを判断する。そのため、ノイズ等によってジェスチャー検出装置1に入力される座標値が変化した場合に、移動方向特定部20によって当該座標値の変化が検知対象物60の動作として特定されることを抑制することができる。その結果、ジェスチャー検出装置1のジェスチャーの検出精度を向上することができる。   As described above, in the present embodiment, the movement direction specifying unit 20 determines the number of changes (time when the detection target 60 has moved) and the accumulated change amount (distance that the detection target 60 has moved) held in the table. Is used to determine whether or not the detection object 60 has moved. Therefore, when the coordinate value input into the gesture detection apparatus 1 changes with noise etc., it can suppress that the change of the said coordinate value is specified as operation | movement of the detection target object 60 by the movement direction specific | specification part 20. . As a result, the gesture detection accuracy of the gesture detection device 1 can be improved.

<移動方向特定部での処理の流れ>
図20,21は移動方向特定部20が行う処理を説明するための図である。図20,21を参照しながら、移動方向特定部20が行う処理の流れについて以下に説明する。
<Flow of processing in the moving direction identification unit>
20 and 21 are diagrams for explaining processing performed by the movement direction identification unit 20. The flow of processing performed by the movement direction identification unit 20 will be described below with reference to FIGS.

図20に示されるように、まず、移動方向特定部20は第1動作の検出に用いる2つのテーブルを取得する(ステップS35)。例えば、第1動作検出部16でxy座標平面上の第1動作を検出する場合には、移動方向特定部20はステップS35で、テーブル更新部11によって更新された第1テーブル及び第2テーブルを取得する。次に、移動方向特定部20は、検知対象物60が下方向へ移動しているか否かを特定する(ステップS36a)。図21には、ステップS36aの処理の詳細が示されている。   As illustrated in FIG. 20, first, the movement direction identification unit 20 acquires two tables used for detection of the first motion (step S35). For example, when the first motion detection unit 16 detects the first motion on the xy coordinate plane, the movement direction identification unit 20 uses the first table and the second table updated by the table update unit 11 in step S35. get. Next, the moving direction specifying unit 20 specifies whether or not the detection target 60 is moving downward (step S36a). FIG. 21 shows details of the process in step S36a.

図21に示されるように、移動方向特定部20は、検知対象物60が下方向へ移動しているか否かを特定するために必要なテーブル、つまりy座標値に基づいてテーブル更新部11に更新された第2テーブルを取得する(ステップS40)。   As shown in FIG. 21, the moving direction specifying unit 20 stores the table necessary for specifying whether or not the detection object 60 is moving downward, that is, the table updating unit 11 based on the y coordinate value. The updated second table is acquired (step S40).

続いて、移動方向特定部20は、ステップS40で取得した第2テーブルに保持されている変化方向が下方向(マイナス方向)か否かを調べる(ステップS41)。移動方向特定部20は、ステップS40で取得した第2テーブルに保持されている変化方向が下方向でない場合には(ステップS41でNo)、検知対象物60が下方向に移動していないと特定し(ステップS42)、ステップS36aの処理を終了する。一方、移動方向特定部20は、ステップS40で取得した第2テーブルに保持されている変化方向が下方向である場合には(ステップS41でYes)、当該第2テーブルに保持されている変化回数が第1の閾値より大きいかを調べる(ステップS43)。   Subsequently, the movement direction specifying unit 20 checks whether or not the change direction held in the second table acquired in Step S40 is a downward direction (a negative direction) (Step S41). When the change direction held in the second table acquired in step S40 is not downward (No in step S41), the movement direction identification unit 20 identifies that the detection target 60 has not moved downward. (Step S42), and the process of Step S36a is terminated. On the other hand, when the change direction held in the second table acquired in step S40 is the downward direction (Yes in step S41), the movement direction specifying unit 20 changes the number of changes held in the second table. Is greater than the first threshold (step S43).

移動方向特定部20は、ステップS40で取得した第2テーブルに保持されている変化回数が第1の閾値より小さい場合、あるいは第1の閾値と同じ値である場合には(ステップS43でNo)、検知対象物60が下方向に移動していないと特定し(ステップS42)、ステップS36aの処理を終了する。一方、移動方向特定部20は、ステップS40で取得した第2テーブルに保持されている変化回数が、第1の閾値より大きい場合には(ステップS43でYes)、当該第2テーブルに保持されている累積変化量が第2の閾値より大きいかを調べる(ステップS44)。なお、本実施の形態では、ステップS40で取得した第2テーブルに保持されている変化回数と第1の閾値とが同じ値である場合には、移動方向特定部20は検知対象物60が下方向に移動していないと特定している。しかし、移動方向特定部20は、ステップS40で取得した第2テーブルに保持されている変化回数と第1の閾値とが同じ値である場合に、ステップS44に進んでもよい。   When the number of changes held in the second table acquired in step S40 is smaller than the first threshold value or the same value as the first threshold value (No in step S43), the moving direction specifying unit 20 Then, it is specified that the detection target 60 has not moved downward (step S42), and the process of step S36a is terminated. On the other hand, if the number of changes held in the second table acquired in step S40 is greater than the first threshold (Yes in step S43), the moving direction identification unit 20 holds the change in the second table. It is checked whether the accumulated change amount is larger than the second threshold (step S44). In the present embodiment, when the number of changes held in the second table acquired in step S40 and the first threshold value are the same value, the movement direction specifying unit 20 indicates that the detection object 60 is lower. Identified as not moving in the direction. However, the moving direction identification unit 20 may proceed to step S44 when the number of changes held in the second table acquired in step S40 and the first threshold value are the same value.

ステップS44において、ステップS40で取得した第2テーブルに保持されている累積変化量が第2の閾値より小さい場合、あるいは第2の閾値と同じ場合には(ステップS44でNo)、移動方向特定部20は、検知対象物60が下方向に移動していないと特定し(ステップS42)、ステップS36aの処理を終了する。一方、移動方向特定部20は、ステップS40で取得した第2テーブルに保持されている累積変化量が第2の閾値より大きい場合には(ステップS44でYes)、検知対象物60が下方向に移動していると特定し(ステップS45)、ステップS36aの処理を終了する。なお、本実施の形態では、ステップS40で取得した第2テーブルに保持されている累積変化量が第2の閾値と同じ値である場合には、移動方向特定部20が、検知対象物60が下方向に移動していないと特定している。しかし、移動方向特定部20は、ステップS40で取得した第2テーブルに保持されている累積変化量と第2の閾値とが同じ値である場合に、検知対象物60が下方向に移動していると特定してもよい。   In step S44, when the cumulative change amount stored in the second table acquired in step S40 is smaller than the second threshold value or the same as the second threshold value (No in step S44), the moving direction specifying unit 20 specifies that the detection target 60 has not moved downward (step S42), and ends the process of step S36a. On the other hand, when the cumulative change amount stored in the second table acquired in step S40 is larger than the second threshold (Yes in step S44), the moving direction specifying unit 20 moves the detection target 60 downward. It identifies that it is moving (step S45), and ends the process of step S36a. In the present embodiment, when the cumulative change amount stored in the second table acquired in step S40 is the same value as the second threshold value, the movement direction specifying unit 20 determines that the detection target 60 is Identifies that it has not moved downward. However, when the cumulative change amount stored in the second table acquired in step S40 and the second threshold value are the same value, the movement direction specifying unit 20 moves the detection target 60 downward. You may specify that

図20に戻り、ステップS36a(図21に示される処理)によって、検知対象物60が下方向に移動していると特定された場合には(ステップS36aでYes)、移動方向特定部20は、検知対象物60が下方向に移動したという特定結果を第1判定部21に送出し(ステップS37a)、ステップS30の処理を終了する。反対に、ステップS36a(図21に示される処理)によって、検知対象物60が下方向に移動していないと特定された場合には(ステップS36aでNo)、移動方向特定部20は、検知対象物60が右方向に移動したか否かを判定する(ステップS36b)。   Returning to FIG. 20, when it is determined in step S36a (the process shown in FIG. 21) that the detection target 60 is moving downward (Yes in step S36a), the movement direction specifying unit 20 The identification result that the detection object 60 has moved downward is sent to the first determination unit 21 (step S37a), and the process of step S30 is terminated. On the other hand, when it is determined in step S36a (the process shown in FIG. 21) that the detection target 60 has not moved downward (No in step S36a), the movement direction specifying unit 20 It is determined whether or not the object 60 has moved to the right (step S36b).

ステップS36bでは、移動方向特定部20は、ステップS36aの処理と同様の手順で検知対象物60が右方向に移動したか否かを特定する(図21参照)。ステップS36aとステップS36bとの違いは、処理に用いるテーブルと、判定に用いる変化方向とである。より具体的には、ステップS36aでは、第2テーブルを用いて処理を行うのに対し、ステップS36bでは第1テーブルを用いて処理を行う。したがって、ステップS36bでは、図21に示されるステップS36aのステップS40とは異なり、移動方向特定部20は、第1テーブルを取得する。また、ステップS36aでは、検知対象物60が下方向(マイナス方向)に移動しているか否かを判定するのに対し、ステップS36bでは、検知対象物60が右方向(プラス方向)に移動しているか否かを判定する。したがって、ステップS36bでは、図21に示されるステップS36aステップS41とは異なり、移動方向特定部20は、取得したテーブルに保持されている変化方向が右方向(プラス方向)か否かを判定する。   In step S36b, the movement direction specifying unit 20 specifies whether or not the detection target 60 has moved to the right in the same procedure as in the process of step S36a (see FIG. 21). The difference between step S36a and step S36b is the table used for processing and the change direction used for determination. More specifically, in step S36a, processing is performed using the second table, whereas in step S36b, processing is performed using the first table. Therefore, in step S36b, unlike step S40 of step S36a shown in FIG. 21, the moving direction specifying unit 20 acquires the first table. In step S36a, it is determined whether or not the detection object 60 is moving downward (minus direction). In step S36b, the detection object 60 is moved rightward (plus direction). It is determined whether or not. Accordingly, in step S36b, unlike step S36a and step S41 shown in FIG. 21, the movement direction specifying unit 20 determines whether or not the change direction held in the acquired table is the right direction (plus direction).

なお、後述するステップ36cでの検知対象物60が上方向に移動しているか否かの特定及びステップS36dでの検知対象物60が右方向に移動しているか否かの特定も、ステップS36a及びステップS36bと同様の手順で行うことができる。   It should be noted that specifying whether or not the detection target 60 is moving upward in step 36c described later and specifying whether or not the detection target 60 is moving rightward in step S36d are also performed in steps S36a and S36a. The same procedure as that in step S36b can be performed.

図20に戻り、ステップS36bで、検知対象物60が右方向に移動したと特定された場合には(ステップS36bでYes)、移動方向特定部20は、検知対象物60が右方向に移動したという特定結果を第1判定部21に送出し(ステップS37b)、ステップS30の処理を終了する。反対に、ステップS36bによって、検知対象物60が右方向に移動していないと特定された場合には(ステップS36bでNo)、移動方向特定部20は、検知対象物60が上方向に移動したか否かを判定する(ステップS36c)。   Returning to FIG. 20, when it is determined in step S <b> 36 b that the detection target 60 has moved to the right (Yes in step S <b> 36 b), the movement direction specifying unit 20 has moved the detection target 60 to the right. Is sent to the first determination unit 21 (step S37b), and the process of step S30 is terminated. On the other hand, when it is determined in step S36b that the detection target 60 has not moved in the right direction (No in step S36b), the movement direction specification unit 20 moves the detection target 60 in the upward direction. Is determined (step S36c).

ステップS36cで、検知対象物60が上方向に移動したと特定された場合には(ステップS36cでYes)、移動方向特定部20は、検知対象物60が上方向に移動したという特定結果を第1判定部21に送出し(ステップS37c)、ステップS30の処理を終了する。反対に、ステップS36cによって、検知対象物60が上方向に移動していないと特定された場合には(ステップS36cでNo)、移動方向特定部20は、検知対象物60が左方向に移動したか否かを判定する(ステップS36d)。   When it is determined in step S36c that the detection target 60 has moved upward (Yes in step S36c), the movement direction specification unit 20 obtains a specific result indicating that the detection target 60 has moved upward. 1 is sent to the determination unit 21 (step S37c), and the process of step S30 is terminated. On the other hand, when it is determined in step S36c that the detection target 60 has not moved upward (No in step S36c), the movement direction specification unit 20 moves the detection target 60 in the left direction. Whether or not (step S36d).

ステップS36dで、検知対象物60が左方向に移動したと特定された場合には(ステップS36dでYes)、移動方向特定部20は、検知対象物60が左方向に移動したという特定結果を第1判定部21に送出し(ステップS37d)、ステップS30の処理を終了する。反対に、ステップS36dによって、検知対象物60が左方向に移動していないと特定された場合には(ステップS36cでNo)、移動方向特定部20は、第1動作検出部16の処理を終了する(ステップS38)。   If it is determined in step S36d that the detection object 60 has moved leftward (Yes in step S36d), the movement direction identification unit 20 determines the identification result that the detection object 60 has moved leftward. 1 is sent to the determination unit 21 (step S37d), and the process of step S30 is terminated. On the other hand, when it is determined in step S36d that the detection target 60 has not moved leftward (No in step S36c), the movement direction identification unit 20 ends the processing of the first motion detection unit 16. (Step S38).

このように、移動方向特定部20は、第1座標軸と第2座標軸から成る座標平面上の第1動作を検出する場合には、第1座標軸のプラス方向、第1座標軸のマイナス方向、第2座標軸のプラス方向および第2座標軸のマイナス方向のうちの、いずれかの方向に検知対象物60が移動しているかを、1つの方向ずつ順番に調べる。移動方向特定部20は、検知対象物60が、ある方向に移動していると特定した場合には、当該特定結果を第1判定部21に送出して、移動方向特定部20の処理を終了する。反対に、検知対象物60が4つの方向のいずれにも移動していない場合には、当該特定結果に基づいて検知対象物60のジェスチャーが検出されることがないため、移動方向特定部20は、第1動作検出部16の動作を終了する。   As described above, when detecting the first movement on the coordinate plane composed of the first coordinate axis and the second coordinate axis, the movement direction specifying unit 20 detects the positive direction of the first coordinate axis, the negative direction of the first coordinate axis, Whether the detection object 60 is moving in any one of the plus direction of the coordinate axes and the minus direction of the second coordinate axes is examined in order one by one. When the movement direction identification unit 20 identifies that the detection object 60 is moving in a certain direction, the movement direction identification unit 20 sends the identification result to the first determination unit 21 and ends the process of the movement direction identification unit 20. To do. On the other hand, when the detection target 60 has not moved in any of the four directions, since the gesture of the detection target 60 is not detected based on the identification result, the movement direction specification unit 20 Then, the operation of the first motion detector 16 is terminated.

なお、図20に示される例では、移動方向特定部20は、検知対象物60が下方向に移動しているか(ステップS36a)、検知対象物60が右方向に移動しているか(ステップS36b)、検知対象物60が上方向に移動しているか(ステップS36c)、検知対象物が左方向に移動しているか(ステップS36d)の順で検知対象物60の移動方向を特定しているが、必ずしもこの方向の順序で特定を行う必要はない。例えば、移動方向特定部20は、検知対象物60が左方向に移動しているか(ステップS36d)、検知対象物60が右方向に移動しているか(ステップS36b)、検知対象物60が下方向に移動しているか(ステップS36a)、検知対象物60が上方向に移動しているか(ステップS36c)の順で、検知対象物60の移動方向を特定してもよい。   In the example shown in FIG. 20, the moving direction specifying unit 20 determines whether the detection target 60 is moving downward (step S36a) or whether the detection target 60 is moving right (step S36b). The movement direction of the detection object 60 is specified in the order of whether the detection object 60 is moving upward (step S36c) or whether the detection object is moving leftward (step S36d). It is not always necessary to specify in this order. For example, the moving direction specifying unit 20 determines whether the detection target 60 is moving leftward (step S36d), whether the detection target 60 is moving rightward (step S36b), or whether the detection target 60 is downward. The moving direction of the detection object 60 may be specified in the order of whether the detection object 60 is moving upward (step S36a) or whether the detection object 60 is moving upward (step S36c).

なお、本実施の形態では、移動方向特定部20は、テーブルに保持されている変化回数、累積変化量および変化方向の3つの情報を用いて、検知対象物60の移動方向を特定している。しかし、移動方向特定部20は、テーブルに保持されている変化回数および変化方向を用いて検知対象物60の移動方向を特定してもよいし、テーブルに保持されている累積変化量および変化方向を用いて検知対象物60の移動方向を特定してもよい。   In the present embodiment, the moving direction specifying unit 20 specifies the moving direction of the detection target object 60 using three pieces of information of the number of changes, the accumulated change amount, and the changing direction held in the table. . However, the movement direction specifying unit 20 may specify the movement direction of the detection target 60 using the number of changes and the change direction held in the table, or the accumulated change amount and change direction held in the table. The moving direction of the detection object 60 may be specified using

<2−4−2.第1判定部>
<第1判定部で行われる処理について>
既述したように、第1判定部21は、移動方向特定部20において検知対象物60の移動方向が特定された順序を履歴情報として保持する。そして、第1判定部21は、履歴情報に基づいて、移動方向特定部20において検知対象物60の移動方向が特定された順序が、所定順序を示すか否かを判定することで、検知対象物60が第1動作を行った否かを検出する。
<2-4-2. First determination unit>
<About processing performed in the first determination unit>
As described above, the first determination unit 21 holds the order in which the movement direction of the detection target 60 is specified by the movement direction specification unit 20 as history information. Then, the first determination unit 21 determines whether or not the order in which the movement direction of the detection object 60 is specified in the movement direction specification unit 20 indicates a predetermined order based on the history information. It is detected whether or not the object 60 has performed the first operation.

図22は、検知対象物60が図16に示されるジェスチャーを行ったときに、第1判定部21によって保持される履歴情報を示す図である。図22の横方向には、時刻と、移動方向特定部20で特定された移動方向と、第1判定部21が保持する履歴情報とが示されている。   FIG. 22 is a diagram showing history information held by the first determination unit 21 when the detection target 60 performs the gesture shown in FIG. In the horizontal direction of FIG. 22, the time, the moving direction specified by the moving direction specifying unit 20, and the history information held by the first determining unit 21 are shown.

図22に示されるように、第1判定部21が保持する履歴情報には、第1履歴、第2履歴、第3履歴、第4履歴が含まれる。第1判定部21は、一番初めに移動方向特定部20で特定された移動方向を第1履歴として保持する。そして、次に移動方向特定部20で移動方向が特定されたときには、当該次に移動方向特定部20で特定された移動方向を第2履歴として保持する。したがって、移動方向特定部20が第1乃至第4履歴の全てを保持している場合には、第1履歴として保持されている移動方向が最も古い特定結果であり、第4履歴として保持されている移動方向が最も新しい特定結果となる。   As illustrated in FIG. 22, the history information held by the first determination unit 21 includes a first history, a second history, a third history, and a fourth history. The first determination unit 21 holds the moving direction specified by the moving direction specifying unit 20 first as the first history. Then, when the moving direction is specified by the moving direction specifying unit 20 next, the moving direction specified by the moving direction specifying unit 20 is held as the second history. Therefore, when the movement direction identification unit 20 holds all of the first to fourth histories, the movement direction held as the first history is the oldest identification result, and is held as the fourth history. The moving direction is the newest specific result.

図22に示されるように、時刻T1に移動方向特定部20によって、検知対象物60の移動方向が上方向であると特定されると、第1判定部21は、当該特定結果(上方向)を第1履歴として保持する。次に、時刻T2に移動方向特定部20によって、検知対象物60の移動方向が右方向であると特定されると、第1判定部21は当該特定結果(右方向)を第2履歴として保持する。次に、時刻T3に移動方向特定部20によって、検知対象物60の移動方向が下方向であると特定されると、第1判定部21は当該特定結果(下方向)を第3履歴として保持する。そして、時刻T4に移動方向特定部20によって、検知対象物60の移動方向が左方向であると特定されると、第1判定部21は当該特定結果(左方向)を第4履歴として保持する。   As illustrated in FIG. 22, when the movement direction of the detection target 60 is identified as the upward direction by the movement direction identification unit 20 at time T1, the first determination unit 21 performs the identification result (upward direction). Is stored as the first history. Next, when the movement direction identification unit 20 identifies that the movement direction of the detection target 60 is the right direction at time T2, the first determination unit 21 holds the identification result (right direction) as the second history. To do. Next, when the movement direction identification unit 20 identifies that the movement direction of the detection target 60 is downward at time T3, the first determination unit 21 holds the identification result (downward) as the third history. To do. And if the movement direction of the detection target object 60 is identified as the left direction by the movement direction identification unit 20 at time T4, the first determination unit 21 holds the identification result (left direction) as the fourth history. .

ここで、時刻T4のときの履歴情報は、第1履歴から順に、上方向、右方向、下方向、左方向となり、これらの移動方向の順序は、検知対象物60がxy座標平面の左下の領域から時計回りに回転する第1動作を行ったときの所定順序を示している(図17参照)。したがって、第1判定部21は、時刻T4のときの履歴情報に基づいて、検知対象物60が第1動作を行っていると検出する。   Here, the history information at time T4 is the upward direction, the right direction, the downward direction, and the left direction in order from the first history, and the order of these movement directions is that the detection target 60 is located at the lower left of the xy coordinate plane. The predetermined order when performing the 1st operation | movement which rotates clockwise from an area | region is shown (refer FIG. 17). Therefore, the 1st determination part 21 detects that the detection target object 60 is performing 1st operation | movement based on the historical information at the time T4.

図23は、第1判定部21が、検知対象物60が第1動作を行っているか否かの判定に用いる、複数種類の所定順序を示す図である。図23に示されるNo1〜4には、検知対象物60が時計回りに回転する第1動作を行っているときの複数種類の移動方向の順序が示されている。図23のNo5〜8には、検知対象物60が反時計回りに回転する第1動作を行っているときの複数種類の移動方向の順序が示されている。なお、本実施の形態では、便宜上、検知対象物60が時計回りに回転する第1動作を「第1回転動作」と呼ぶことがある。また、検知対象物60が反時計回りに回転する第1動作を「第2回転動作」と呼ぶことがある。   FIG. 23 is a diagram illustrating a plurality of types of predetermined orders used by the first determination unit 21 to determine whether or not the detection target 60 is performing the first operation. Nos. 1 to 4 shown in FIG. 23 show the order of a plurality of types of movement directions when the detection target 60 is performing the first operation of rotating clockwise. No. 5 to 8 in FIG. 23 show the order of the plurality of types of movement directions when the detection target 60 is performing the first operation of rotating counterclockwise. In the present embodiment, for the sake of convenience, the first operation in which the detection target 60 rotates clockwise may be referred to as a “first rotation operation”. Further, the first operation in which the detection target 60 rotates counterclockwise may be referred to as “second rotation operation”.

No1〜No4に示される複数種類の順序は、検知対象物60がxy座標平面におけるどの位置から第1回転動作を始めるかの点で異なっている。したがって、検知対象物60の移動方向が、上方向の後に右方向となり、右方向の後に下方向となり、下方向の後に左方向となる点では共通している。   The order of the plurality of types shown in No. 1 to No. 4 is different in that the detection object 60 starts the first rotation operation from which position on the xy coordinate plane. Accordingly, the movement direction of the detection object 60 is common in that it is the right direction after the upward direction, the downward direction after the right direction, and the left direction after the downward direction.

同様に、No5〜No8に示される複数種類の順序も、No1〜No4と同様に、検知対象物60がxy座標平面におけるどの位置から第2回転動作を始めるかの点で異なっている。したがって、検知対象物60の移動方向が、下方向の後に右方向となり、右方向の後に上方向となり、上方向の後に左方向となる点では共通している。   Similarly, the order of the plurality of types shown in No. 5 to No. 8 is also different in that the detection object 60 starts the second rotation operation on the xy coordinate plane, like No. 1 to No. 4. Accordingly, the movement direction of the detection target 60 is common in that it is the right direction after the downward direction, the upward direction after the right direction, and the left direction after the upward direction.

第1判定部21は、履歴情報が示す、移動方向特定部20において検知対象物60の移動方向が特定された順序が、図23に示される8種類の順序のうちのいずれか1つを示すときに、検知対象物60が第1動作を行っていると検出する。つまり、第1判定部21は、移動方向特定部20において検知対象物60の移動方向が特定された順序が所定順序を示すか否かの簡単な判定によって、検知対象物60が第1動作を行っているか否かを検出することができる。その結果、ジェスチャー検出装置1は簡単な処理によって、検知対象物60が行う第1動作を検出することができる。   In the first determination unit 21, the order in which the movement direction of the detection target 60 is specified by the movement direction specification unit 20 indicated by the history information indicates any one of the eight types of orders shown in FIG. Sometimes, it detects that the detection target 60 is performing the first operation. That is, the first determination unit 21 performs the first operation of the detection target 60 by simply determining whether or not the order in which the movement direction of the detection target 60 is specified by the movement direction specifying unit 20 indicates a predetermined order. Whether it is going or not can be detected. As a result, the gesture detection device 1 can detect the first action performed by the detection target 60 by a simple process.

また、第1判定部21は、履歴情報が示す、移動方向特定部20において検知対象物60の移動方向が特定された順序と、複数種類の順序とを比較することによって、座標平面上で異なる位置から開始する回転動作を検出することができる。その結果、ジェスチャー検出装置1の利便性が向上する。   Moreover, the 1st determination part 21 differs on a coordinate plane by comparing the order in which the moving direction of the detection target object 60 was specified in the movement direction specific | specification part 20 which historical information shows, and multiple types of order. A rotational motion starting from the position can be detected. As a result, the convenience of the gesture detection device 1 is improved.

また、第1判定部21は、履歴情報が示す、移動方向特定部20において検知対象物60の移動方向が特定された順序が、図23のNo1〜No4に示される順序のうちのいずれか1つを示しているのか、No5〜No8に示される順序のうちのいずれか1つを示しているのかを判定することで、検知対象物60が第1回転動作を行っているのか、第2回転動作を行っているのかを検出することができる。この場合には、第1判定部21は、第1回転動作と、第2回転動作とを区別して検出することができることから、ジェスチャー検出装置1の利便性が向上する。   Moreover, the 1st determination part 21 is any one of the order in which the movement direction of the detection target 60 was specified in the movement direction specific | specification part 20 which historical information shows is shown in No1-No4 of FIG. Or whether the detection target 60 is performing the first rotation operation or the second rotation by determining whether one of the orders indicated in No. 5 to No. 8 is indicated. It is possible to detect whether the operation is being performed. In this case, since the 1st determination part 21 can distinguish and detect 1st rotation operation | movement and 2nd rotation operation | movement, the convenience of the gesture detection apparatus 1 improves.

また、第1判定部21は、履歴情報が示す、移動方向特定部20において検知対象物60の移動方向が特定された順序が、図23のNo1〜No8のうちの特定の1つを示しているのかを判定してもよい。この場合には、第1判定部21は、検知対象物60によって座標平面上で異なる位置から開始する回転動作を区別して検出することができる。具体的には、第1判定部21は、例えばNo1に示されるxy座標平面における左下から開始される時計回りの回転動作と、No2に示されるxy座標平面における左上から開始される時計回りの回転動作とを区別して検出することができる。その結果、ジェスチャー検出装置1の利便性が向上する。   Moreover, the 1st determination part 21 shows specific one of No1-No8 of FIG. 23 in the order in which the movement direction of the detection target object 60 was specified in the movement direction specific | specification part 20 which historical information shows. It may be determined whether it is present. In this case, the 1st determination part 21 can distinguish and detect the rotation operation | movement started from a different position on a coordinate plane with the detection target object 60. FIG. Specifically, the first determination unit 21 performs, for example, a clockwise rotation operation starting from the lower left in the xy coordinate plane indicated by No1, and a clockwise rotation started from the upper left in the xy coordinate plane indicated by No2. It is possible to detect the movement separately. As a result, the convenience of the gesture detection device 1 is improved.

一方、検知対象物60の動作が第1動作でなかった場合には、検知対象物60の動作が第1動作でないと判明した時点で、第1判定部21は、履歴情報をクリア(削除)する。検知対象物60の動作が第1動作でなかった場合について、図24,25を参照しながら以下に説明する。図24は、図16に対応する、xy座標平面上での検知対象物60の動作を示す図である。図25は、検知対象物60が図24に示される動作を行ったときに第1判定部21に保持される履歴情報を示す図である。   On the other hand, when the operation of the detection target 60 is not the first operation, the first determination unit 21 clears (deletes) the history information when it is determined that the operation of the detection target 60 is not the first operation. To do. A case where the operation of the detection target 60 is not the first operation will be described below with reference to FIGS. FIG. 24 is a diagram illustrating the operation of the detection target 60 on the xy coordinate plane corresponding to FIG. FIG. 25 is a diagram illustrating history information held in the first determination unit 21 when the detection target 60 performs the operation illustrated in FIG.

図24に示されるように、時刻T20〜T21では、検知対象物60は、xy座標平面における左下の領域から、xy座標平面における左上の領域に向かって、xy座標平面の原点を中心に円弧を描くように移動している。時刻T21〜T22では、検知対象物60は、xy座標平面における左上の領域から、xy座標平面における右上の領域に向かって、xy座標平面の原点を中心に円弧を描くように移動している。そして、時刻T22〜T23では、検知対象物60はx軸に沿ってマイナス方向に移動している。つまり、図24に示される検知対象物60の動きは、時刻T20〜T22に注目すると第1動作であると言えるが、時刻T20〜22に注目すると第1動作であると言えない。   As shown in FIG. 24, at times T20 to T21, the detection target 60 forms an arc centering on the origin of the xy coordinate plane from the lower left area on the xy coordinate plane toward the upper left area on the xy coordinate plane. It is moving like drawing. At times T21 to T22, the detection target 60 moves from an upper left area on the xy coordinate plane toward an upper right area on the xy coordinate plane so as to draw an arc around the origin of the xy coordinate plane. And in the time T22-T23, the detection target object 60 is moving to the minus direction along the x-axis. That is, it can be said that the movement of the detection target 60 shown in FIG. 24 is the first operation when attention is paid to the times T20 to T22, but cannot be said to be the first motion if attention is paid to the times T20 to T22.

図25に示されるように、時刻T21で、移動方向特定部20によって、検知対象物60の移動方向が上方向であると特定されると、第1判定部21は、当該特定結果(上方向)を第1履歴として保持する。続いて、時刻T22で、移動方向特定部20によって、検知対象物60の移動方向が右方向であると特定されると、第1判定部21は、当該特定結果(右方向)を第2履歴として保持する。しかし、時刻T23で、移動方向特定部20によって、検知対象物60の移動方向が左方向であると特定されると、第1判定部21は、履歴情報をクリアする。第1判定部21は、第1履歴が上方向であり、第2履歴が右方向であり、第3履歴が左方向を示す順序が、図23に示される複数種類の順序の中のいずれにも存在しないことより、検知対象物60が行っている動作が第1動作でないと判断し、履歴情報をクリアする。   As illustrated in FIG. 25, when the movement direction identifying unit 20 identifies that the movement direction of the detection target 60 is the upward direction at time T21, the first determination unit 21 determines that the identification result (upward direction) ) As the first history. Subsequently, at time T22, when the movement direction identification unit 20 identifies that the movement direction of the detection target 60 is the right direction, the first determination unit 21 displays the identification result (right direction) in the second history. Hold as. However, when the moving direction specifying unit 20 specifies that the moving direction of the detection target object 60 is the left direction at time T23, the first determining unit 21 clears the history information. In the first determination unit 21, the order in which the first history is the upward direction, the second history is the right direction, and the third history is the left direction is any of the multiple types of orders shown in FIG. Therefore, the operation performed by the detection object 60 is determined not to be the first operation, and the history information is cleared.

言い換えると、第1判定部21は、記憶している履歴情報が現在示す順序と、移動方向特定部20によって今回特定された移動方向との組み合わせが、第1動作の検出に用いる所定順序のうちの先頭から始まる部分に含まれる場合には履歴情報を更新し、履歴情報が示す現在示す順序と、移動方向特定部20によって今回特定された移動方向との組み合わせが、第1動作の検出に用いる所定順序のうちの先頭から始まる部分に含まれない場合には履歴情報をクリアする。このように、第1判定部21は、履歴情報が所定順序を示す可能性がなくなった時点で履歴情報をクリアすることで、次に移動方向特定部20で特定された特定結果を新たな履歴情報として保持することができる。その結果、第1動作検出部16の第1動作の検出精度が向上する。   In other words, the first determination unit 21 determines that the combination of the current order of the stored history information and the movement direction specified this time by the movement direction specification unit 20 is a predetermined order used for detecting the first action. The history information is updated when it is included in the part starting from the head, and the combination of the current order indicated by the history information and the moving direction specified this time by the moving direction specifying unit 20 is used for detecting the first action. When it is not included in the part starting from the top in the predetermined order, the history information is cleared. As described above, the first determination unit 21 clears the history information when the possibility that the history information indicates the predetermined order is eliminated, and the next result specified by the movement direction specifying unit 20 is a new history. It can be held as information. As a result, the detection accuracy of the first motion of the first motion detector 16 is improved.

<第1判定部での処理の流れ>
図26は、第1判定部21での処理の流れを説明するための図である。図26を参照しながら、第1判定部21での処理の流れを以下に説明する。
<Flow of processing in first determination unit>
FIG. 26 is a diagram for explaining the flow of processing in the first determination unit 21. The flow of processing in the first determination unit 21 will be described below with reference to FIG.

図26に示されるように、第1判定部21は、まず移動方向特定部20での特定結果を取得する(ステップS50)。続いて、第1判定部21は、履歴情報を保持しているかを判定する(ステップS51)。つまり、第1判定部21は、過去に移動方向特定部20で特定された移動方向を保持しているかを判定する。履歴情報が保持されていない場合には(ステップS51でNo)、第1判定部21は、ステップS50で取得した移動方向を第1履歴として保持し(ステップS52)、第1動作検出部16の処理を終了する(ステップS53)。   As FIG. 26 shows, the 1st determination part 21 acquires the specific result in the moving direction specific | specification part 20 first (step S50). Subsequently, the first determination unit 21 determines whether history information is held (step S51). That is, the first determination unit 21 determines whether the movement direction specified by the movement direction specification unit 20 in the past is held. When the history information is not held (No in step S51), the first determination unit 21 holds the moving direction acquired in step S50 as the first history (step S52), and the first motion detection unit 16 The process ends (step S53).

一方、履歴情報が保持されている場合には(ステップS51でYes)、第1判定部21は、履歴情報が示す順序と、移動方向特定部20によって特定された移動方向との組み合わせが、第1動作の検出に用いる所定順序のうちの先頭から始まる部分に含まれるかを判定する(ステップS54)。図27,28には、ステップS54の処理の詳細が示されている。   On the other hand, when the history information is held (Yes in step S51), the first determination unit 21 determines that the combination of the order indicated by the history information and the movement direction identified by the movement direction identification unit 20 is the first. It is determined whether it is included in a portion starting from the beginning in a predetermined order used for detecting one operation (step S54). 27 and 28 show details of the processing in step S54.

図27に示されるように、まず、第1判定部21は、移動方向特定部20によって特定された移動方向が下方向か否かを判定する(ステップS150)。移動方向特定部20によって特定された移動方向が下方向でない場合には(ステップS150でNo)、第1判定部21は、移動方向特定部20によって特定された移動方向が右方向かを判定する(ステップS160)。一方、移動方向特定部20によって特定された移動方向が下方向である場合には(ステップS150でYes)、第1判定部21は、第1履歴として右方向が保持されており、かつ第2〜第4履歴が保持されていないかを判定する(ステップS151)。ステップS151では、第1判定部21は、履歴情報が図23に示されるNo2の所定順序を示す可能性があるか否かを判定している。第1履歴として右方向が保持されており、かつ第2〜第4履歴が保持されていない場合には(ステップS151でYes)、第1判定部21は、履歴情報が示す順序と、移動方向特定部20によって特定された移動方向との組み合わせが、第1動作の検出に用いる所定順序のうちの先頭から始まる部分に含まれるとして、ステップS54の処理を終了し、ステップS56に進む(ステップS152)。   As shown in FIG. 27, first, the first determination unit 21 determines whether or not the movement direction identified by the movement direction identification unit 20 is a downward direction (step S150). If the movement direction identified by the movement direction identification unit 20 is not downward (No in step S150), the first determination unit 21 determines whether the movement direction identified by the movement direction identification unit 20 is the right direction. (Step S160). On the other hand, when the movement direction identified by the movement direction identification unit 20 is the downward direction (Yes in step S150), the first determination unit 21 holds the right direction as the first history, and the second It is determined whether the fourth history is held (step S151). In step S151, the first determination unit 21 determines whether or not the history information may indicate a predetermined order of No2 shown in FIG. When the right direction is held as the first history and the second to fourth histories are not held (Yes in Step S151), the first determination unit 21 determines the order indicated by the history information and the movement direction. Assuming that the combination with the moving direction specified by the specifying unit 20 is included in the part starting from the beginning of the predetermined order used for detecting the first action, the process of step S54 is terminated and the process proceeds to step S56 (step S152 ).

一方、第1履歴として保持されている移動方向が右方向でない、もしくは第2〜第4履歴うちの少なくとも1つが保持されている場合には(ステップS151でNo)、第1判定部21は、第1履歴として左方向が保持されており、かつ第2〜第4履歴が保持されていないかを判定する(ステップS153)。ステップS153では、第1判定部21は、履歴情報が図23に示されるNo8の所定順序を示す可能性があるか否かを判定している。第1履歴として左方向が保持されており、かつ第2〜第4履歴が保持されていない場合には(ステップS153でYes)、第1判定部21は、ステップS54の処理を終了し、ステップS56に進む(ステップS152)。   On the other hand, when the moving direction held as the first history is not rightward or when at least one of the second to fourth histories is held (No in step S151), the first determination unit 21 It is determined whether the left direction is held as the first history and whether the second to fourth histories are held (step S153). In step S153, the first determination unit 21 determines whether or not the history information may indicate a predetermined order of No. 8 shown in FIG. When the left direction is held as the first history and the second to fourth histories are not held (Yes in Step S153), the first determination unit 21 ends the process of Step S54, The process proceeds to S56 (step S152).

第1履歴として保持されている移動方向が左方向でない、もしくは第2〜第4履歴のうちの少なくとも1つが保持されている場合には(ステップS153でNo)、第1判定部21は、第1履歴として上方向が保持されており、第2履歴として右方向が保持されており、かつ第3〜第4履歴が保持されていないかを判定する(ステップS154)。ステップS154では、第1判定部21は、履歴情報が図23に示されるNo1の所定順序を示す可能性があるか否かを判定している。第1履歴として上方向が保持されており、第2履歴として右方向が保持されており、かつ第3〜第4履歴が保持されていない場合には(ステップS154でYes)、第1判定部21は、ステップS54の処理を終了し、ステップS56に進む(ステップS152)。   When the movement direction held as the first history is not the left direction, or when at least one of the second to fourth histories is held (No in step S153), the first determination unit 21 It is determined whether the upward direction is held as one history, the right direction is held as the second history, and the third to fourth histories are not held (step S154). In step S154, the first determination unit 21 determines whether or not the history information may indicate a predetermined order of No1 illustrated in FIG. When the first direction is held as the first history, the right direction is held as the second history, and the third to fourth history is not held (Yes in step S154), the first determination unit 21 ends the process of step S54 and proceeds to step S56 (step S152).

第1履歴として保持されている移動方向が上方向でない、第2履歴として保持されている移動方向が右方向でない、もしくは第3〜第4履歴の少なくとも1つが保持されている場合には(ステップS154でNo)、第1判定部21は、第1履歴として上方向が保持されており、第2履歴として左方向が保持されており、かつ第3〜第4履歴が保持されていないかを判定する(ステップS155)。ステップS155では、第1判定部21は、履歴情報が図23に示されるNo7の所定順序を示す可能性があるか否かを判定している。第1履歴として上方向が保持されており、第2履歴として左方向が保持されており、かつ第3〜第4履歴が保持されていない場合には(ステップS155でYes)、第1判定部21は、ステップS54の処理を終了し、ステップS56に進む(ステップS152)。   When the moving direction held as the first history is not upward, the moving direction held as the second history is not rightward, or when at least one of the third to fourth histories is held (step) No in S154), the first determination unit 21 determines whether the up direction is held as the first history, the left direction is held as the second history, and the third to fourth history is not held. Determination is made (step S155). In step S155, the first determination unit 21 determines whether or not the history information may indicate a predetermined order of No. 7 shown in FIG. When the first direction is held as the first history, the left direction is held as the second history, and the third to fourth histories are not held (Yes in step S155), the first determination unit 21 ends the process of step S54 and proceeds to step S56 (step S152).

第1履歴として保持されている移動方向が上方向でない、第2履歴として保持されている移動方向が左方向でない、もしくは第3〜第4履歴の少なくとも1つが保持されている場合には(ステップS155でNo)、第1判定部21は、第1履歴として左方向が保持されており、第2履歴として上方向が保持されており、第3履歴として右方向が保持されており、第4履歴が保持されていないかを判定する(ステップS156)。ステップS156では、第1判定部21は、履歴情報が図23に示されるNo4の所定順序を示す可能性があるか否かを判定している。第1履歴として左方向が保持されており、第2履歴として上方向が保持されており、第3履歴として右方向が保持されており、第4履歴が保持されていない場合には(ステップS156でYes)、第1判定部21は、ステップS54の処理を終了し、ステップS56に進む(ステップS152)。   If the moving direction held as the first history is not upward, the moving direction held as the second history is not left, or at least one of the third to fourth histories is held (step No in S155), the first determination unit 21 holds the left direction as the first history, holds the upward direction as the second history, holds the right direction as the third history, It is determined whether a history is retained (step S156). In step S156, the first determination unit 21 determines whether or not the history information may indicate a predetermined order of No4 shown in FIG. When the left direction is held as the first history, the upward direction is held as the second history, the right direction is held as the third history, and the fourth history is not held (step S156) In step S152, the first determination unit 21 ends the process of step S54 and proceeds to step S56.

第1履歴として保持されている移動方向が左方向でない、第2履歴として保持されている移動方向が上方向でない、第3履歴として保持されている移動方向が右方向でない、もしくは第4履歴が保持されている場合には(ステップS156でNo)、第1判定部21は、第1履歴として右方向が保持されており、第2履歴として上方向が保持されており、第3履歴として左方向が保持されており、第4履歴が保持されていないかを判定する(ステップS157)。ステップS157では、第1判定部21は、履歴情報が図23に示されるNo6の所定順序を示す可能性があるかを判定している。第1履歴として右方向が保持されており、第2履歴として上方向が保持されており、第3履歴として左方向が保持されており、第4履歴が保持されていない場合には(ステップS157でYes)、第1判定部21は、ステップS54の処理を終了し、ステップS56に進む(ステップS152)。   The moving direction held as the first history is not left, the moving direction held as the second history is not upward, the moving direction held as the third history is not right, or the fourth history is If it is held (No in step S156), the first determination unit 21 holds the right direction as the first history, holds the upward direction as the second history, and left as the third history. It is determined whether the direction is held and the fourth history is not held (step S157). In step S157, the first determination unit 21 determines whether or not the history information may indicate a predetermined order of No. 6 shown in FIG. When the right direction is held as the first history, the upward direction is held as the second history, the left direction is held as the third history, and the fourth history is not held (step S157). In step S152, the first determination unit 21 ends the process of step S54 and proceeds to step S56.

第1履歴として保持されている移動方向が右方向でない、第2履歴として保持されている移動方向が上方向でない、第3履歴として保持されている移動方向が左方向でない、もしくは第4履歴が保持されている場合には(ステップS157でNo)、第1判定部21は、履歴情報が示す順序と、移動方向特定部20によって特定された移動方向との組み合わせが、第1動作の検出に用いる所定順序のうちの先頭から始まる部分に含まれないとして、ステップS54の処理を終了し、ステップS55に進む(ステップS158)。   The movement direction held as the first history is not right, the movement direction held as the second history is not upward, the movement direction held as the third history is not left, or the fourth history is If it is held (No in step S157), the first determination unit 21 uses the combination of the order indicated by the history information and the movement direction identified by the movement direction identification unit 20 to detect the first action. The processing in step S54 is terminated, assuming that it is not included in the part starting from the top in the predetermined order to be used, and the process proceeds to step S55 (step S158).

このように、移動方向特定部20によって特定された移動方向が下方向である場合には、第1判定部21は、下方向の移動方向が特定されたときの履歴情報が示す移動方向の順序が、所定順序が示す移動方向の順序のうち、先頭から移動方向が下方向を示す直前の移動方向までの部分と一致しているかを判定する。当該判定は、第2〜第4履歴の中に下方向の移動方向が含む複数の所定順序に対して1つずつ順番に行われる。つまり、第1判定部21は、履歴情報が第2〜第4履歴の中に下方向の移動方向が含む複数の所定順序のうちのいずれかを示す可能性があるか否かを判定する。   Thus, when the moving direction specified by the moving direction specifying unit 20 is the downward direction, the first determination unit 21 determines the order of the moving directions indicated by the history information when the downward moving direction is specified. However, in the order of the moving direction indicated by the predetermined order, it is determined whether or not it matches the portion from the head to the moving direction immediately before the moving direction indicates the downward direction. The determination is performed one by one with respect to a plurality of predetermined orders included in the downward movement direction in the second to fourth histories. That is, the first determination unit 21 determines whether or not the history information may indicate any of a plurality of predetermined orders included in the downward movement direction in the second to fourth histories.

上記では、移動方向特定部20によって特定された移動方向が下方向である場合について説明したが、移動方向特定部20によって特定された移動方向が、右方向(ステップS160でYes)、上方向(図28のステップS170でYes)および左方向(図28のステップS180でYes)である場合にも、第1判定部21は同様の考え方で処理を行う。   In the above description, the case where the movement direction identified by the movement direction identification unit 20 is the downward direction has been described. However, the movement direction identified by the movement direction identification unit 20 is the right direction (Yes in step S160), the upward direction ( Even in the case of the left direction (Yes in step S180 in FIG. 28) and the left direction (Yes in step S170 in FIG. 28), the first determination unit 21 performs processing in the same way.

より具体的には、移動方向特定部20によって特定された移動方向が右方向である場合には(ステップS160でYes)、第1判定部21は、履歴情報が図23に示されるNo1の所定順序を示す可能性があるか(ステップS161)と、履歴情報が図23に示されるNo5の所定情報を示す可能性があるか(ステップS162)と、履歴情報が図23に示されるNo4の所定情報を示す可能性があるか(ステップS163)と、履歴情報が図23に示されるNo8の所定情報を示す可能性があるか(ステップS164)と、履歴情報が図23に示されるNo3の所定情報を示す可能性があるか(ステップS165)と、履歴情報が図23に示されるNo7の所定情報を示す可能性があるか(ステップS166)とを1つずつ順番に判定する。   More specifically, when the movement direction identified by the movement direction identification unit 20 is the right direction (Yes in step S160), the first determination unit 21 determines that the history information is a predetermined No. 1 shown in FIG. Whether there is a possibility of indicating the order (step S161), whether the history information may indicate predetermined information No5 shown in FIG. 23 (step S162), and whether the historical information is No4 predetermined shown in FIG. Whether there is a possibility of indicating information (step S163), whether the history information may indicate predetermined information No8 shown in FIG. 23 (step S164), and whether the historical information is predetermined No3 shown in FIG. It is determined in turn one by one whether there is a possibility of indicating information (step S165) and whether the history information may indicate predetermined information of No. 7 shown in FIG. 23 (step S166). .

同様に、移動方向特定部20によって特定された移動方向が上方向である場合には(ステップS170でYes)、第1判定部21は、履歴情報が図23に示されるNo4の所定情報を示す可能性があるか(ステップS171)と、履歴情報が図23に示されるNo6の所定情報を示す可能性があるか(ステップS172)と、履歴情報が図23に示されるNo3の所定情報を示す可能性があるか(ステップS173)と、履歴情報が図23に示されるNo5の所定情報を示す可能性があるか(ステップS174)と、履歴情報が図23に示されるNo2の所定情報を示す可能性があるか(ステップS175)と、履歴情報が図23に示されるNo8の所定情報を示す可能性があるか(ステップS176)とを1つずつ順番に判定する。   Similarly, when the movement direction identified by the movement direction identification unit 20 is upward (Yes in step S170), the first determination unit 21 indicates the predetermined information No. 4 shown in FIG. There is a possibility (step S171), history information may indicate the predetermined information No6 shown in FIG. 23 (step S172), and the history information indicates the predetermined information No3 shown in FIG. There is a possibility (step S173), the history information may indicate the predetermined information of No5 shown in FIG. 23 (step S174), and the history information indicates the predetermined information of No2 shown in FIG. It is determined in turn one by one whether there is a possibility (step S175) and whether the history information may indicate the predetermined information No. 8 shown in FIG. 23 (step S176).

同様に、移動方向特定部20によって特定された移動方向が左方向である場合には(ステップS180でYes)、第1判定部21は、履歴情報が図23に示されるNo3の所定情報を示す可能性があるか(ステップS181)と、履歴情報が図23に示されるNo7の所定情報を示す可能性があるか(ステップS182)と、履歴情報が図23に示されるNo2の所定情報を示す可能性があるか(ステップS183)と、履歴情報が図23に示されるNo6の所定情報を示す可能性があるか(ステップS184)と、履歴情報が図23に示されるNo1の所定情報を示す可能性があるか(ステップS185)と、履歴情報が図23に示されるNo5の所定情報を示す可能性があるか(ステップS186)とを1つずつ順番に判定する。   Similarly, when the movement direction identified by the movement direction identification unit 20 is the left direction (Yes in step S180), the first determination unit 21 indicates the predetermined information No3 shown in FIG. There is a possibility (step S181), whether the history information may indicate the predetermined information No7 shown in FIG. 23 (step S182), and the history information indicates the predetermined information No2 shown in FIG. There is a possibility (step S183), whether the history information may indicate the predetermined information of No6 shown in FIG. 23 (step S184), and the history information indicates the predetermined information of No1 shown in FIG. It is determined in turn one by one whether there is a possibility (step S185) and whether the history information may indicate the predetermined information No5 shown in FIG. 23 (step S186).

また、移動方向特定部20によって特定された移動方向が下方向、右方向、上方向および左方向のいずれにも当てはまらない場合(つまり、移動方向特定部20によって移動方向が特定されていない場合)には、第1判定部21は、第1動作検出部16の動作を終了する(ステップS190)。   Further, when the moving direction specified by the moving direction specifying unit 20 does not apply to any of the downward direction, the right direction, the upward direction, and the left direction (that is, when the moving direction is not specified by the moving direction specifying unit 20). The first determination unit 21 ends the operation of the first operation detection unit 16 (step S190).

図26に戻り、履歴情報が示す順序と移動方向特定部20によって特定された移動方向との組み合わせが、第1動作の検出に用いる所定順序のうちの先頭から始まる部分に含まれない場合には(ステップS54でNo)、履歴情報が第1動作の検出に用いる所定順序を示す可能性がなくなったので、第1判定部21は履歴情報をクリアして(ステップS55)、第1動作検出部16の処理を終了する(ステップS53)。   Returning to FIG. 26, when the combination of the order indicated by the history information and the movement direction specified by the movement direction specifying unit 20 is not included in the part starting from the beginning of the predetermined order used for detecting the first action. (No in step S54), there is no possibility that the history information indicates the predetermined order used for the detection of the first motion, so the first determination unit 21 clears the history information (step S55), and the first motion detection unit The process of 16 is finished (step S53).

反対に、履歴情報が示す順序と移動方向特定部20によって特定された移動方向との組み合わせが、第1動作の検出に用いる所定順序のうちの先頭から始まる部分に含まれる場合には(ステップS54でYes)、履歴情報が所定情報を示す可能性があるため、第1判定部21は履歴情報を更新する(ステップS56)。   On the contrary, when the combination of the order indicated by the history information and the moving direction specified by the moving direction specifying unit 20 is included in the part starting from the beginning of the predetermined order used for detecting the first action (step S54). Yes), since the history information may indicate the predetermined information, the first determination unit 21 updates the history information (step S56).

そして、第1判定部21は、ステップS55で更新された履歴情報が、第1動作の検出に用いる所定順序を示しているかを判定する(ステップS57)。ステップS55で更新された履歴情報が、第1動作の検出に用いる所定順序を示していない場合には(ステップS57でNo)、検知対象物60が第1動作を行っているとは言えないため、第1判定部21は、何もせずに第1判定部21の処理を終了する。反対に、ステップS55で更新された履歴情報が、第1動作の検出に用いる所定順序を示している場合には(ステップS57でYes)、第1判定部21は、検知対象物60が第1動作を行っていると検出し(ステップS58)、第1判定部21の処理を終了する。ステップS58で検出された第1動作は、暫定的な検出結果として特定部15に送出される。   Then, the first determination unit 21 determines whether the history information updated in step S55 indicates a predetermined order used for detection of the first action (step S57). If the history information updated in step S55 does not indicate the predetermined order used for detecting the first action (No in step S57), it cannot be said that the detection target 60 is performing the first action. The first determination unit 21 ends the processing of the first determination unit 21 without doing anything. On the other hand, when the history information updated in step S55 indicates the predetermined order used for detecting the first action (Yes in step S57), the first determination unit 21 determines that the detection target 60 is the first object. It is detected that the operation is performed (step S58), and the process of the first determination unit 21 is terminated. The first operation detected in step S58 is sent to the specifying unit 15 as a provisional detection result.

<2−5.第2動作検出部>
<第2動作検出部で行われる処理について>
既述したように、第2動作検出部17は、図6に例示されるような第2動作を、1つのテーブルに基づいて検出する。より具体的には、第2動作検出部17は、検知対象物60がx軸に沿って移動する第2動作(左右動作)を、テーブル更新部11によって更新された第1テーブルに基づいて検出する。また、第2動作検出部17は、検知対象物60がy軸に沿って移動する第2動作(上下動作)を、テーブル更新部11によって更新された第2テーブルに基づいて検出する。また、第2動作検出部17は、検知対象物60がz軸に沿って移動する第2動作(遠近動作)を、テーブル更新部11によって更新された第3テーブルに基づいて検出する。
<2-5. Second motion detection unit>
<About processing performed in the second motion detection unit>
As described above, the second motion detector 17 detects the second motion as illustrated in FIG. 6 based on one table. More specifically, the second motion detection unit 17 detects the second motion (left-right motion) in which the detection target 60 moves along the x axis based on the first table updated by the table update unit 11. To do. The second motion detection unit 17 detects the second motion (vertical motion) in which the detection target 60 moves along the y axis based on the second table updated by the table update unit 11. The second motion detection unit 17 detects the second motion (far-near motion) in which the detection target 60 moves along the z-axis based on the third table updated by the table update unit 11.

第2動作検出部17は、移動方向特定部20と同様に、テーブル更新部11によって更新されたテーブルに保持されている変化回数が第3の閾値より大きく、かつテーブルに保持されている累積変化量が第4の閾値より大きい場合に、検知対象物60が当該テーブルに保持されている変化方向が示す方向に移動している(つまり、検知対象物60が当該テーブルに保持されている変化方向が示す方向に第2動作を行っている)と判定する。第2動作検出部17の処理において、移動方向特定部20での処理と大きく異なる点は、処理に用いる閾値の値である。検知対象物60が第2動作を行う場合には、回転動作を行う場合と比較して、長い時間、かつ長い距離を同一方向に移動することが多い。したがって、第3の閾値は既述した第1の閾値より大きい値が設定される。同様に、第4の閾値は既述した第2の閾値より大きい値が設定される。一例として、第3の閾値には12[回]が採用され、第4の閾値には50[mm]が採用される。第3の閾値及び第4の閾値は、既述した第1の閾値及び第2の閾値と同様に、ジェスチャー検出装置1の使用用途等に応じて選択される。   Similar to the movement direction identification unit 20, the second motion detection unit 17 has the number of changes held in the table updated by the table update unit 11 larger than the third threshold and the cumulative change held in the table. When the amount is larger than the fourth threshold, the detection target 60 is moving in the direction indicated by the change direction held in the table (that is, the change direction in which the detection target 60 is held in the table). It is determined that the second operation is performed in the direction indicated by. In the processing of the second motion detection unit 17, the point that differs greatly from the processing in the movement direction identification unit 20 is the threshold value used for the processing. When the detection target 60 performs the second operation, the detection target 60 often moves in the same direction for a longer time and a longer distance than when performing the rotation operation. Therefore, the third threshold is set to a value larger than the first threshold described above. Similarly, the fourth threshold value is set to a value larger than the second threshold value already described. As an example, 12 [times] is adopted as the third threshold, and 50 [mm] is adopted as the fourth threshold. The third threshold value and the fourth threshold value are selected in accordance with the usage application of the gesture detection device 1 as in the case of the first threshold value and the second threshold value described above.

<第2動作検出部での処理の流れ>
図29は、第2動作検出部17での処理を説明するための図である。図29は、第2動作検出部17が、第1テーブルに基づいて、検知対象物60が左方向に移動する第2動作および右方向に移動する第2動作を検出する場合を示している。
<Flow of processing in second motion detection unit>
FIG. 29 is a diagram for explaining processing in the second motion detection unit 17. FIG. 29 shows a case where the second motion detection unit 17 detects a second motion in which the detection target 60 moves leftward and a second motion in which it moves rightward based on the first table.

なお、以下の説明では、第2動作検出部17が、検知対象物60がx軸に沿って移動する第2動作(左右動作)を検出する場合を例に挙げて説明するが、第2動作検出部17が検知対象物60がy軸に沿って移動する第2動作(上下動作)を検出する場合および検知対象物60がz軸に沿って移動する第2動作(遠近動作)を検出する場合についても、同様に考えることができる。   In the following description, the second motion detection unit 17 will be described by taking as an example the case where the second motion detection unit 17 detects the second motion (left-right motion) in which the detection target 60 moves along the x axis. When the detection unit 17 detects the second operation (vertical operation) in which the detection target 60 moves along the y-axis, and the second operation (perspective operation) in which the detection target 60 moves along the z-axis. The case can be considered similarly.

まず、第2動作検出部17は、第2動作の検出に用いるテーブルを取得する(ステップS60)。ここでは、第2動作検出部17は、検知対象物60がx軸に沿って動く第2動作(左右動作)を検出するため、テーブル更新部11によって更新された第1テーブルを取得する。   First, the second motion detection unit 17 acquires a table used for detection of the second motion (step S60). Here, the second motion detection unit 17 acquires the first table updated by the table update unit 11 in order to detect the second motion (left-right motion) in which the detection target 60 moves along the x axis.

次に、第2動作検出部17は、ステップS60で取得した第1テーブルに保持される変化回数が第3の閾値より大きいかを判定する(ステップS61)。第2動作検出部17は、ステップS60で取得した第1テーブルに保持されている変化回数が第3の閾値よりも小さい場合、もしくは第3の閾値と同じ値の場合には(ステップS61でNo)、検知対象物60が左右動作を行っていないとして第2動作検出部17の処理を終了する。反対に、第2動作検出部17は、ステップS60で取得した第1テーブルに保持される変化回数が第3の閾値よりも大きい場合には(ステップS61でYes)、当該第1テーブルに保持される累積変化量が第4の閾値より大きいかを判定する(ステップS62)。なお、本実施の形態に係る第2動作検出部17は、ステップS60で取得した第1テーブルに保持されている変化回数が第3の閾値と同じ値の場合には、検知対象物60が左右動作を行っていないものとして判断している。しかし第2動作検出部17は、ステップS60で取得した第1テーブルに保持されている変化回数が第3の閾値と同じ値の場合に、ステップS62進んでもよい。   Next, the second motion detection unit 17 determines whether or not the number of changes held in the first table acquired in Step S60 is greater than a third threshold (Step S61). When the number of changes held in the first table acquired in step S60 is smaller than the third threshold or the same value as the third threshold (No in step S61), ), The processing of the second motion detection unit 17 is terminated, assuming that the detection target 60 is not moving left and right. On the other hand, when the number of changes held in the first table acquired in step S60 is larger than the third threshold (Yes in step S61), the second motion detection unit 17 is held in the first table. It is determined whether the accumulated change amount is larger than the fourth threshold value (step S62). Note that the second motion detection unit 17 according to the present embodiment moves the detection target 60 left and right when the number of changes held in the first table acquired in step S60 is the same value as the third threshold. Judged as not operating. However, the second motion detection unit 17 may proceed to step S62 when the number of changes held in the first table acquired in step S60 is the same value as the third threshold value.

ステップS62において、ステップS60で取得した第1テーブルに保持される累積変化量が第4の閾値より小さい場合、もしくは第4の閾値と同じ値の場合には(ステップS62でNo)、第2動作検出部17は、検知対象物60が左右動作を行っていないとして、第2動作検出部17の処理を終了する。反対に、第2動作検出部17は、ステップS60で取得した第1テーブルに保持される累積変化量が第4の閾値よりも大きい場合には(ステップS62でYes)、当該第1テーブルに保持される変化方向が右方向(プラス方向)か否かを判定する(ステップS63)。なお、本実施の形態に係る第2動作検出部17は、ステップS60で取得した第1テーブルに保持されている累積変化量が第4の閾値と同じ値の場合には、検知対象物60が左右動作を行っていないものとして判断している。しかし、第2動作検出部17は、ステップS60で取得した第1テーブルに保持されている累積変化量が第4の閾値と同じ値の場合に、ステップS63に進んでもよい。   In step S62, if the cumulative change amount stored in the first table acquired in step S60 is smaller than the fourth threshold value or the same value as the fourth threshold value (No in step S62), the second operation The detection unit 17 ends the process of the second motion detection unit 17 assuming that the detection target 60 is not performing the left-right motion. On the other hand, when the cumulative change amount held in the first table acquired in step S60 is larger than the fourth threshold value (Yes in step S62), the second motion detection unit 17 holds it in the first table. It is determined whether the change direction to be performed is the right direction (plus direction) (step S63). Note that the second motion detection unit 17 according to the present embodiment determines that the detection object 60 is in the case where the cumulative change amount stored in the first table acquired in step S60 is the same value as the fourth threshold value. It is determined that the left / right movement is not performed. However, the second motion detection unit 17 may proceed to step S63 when the cumulative change amount stored in the first table acquired in step S60 is the same value as the fourth threshold value.

第2動作検出部17は、ステップS60で取得した第1テーブルに保持される変化方向が右方向でない場合には(ステップS63でNo)、検知対象物60が左方向に移動する第2動作を行っていると検出し(ステップS64)、第2動作検出部17の処理を終了する。一方、第2動作検出部17は、ステップS60で取得した第1テーブルに保持される変化方向が右方向である場合には(ステップS63でYes)、検知対象物60が右方向に移動する第2動作を行っていると検出し(ステップS65)、第2動作検出部17の処理を終了する。ここで、ステップS64及びステップS65で検出された第2動作は、暫定的な検出結果として特定部15に送出される。   When the change direction held in the first table acquired in step S60 is not the right direction (No in step S63), the second motion detection unit 17 performs the second motion in which the detection target 60 moves to the left. It is detected that the process is being performed (step S64), and the process of the second motion detection unit 17 is terminated. On the other hand, when the change direction held in the first table acquired in Step S60 is the right direction (Yes in Step S63), the second motion detection unit 17 moves the detection object 60 in the right direction. It is detected that two operations are being performed (step S65), and the processing of the second operation detector 17 is terminated. Here, the second operation detected in step S64 and step S65 is sent to the specifying unit 15 as a provisional detection result.

このように、第2動作検出部17では、テーブル更新部11によって更新された1つのテーブルに保持される情報からを用いた簡単な処理を行うことで、第2動作を検出することができる。その結果、ジェスチャー検出装置1では簡単な処理で、第2動作を検出することができるとともに、ジェスチャー検出装置1で検出することができるジェスチャーの種類が増えることにより、ジェスチャー検出装置1の利便性が向上する。   As described above, the second motion detection unit 17 can detect the second motion by performing simple processing using information stored in one table updated by the table update unit 11. As a result, the gesture detection device 1 can detect the second action with a simple process, and the number of types of gestures that can be detected by the gesture detection device 1 increases, thereby improving the convenience of the gesture detection device 1. improves.

なお、図29に示される例では、第2動作検出部17は、テーブルに保持されている変化回数、累積変化量及び変化方向の3つの情報を用いて、検知対象物60が第2動作を行っているか否かを検出している。しかし、第2動作検出部17は、既述した第1動作検出部16(移動方向特定部20)と同様に、テーブルに保持されている変化回数および変化方向を用いて検知対象物60が行う第2動作を検出してもよいし、テーブルに保持されている累積変化量および変化方向を用いて検知対象物60が行う第2動作を検出してもよい。   In the example shown in FIG. 29, the second motion detection unit 17 uses the three pieces of information of the number of changes, the accumulated change amount, and the change direction held in the table to cause the detection target 60 to perform the second motion. Whether or not it is going is detected. However, the second motion detection unit 17 performs the detection object 60 using the number of changes and the change direction held in the table, similarly to the first motion detection unit 16 (movement direction specifying unit 20) described above. The second operation may be detected, or the second operation performed by the detection target 60 may be detected using the cumulative change amount and the change direction held in the table.

また、第2動作検出部17は、複数種類の第2動作を検出する場合には、図29に示される処理を繰り返し行う、例えば、第2動作検出部17が、左右動作と遠近動作とを検出する場合には、第2動作検出部17は、第1テーブルを用いて検出処理を行った後に、第3テーブルを用いて検出処理を行えばよい。   In addition, when the second motion detection unit 17 detects a plurality of types of second motions, the second motion detection unit 17 repeatedly performs the processing illustrated in FIG. 29. For example, the second motion detection unit 17 performs the left-right motion and the perspective motion. When detecting, the 2nd operation | movement detection part 17 should just perform a detection process using a 3rd table, after performing a detection process using a 1st table.

<2−6.第3動作検出部>
<第3動作検出部で行われる処理について>
既述したように、第3動作検出部18は、図7に例示されるような第3動作を、1つのテーブルに基づいて検出する。より具体的には、第3動作検出部18は、検知対象物60がx軸に沿ってプラス方向及びマイナス方向に交互に短い距離を動く第3動作を第1テーブルに基づいて検出する。また、第3動作検出部18は、検知対象物60がy軸に沿ってプラス方向及びマイナス方向に交互に短い距離を動く第3動作を第2テーブルに基づいて検出する。また、第3動作検出部18は、検知対象物60がz軸に沿ってプラス方向及びマイナス方向に交互に短い距離を動く第3動作を第3テーブルに基づいて検出する。
<2-6. Third motion detection unit>
<About processing performed in the third motion detection unit>
As described above, the third motion detector 18 detects the third motion illustrated in FIG. 7 based on one table. More specifically, the third motion detection unit 18 detects a third motion in which the detection target 60 moves a short distance alternately in the plus direction and the minus direction along the x axis based on the first table. In addition, the third motion detection unit 18 detects a third motion in which the detection object 60 moves a short distance alternately in the plus direction and the minus direction along the y axis based on the second table. In addition, the third motion detection unit 18 detects a third motion in which the detection object 60 moves a short distance alternately in the plus direction and the minus direction along the z axis based on the third table.

図30は、第3動作検出部18の構成を示す図である。図30に示されるように、第3動作検出部18は、変化量判定部25、第1計測部26および第2判定部27を有している。第3動作は、検知対象物60が、ある座標軸に沿ってプラス方向及びマイナス方向に交互に短い距離を動く動作である。したがって、第3動作検出部18では、まず変化量判定部25が、検知対象物60が短い距離を動いたか否かを判定する。続いて、第1計測部26が、変化量判定部25で検知対象物60が短い距離を動いたと判定された回数を計測(保持)する。そして、第1計測部26での計測結果に基づいて、より具体的には検知対象物60が短い距離を所定回数以上動いたと判定したときに、第2判定部27が、検知対象物60が第3動作を行ったと判定する。   FIG. 30 is a diagram illustrating a configuration of the third motion detection unit 18. As illustrated in FIG. 30, the third motion detection unit 18 includes a change amount determination unit 25, a first measurement unit 26, and a second determination unit 27. The third operation is an operation in which the detection target 60 moves along a certain coordinate axis alternately in a short distance in the plus direction and the minus direction. Therefore, in the third motion detection unit 18, the change amount determination unit 25 first determines whether or not the detection target 60 has moved a short distance. Subsequently, the first measurement unit 26 measures (holds) the number of times that the change amount determination unit 25 determines that the detection target 60 has moved a short distance. Then, based on the measurement result of the first measurement unit 26, more specifically, when it is determined that the detection object 60 has moved a short distance more than a predetermined number of times, the second determination unit 27 determines that the detection object 60 is It is determined that the third operation has been performed.

また、既述したように、テーブル保持部12に保持されているテーブルに保持されている変化方向と、前回ジェスチャー検出装置1に入力された座標値に対する、今回ジェスチャー検出装置1に入力された座標値の変化の方向とが逆である旨の通知を、テーブル更新部11から受けた場合に、第3動作検出部18は検出処理を行う(図10のステップS22参照)。テーブル更新部11からの通知により、第3動作検出部18は、検知対象物60による同一方向への移動が終わったときにのみ検出処理を行い、当該検知対象物60による同一方向への移動が短い距離を動く移動であるかを判定する。そのため、ジェスチャー検出装置1に座標値が入力される度に、第3動作検出部18が検出処理を行う場合と比較して、ジェスチャー検出装置1で行われる処理の量を低減することができる。   Further, as described above, the coordinate input to the gesture detection device 1 this time with respect to the change direction held in the table held in the table holding unit 12 and the coordinate value input to the gesture detection device 1 last time. When the notification that the direction of the value change is opposite is received from the table update unit 11, the third motion detection unit 18 performs a detection process (see step S22 in FIG. 10). Based on the notification from the table update unit 11, the third motion detection unit 18 performs the detection process only when the detection object 60 has moved in the same direction, and the detection object 60 moves in the same direction. Determine if the movement is moving over a short distance. Therefore, each time a coordinate value is input to the gesture detection device 1, the amount of processing performed by the gesture detection device 1 can be reduced as compared with the case where the third motion detection unit 18 performs detection processing.

図31は、検知対象物60がx軸に沿って第3動作を行った場合の、位置検出装置100の検出結果を示す図である。時刻t1〜t5では、x座標値はプラス方向に変化している。時刻t5のときにテーブル更新部11に更新される第1テーブルには、変化回数として「4」が保持され、累積変化量として「n1」が保持され、変化方向として「プラス方向」が保持される。   FIG. 31 is a diagram illustrating a detection result of the position detection device 100 when the detection target 60 performs the third operation along the x-axis. From time t1 to t5, the x coordinate value changes in the plus direction. In the first table updated by the table updating unit 11 at time t5, “4” is held as the number of changes, “n1” is held as the cumulative change amount, and “plus direction” is held as the change direction. The

続いて、時刻t6では、時刻t5までと異なり、x座標値がマイナス方向に変化したため、テーブル更新部11は第3動作検出部18に通知を行い、第1テーブルを初期化する。第3動作検出部18は、テーブル更新部11に初期化される前の第1テーブル(つまり、時刻t5にテーブル更新部11に更新された第1テーブル)を用いて、第3動作の検出処理を行う。   Subsequently, at time t6, unlike the time t5, the x-coordinate value has changed in the negative direction, so the table update unit 11 notifies the third motion detection unit 18 and initializes the first table. The third motion detection unit 18 uses the first table before being initialized by the table update unit 11 (that is, the first table updated by the table update unit 11 at time t5) to detect the third motion. I do.

その後、時刻t6〜t10までx座標値はマイナス方向に変化している。時刻t10にテーブル更新部11に更新される第1テーブルには、変化回数として「4」が保持され、累積変化量として「n2」が保持され、変化方向として「マイナス方向」が保持される。   Thereafter, the x-coordinate value changes in the minus direction from time t6 to t10. In the first table updated by the table updating unit 11 at time t10, “4” is held as the number of changes, “n2” is held as the cumulative change amount, and “minus direction” is held as the change direction.

そして、時刻t11に、x座標値がプラス方向に変化したため、テーブル更新部11は、第3動作検出部18に通知を行い、第1テーブルを初期化する。一方、第3動作検出部18は、テーブル更新部11に初期化される前の第1テーブル(つまり、時刻t10にテーブル更新部11に更新された第1テーブル)を用いて、第3動作の検出処理を行う。   Since the x-coordinate value has changed in the positive direction at time t11, the table update unit 11 notifies the third motion detection unit 18 and initializes the first table. On the other hand, the third motion detection unit 18 uses the first table before being initialized by the table update unit 11 (that is, the first table updated by the table update unit 11 at time t10). Perform detection processing.

<第3動作検出部での処理の流れ>
図32は、第3動作検出部18での処理を説明するための図である。図32は、第3動作検出部18が、第1テーブルに基づいて、検知対象物60がx軸に沿ってプラス方向及びマイナス方向に交互に移動する第3動作を検出する場合を示している。図30,32を参照しながら、以下に第3動作検出部18での処理を説明する。
<Processing flow in the third motion detection unit>
FIG. 32 is a diagram for explaining processing in the third motion detection unit 18. FIG. 32 shows a case where the third motion detection unit 18 detects a third motion in which the detection target 60 moves alternately in the plus direction and the minus direction along the x axis based on the first table. . The processing in the third motion detection unit 18 will be described below with reference to FIGS.

なお、以下の説明では、第3動作検出部18が、検知対象物60がx軸に沿ってプラス方向及びマイナス方向に交互に移動する第3動作を検出する場合を例に挙げて説明するが、第3動作検出部18が、検知対象物60がy軸に沿ってプラス方向及びマイナス方向に交互に動く第3動作を検出する場合および検知対象物60がz軸に沿ってプラス方向及びマイナス方向に交互に動く第3動作を検出する場合についても、同様に考えることができる。   In the following description, the case where the third motion detection unit 18 detects the third motion in which the detection target 60 alternately moves in the plus direction and the minus direction along the x axis will be described as an example. When the third motion detection unit 18 detects the third motion in which the detection target 60 moves alternately in the positive direction and the negative direction along the y axis, and the detection target 60 moves in the positive direction and the negative direction along the z axis. The same can be applied to the case where the third motion that moves alternately in the direction is detected.

まず、テーブル更新部11から通知を受信すると(ステップS70)、変化量判定部25は、テーブル更新部11に初期化される前の第1テーブルを取得する(ステップS71)。なお、テーブル更新部11は通知を行った後にすぐテーブルの初期化を行う。したがって、第3動作検出部18は、ステップS70で通知を受信した後すぐにステップS71の処理を行わなければならない。しかし、テーブル更新部11によって更新される前の第1テーブルを取得した後の処理は、特定部15での処理が始まるまでに終了していればよい。したがって、第3動作検出部18は、テーブル更新部11によって更新される前の第1テーブルをテーブル保持部12から取得すると、その後の処理はテーブル更新部11での処理など他の処理が終わった後に行ってもよい。   First, when a notification is received from the table update unit 11 (step S70), the change amount determination unit 25 acquires the first table before being initialized by the table update unit 11 (step S71). The table updating unit 11 initializes the table immediately after the notification. Therefore, the 3rd operation | movement detection part 18 must perform the process of step S71 immediately after receiving notification by step S70. However, the processing after obtaining the first table before being updated by the table updating unit 11 only needs to be completed before the processing in the specifying unit 15 starts. Therefore, when the third motion detection unit 18 obtains the first table before being updated by the table update unit 11 from the table holding unit 12, the subsequent processing is finished with other processing such as processing in the table update unit 11. It may be done later.

また、上記の例とは異なり、テーブル保持部12に過去のテーブルを保持させてもよい。この場合には、テーブル更新部11での処理が終わった後に、変化量判定部25が、テーブル保持部12からテーブル更新部11によって初期化される前のテーブルを取得することができる。   Further, unlike the above example, the table holding unit 12 may hold a past table. In this case, after the processing in the table update unit 11 is finished, the change amount determination unit 25 can acquire the table before being initialized by the table update unit 11 from the table holding unit 12.

続いて、変化量判定部25は、ステップS71で取得した第1テーブルに保持されている変化回数が第5の閾値より大きく、かつ第6の閾値より小さいかを判定する(ステップS72)。変化量判定部25は、あまりにも動作時間が短い動作を、第3動作の動きであると判定しないために、ステップS71で取得したテーブルに保持されている変化回数が第5の閾値より大きいかを判定している。第5の閾値としては、例えば3[回]が採用される。また、変化量判定部25は、ステップS71で取得したテーブルに保持されている変化回数が第6の閾値より小さいかを判定することで、動作時間の短い動作が行われたかを判定している。変化量判定部25は、動作時間の短い動作が行われたと判定されたときに、検知対象物60が短い距離を動いたと判定する。第6の閾値には、例えば10[回]が採用される。第5の閾値および第6の閾値の値は、ジェスチャー検出装置1の使用用途等に応じて選択される。   Subsequently, the change amount determination unit 25 determines whether the number of changes held in the first table acquired in step S71 is larger than the fifth threshold and smaller than the sixth threshold (step S72). The change amount determination unit 25 determines whether the number of changes held in the table acquired in step S71 is greater than the fifth threshold value in order to determine that the operation having an operation time that is too short is a movement of the third operation. Is judged. As the fifth threshold, for example, 3 [times] is adopted. Further, the change amount determination unit 25 determines whether an operation having a short operation time has been performed by determining whether the number of changes held in the table acquired in step S71 is smaller than the sixth threshold. . When it is determined that an operation with a short operation time has been performed, the change amount determination unit 25 determines that the detection target 60 has moved a short distance. For example, 10 [times] is adopted as the sixth threshold. The values of the fifth threshold value and the sixth threshold value are selected according to the usage application of the gesture detection device 1 or the like.

ステップS71で取得した第1テーブルに保持されている変化回数が第5の閾値より小さい、第5の閾値と同じ値、第6の閾値より大きい、もしくは第6の閾値と同じ値である場合には(ステップS72でNo)、変化量判定部25は、検知対象物60が第3動作を行っていないと判定し、第3動作検出部18の処理を終了する。   When the number of changes held in the first table acquired in step S71 is smaller than the fifth threshold, the same value as the fifth threshold, larger than the sixth threshold, or the same value as the sixth threshold (No in step S72), the change amount determination unit 25 determines that the detection target 60 is not performing the third operation, and ends the process of the third operation detection unit 18.

反対に、ステップS71で取得した第1テーブルに保持されている変化回数が第5の閾値より大きく、かつ第6の閾値より小さい場合には(ステップS72でYes)、変化量判定部25は、ステップS71で取得した第1テーブルに保持されている累積変化量が第7の閾値より大きいかを判定する(ステップS73)。なお、本実施の形態に係る変化量判定部25は、ステップS71で取得した第1テーブルに保持されている変化回数が、第5の閾値と同じ値、もしくは第6の閾値と同じ値である場合には、検知対象物60が第3動作を行っていないと判定する。しかし、変化量判定部25は、ステップS71で取得した第1テーブルに保持されている変化回数が、第5の閾値と同じ値、もしくは第6の閾値と同じ値である場合に、ステップS73に進んでもよい。   Conversely, when the number of changes held in the first table acquired in step S71 is larger than the fifth threshold and smaller than the sixth threshold (Yes in step S72), the change amount determination unit 25 It is determined whether the cumulative change amount stored in the first table acquired in step S71 is greater than a seventh threshold (step S73). Note that, in the change amount determination unit 25 according to the present embodiment, the number of changes held in the first table acquired in step S71 is the same value as the fifth threshold value or the same value as the sixth threshold value. In this case, it is determined that the detection target 60 is not performing the third operation. However, if the number of changes held in the first table acquired in step S71 is the same value as the fifth threshold value or the same value as the sixth threshold value, the change amount determination unit 25 returns to step S73. You may go on.

ステップS73では、変化量判定部25は、検知対象物60の動いた距離が、第7の閾値に応じた距離より長いかを判定している。検知対象物60が例えば人の手である場合には、第3動作を行う人の個人差によって、手を動かす距離が大きく変わる。したがって、ステップS73では、変化量判定部25は、あまりにも短い距離の動作を、第3動作の動きと判定しないために、テーブルに保持されている累積変化量が第7の閾値より大きいかのみを判定し、テーブルに保持されている累積変化量が所定値より小さいかは判定しない。また、第3動作は、第1動作および第2動作と比較して、検知対象物60が動く距離が小さい動作であるため、ステップS73で用いられる第7の閾値は、既述した第2の閾値及び第4の閾値より小さい値が採用される。第7の閾値には、例えば20[mm]が採用される。第7の閾値の値は、ジェスチャー検出装置1の使用用途等に応じて、選択される。   In step S <b> 73, the change amount determination unit 25 determines whether the distance that the detection target 60 has moved is longer than the distance corresponding to the seventh threshold value. When the detection target 60 is a human hand, for example, the distance to move the hand greatly varies depending on the individual difference of the person performing the third operation. Therefore, in step S73, the change amount determination unit 25 does not determine an operation at a too short distance as a movement of the third operation, so only the cumulative change amount held in the table is larger than the seventh threshold value. It is not determined whether the cumulative change amount stored in the table is smaller than a predetermined value. In addition, since the third operation is an operation in which the detection object 60 moves a short distance compared to the first operation and the second operation, the seventh threshold used in step S73 is the second threshold described above. A value smaller than the threshold and the fourth threshold is adopted. For example, 20 [mm] is adopted as the seventh threshold value. The value of the seventh threshold is selected according to the usage application of the gesture detection device 1 or the like.

ステップS71で取得した第1テーブルに保持されている累積変化量が第7の閾値より小さい場合、もしくは第7の閾値と同じ値である場合には(ステップS73でNo)、変化量判定部25は、検知対象物60が第3動作を行っていないと判定し、第3動作検出部18の処理を終了する。反対に、ステップS71で取得した第1テーブルに保持されている累積変化量が第7の閾値より大きい場合には(ステップS73でYes)、変化量判定部25は、検知対象物60が短い距離を動いたと判定し、第1計測部26が保持する計測結果に+1を加算する(ステップS74)。なお、本実施の形態の変化量判定部25は、ステップS71で取得した第1テーブルに保持されている累積変化量が第7の閾値と同じ値である場合には、検知対象物60が第3動作を行っていないと判定する。しかし、変化量判定部25は、ステップS71で取得した第1テーブルに保持されている累積変化量が第7の閾値と同じ値である場合に、ステップS74に進んでもよい。   When the cumulative change amount stored in the first table acquired in step S71 is smaller than the seventh threshold value or the same value as the seventh threshold value (No in step S73), the change amount determination unit 25. Determines that the detection target 60 is not performing the third motion, and ends the processing of the third motion detector 18. On the other hand, when the accumulated change amount stored in the first table acquired in step S71 is larger than the seventh threshold value (Yes in step S73), the change amount determination unit 25 indicates that the detection target 60 is a short distance. Is added, and +1 is added to the measurement result held by the first measurement unit 26 (step S74). Note that the change amount determination unit 25 of the present embodiment determines that the detection object 60 is the first value when the accumulated change amount held in the first table acquired in step S71 is the same value as the seventh threshold value. It is determined that 3 operations are not performed. However, the change amount determination unit 25 may proceed to step S74 when the accumulated change amount held in the first table acquired in step S71 is the same value as the seventh threshold value.

続いて、第2判定部27は、第1計測部26での計測結果が第8の閾値より大きいかを判定する(ステップS75)。第2判定部27は、ステップS75の処理で、検知対象物60が短い距離の移動を所定回数(第8の閾値)より多い回数行われたかを判定している。第8の閾値には、例えば5[回]が採用される。第8の閾値の値は、ジェスチャー検出装置1の使用用途等に応じて選択される。   Subsequently, the second determination unit 27 determines whether the measurement result of the first measurement unit 26 is larger than the eighth threshold (step S75). The second determination unit 27 determines whether or not the detection object 60 has moved a short distance more than a predetermined number of times (eighth threshold) in the process of step S75. For example, 5 [times] is adopted as the eighth threshold. The value of the eighth threshold is selected according to the usage application of the gesture detection device 1 or the like.

第1計測部26での計測結果が第8の閾値より小さい場合、もしくは第8の閾値の値と同じ値である場合には(ステップS75でNo)、第2判定部27は、検知対象物60が第3動作を行っていないと判定し、第3動作検出部18の処理を終了する。反対に、第1計測部26での計測結果が第8の閾値より大きい場合には(ステップS75でYes)、第2判定部27は、検知対象物60が第3の動作を行ったことを検出し(ステップS76)、第3動作検出部18の処理を終了する。ここで、ステップS76で検出された第3動作は、暫定的な検出結果として特定部15に送出される。なお、本実施の形態に係る第2判定部27は、第1計測部26での計測結果が第8の閾値と同じ値である場合には、検知対象物60が第3動作を行っていないと判定する。しかし、第2判定部27は、第1計測部26での計測結果が第8の閾値と同じ値である場合に、検知対象物60が第3動作を行ったと判定してもよい。   When the measurement result in the first measurement unit 26 is smaller than the eighth threshold value or the same value as the value of the eighth threshold value (No in step S75), the second determination unit 27 detects the detection target object. 60 determines that the third operation is not performed, and ends the processing of the third operation detection unit 18. On the contrary, when the measurement result in the first measurement unit 26 is larger than the eighth threshold value (Yes in Step S75), the second determination unit 27 confirms that the detection target 60 has performed the third operation. It detects (step S76), and the process of the 3rd operation | movement detection part 18 is complete | finished. Here, the third operation detected in step S76 is sent to the specifying unit 15 as a provisional detection result. Note that the second determination unit 27 according to the present embodiment does not perform the third operation of the detection target 60 when the measurement result of the first measurement unit 26 is the same value as the eighth threshold value. Is determined. However, the second determination unit 27 may determine that the detection target 60 has performed the third operation when the measurement result of the first measurement unit 26 is the same value as the eighth threshold value.

このように、第3動作検出部18では、テーブル更新部11によって更新された1つのテーブルを用いて、検知対象物60が短い距離の移動を所定回数(第8の閾値)より多く行ったか否かの簡単な処理を行うことで、第3動作を検出することができる。その結果、ジェスチャー検出装置1は簡単な処理で、第3動作を検出することができる。また、ジェスチャー検出装置1で検出することができるジェスチャーの種類が増えることより、ジェスチャー検出装置1の利便性が向上する。   As described above, in the third motion detection unit 18, whether or not the detection target 60 has moved a short distance more than a predetermined number of times (eighth threshold) using one table updated by the table update unit 11. By performing such a simple process, the third operation can be detected. As a result, the gesture detection apparatus 1 can detect the third action with a simple process. Moreover, the convenience of the gesture detection apparatus 1 is improved by increasing the types of gestures that can be detected by the gesture detection apparatus 1.

また、図32に示される例では、第3動作検出部18は、テーブルに保持されている変化回数、累積変化量及び変化方向の3つの情報を用いて、検知対象物60が第3動作を行っているか否かを検出している。しかし、第3動作検出部18は、第1動作検出部16および第2動作検出部17と同様に、テーブルに保持されている変化回数および変化方向を用いて検知対象物60が行う第3動作を検出してもよいし、テーブルに保持されている累積変化量および変化方向を用いて検知対象物60が行う第3動作を検出してもよい。   Further, in the example shown in FIG. 32, the third motion detection unit 18 uses the three pieces of information of the number of changes, the cumulative change amount, and the change direction held in the table to cause the detection target 60 to perform the third motion. Whether or not it is going is detected. However, like the first motion detection unit 16 and the second motion detection unit 17, the third motion detection unit 18 performs the third motion performed by the detection target 60 using the number of changes and the change direction held in the table. May be detected, or the third action performed by the detection object 60 may be detected using the accumulated change amount and change direction held in the table.

第3動作検出部18が、テーブルに保持されている累積変化量および変化方向を用いて検知対象物60が行う第3動作を検出する場合には、第3動作検出部18は、累積変化量のみに基づいて、検知対象物60が短い距離の移動を行ったか否かを判定しなければいけない。そのため、図32のステップS73では「テーブルに保持されている累積変化量が第7の閾値より大きく、かつ第9の閾値より小さいか」を判定する必要がある。しかし、前述した通り、検知対象物60が人の手である場合などには、第3動作を行う人の個人差によって、手を動かす距離が大きく変わる。したがって、この場合には、第3動作検出部18での第3動作の検出精度が悪くなる可能性がある。   When the third motion detection unit 18 detects the third motion performed by the detection target 60 using the cumulative change amount and the change direction held in the table, the third motion detection unit 18 sets the cumulative change amount. Based on this, it must be determined whether or not the detection object 60 has moved a short distance. For this reason, in step S73 of FIG. 32, it is necessary to determine whether or not the cumulative change amount held in the table is larger than the seventh threshold and smaller than the ninth threshold. However, as described above, when the detection target 60 is a human hand, the distance to move the hand greatly varies depending on the individual difference of the person performing the third operation. Therefore, in this case, the detection accuracy of the third motion in the third motion detector 18 may be deteriorated.

<2−7.特定部>
特定部15は、第1動作検出部16によって暫定的に検出された検出結果、第2動作検出部17によって暫定的に検出された検出結果および第3動作検出部18によって暫定的に検出された検出結果に基づいて、検知対象物60のジェスチャーを特定する。図33は、特定部15での処理を説明するための図である。
<2-7. Specific part>
The specifying unit 15 is temporarily detected by the detection result temporarily detected by the first motion detection unit 16, the detection result temporarily detected by the second motion detection unit 17, and the third motion detection unit 18. Based on the detection result, the gesture of the detection target 60 is specified. FIG. 33 is a diagram for explaining the processing in the specifying unit 15.

まず、特定部15は、第1動作検出部16が第1動作を検出しているかを判定する(ステップS80)。第1動作検出部16によって第1動作が検出されている場合には(ステップS80でYes)、特定部15は、第1動作が検知対象物60のジェスチャーであると特定する(ステップS81)。例えば、第1動作検出部16によって、反時計周りで回転する第1動作が検出されていた場合には、特定部15は、反時計回りで回転する第1動作が、検知対象物60のジェスチャーであると特定する。ステップS81で特定されたジェスチャーは、ジェスチャー検出装置1での検出結果として、ジェスチャー検出装置1外部に出力される。そして、特定部15は、動作検出部で検出された検出結果(より具体的には、第1動作検出部16が検出した第1動作、第2動作検出部17が検出した第2動作および第3動作検出部18が検出した第3動作)と、第1計測部26が保持する計測結果と、第1判定部21が保持する履歴情報とをクリアする(ステップS82)。特定部15は、ステップS82で、各種情報をクリアすることで、次にジェスチャー検出装置1に検知対象物60の位置を示す座標値が入力されたときに、ジェスチャー検出装置1は、次の検出処理をすぐに行うことができる。   First, the identifying unit 15 determines whether the first motion detection unit 16 has detected the first motion (step S80). When the first motion is detected by the first motion detector 16 (Yes in step S80), the identifying unit 15 identifies that the first motion is a gesture of the detection target 60 (step S81). For example, when the first motion detection unit 16 detects the first motion that rotates counterclockwise, the specifying unit 15 determines that the first motion that rotates counterclockwise is the gesture of the detection target 60. To be identified. The gesture specified in step S <b> 81 is output to the outside of the gesture detection device 1 as a detection result of the gesture detection device 1. The specifying unit 15 then detects the detection results detected by the motion detection unit (more specifically, the first motion detected by the first motion detection unit 16, the second motion detected by the second motion detection unit 17, and the second motion The third action detected by the three action detector 18, the measurement result held by the first measurement part 26, and the history information held by the first determination part 21 are cleared (step S 82). In step S82, the identification unit 15 clears various information, so that the next time the coordinate value indicating the position of the detection target 60 is input to the gesture detection device 1, the gesture detection device 1 performs the next detection. Processing can be done immediately.

ステップS80に戻り、第1動作検出部16によって第1動作が検出されていない場合には(ステップS80でNo)、特定部15は、第3動作検出部18が第3動作を検出しているかを判定する(ステップS83)。   Returning to step S80, if the first action is not detected by the first action detector 16 (No in step S80), the identifying part 15 determines whether the third action detector 18 detects the third action. Is determined (step S83).

第3動作検出部18によって第3動作が検出されている場合には(ステップS83でYes)、特定部15は、第3動作が検知対象物60のジェスチャーであると特定する(ステップS84)。例えば、第3動作検出部18によって、検知対象物60がz軸に沿ってプラス方向及びマイナス方向に交互に短い距離を動く第3動作が検出されている場合には、特定部15は、検知対象物60がz軸に沿ってプラス方向及びマイナス方向に交互に短い距離を動く第3動作が、検知対象物60のジェスチャーであると特定する。ステップS84で特定されたジェスチャーは、ジェスチャー検出装置1での検出結果として、ジェスチャー検出装置1外部に出力される。そして、特定部15は、動作検出部で検出された検出結果と、第1計測部26が保持する計測結果と、第1判定部21が保持する履歴情報とをクリアする(ステップS82)。   When the third motion is detected by the third motion detector 18 (Yes in step S83), the identifying unit 15 identifies that the third motion is a gesture of the detection target 60 (step S84). For example, when the third motion detection unit 18 detects the third motion in which the detection target 60 moves alternately in the plus direction and the minus direction along the z-axis, the identifying unit 15 The third action in which the object 60 moves alternately a short distance in the plus direction and the minus direction along the z axis is specified as the gesture of the detection object 60. The gesture specified in step S84 is output to the outside of the gesture detection device 1 as a detection result of the gesture detection device 1. And the specific | specification part 15 clears the detection result detected by the operation | movement detection part, the measurement result which the 1st measurement part 26 hold | maintains, and the log | history information which the 1st determination part 21 hold | maintains (step S82).

ステップS83に戻り、第3動作検出部18によって第3動作が検出されていない場合には(ステップS83でNo)、特定部15は、第1動作検出部16が備える第1判定部21が履歴情報を保持しているかを判定する(ステップS85)。   Returning to step S83, if the third action is not detected by the third action detecting unit 18 (No in step S83), the specifying unit 15 includes the history of the first determining unit 21 included in the first action detecting unit 16. It is determined whether the information is retained (step S85).

第1判定部21が履歴情報を保持している場合には(ステップS85でYes)、特定部15は、ジェスチャー検出部13の処理を終了する(ステップS86)。第1判定部21が履歴情報を保持していることから、当該履歴情報が第1動作の検出に用いる所定順序を示す可能性がある(即ち、検知対象物60のジェスチャーが、第1動作である可能性がある)と第1判定部21が判定していると分かる。したがって、この場合には、特定部15は検知対象物60のジェスチャーを特定せずに処理を終了する。   If the first determination unit 21 holds history information (Yes in step S85), the specifying unit 15 ends the process of the gesture detection unit 13 (step S86). Since the first determination unit 21 holds the history information, there is a possibility that the history information indicates a predetermined order used for detecting the first motion (that is, the gesture of the detection target 60 is the first motion). It can be understood that the first determination unit 21 determines that there is a possibility of the occurrence). Therefore, in this case, the specifying unit 15 ends the process without specifying the gesture of the detection target 60.

既述したとおり、移動方向特定部20で特定される検知対象物60の動きと、第2動作検出部17で検出される検知対象物60の動きとは、閾値が異なるだけである。したがって、例えば、検知対象物60が回転動作を行っている場合でも、当該検知対象物60の動きが大きい場合には、第2動作検出部17によって第2動作が検出されてしまう場合がある。   As described above, the threshold of the movement of the detection target 60 identified by the movement direction identification unit 20 and the movement of the detection target 60 detected by the second motion detection unit 17 are different. Therefore, for example, even when the detection target 60 is rotating, if the movement of the detection target 60 is large, the second movement detection unit 17 may detect the second movement.

したがって、図33に示されるように、特定部15は、まず第1動作検出部16が第1動作を検出しているか否かの判定を行う。つまり、本実施の形態では、動作検出部14が第1動作および第2動作の両方を検出している場合であっても、第1動作を検知対象物60のジェスチャーとして特定する。そして、第1動作検出部16によって第1動作が検出されていない場合であっても、第1判定部21が履歴情報を保持している場合には、特定部15は、検知対象物60のジェスチャーを特定しない。そのため、検知対象物60が第1動作を行っている途中で、ジェスチャー検出装置1によって第2動作が検出されることを抑制することができる。その結果、ジェスチャー検出装置1の検出精度を向上することができる。   Therefore, as illustrated in FIG. 33, the specifying unit 15 first determines whether or not the first motion detection unit 16 has detected the first motion. That is, in the present embodiment, even when the motion detection unit 14 detects both the first motion and the second motion, the first motion is specified as the gesture of the detection target 60. Even when the first action is not detected by the first action detector 16, if the first determination unit 21 holds the history information, the specifying unit 15 determines the detection object 60. Do not specify gestures. Therefore, it can suppress that 2nd operation | movement is detected by the gesture detection apparatus 1 in the middle of the detection target object 60 performing 1st operation | movement. As a result, the detection accuracy of the gesture detection device 1 can be improved.

なお、検知対象物60が第1動作を行っている途中に、第3動作検出部18によって第3動作が検出される場合、もしくは検知対象物60が第3動作を行っている途中に、第1動作検出部16によって第1動作が検出される場合はない。そのため、第1動作検出部16が第1動作を検出しているか否かの判定(ステップS80)の前に、第3動作検出部18が第3動作を検出しているか否かの判定(ステップS83)を行っても、特定部15の特定結果は変化しない。したがって、図33に示される例とは異なり、ステップS80の処理を行う前にステップS83の処理を行ってもよい。   In addition, when the third motion is detected by the third motion detector 18 while the detection target 60 is performing the first motion, or when the detection target 60 is performing the third motion, There is no case where the first operation is detected by the one operation detector 16. Therefore, before the determination (step S80) as to whether or not the first motion detector 16 has detected the first motion, the determination as to whether or not the third motion detector 18 has detected the third motion (step S80). Even if S83) is performed, the specifying result of the specifying unit 15 does not change. Therefore, unlike the example shown in FIG. 33, the process of step S83 may be performed before the process of step S80.

ステップS85に戻り、第1判定部21が履歴情報を保持していない場合には(ステップS85でNo)、特定部15は、第2動作検出部17が第2動作を検出しているかを判定する(ステップS87)。   Returning to step S85, when the first determination unit 21 does not hold the history information (No in step S85), the specifying unit 15 determines whether the second operation detection unit 17 has detected the second operation. (Step S87).

第2動作検出部17によって第2動作が検出されていない場合には(ステップS87でNo)、動作検出部14によって検出されたジェスチャーは何もないため、特定部15は、ジェスチャー検出部13の処理を終了する(ステップS86)。反対に、第2動作検出部17によって第2動作が検出されている場合には(ステップS87でYes)、特定部15は、第2動作が検知対象物60のジェスチャーであると特定する(ステップS88)。例えば、第2動作検出部によって検知対象物60が上方向に移動する第2動作が検出されている場合には、特定部15は、検知対象物60が上方向に移動する第2動作が、検知対象物60のジェスチャーであると特定する。ステップS88で特定されたジェスチャーは、ジェスチャー検出装置1での検出結果として、ジェスチャー検出装置1の外部に出力される。そして、特定部15は、動作検出部で検出された検出結果(より具体的には、第2動作検出部17が検出した第2動作)と、第1計測部26が保持する計測結果とをクリアする(ステップS89)。   If the second action is not detected by the second action detector 17 (No in step S87), there is no gesture detected by the action detector 14; The process ends (step S86). On the other hand, when the second motion is detected by the second motion detector 17 (Yes in step S87), the specifying unit 15 specifies that the second motion is a gesture of the detection target 60 (step). S88). For example, when the second motion in which the detection target 60 moves upward is detected by the second motion detection unit, the specifying unit 15 performs the second motion in which the detection target 60 moves upward, The gesture of the detection target 60 is specified. The gesture specified in step S88 is output to the outside of the gesture detection device 1 as a detection result of the gesture detection device 1. Then, the specifying unit 15 obtains the detection result detected by the motion detection unit (more specifically, the second motion detected by the second motion detection unit 17) and the measurement result held by the first measurement unit 26. Clear (step S89).

なお、検知対象物60が第2動作を行っている途中に、第3動作検出部18によって第3動作が検出される場合、もしくは検知対象物60が第3動作を行っている途中に第2動作検出部17によって第2動作が検出される場合はない。そのため、第3動作検出部18が第3動作を検出しているか否かの判定(ステップS83)を行う前に、ステップS85以降の処理を行っても、特定部15の特定結果は変化しない。したがって、図33に示される例とは異なり、ステップS83の処理の前にステップS85以降の処理を行ってもよい。   When the third motion is detected by the third motion detection unit 18 while the detection target 60 is performing the second motion, or when the detection target 60 is performing the third motion, the second motion is detected. There is no case where the second motion is detected by the motion detector 17. Therefore, even if the process after step S85 is performed before the determination (step S83) whether or not the third operation detection unit 18 detects the third operation, the specification result of the specification unit 15 does not change. Therefore, unlike the example shown in FIG. 33, the processing after step S85 may be performed before the processing of step S83.

<2−8.第一実施形態変形例>
図34は、本変形例に係る制御部10に形成される複数の機能ブロックの一部を示す図である。図34に示されるように、本変形例に係る制御部10は、第一実施形態に係る制御部10とは異なり、座標値比較部30を備えている。座標値比較部30は、ジェスチャー検出装置1に入力される検知対象物60の位置を示す座標値を監視し、当該座標値が変化していない場合にテーブル更新部11および第2動作検出部(動作検出部14)に通知する。
<2-8. Modification of First Embodiment>
FIG. 34 is a diagram illustrating a part of a plurality of functional blocks formed in the control unit 10 according to the present modification. As shown in FIG. 34, the control unit 10 according to the present modification includes a coordinate value comparison unit 30, unlike the control unit 10 according to the first embodiment. The coordinate value comparison unit 30 monitors the coordinate value indicating the position of the detection target 60 input to the gesture detection device 1, and when the coordinate value has not changed, the table update unit 11 and the second motion detection unit ( Notify the motion detector 14).

図35は、テーブル更新部11、第2動作検出部17および座標値比較部30の処理を説明するための図である。図34,35を参照しながら、本変形例に係るテーブル更新部11、第2動作検出部17および座標値比較部30が行う処理について以下に説明する。   FIG. 35 is a diagram for explaining processing of the table update unit 11, the second motion detection unit 17, and the coordinate value comparison unit 30. Processing performed by the table update unit 11, the second motion detection unit 17, and the coordinate value comparison unit 30 according to this modification will be described below with reference to FIGS.

まず、座標値比較部30は、前回ジェスチャー検出装置1に入力されたx座標値から、今回ジェスチャー検出装置1に入力されたx座標値が変化したかを判定する(ステップS90a)。前回ジェスチャー検出装置1に入力されたx座標値から、今回ジェスチャー検出装置1に入力されたx座標値が変化した場合には(ステップS90aでYes)、テーブル更新部11は、第1テーブルの更新を行い(ステップS1a)、第2動作検出部17はステップS1aで更新された第1テーブルを用いて第2動作を検出する(ステップS3a)。   First, the coordinate value comparison unit 30 determines whether the x coordinate value input to the gesture detection device 1 this time has changed from the x coordinate value input to the gesture detection device 1 last time (step S90a). When the x coordinate value input to the gesture detection device 1 this time has changed from the previous x coordinate value input to the gesture detection device 1 (Yes in step S90a), the table update unit 11 updates the first table. (Step S1a), the second motion detector 17 detects the second motion using the first table updated in Step S1a (Step S3a).

一方、前回ジェスチャー検出装置1に入力されたx座標値から今回ジェスチャー検出装置1に入力されたx座標値が変化していない場合には(ステップS90aでNo)、テーブル更新部11は第1テーブルの更新を行わない。そして、第2動作検出部17は、第1テーブルを用いる検出処理を行わない。   On the other hand, when the x coordinate value input to the gesture detection device 1 this time has not changed from the previous x coordinate value input to the gesture detection device 1 (No in step S90a), the table updating unit 11 performs the first table. Will not be updated. And the 2nd operation | movement detection part 17 does not perform the detection process which uses a 1st table.

検知対象物60がx軸に沿って動いていないときには、テーブル更新部11が、第1テーブルの更新処理を行っても、テーブル保持部12が保持する第1テーブルが保持する情報は変わらない。また、検知対象物60がx軸に沿って動いていないときには、第2動作検出部17が、検知対象物60がx軸に沿って動く第2動作を検出することはない。したがって、本変形例では、座標値比較部30によって、前回ジェスチャー検出装置1に入力されたx座標値から今回ジェスチャー検出装置1に入力されたx座標値が変化していないと判定された場合には、座標値比較部30は、テーブル更新部11に今回ジェスチャー検出装置1に入力されたx座標値を用いる第1テーブルの更新処理を行わせず、第2動作検出部17に、当該第1テーブルを用いる検出処理を行わせない。その結果、本変形例に係るジェスチャー検出装置1では、検知対象物60が動いていないときの、ジェスチャー検出装置1が行う処理の量を削減することができる。   When the detection target 60 is not moving along the x-axis, even if the table update unit 11 performs the update process of the first table, the information held by the first table held by the table holding unit 12 does not change. In addition, when the detection target 60 is not moving along the x axis, the second motion detection unit 17 does not detect the second motion of the detection target 60 moving along the x axis. Therefore, in this modification, when the coordinate value comparison unit 30 determines that the x coordinate value input to the gesture detection device 1 this time has not changed from the x coordinate value input to the gesture detection device 1 last time. The coordinate value comparison unit 30 does not perform the update process of the first table using the x coordinate value input to the gesture detection device 1 in the table update unit 11 this time, and causes the second motion detection unit 17 to perform the first operation. The detection process using the table is not performed. As a result, in the gesture detection device 1 according to the present modification, the amount of processing performed by the gesture detection device 1 when the detection target 60 is not moving can be reduced.

制御部10に座標値比較部30が備えられない場合において、検知対象物60が動いていないときの処理を削減するときには、テーブル更新部11および第2動作検出部17は独立して、今回ジェスチャー検出装置1に入力されたx座標値と、前回ジェスチャー検出装置1に入力されたx座標値とを比較して、処理を行うか否かを判断しなければならない。この場合には、テーブル更新部11および第2動作検出部17のそれぞれが、同じ処理(今回ジェスチャー検出装置1に入力されたx座標値と、前回ジェスチャー検出装置1に入力されたx座標値とを比較する処理)を行うことになる。しかし、本変形例のように、座標値比較部30が、ジェスチャー検出装置1に入力される検知対象物60の位置を示す座標値を監視し、座標値に変化がない場合、つまり検知対象物60が動いていない場合に、テーブル更新部11および第2動作検出部17に通知することで、テーブル更新部11および第2動作検出部17が同じ処理を行うことがない。   When the coordinate value comparison unit 30 is not provided in the control unit 10, the table update unit 11 and the second motion detection unit 17 independently perform the current gesture when reducing the processing when the detection target 60 is not moving. It is necessary to compare the x-coordinate value input to the detection device 1 with the x-coordinate value input to the gesture detection device 1 last time to determine whether or not to perform processing. In this case, each of the table update unit 11 and the second motion detection unit 17 performs the same processing (the x coordinate value input to the gesture detection device 1 this time and the x coordinate value input to the gesture detection device 1 last time). Will be performed). However, as in the present modification, the coordinate value comparison unit 30 monitors the coordinate value indicating the position of the detection target 60 input to the gesture detection device 1, and when there is no change in the coordinate value, that is, the detection target When 60 is not moving, the table update unit 11 and the second motion detection unit 17 do not perform the same process by notifying the table update unit 11 and the second motion detection unit 17.

同様に、座標値比較部30は、前回ジェスチャー検出装置1に入力されたy座標値と、今回ジェスチャー検出装置1に入力されたy座標値とに変化があるかを判定する(ステップS90b)。前回ジェスチャー検出装置1に入力されたy座標値と、今回ジェスチャー検出装置1に入力されたy座標値とに変化がある場合には(ステップS90bでYes)、テーブル更新部11は、第2テーブルの更新を行い(ステップS1b)、第2動作検出部17はステップS1bで更新された第2テーブルを用いて第2動作を検出する(ステップS3b)。一方、前回ジェスチャー検出装置1に入力されたy座標値と、今回ジェスチャー検出装置1に入力されたy座標値とに変化がない場合には(ステップS90bでNo)、テーブル更新部11は第2テーブルの更新を行わず、第2動作検出部17は、第2テーブルを用いる検出処理を行わない。   Similarly, the coordinate value comparison unit 30 determines whether there is a change between the y coordinate value input to the gesture detection device 1 last time and the y coordinate value input to the gesture detection device 1 this time (step S90b). If there is a change between the y coordinate value input to the gesture detection device 1 last time and the y coordinate value input to the gesture detection device 1 this time (Yes in step S90b), the table update unit 11 performs the second table. (Step S1b), the second motion detector 17 detects the second motion using the second table updated in Step S1b (Step S3b). On the other hand, when there is no change between the y coordinate value input to the gesture detection device 1 last time and the y coordinate value input to the gesture detection device 1 this time (No in step S90b), the table update unit 11 performs the second operation. The table is not updated, and the second motion detection unit 17 does not perform the detection process using the second table.

同様に、座標値比較部30は、前回ジェスチャー検出装置1に入力されたz座標値と、今回ジェスチャー検出装置1に入力されたz座標値とに変化があるかを判定する(ステップS90c)。前回ジェスチャー検出装置1に入力されたz座標値と、今回ジェスチャー検出装置1に入力されたz座標値とに変化がある場合には(ステップS90cでYes)、テーブル更新部11は、第3テーブルの更新を行い(ステップS1c)、第2動作検出部17はステップS1cで更新された第3テーブルを用いて第2動作を検出する(ステップS3c)。一方、前回ジェスチャー検出装置1に入力されたz座標値と、今回ジェスチャー検出装置1に入力されたz座標値とに変化がない場合には(ステップS90cでNo)、テーブル更新部11は第3テーブルの更新を行わず、第2動作検出部17は、第3テーブルを用いる検出処理を行わない。   Similarly, the coordinate value comparison unit 30 determines whether there is a change between the z coordinate value input to the gesture detection device 1 last time and the z coordinate value input to the gesture detection device 1 this time (step S90c). When there is a change between the z coordinate value input to the gesture detection device 1 last time and the z coordinate value input to the gesture detection device 1 this time (Yes in step S90c), the table update unit 11 performs the third table. (Step S1c), the second motion detector 17 detects the second motion using the third table updated in step S1c (step S3c). On the other hand, when there is no change between the z coordinate value input to the gesture detection device 1 last time and the z coordinate value input to the gesture detection device 1 this time (No in step S90c), the table update unit 11 performs the third operation. The table is not updated, and the second motion detection unit 17 does not perform the detection process using the third table.

<<3.第二実施形態>>
第二実施形態では、位置検出装置100が検出する座標値が検知対象物60の位置を示していない場合に、ジェスチャー検出装置1が行う処理を低減させる例を2つ説明する。
<< 3. Second embodiment >>
In the second embodiment, two examples of reducing the processing performed by the gesture detection device 1 when the coordinate value detected by the position detection device 100 does not indicate the position of the detection target 60 will be described.

<第二実施形態の1つめの例>
まず、図36,37を参照しながら、1つめの例について説明する。図36は、第二実施形態の1つめの例に係る制御部10に形成される複数の機能ブロックの一部を示す図である。図37は、第2実施形態の1つめの例に係る制御部10での処理を説明するための図である。
<First example of the second embodiment>
First, the first example will be described with reference to FIGS. FIG. 36 is a diagram illustrating some of a plurality of functional blocks formed in the control unit 10 according to the first example of the second embodiment. FIG. 37 is a diagram for explaining processing in the control unit 10 according to the first example of the second embodiment.

図36に示されるように、既述した第一実施形態とは異なり、第二実施形態の1つめの例に係る制御部10には、距離特定部31が備えられている。距離特定部31は、検知対象物60と位置検出装置100が備える受光部102の受光面との間の距離を特定し、当該距離に基づいて位置検出装置100から入力された座標値が検知対象物60の位置を示しているのか否かを判定する。通常、検知対象物60がジェスチャーを行う場合には、当該検知対象物60は、受光部102の受光面に近づいてジェスチャーを行う。したがって、検知対象物60と位置検出装置100が備える受光部102の受光面との間の距離が遠い場合には、ジェスチャー検出装置1に入力された座標値が、ジェスチャーを行う検知対象物60の位置を示していない可能性が高い。したがって、距離特定部31は、位置検出装置100から入力された座標値がジェスチャーを行う検知対象物60の位置を示していないと判定した場合には、検知対象物60が存在していないとして、テーブル更新部11およびジェスチャー検出部13に処理を行わせない。   As shown in FIG. 36, unlike the above-described first embodiment, the control unit 10 according to the first example of the second embodiment includes a distance specifying unit 31. The distance specifying unit 31 specifies the distance between the detection target 60 and the light receiving surface of the light receiving unit 102 included in the position detection device 100, and the coordinate value input from the position detection device 100 based on the distance is the detection target. It is determined whether or not the position of the object 60 is indicated. Normally, when the detection target 60 performs a gesture, the detection target 60 approaches the light receiving surface of the light receiving unit 102 and performs the gesture. Therefore, when the distance between the detection target 60 and the light receiving surface of the light receiving unit 102 included in the position detection device 100 is long, the coordinate value input to the gesture detection device 1 is the value of the detection target 60 that performs the gesture. It is likely that the location is not shown. Therefore, if the distance specifying unit 31 determines that the coordinate value input from the position detection device 100 does not indicate the position of the detection target 60 to be gestured, the detection target 60 is not present. The table update unit 11 and the gesture detection unit 13 are not processed.

なお、本実施の形態では、受光部102の受光面がxy座標平面と平行であるため、検知対象物60と位置検出装置100が備える受光部102の受光面との間の距離はz座標値に基づいて求めることができる。したがって、以下の説明では、距離特定部31が、z座標値を用いて、検知対象物60が存在するかの判定を行う場合を例に挙げて説明する。しかし、座標軸の定義の仕方によって、距離特定部31が判定に用いる座標値は変化する。より具体的には、受光部102の受光面がx軸に垂直である場合には、距離特定部31はx座標値に基づいて、検知対象物60と受光部102の受光面との間の距離を求める。また、受光部102の受光面がy軸に垂直である場合には、距離特定部31はy座標値に基づいて、検知対象物60と受光部102の受光面との間の距離を求める。   In this embodiment, since the light receiving surface of the light receiving unit 102 is parallel to the xy coordinate plane, the distance between the detection target 60 and the light receiving surface of the light receiving unit 102 included in the position detection device 100 is the z coordinate value. Can be determined based on Therefore, in the following description, a case where the distance specifying unit 31 determines whether or not the detection target 60 exists using the z coordinate value will be described as an example. However, the coordinate value used for determination by the distance specifying unit 31 varies depending on how the coordinate axes are defined. More specifically, when the light receiving surface of the light receiving unit 102 is perpendicular to the x axis, the distance specifying unit 31 determines whether the distance between the detection target 60 and the light receiving surface of the light receiving unit 102 is based on the x coordinate value. Find the distance. When the light receiving surface of the light receiving unit 102 is perpendicular to the y-axis, the distance specifying unit 31 obtains the distance between the detection target 60 and the light receiving surface of the light receiving unit 102 based on the y coordinate value.

なお、本実施の形態では、xy座標平面に受光部102の受光面が含まれているため、検知対象物60と受光部102の受光面との間の距離はz座標値の値そのものとなる。本実施の形態とは異なり、xy座標平面に受光部102の受光面が含まれていない場合には、xy座標平面と受光部102の受光面と間の距離とz座標値とに基づいて、検知対象物60と受光部102の受光面との間の距離を求めることができる。   In the present embodiment, since the light receiving surface of the light receiving unit 102 is included in the xy coordinate plane, the distance between the detection target 60 and the light receiving surface of the light receiving unit 102 is the value of the z coordinate value itself. . Unlike the present embodiment, when the light receiving surface of the light receiving unit 102 is not included in the xy coordinate plane, based on the distance between the xy coordinate plane and the light receiving surface of the light receiving unit 102 and the z coordinate value, The distance between the detection object 60 and the light receiving surface of the light receiving unit 102 can be obtained.

図37に示されるように、まず、距離特定部31は、ジェスチャー検出装置1に入力されたz座標値を取得する(ステップS110)。続いて、距離特定部31は、ステップS110で取得したz座標値、つまり、検知対象物60と受光部102の受光面との間の距離が第10の閾値より小さいかを特定する(ステップS111)。第10の閾値の値は、位置検出装置100の設置環境等によって適宜変更することができる。   As shown in FIG. 37, first, the distance specifying unit 31 acquires the z coordinate value input to the gesture detection device 1 (step S110). Subsequently, the distance specifying unit 31 specifies whether the z coordinate value acquired in step S110, that is, whether the distance between the detection target 60 and the light receiving surface of the light receiving unit 102 is smaller than the tenth threshold value (step S111). ). The value of the tenth threshold value can be appropriately changed depending on the installation environment of the position detection device 100 or the like.

ジェスチャー検出装置1に入力されたz座標値が、第10の閾値より大きい場合、もしくは第10の閾値と同じ値である場合には(ステップS111でNo)、距離特定部31は、テーブル更新部11およびジェスチャー検出部13に処理を行わせずに、次にジェスチャー検出装置1に座標値が入力されるのを待つ(ステップS112)。   When the z-coordinate value input to the gesture detection device 1 is greater than the tenth threshold value or the same value as the tenth threshold value (No in step S111), the distance specifying unit 31 includes a table updating unit. 11 and the gesture detection unit 13 are not processed, and the process waits for a coordinate value to be input to the gesture detection device 1 (step S112).

反対に、ジェスチャー検出装置1に入力されたz座標値が、第10の閾値より小さい場合には(ステップS111でNo)、距離特定部31は、テーブル更新部11およびジェスチャー検出部13に処理を行わせる。具体的には、テーブル更新部11にテーブルを更新させ(ステップS1)、第1動作検出部16に第1動作を検出させ(ステップS2)、第2動作検出部17に第2動作を検出させ(ステップS3)、第3動作検出部18に第3動作を検出させ(ステップS4)、特定部15に検知対象物60のジェスチャーを特定させる(ステップS5)。   On the other hand, when the z coordinate value input to the gesture detection device 1 is smaller than the tenth threshold value (No in step S111), the distance specifying unit 31 performs processing on the table update unit 11 and the gesture detection unit 13. Let it be done. Specifically, the table update unit 11 updates the table (step S1), the first motion detection unit 16 detects the first motion (step S2), and the second motion detection unit 17 detects the second motion. (Step S3), the third motion detection unit 18 detects the third motion (Step S4), and the specifying unit 15 specifies the gesture of the detection target 60 (Step S5).

このように、距離特定部31は、検知対象物60と受光部102の受光面との間の距離が第10の閾値より大きいときに、テーブル更新部11およびジェスチャー検出部13に処理を行わせない。その結果、検知対象物60の位置を示さない座標値に基づいて行われるジェスチャー検出装置1の処理の量を削減することができる。   Thus, the distance specifying unit 31 causes the table update unit 11 and the gesture detection unit 13 to perform processing when the distance between the detection target 60 and the light receiving surface of the light receiving unit 102 is larger than the tenth threshold value. Absent. As a result, it is possible to reduce the amount of processing performed by the gesture detection device 1 based on coordinate values that do not indicate the position of the detection target 60.

なお、本実施の形態における距離特定部31は、ジェスチャー検出装置1に入力されたz座標値が、第10の閾値と同じ値であるときには、検知対象物60が存在しないとして、テーブル更新部11およびジェスチャー検出部13に処理を行わせない。しかし、距離特定部31は、ジェスチャー検出装置1に入力されたz座標値が、第10の閾値と同じ値であるときに、検知対象物60が存在するとして、テーブル更新部11およびジェスチャー検出部13に処理を行わせてもよい。   It should be noted that the distance specifying unit 31 in the present embodiment assumes that the detection target 60 does not exist and the table updating unit 11 when the z coordinate value input to the gesture detection device 1 is the same value as the tenth threshold value. In addition, the gesture detection unit 13 is not allowed to perform processing. However, when the z coordinate value input to the gesture detection device 1 is the same value as the tenth threshold value, the distance specifying unit 31 determines that the detection target 60 exists and the table update unit 11 and the gesture detection unit 13 may be processed.

<第二実施形態の2つめの例>
次に、図38,39を参照しながら、2つめの例について説明する。図38は、第二実施形態の2つめの例に係る制御部10に形成される複数の機能ブロックの一部を示す図である。図39は、第2実施形態の2つめの例に係る制御部10での処理を説明するための図である。
<Second example of the second embodiment>
Next, a second example will be described with reference to FIGS. FIG. 38 is a diagram illustrating a part of a plurality of functional blocks formed in the control unit 10 according to the second example of the second embodiment. FIG. 39 is a diagram for explaining processing in the control unit 10 according to the second example of the second embodiment.

図38に示されるように、上述した第二実施形態の1つめの例とは異なり、第二実施形態の2つめの例に係る制御部10は、第3判定部32を備えている。第3判定部32は、距離特定部31での特定結果に基づいて、検知対象物60が所定時間以上存在していないか否かを判定する。そして、検知対象物60が所定時間以上存在しておらず、第2動作が検出されている場合には、当該第2動作を検知対象物60のジェスチャーとする。   As shown in FIG. 38, unlike the first example of the second embodiment described above, the control unit 10 according to the second example of the second embodiment includes a third determination unit 32. The third determination unit 32 determines whether or not the detection target 60 has existed for a predetermined time or more based on the identification result in the distance identification unit 31. When the detection target 60 has not existed for a predetermined time or longer and the second motion is detected, the second motion is set as the gesture of the detection target 60.

図39に示されるように、まず、距離特定部31は、ジェスチャー検出装置1に入力されたz座標値を取得する(ステップS110)。続いて、距離特定部31は、ステップS110で取得したz座標値、つまり、検知対象物60と受光部102の受光面との間の距離が第10の閾値より小さいかを特定する(ステップS111)。   As shown in FIG. 39, first, the distance specifying unit 31 acquires the z coordinate value input to the gesture detection device 1 (step S110). Subsequently, the distance specifying unit 31 specifies whether the z coordinate value acquired in step S110, that is, whether the distance between the detection target 60 and the light receiving surface of the light receiving unit 102 is smaller than the tenth threshold value (step S111). ).

ステップS110で取得されたz座標値が第10の閾値より大きい場合、もしくは第10の閾値と同じ値である場合には(ステップS111でNo)、第3判定部32は、当該第3判定部32が保持する計測回数に+1を加算する(ステップS113)。第3判定部32が保持する計測回数は、ステップS111でz座標値が第10の閾値より大きいと判定される度に加算されていく。つまり、第3判定部32で保持される計測回数は、ジェスチャーを行う検知対象物60が存在していない時間を示している。   If the z-coordinate value acquired in step S110 is greater than the tenth threshold value or the same value as the tenth threshold value (No in step S111), the third determination unit 32 determines that the third determination unit +1 is added to the number of measurements held by 32 (step S113). The number of measurements held by the third determination unit 32 is added every time it is determined in step S111 that the z coordinate value is larger than the tenth threshold value. That is, the number of measurements held by the third determination unit 32 indicates a time during which the detection target 60 for performing the gesture does not exist.

続いて、第3判定部32は、ステップS113で更新した計測回数が第11の閾値より大きいか否かを判定する(ステップS114)。ステップS113で更新した計測回数が第11の閾値より小さい場合もしくは第11の閾値と同じ値である場合、つまりジェスチャーを行う検知対象物60が存在していない時間が、所定時間より短い場合には(ステップS114でNo)、第3判定部32は、処理を終了する(ステップS112)。つまり、第3判定部32は、テーブル更新部11およびジェスチャー検出部13に処理を行わせずに、次にジェスチャー検出装置1に座標値が入力されるのを待つ。   Subsequently, the third determination unit 32 determines whether or not the number of measurements updated in step S113 is greater than an eleventh threshold (step S114). When the number of measurements updated in step S113 is smaller than the eleventh threshold value or the same value as the eleventh threshold value, that is, when the time when the detection target 60 for performing the gesture does not exist is shorter than the predetermined time. (No in step S114), the third determination unit 32 ends the process (step S112). That is, the third determination unit 32 waits for the next coordinate value to be input to the gesture detection device 1 without performing processing on the table update unit 11 and the gesture detection unit 13.

一方、ステップS113で更新した計測回数が第11の閾値より大きい場合、つまりジェスチャーを行う検知対象物60が存在していない時間が所定時間より長い場合には(ステップS114でYes)、第3判定部32は、第2動作検出部17によって第2動作が検出されているかを判定する(ステップS115)。   On the other hand, if the number of measurements updated in step S113 is greater than the eleventh threshold, that is, if the time when the detection object 60 to be gestured does not exist is longer than the predetermined time (Yes in step S114), the third determination The unit 32 determines whether the second motion is detected by the second motion detector 17 (step S115).

第2動作検出部17によって第2動作が検出されていない場合には(ステップS115でNo)、第3判定部32は、処理を終了する(ステップS112)。反対に、第2動作検出部17によって第2動作が検出されている場合には(ステップS115でYes)、第3判定部32は、第2動作検出部17によって検出されている第2動作を、検知対象物60のジェスチャーであると特定し(ステップS116)、動作検出部14での検出結果、第1計測部26での計測結果、第3判定部32での計測結果および第1判定部での履歴情報を初期化する(ステップS117)。   When the second motion is not detected by the second motion detector 17 (No in step S115), the third determination unit 32 ends the process (step S112). On the other hand, when the second motion is detected by the second motion detector 17 (Yes in step S115), the third determination unit 32 performs the second motion detected by the second motion detector 17. The gesture of the detection target 60 is specified (step S116), the detection result in the motion detection unit 14, the measurement result in the first measurement unit 26, the measurement result in the third determination unit 32, and the first determination unit The history information at is initialized (step S117).

既述したように、検知対象物60の動作によって、第1判定部21が履歴情報を保持し、第2動作検出部17が第2動作を検出した場合には、特定部15は検知対象物60のジェスチャーを特定しない。その後に、検知対象物60(ユーザ)が第2動作を行ったつもりで動作を終了してしまうと、ジェスチャー検出装置1は検知対象物60によって行われたジェスチャーを検出しないままとなる。   As described above, when the first determination unit 21 holds history information and the second operation detection unit 17 detects the second operation by the operation of the detection object 60, the specifying unit 15 detects the detection object 60. 60 gestures are not specified. After that, when the detection target 60 (user) ends the operation with the intention of performing the second operation, the gesture detection device 1 remains undetected by the gesture performed by the detection target 60.

したがって、本実施の形態では、第3判定部32が、検知対象物60が存在していない時間が、第11の閾値に応じた所定時間より長く、かつ第2動作検出部17によって第2動作が検出されているときに、当該第2動作を検知対象物60のジェスチャーとする。言い換えると、第3判定部32は、第1動作検出中に、検知対象物60の動作が終了したと判定した場合には、検出されている第2動作を検知対象物60のジェスチャーとする。したがって、第1動作及び第3動作とは異なり、第2動作検出部17で検出されても、すぐに検知対象物60のジェスチャーであると特定されない場合がある第2動作を検出しやすくすることができる。その結果、ジェスチャー検出装置1で、第2動作が検出されやすくなる。   Therefore, in the present embodiment, the third determination unit 32 determines that the time during which the detection target 60 is not present is longer than the predetermined time corresponding to the eleventh threshold, and the second operation detection unit 17 performs the second operation. Is detected as a gesture of the object 60 to be detected. In other words, when the third determination unit 32 determines that the operation of the detection target 60 has ended during the first motion detection, the third determination unit 32 sets the detected second motion as the gesture of the detection target 60. Therefore, unlike the first action and the third action, it is easy to detect the second action that may not be immediately identified as the gesture of the detection target 60 even if it is detected by the second action detector 17. Can do. As a result, the gesture detection device 1 can easily detect the second action.

図39のステップS111に戻り、ステップS110で取得されたz座標値が第10の閾値より小さい場合には(ステップS111でYes)、第3判定部32は、当該第3判定部32が保持する計測回数をクリアする(ステップS118)。そして、距離特定部31は、テーブル更新部11およびジェスチャー検出部13に処理を行わせる(ステップS1〜ステップS5)。第3判定部32は、ステップS110で取得されたz座標値が第10の閾値より小さい場合に、計測回数をクリアすることで、当該計測回数はジェスチャーを行う検知対象物60が連続して存在していない時間を示す。検知対象物60は、ジェスチャーを行う途中で、受光部102の受光面から一時的に離れてしまう可能性もある。そのため、第3判定部32が、ジェスチャーを行う検知対象物60が連続して存在していない時間を用いて判定を行うことで、より正確に検知対象物60の動作が終了したか否かを判定することができる。   Returning to step S111 in FIG. 39, if the z-coordinate value acquired in step S110 is smaller than the tenth threshold value (Yes in step S111), the third determination unit 32 holds the third determination unit 32. The number of measurements is cleared (step S118). And the distance specific | specification part 31 makes a table update part 11 and the gesture detection part 13 perform a process (step S1-step S5). The third determination unit 32 clears the number of measurements when the z-coordinate value acquired in step S110 is smaller than the tenth threshold value, so that the detection target 60 that performs the gesture continuously exists for the number of measurements. Indicates the time when not. There is a possibility that the detection object 60 may temporarily leave the light receiving surface of the light receiving unit 102 during the gesture. Therefore, the third determination unit 32 determines whether or not the operation of the detection target 60 has been completed more accurately by performing determination using the time when the detection target 60 to be gestured is not continuously present. Can be determined.

なお、図38に示されるように、本実施の形態では、距離特定部31と第3判定部32とを合わせて、検知対象物有無特定部33と呼ぶことがある。   As shown in FIG. 38, in the present embodiment, the distance specifying unit 31 and the third determining unit 32 may be collectively referred to as a detection target presence / absence specifying unit 33.

<<4.第三実施形態>>
第三実施形態では、検知対象物60の表面の凹凸によって、位置検出装置100で検出される座標値がばらつく場合について説明する。位置検出装置100で検出される座標値がばらつく場合には、例えば、実際には検知対象物60が動いていないにも関わらず、位置検出装置100で検出される座標値が変化することによりジェスチャー検出装置1の検出精度が低下する可能性がある。
<< 4. Third embodiment >>
In the third embodiment, a case will be described in which the coordinate values detected by the position detection device 100 vary due to the unevenness of the surface of the detection target 60. When the coordinate values detected by the position detection device 100 vary, for example, the gesture is caused by the change in the coordinate values detected by the position detection device 100 even though the detection target 60 is not actually moving. There is a possibility that the detection accuracy of the detection device 1 is lowered.

しかし、検知対象物60の表面の凹凸が原因による、位置検出装置100で検出される座標値の変化の量は小さい。したがって、本実施の形態では、テーブル更新部11は以下に説明する処理でテーブルを更新することにより、検知対象物60の表面の凹凸が原因による、ジェスチャー検出装置1の検出精度の低下を抑制する。なお、第三実施形態で説明する内容については、第一及び第二実施形態のそれぞれにおいて適用することできる。   However, the amount of change in the coordinate value detected by the position detection device 100 due to the unevenness of the surface of the detection target 60 is small. Therefore, in this Embodiment, the table update part 11 suppresses the fall of the detection accuracy of the gesture detection apparatus 1 due to the unevenness | corrugation of the surface of the detection target object 60 by updating a table by the process demonstrated below. . In addition, about the content demonstrated by 3rd embodiment, it can apply in each of 1st and 2nd embodiment.

図40は、図10に示されるテーブル更新部11の処理に対応する、本実施の形態に係るテーブル更新部11の処理を示す図である。図10に示される処理との違いは、ステップS22の前に、ステップS26の処理が挿入されている点である。   FIG. 40 is a diagram illustrating a process of the table update unit 11 according to the present embodiment, corresponding to the process of the table update unit 11 illustrated in FIG. The difference from the process shown in FIG. 10 is that the process of step S26 is inserted before step S22.

ステップS26の処理は、テーブル保持部12に保持されている第1テーブルに登録されている変化方向と、前回ジェスチャー検出装置1に入力されたx座標値に対する、今回ジェスチャー検出装置1に入力されたx座標値の変化の方向とが逆である場合に行われる。   The process of step S26 is input to the gesture detection device 1 this time with respect to the change direction registered in the first table held in the table holding unit 12 and the x coordinate value input to the gesture detection device 1 last time. This is performed when the direction of change of the x coordinate value is opposite.

ステップS26では、テーブル更新部11は、ステップS11で求められた差分値αの絶対値|α|が第12の閾値より大きいかを判定している。つまり、ステップS26では、前回ジェスチャー検出装置1に入力されたx座標値と、今回ジェスチャー検出装置1に入力されたx座標値との差が、検知対象物60の表面の凹凸が原因で発生した小さい変化であるかを判定している。第12の閾値の値は、検知対象物60の材質や照明条件によって決定される。   In step S26, the table updating unit 11 determines whether the absolute value | α | of the difference value α obtained in step S11 is larger than a twelfth threshold value. That is, in step S <b> 26, the difference between the x-coordinate value input to the gesture detection device 1 last time and the x-coordinate value input to the gesture detection device 1 this time has occurred due to the unevenness of the surface of the detection target 60. It is judged whether it is a small change. The value of the twelfth threshold is determined by the material of the detection object 60 and the illumination conditions.

ステップS11で求められた値の絶対値|α|が第12の閾値より大きい場合には(ステップS26でYes)、テーブル更新部11は、検知対象物60の表面の凹凸の影響によって座標値が変化したのではない判定して、第3動作検出部18に通知を行い(ステップS22)、テーブル保持部12に保持されている第1テーブルを初期化する(ステップS23)。   When the absolute value | α | of the value obtained in step S11 is larger than the twelfth threshold value (Yes in step S26), the table updating unit 11 determines that the coordinate value is affected by the unevenness of the surface of the detection target 60. It is determined that it has not changed, a notification is sent to the third motion detector 18 (step S22), and the first table held in the table holder 12 is initialized (step S23).

反対に、ステップS11で求められた差分値αの絶対値|α|が第12の閾値より小さい場合、もしくは第12の閾値と同じ値である場合には(ステップS26でNo)、テーブル更新部11は、検知対象物60の表面の凹凸の影響によって座標値が変化したと判定して、テーブル保持部12に保持されている第1テーブルを更新せずに処理を終了する。   On the other hand, when the absolute value | α | of the difference value α obtained in step S11 is smaller than the twelfth threshold value or the same value as the twelfth threshold value (No in step S26), the table update unit 11 determines that the coordinate value has changed due to the influence of the unevenness of the surface of the detection target 60, and ends the process without updating the first table held in the table holding unit 12.

このように、テーブル更新部11が、前回入力されたx座標値に対する、今回入力されたx座標値の変化の方向が、第1テーブルに保持されている変化方向と異なり、かつ前回入力されたx座標値と、今回入力されたx座標値との差が第12の閾値より小さい場合には、第1テーブルの更新を行わない。そのため、動作検出部14は、検知対象物60の表面の凹凸による影響を受けたx座標値に基づいて更新された第1テーブルに基づいて検出処理を行うことがない。その結果、ジェスチャー検出装置1のジェスチャーの検出精度が向上する。   In this way, the table updating unit 11 differs from the change direction held in the first table in the change direction of the x coordinate value input this time with respect to the x coordinate value input last time and is input last time. When the difference between the x coordinate value and the x coordinate value input this time is smaller than the twelfth threshold value, the first table is not updated. Therefore, the motion detection unit 14 does not perform the detection process based on the first table updated based on the x coordinate value affected by the unevenness of the surface of the detection target 60. As a result, the gesture detection accuracy of the gesture detection device 1 is improved.

なお、説明は省略するが、テーブル更新部11は、第2テーブルおよび第3テーブルに対しても上記と同様の処理を行う。   Although description is omitted, the table updating unit 11 performs the same process as described above for the second table and the third table.

<<5.第四実施形態>>
第四実施形態では、第三実施形態とは異なり、位置検出装置100からジェスチャー検出装置1に入力される座標値が、位置検出装置100の照明部101や、照明部101以外の光源の影響によってばらつく場合について説明する。このような、光源が要因である場合には、位置検出装置100で検出される座標値のばらつきは、短期間しか現れない。
<< 5. Fourth embodiment >>
In the fourth embodiment, unlike the third embodiment, the coordinate value input from the position detection device 100 to the gesture detection device 1 is influenced by the illumination unit 101 of the position detection device 100 or the influence of a light source other than the illumination unit 101. The case of variation will be described. When such a light source is a factor, variations in coordinate values detected by the position detection device 100 appear only for a short period.

したがって、本実施の形態では、位置検出装置100から出力された3つの座標値の中央値をテーブル更新部11に出力する出力部を備えることで、光源が原因による、ジェスチャー検出装置1の検出精度の低下を抑制する。なお、第四実施形態で説明する内容については、第一〜第三実施形態のそれぞれにおいて適用することできる。   Therefore, in this embodiment, by providing an output unit that outputs the median value of the three coordinate values output from the position detection device 100 to the table update unit 11, the detection accuracy of the gesture detection device 1 due to the light source is provided. Suppresses the decline. In addition, about the content demonstrated by 4th embodiment, it can apply in each of 1st-3rd embodiment.

図41は、第四実施形態に係る制御部10に形成される複数の機能ブロックの一部を示す図である。図42は、第四実施形態に係る制御部10での処理を説明するための図である。図41,42を参照しながら、本実施形態に係る制御部10の処理について以下に説明する。なお、以下に示される例では、ジェスチャー検出装置1にx座標値が入力された場合を例に挙げて説明するが、ジェスチャー検出装置1にy座標値およびz座標値が入力された場合も同様に考えることができる。   FIG. 41 is a diagram illustrating a part of a plurality of functional blocks formed in the control unit 10 according to the fourth embodiment. FIG. 42 is a diagram for explaining processing in the control unit 10 according to the fourth embodiment. The processing of the control unit 10 according to the present embodiment will be described below with reference to FIGS. In the example shown below, the case where the x coordinate value is input to the gesture detection device 1 will be described as an example, but the same applies to the case where the y coordinate value and the z coordinate value are input to the gesture detection device 1. Can think.

図41に示されるように、本実施形態に係る制御部10は、出力部35が備えられる。出力部35は、位置検出装置100から出力される検知対象物60の位置を示す座標値が入力される。そして、出力部35は、位置検出装置100から出力された3つの座標値の中央値をテーブル更新部11に出力する。   As shown in FIG. 41, the control unit 10 according to the present embodiment includes an output unit 35. The output unit 35 receives a coordinate value indicating the position of the detection target 60 output from the position detection device 100. Then, the output unit 35 outputs the median value of the three coordinate values output from the position detection device 100 to the table update unit 11.

図42に示されるように、まず出力部35は、位置検出装置100が出力したx座標値を取得する(ステップS120)。続いて、出力部35は、ステップS120で取得したx座標値を保持する(ステップS121)。続いて、出力部35は、3回分のx座標値を保持しているかを判定する(ステップS122)。3回分のx座標値が保持されていない場合には(ステップS122でNo)、出力部35は、ステップS120に戻り、次に位置検出装置100から出力されるx座標値を取得する。   As shown in FIG. 42, the output unit 35 first acquires the x-coordinate value output from the position detection device 100 (step S120). Subsequently, the output unit 35 holds the x coordinate value acquired in step S120 (step S121). Subsequently, the output unit 35 determines whether or not the x coordinate values for three times are held (step S122). If the x-coordinate values for three times are not held (No in step S122), the output unit 35 returns to step S120 and acquires the x-coordinate values output from the position detection device 100 next.

一方、3回分のx座標値が保持されている場合には(ステップS122でYes)、出力部35は、3回分のx座標値のうちの中央の値を選択する(ステップS123)。そして、テーブル更新部11は、ステップS123で選択されたx座標値に基づいて第1テーブルを更新し(ステップS1a)、第1動作検出部16は、ステップS1aで更新された第1テーブルと、ステップS1aが行われる前後にテーブル更新部11によって更新された第2テーブルもしくは第3テーブルとに基づいて、第1動作を検出し(ステップS2a)、第2動作検出部17は、ステップS1aで更新された第1テーブルに基づいて第2動作を検出し(ステップS3a)、第3動作検出部18はステップS1aで更新された第1テーブルに基づいて第3動作を検出し(ステップS4a)、特定部15は検知対象物60のジェスチャーを検出する(ステップS5)。   On the other hand, when the x coordinate value for three times is held (Yes in step S122), the output unit 35 selects the central value among the three x coordinate values (step S123). Then, the table updating unit 11 updates the first table based on the x coordinate value selected in step S123 (step S1a), and the first motion detection unit 16 includes the first table updated in step S1a, Based on the second table or the third table updated by the table update unit 11 before and after step S1a is performed, the first operation is detected (step S2a), and the second operation detection unit 17 is updated in step S1a. The second operation is detected on the basis of the first table (step S3a), and the third operation detector 18 detects the third operation on the basis of the first table updated in step S1a (step S4a). The part 15 detects the gesture of the detection target 60 (step S5).

出力部35は、ジェスチャー検出装置1に対してx座標値が3つ入力されるたびに、入力された3つのx座標値のうちの中央の座標値をテーブル更新部11に出力する。そのため、ジェスチャー検出装置1は、光源の影響が少ない座標値を用いて検知対象物60のジェスチャーを検出することができる。また、出力部35は、ジェスチャー検出装置1に入力される3つのx座標値の中央の値を出力することで、平均値の計算等を行わずに、簡単な処理によって、光源の影響が少ないx座標値を出力することができる。   Each time three x coordinate values are input to the gesture detection device 1, the output unit 35 outputs the central coordinate value of the three input x coordinate values to the table update unit 11. Therefore, the gesture detection apparatus 1 can detect the gesture of the detection target 60 using coordinate values that are less affected by the light source. Further, the output unit 35 outputs the central value of the three x-coordinate values input to the gesture detection device 1 so that the influence of the light source is small by simple processing without calculating the average value. An x-coordinate value can be output.

上記においてジェスチャー検出装置は詳細に説明されたが、上記した説明は、全ての局面において例示であって、この発明がそれに限定されるものではない。また、上述した各種の例は、相互に矛盾しない限り組み合わせて適用可能である。そして、例示されていない無数の変形例が、この発明の範囲から外れることなく想定され得るものと解される。   Although the gesture detection device has been described in detail above, the above description is illustrative in all aspects, and the present invention is not limited thereto. The various examples described above can be applied in combination as long as they do not contradict each other. And it is understood that the countless modification which is not illustrated can be assumed without deviating from the scope of the present invention.

1 ジェスチャー検出装置
11 テーブル更新部
12 テーブル保持部
13 ジェスチャー検出部
14 動作検出部
20 移動方向特定部
21 第1判定部
60 検知対象物
100 位置検出装置
DESCRIPTION OF SYMBOLS 1 Gesture detection apparatus 11 Table update part 12 Table holding part 13 Gesture detection part 14 Motion detection part 20 Movement direction specific | specification part 21 1st determination part 60 Detection target object 100 Position detection apparatus

Claims (19)

第1座標軸での検知対象物の位置を示す第1座標値が同一方向に連続して変化する回数、および前記第1座標値が同一方向に連続して変化する際の前記第1座標値の変化量の累積値のうちの少なくとも1つと、前記第1座標値が同一方向に連続して変化する際の前記第1座標値の変化方向とを含む、前記第1座標値に関する情報を保持する第1テーブルと、当該第1座標軸に垂直な第2座標軸での当該検知対象物の位置を示す第2座標値が同一方向に連続して変化する回数、および前記第2座標値が同一方向に連続して変化する際の前記第2座標値の変化量の累積値のうちの少なくとも1つと、前記第2座標値が同一方向に連続して変化する際の前記第2座標値の変化方向とを含む、前記第2座標値に関する情報を保持する第2テーブルとを保持するテーブル保持部と、
順次入力される前記第1座標値に基づいて前記第1テーブル内の前記第1座標値に関する情報を更新し、順次入力される前記第2座標値に基づいて前記第2テーブル内の前記第2座標値に関する情報を更新するテーブル更新部と、
前記第1及び第2テーブルに基づいて、前記検知対象物の動きパターンを検出するジェスチャー検出部と
を備える、ジェスチャー検出装置。
The number of times the first coordinate value indicating the position of the detection target object on the first coordinate axis continuously changes in the same direction, and the first coordinate value when the first coordinate value continuously changes in the same direction. Information regarding the first coordinate value is stored, including at least one of the accumulated values of the change amount and a change direction of the first coordinate value when the first coordinate value continuously changes in the same direction. The first table, the number of times the second coordinate value indicating the position of the detection object on the second coordinate axis perpendicular to the first coordinate axis continuously changes in the same direction, and the second coordinate value in the same direction At least one of the accumulated values of the amount of change of the second coordinate value when continuously changing, and the change direction of the second coordinate value when the second coordinate value continuously changes in the same direction; A second table holding information relating to the second coordinate value, A table holding section for lifting,
Information on the first coordinate value in the first table is updated based on the first coordinate values sequentially input, and the second in the second table is updated based on the second coordinate values sequentially input. A table update unit for updating information on coordinate values;
A gesture detection apparatus comprising: a gesture detection unit configured to detect a movement pattern of the detection target based on the first and second tables.
請求項1に記載のジェスチャー検出装置であって、
前記ジェスチャー検出部は、前記第1及び第2座標軸で特定される座標平面上で前記検知対象物が回転する第1動作を、前記第1及び第2テーブルに基づいて検出する動作検出部を備え、
前記ジェスチャー検出部は、前記動作検出部で検出される前記第1動作を前記動きパターンとし、
前記動作検出部は、
前記第1テーブルに基づいて、前記第1座標軸のプラス方向に沿った前記検出対象物の第1移動方向と、前記第1座標軸のマイナス方向に沿った前記検出対象物の第2移動方向とを特定し、前記第2テーブルに基づいて、前記第2座標軸のプラス方向に沿った前記検出対象物の第3移動方向と、前記第2座標軸のマイナス方向に沿った前記検出対象物の第4移動方向とを特定する移動方向特定部と、
前記移動方向特定部において前記検知対象物の移動方向が特定された順序が所定順序を示す場合に、前記検知対象物が前記第1動作を行っていると判定する判定部と
を有する、ジェスチャー検出装置。
The gesture detection device according to claim 1,
The gesture detection unit includes an operation detection unit that detects, based on the first and second tables, a first operation in which the detection target rotates on a coordinate plane specified by the first and second coordinate axes. ,
The gesture detection unit uses the first movement detected by the movement detection unit as the movement pattern,
The motion detector is
Based on the first table, a first movement direction of the detection object along the plus direction of the first coordinate axis and a second movement direction of the detection object along the minus direction of the first coordinate axis. Based on the second table, the third movement direction of the detection object along the plus direction of the second coordinate axis and the fourth movement of the detection object along the minus direction of the second coordinate axis based on the second table A moving direction specifying unit for specifying a direction;
Gesture detection comprising: a determination unit that determines that the detection target object is performing the first action when the order in which the movement direction of the detection target object is specified by the movement direction specification unit indicates a predetermined order apparatus.
請求項2に記載のジェスチャー検出装置であって、
前記判定部は、
前記移動方向特定部において前記検知対象物の移動方向が特定された順序を履歴情報として保持し、
前記履歴情報に基づいて、前記移動方向特定部において前記移動方向が特定された順序が前記所定順序を示すかどうかを判断し、
前記移動方向特定部で前記移動方向が特定されたとき、当該移動方向と前記履歴情報が示す前記移動方向特定部において前記検知対象物の移動方向が特定された順序との組み合わせが前記所定順序のうちの先頭から始まる部分に含まれる場合には前記履歴情報を更新し、当該組み合わせが前記所定順序のうちの先頭から始まる部分に含まれない場合には前記履歴情報をクリアする、ジェスチャー検出装置。
The gesture detection device according to claim 2,
The determination unit
The order in which the moving direction of the detection target is specified in the moving direction specifying unit is retained as history information,
Based on the history information, it is determined whether the order in which the moving direction is specified in the moving direction specifying unit indicates the predetermined order,
When the moving direction is specified by the moving direction specifying unit, a combination of the moving direction and the order in which the moving direction of the detection target is specified by the moving direction specifying unit indicated by the history information is the predetermined order. A gesture detection device that updates the history information when included in a portion starting from the top of the list, and clears the history information when the combination is not included in a portion starting from the top of the predetermined order.
請求項2に記載のジェスチャー検出装置であって、
前記判定部は、前記移動方向特定部において前記検知対象物の移動方向が特定された順序が、前記所定順序を含む複数種類の順序に含まれる場合に、前記検知対象物が前記第1動作を行っていると判定する、ジェスチャー検出装置。
The gesture detection device according to claim 2,
The determination unit performs the first operation when the order in which the movement direction of the detection target is specified by the movement direction specification unit is included in a plurality of types of orders including the predetermined order. A gesture detection device that determines that a user is performing.
請求項2に記載のジェスチャー検出装置であって、
前記第1動作には、前記座標平面上で前記検知対象物が第1方向に回転する第1回転動作と、前記座標平面上で前記検知対象物が前記第1方向とは反対の第2方向に回転する第2回転動作とが含まれ、
前記判定部は、
前記移動方向特定部において前記検知対象物の移動方向が特定された順序が第1所定順序を示す場合に、前記検知対象物が前記第1回転動作を行っていると判定し、
前記移動方向特定部において前記検知対象物の移動方向が特定された順序が前記第1所定順序とは異なる第2所定順序を示す場合に、前記検知対象物が前記第2回転動作を行っていると判定する、ジェスチャー検出装置。
The gesture detection device according to claim 2,
The first operation includes a first rotation operation in which the detection target object rotates in the first direction on the coordinate plane, and a second direction in which the detection target object is opposite to the first direction on the coordinate plane. And a second rotation operation that rotates
The determination unit
When the order in which the movement direction of the detection object is specified in the movement direction specifying unit indicates a first predetermined order, it is determined that the detection object is performing the first rotation operation;
The detection object performs the second rotation operation when the order in which the movement direction of the detection object is specified by the movement direction specifying unit indicates a second predetermined order different from the first predetermined order. A gesture detection device for determining
請求項5に記載のジェスチャー検出装置であって、
前記判定部は、
前記移動方向特定部において前記検知対象物の移動方向が特定された順序を履歴情報として保持し、
前記履歴情報に基づいて、前記移動方向特定部において前記移動方向が特定された順序が前記第1及び第2所定順序のいずれを示すかどうかを判断し、
前記移動方向特定部で前記移動方向が特定されたとき、当該移動方向と前記履歴情報が示す前記移動方向特定部において前記検知対象物の移動方向が特定された順序との組み合わせが、前記第1所定順序のうちの先頭から始まる部分及び前記第2所定順序のうちの先頭から始まる部分のいずれかに含まれる場合には前記履歴情報を更新し、当該組み合わせが前記第1所定順序のうちの先頭から始まる部分及び前記第2所定順序のうちの先頭から始まる部分のいずれにも含まれない場合には前記履歴情報をクリアする、ジェスチャー検出装置。
The gesture detection device according to claim 5,
The determination unit
The order in which the moving direction of the detection target is specified in the moving direction specifying unit is retained as history information,
Based on the history information, determine whether the order in which the moving direction is specified in the moving direction specifying unit indicates the first or second predetermined order,
When the moving direction is specified by the moving direction specifying unit, a combination of the moving direction and the order in which the moving direction of the detection target is specified by the moving direction specifying unit indicated by the history information is the first. The history information is updated when it is included in either the part starting from the beginning of the predetermined order or the part starting from the beginning of the second predetermined order, and the combination is the beginning of the first predetermined order A gesture detection device that clears the history information when it is not included in any of the part starting from the first part and the part starting from the beginning of the second predetermined order.
請求項5に記載のジェスチャー検出装置であって、
前記判定部は、
前記移動方向特定部において前記検知対象物の移動方向が特定された順序が、前記第1所定順序を含む複数種類の第1順序に含まれる場合に、前記検知対象物が前記第1回転動作を行っていると判定し、
前記移動方向特定部において前記検知対象物の移動方向が特定された順序が、前記第2所定順序を含む複数種類の第2順序に含まれる場合に、前記検知対象物が前記第2回転動作を行っていると判定する、ジェスチャー検出装置。
The gesture detection device according to claim 5,
The determination unit
When the order in which the movement direction of the detection target is specified by the movement direction specifying unit is included in a plurality of types of first orders including the first predetermined order, the detection target performs the first rotation operation. Determine that you are going,
When the order in which the movement direction of the detection target is specified by the movement direction specifying unit is included in a plurality of types of second orders including the second predetermined order, the detection target performs the second rotation operation. A gesture detection device that determines that a user is performing.
請求項2乃至請求項7のいずれか1つに記載のジェスチャー検出装置であって、
前記動作検出部は、前記第1座標軸に沿って前記検知対象物が動く第2動作を前記第1テーブルに基づいて検出し、
前記ジェスチャー検出部は、
前記動作検出部が前記第1及び第2動作の両方を検出したときには、前記第1動作を前記動きパターンとし、
前記動作検出部が前記第2動作を検出し、かつ前記第1動作を検出しないときには、前記第2動作を前記動きパターンとする、ジェスチャー検出装置。
A gesture detection device according to any one of claims 2 to 7,
The motion detection unit detects a second motion of the detection target moving along the first coordinate axis based on the first table,
The gesture detection unit
When the motion detection unit detects both the first and second motions, the first motion is the motion pattern,
A gesture detection device that uses the second motion as the motion pattern when the motion detection unit detects the second motion and does not detect the first motion.
請求項2乃至請求項7のいずれか1つに記載のジェスチャー検出装置であって、
前記テーブル保持部は、前記第1及び第2座標軸に垂直な第3座標軸での前記検知対象物の位置を示す第3座標値が同一方向に連続して変化する回数、および前記第3座標値が同一方向に連続して変化する際の前記第3座標値の変化量の累積値のうちの少なくとも1つと、前記第3座標値が同一方向に連続して変化する際の前記第3座標値の変化方向とを含む、前記第3座標値に関する情報を保持する第3テーブルを保持し、
前記テーブル更新部は、順次入力される前記第3座標値に基づいて前記第3テーブル内の前記第3座標値に関する情報を更新し、
前記動作検出部は、前記第3座標軸に沿って前記検知対象物が動く第2動作を前記第3テーブルに基づいて検出し、
前記ジェスチャー検出部は、
前記動作検出部が前記第1及び第2動作の両方を検出したときには、前記第1動作を前記動きパターンとし、
前記動作検出部が前記第2動作を検出し、かつ前記第1動作を検出しないときには、前記第2動作を前記動きパターンとする、ジェスチャー検出装置。
A gesture detection device according to any one of claims 2 to 7,
The table holding unit includes a number of times that a third coordinate value indicating a position of the detection target on a third coordinate axis perpendicular to the first and second coordinate axes continuously changes in the same direction, and the third coordinate value. And the third coordinate value when the third coordinate value continuously changes in the same direction, and at least one of the accumulated values of the change amounts of the third coordinate value when the value continuously changes in the same direction. A third table that holds information about the third coordinate value, including a change direction of
The table update unit updates information on the third coordinate value in the third table based on the third coordinate value sequentially input,
The motion detection unit detects a second motion of the detection target moving along the third coordinate axis based on the third table,
The gesture detection unit
When the motion detection unit detects both the first and second motions, the first motion is the motion pattern,
A gesture detection device that uses the second motion as the motion pattern when the motion detection unit detects the second motion and does not detect the first motion.
請求項2乃至請求項9のいずれか1つに記載のジェスチャー検出装置であって、
前記動作検出部は、前記第1座標軸に沿って前記検知対象物がプラス方向及びマイナス方向に交互に動く第3動作を前記第1テーブルに基づいて検出し、
前記ジェスチャー検出部は、
前記動作検出部が前記第3動作を検出したときには、前記第3動作を前記動きパターンとする、ジェスチャー検出装置。
A gesture detection device according to any one of claims 2 to 9,
The motion detection unit detects a third motion of the detection target alternately moving in the plus direction and the minus direction along the first coordinate axis based on the first table;
The gesture detection unit
A gesture detection device that uses the third motion as the motion pattern when the motion detection unit detects the third motion.
請求項2乃至請求項8のいずれか1つに記載のジェスチャー検出装置であって、
前記テーブル保持部は、前記1及び第2座標軸に垂直な第3座標軸での前記検知対象物の位置を示す第3座標値が同一方向に連続して変化する回数、および前記第3座標値が同一方向に連続して変化する際の前記第3座標値の変化量の累積値のうちの少なくとも1つと、前記第3座標値が同一方向に連続して変化する際の前記第3座標値の変化方向とを含む、前記第3座標値に関する情報を保持する第3テーブルを保持し、
前記テーブル更新部は、順次入力される前記第3座標値に基づいて前記第3テーブル内の前記第3座標値に関する情報を更新し、
前記動作検出部は、前記第3座標軸に沿って前記検知対象物がプラス方向およびマイナス方向に交互に動く第3動作を前記第3テーブルに基づいて検出し、
前記ジェスチャー検出部は、
前記動作検出部が前記第3動作を検出したときには、前記第3動作を前記動きパターンとする、ジェスチャー検出装置。
A gesture detection device according to any one of claims 2 to 8,
The table holding unit has a number of times that a third coordinate value indicating a position of the detection target on a third coordinate axis perpendicular to the first and second coordinate axes continuously changes in the same direction, and the third coordinate value is At least one of the accumulated values of the amount of change of the third coordinate value when continuously changing in the same direction, and the third coordinate value when the third coordinate value is continuously changing in the same direction. A third table that holds information about the third coordinate value, including a change direction;
The table update unit updates information on the third coordinate value in the third table based on the third coordinate value sequentially input,
The motion detection unit detects a third motion of the detection target alternately moving in the plus direction and the minus direction along the third coordinate axis based on the third table,
The gesture detection unit
A gesture detection device that uses the third motion as the motion pattern when the motion detection unit detects the third motion.
請求項3及び請求項6のいずれか1つに記載のジェスチャー検出装置であって、
前記第1及び第2座標値は、前記検知対象物の位置を検出し、前記座標平面に平行な検出面を有する位置検出装置から出力され、
前記位置検出装置は、前記第1及び第2座標軸に垂直な第3座標軸での前記検知対象物の位置を示す第3座標値を出力し、
前記動作検出部は、前記第1座標軸に沿って前記検知対象物が動く第2動作を前記第1テーブルに基づいて検出し、
前記第3座標値に基づいて、前記検知対象物が存在するか否かを特定する検知対象物有無特定部を更に備え、
前記ジェスチャー検出部は、
前記動作検出部が前記第1及び第2動作の両方を検出したときには、前記第1動作を前記動きパターンとし、
前記判定部が履歴情報を保持しておらず、かつ前記動作検出部によって前記第2動作が検出されているときには、当該第2動作を動きパターンとし、
前記検知対象物有無特定部によって前記検知対象物が存在すると特定された場合において、前記判定部が前記履歴情報を保持し、かつ前記動作検出部によって前記第2動作が検出されているときには、当該第2動作を前記動きパターンとせず、
前記検知対象物有無特定部によって前記検知対象物が存在しないと特定された場合において、前記判定部が前記履歴情報を保持し、かつ前記動作検出部によって前記第1動作が検出されず前記第2動作が検出されているときには、当該第2動作を前記動きパターンとする、ジェスチャー検出装置。
The gesture detection device according to any one of claims 3 and 6,
The first and second coordinate values are output from a position detection device that detects the position of the detection object and has a detection surface parallel to the coordinate plane,
The position detection device outputs a third coordinate value indicating a position of the detection object on a third coordinate axis perpendicular to the first and second coordinate axes;
The motion detection unit detects a second motion of the detection target moving along the first coordinate axis based on the first table,
A detection target presence / absence specifying unit for specifying whether or not the detection target exists based on the third coordinate value;
The gesture detection unit
When the motion detection unit detects both the first and second motions, the first motion is the motion pattern,
When the determination unit does not hold history information and the second motion is detected by the motion detection unit, the second motion is used as a motion pattern,
When the detection target is specified by the detection target presence / absence specifying unit, when the determination unit holds the history information and the second operation is detected by the operation detection unit, The second movement is not the movement pattern,
When the detection object presence / absence specifying unit specifies that the detection object does not exist, the determination unit holds the history information, and the operation detection unit does not detect the first operation and the second operation is not performed. A gesture detection device that uses the second movement as the movement pattern when a movement is detected.
請求項3及び請求項6のいずれか1つに記載のジェスチャー検出装置であって、
前記第1及び第2座標値は、前記検知対象物の位置を検出し、前記第1座標軸に垂直な検出面を有する位置検出装置から出力され、
前記動作検出部は、前記第1座標軸に沿って前記検知対象物が動く第2動作を前記第1テーブルに基づいて検出し、
前記第1座標値に基づいて前記検知対象物が存在するか否かを特定する検知対象物有無特定部を更に備え、
前記ジェスチャー検出部は、
前記動作検出部が前記第1及び第2動作の両方を検出したときには、前記第1動作を前記動きパターンとし、
前記判定部が履歴情報を保持しておらず、かつ前記動作検出部によって前記第2動作が検出されているときには、当該第2動作を動きパターンとし、
前記検知対象物有無特定部によって前記検知対象物が存在すると特定された場合において、前記判定部が前記履歴情報を保持し、かつ前記動作検出部によって前記第2動作が検出されているときには、当該第2動作を前記動きパターンとせず、
前記検知対象物有無特定部によって前記検知対象物が存在しないと特定された場合において、前記判定部が前記履歴情報を保持し、かつ前記動作検出部によって前記第1動作が検出されず前記第2動作が検出されているときには、当該第2動作を前記動きパターンとする、ジェスチャー検出装置。
The gesture detection device according to any one of claims 3 and 6,
The first and second coordinate values are output from a position detection device that detects a position of the detection object and has a detection surface perpendicular to the first coordinate axis,
The motion detection unit detects a second motion of the detection target moving along the first coordinate axis based on the first table,
A detection target presence / absence specifying unit for specifying whether or not the detection target exists based on the first coordinate value;
The gesture detection unit
When the motion detection unit detects both the first and second motions, the first motion is the motion pattern,
When the determination unit does not hold history information and the second motion is detected by the motion detection unit, the second motion is used as a motion pattern,
When the detection target is specified by the detection target presence / absence specifying unit, when the determination unit holds the history information and the second operation is detected by the operation detection unit, The second movement is not the movement pattern,
When the detection object presence / absence specifying unit specifies that the detection object does not exist, the determination unit holds the history information, and the operation detection unit does not detect the first operation and the second operation is not performed. A gesture detection device that uses the second movement as the movement pattern when a movement is detected.
請求項3及び請求項6のいずれか1つに記載のジェスチャー検出装置であって、
前記第1及び第2座標値は、前記検知対象物の位置を検出し、前記座標平面に平行な検出面を有する位置検出装置から出力され、
前記位置検出装置は、前記第1及び第2座標軸に垂直な第3座標軸での前記検知対象物の位置を示す第3座標値を出力し、
前記テーブル保持部は、前記第3座標値が同一方向に連続して変化する回数、および前記第3座標値が同一方向に連続して変化する際の前記第3座標値の変化量の累積値のうちの少なくとも1つと、前記第3座標値が同一方向に連続して変化する際の前記第3座標値の変化方向とを含む、前記第3座標値に関する情報を保持する第3テーブルを保持し、
前記テーブル更新部は、前記位置検出装置が順次出力する前記第3座標値に基づいて前記第3テーブル内の前記第3座標値に関する情報を更新し、
前記動作検出部は、前記第3座標軸に沿って前記検知対象物が動く第2動作を前記第3テーブルに基づいて検出し、
前記第3座標値に基づいて前記検知対象物が存在するか否かを特定する検知対象物有無特定部を更に備え、
前記ジェスチャー検出部は、
前記動作検出部が前記第1及び第2動作の両方を検出したときには、前記第1動作を前記動きパターンとし、
前記判定部が履歴情報を保持しておらず、かつ前記動作検出部によって前記第2動作が検出されているときには、当該第2動作を動きパターンとし、
前記検知対象物有無特定部によって前記検知対象物が存在すると特定された場合において、前記判定部が前記履歴情報を保持し、かつ前記動作検出部によって前記第2動作が検出されているときには、当該第2動作を前記動きパターンとせず、
前記検知対象物有無特定部によって前記検知対象物が存在しないと特定された場合において、前記判定部が前記履歴情報を保持し、かつ前記動作検出部によって前記第1動作が検出されず前記第2動作が検出されているときには、当該第2動作を前記動きパターンとする、ジェスチャー検出装置。
The gesture detection device according to any one of claims 3 and 6,
The first and second coordinate values are output from a position detection device that detects the position of the detection object and has a detection surface parallel to the coordinate plane,
The position detection device outputs a third coordinate value indicating a position of the detection object on a third coordinate axis perpendicular to the first and second coordinate axes;
The table holding unit is a cumulative value of the number of times the third coordinate value continuously changes in the same direction, and a change amount of the third coordinate value when the third coordinate value continuously changes in the same direction. A third table that holds information about the third coordinate value, including at least one of the third coordinate value and a change direction of the third coordinate value when the third coordinate value continuously changes in the same direction. And
The table update unit updates information on the third coordinate value in the third table based on the third coordinate value sequentially output by the position detection device,
The motion detection unit detects a second motion of the detection target moving along the third coordinate axis based on the third table,
A detection target presence / absence specifying unit for specifying whether or not the detection target exists based on the third coordinate value;
The gesture detection unit
When the motion detection unit detects both the first and second motions, the first motion is the motion pattern,
When the determination unit does not hold history information and the second motion is detected by the motion detection unit, the second motion is used as a motion pattern,
When the detection target is specified by the detection target presence / absence specifying unit, when the determination unit holds the history information and the second operation is detected by the operation detection unit, The second movement is not the movement pattern,
When the detection object presence / absence specifying unit specifies that the detection object does not exist, the determination unit holds the history information, and the operation detection unit does not detect the first operation and the second operation is not performed. A gesture detection device that uses the second movement as the movement pattern when a movement is detected.
請求項3及び請求項6のいずれか1つに記載のジェスチャー検出装置であって、
前記第1及び第2座標値は、前記検知対象物の位置を検出し、前記第1座標軸に垂直な検出面を有する位置検出装置から出力され、
前記位置検出装置は、前記第1及び第2座標軸に垂直な第3座標軸での前記検知対象物の位置を示す第3座標値を出力し、
前記テーブル保持部は、前記第3座標値が同一方向に連続して変化する回数、および前記第3座標値が同一方向に連続して変化する際の前記第3座標値の変化量の累積値のうちの少なくとも1つと、前記第3座標値が同一方向に連続して変化する際の前記第3座標値の変化方向とを含む、前記第3座標値に関する情報を保持する第3テーブルを保持し、
前記テーブル更新部は、前記位置検出装置が順次出力する前記第3座標値に基づいて前記第3テーブル内の前記第3座標値に関する情報を更新し、
前記動作検出部は、前記第3座標軸に沿って前記検知対象物が動く第2動作を前記第3テーブルに基づいて検出し、
前記第1座標値に基づいて、前記検知対象物が存在するか否かを特定する検知対象物有無特定部を更に備え、
前記ジェスチャー検出部は、
前記動作検出部が前記第1及び第2動作の両方を検出したときには、前記第1動作を前記動きパターンとし、
前記判定部が履歴情報を保持しておらず、かつ前記動作検出部によって前記第2動作が検出されているときには、当該第2動作を動きパターンとし、
前記検知対象物有無特定部によって前記検知対象物が存在すると特定された場合において、前記判定部が前記履歴情報を保持し、かつ前記動作検出部によって前記第2動作が検出されているときには、当該第2動作を前記動きパターンとせず、
前記検知対象物有無特定部によって前記検知対象物が存在しないと特定された場合において、前記判定部が前記履歴情報を保持し、かつ前記動作検出部によって前記第1動作が検出されず前記第2動作が検出されているときには、当該第2動作を前記動きパターンとする、ジェスチャー検出装置。
The gesture detection device according to any one of claims 3 and 6,
The first and second coordinate values are output from a position detection device that detects a position of the detection object and has a detection surface perpendicular to the first coordinate axis,
The position detection device outputs a third coordinate value indicating a position of the detection object on a third coordinate axis perpendicular to the first and second coordinate axes;
The table holding unit is a cumulative value of the number of times the third coordinate value continuously changes in the same direction, and a change amount of the third coordinate value when the third coordinate value continuously changes in the same direction. A third table that holds information about the third coordinate value, including at least one of the third coordinate value and a change direction of the third coordinate value when the third coordinate value continuously changes in the same direction. And
The table update unit updates information on the third coordinate value in the third table based on the third coordinate value sequentially output by the position detection device,
The motion detection unit detects a second motion of the detection target moving along the third coordinate axis based on the third table,
A detection object presence / absence specifying unit for specifying whether or not the detection object exists based on the first coordinate value;
The gesture detection unit
When the motion detection unit detects both the first and second motions, the first motion is the motion pattern,
When the determination unit does not hold history information and the second motion is detected by the motion detection unit, the second motion is used as a motion pattern,
When the detection target is specified by the detection target presence / absence specifying unit, when the determination unit holds the history information and the second operation is detected by the operation detection unit, The second movement is not the movement pattern,
When the detection object presence / absence specifying unit specifies that the detection object does not exist, the determination unit holds the history information, and the operation detection unit does not detect the first operation and the second operation is not performed. A gesture detection device that uses the second movement as the movement pattern when a movement is detected.
請求項1乃至請求項15のいずれか1つに記載のジェスチャー検出装置であって、
前記テーブル更新部は、前記第1座標値が入力されたとき、前回入力された前記第1座標値に対する、今回入力された前記第1座標値の変化の方向が、前記第1テーブルに保持されている前記変化方向と異なり、かつ前回入力された前記第1座標値と今回入力された前記第1座標値との差が閾値より小さい場合には、前記第1テーブルを更新しない、ジェスチャー検出装置。
The gesture detection device according to any one of claims 1 to 15,
When the first coordinate value is input, the table update unit holds a change direction of the first coordinate value input this time with respect to the first coordinate value input last time in the first table. A gesture detection device that does not update the first table when the difference between the first coordinate value input last time and the first coordinate value input this time is smaller than a threshold value. .
請求項1乃至請求項16のいずれか1つに記載のジェスチャー検出装置であって、
前記ジェスチャー検出装置に対して前記第1座標値が3つ入力されるたびに、入力された3つの前記第1座標値のうちの中央の座標値を前記テーブル更新部に出力する出力部をさらに備える、ジェスチャー検出装置。
The gesture detection device according to any one of claims 1 to 16,
An output unit that outputs a central coordinate value of the three input first coordinate values to the table update unit each time three first coordinate values are input to the gesture detection device; A gesture detection device.
第1座標軸での検知対象物の位置を示す第1座標値に関する情報を保持する第1テーブルと、当該第1座標軸に垂直な第2座標軸での当該検知対象物の位置を示す第2座標値に関する情報を保持する第2テーブルとを保持するジェスチャー検出装置の動作方法であって、
前記第1テーブル内の前記第1座標値に関する情報は、前記第1座標値が同一方向に連続して変化する回数、および前記第1座標値が同一方向に連続して変化する際の前記第1座標値の変化量の累積値のうちの少なくとも1つと、前記第1座標値が同一方向に連続して変化する際の前記第1座標値の変化方向とを含み、前記第2テーブル内の前記第2座標値に関する情報は、前記第2座標値が同一方向に連続して変化する回数、および前記第2座標値が同一方向に連続して変化する際の前記第2座標値の変化量の累積値のうちの少なくとも1つと、前記第2座標値が同一方向に連続して変化する際の前記第2座標値の変化方向とを含み、
(a)前記ジェスチャー検出装置に順次入力される前記第1座標値に基づいて前記第1テーブル内の前記第1座標値に関する情報を更新し、前記ジェスチャー検出装置に順次入力される前記第2座標値に基づいて前記第2テーブル内の前記第2座標値に関する情報を更新する工程と、
(b)前記工程(a)で更新された前記第1及び第2テーブルに基づいて、前記検知対象物の動きのパターンを検出する工程と
を備える、ジェスチャー検出装置の動作方法。
A first table that holds information about a first coordinate value indicating the position of the detection target object on the first coordinate axis, and a second coordinate value indicating the position of the detection target object on the second coordinate axis perpendicular to the first coordinate axis An operation method of the gesture detection device holding a second table holding information about
The information related to the first coordinate value in the first table includes the number of times the first coordinate value continuously changes in the same direction, and the first time when the first coordinate value continuously changes in the same direction. At least one of the accumulated values of the change amount of one coordinate value and the change direction of the first coordinate value when the first coordinate value continuously changes in the same direction, The information on the second coordinate value includes the number of times the second coordinate value continuously changes in the same direction and the amount of change in the second coordinate value when the second coordinate value continuously changes in the same direction. And at least one of the cumulative values of the second coordinate value and a change direction of the second coordinate value when the second coordinate value continuously changes in the same direction,
(A) Updating the information on the first coordinate value in the first table based on the first coordinate value sequentially input to the gesture detection device, and the second coordinate sequentially input to the gesture detection device Updating information relating to the second coordinate value in the second table based on a value;
(B) A method of operating a gesture detection device, comprising: detecting a movement pattern of the detection target object based on the first and second tables updated in the step (a).
第1座標軸での検知対象物の位置を示す第1座標値に関する情報を保持する第1テーブルと、当該第1座標軸に垂直な第2座標軸での当該検知対象物の位置を示す第2座標値に関する情報を保持する第2テーブルとを保持するジェスチャー検出装置を制御するための制御プログラムであって、
前記第1テーブル内の前記第1座標値に関する情報は、前記第1座標値が同一方向に連続して変化する回数、および前記第1座標値が同一方向に連続して変化する際の前記第1座標値の変化量の累積値のうちの少なくとも1つと、前記第1座標値が同一方向に連続して変化する際の前記第1座標値の変化方向とを含み、
前記第2テーブル内の前記第2座標値に関する情報は、前記第2座標値が同一方向に連続して変化する回数、および前記第2座標値が同一方向に連続して変化する際の前記第2座標値の変化量の累積値のうちの少なくとも1つと、前記第2座標値が同一方向に連続して変化する際の前記第2座標値の変化方向とを含み、
前記ジェスチャー検出装置に、
(a)前記ジェスチャー検出装置に順次入力される前記第1座標値に基づいて前記第1テーブル内の前記第1座標値に関する情報を更新し、前記ジェスチャー検出装置に順次入力される前記第2座標値に基づいて前記第2テーブル内の前記第2座標値に関する情報を更新する工程と、
(b)前記工程(a)で更新された前記第1及び第2テーブルに基づいて、前記検知対象物の動きのパターンを検出する工程と
を実行させるための制御プログラム。
A first table that holds information about a first coordinate value indicating the position of the detection target object on the first coordinate axis, and a second coordinate value indicating the position of the detection target object on the second coordinate axis perpendicular to the first coordinate axis A control program for controlling a gesture detection device that holds a second table that holds information about
The information related to the first coordinate value in the first table includes the number of times the first coordinate value continuously changes in the same direction, and the first time when the first coordinate value continuously changes in the same direction. Including at least one of accumulated values of the change amount of one coordinate value and a change direction of the first coordinate value when the first coordinate value continuously changes in the same direction;
The information regarding the second coordinate value in the second table includes the number of times the second coordinate value continuously changes in the same direction, and the second time when the second coordinate value continuously changes in the same direction. Including at least one of the accumulated values of the change amounts of the two coordinate values, and the change direction of the second coordinate values when the second coordinate value continuously changes in the same direction,
In the gesture detection device,
(A) Updating the information on the first coordinate value in the first table based on the first coordinate value sequentially input to the gesture detection device, and the second coordinate sequentially input to the gesture detection device Updating information relating to the second coordinate value in the second table based on a value;
(B) A control program for executing a step of detecting a motion pattern of the detection object based on the first and second tables updated in the step (a).
JP2014074178A 2014-03-31 2014-03-31 Gesture detection device, operation method of gesture detection device, and control program Active JP6322029B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014074178A JP6322029B2 (en) 2014-03-31 2014-03-31 Gesture detection device, operation method of gesture detection device, and control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014074178A JP6322029B2 (en) 2014-03-31 2014-03-31 Gesture detection device, operation method of gesture detection device, and control program

Publications (2)

Publication Number Publication Date
JP2015197724A true JP2015197724A (en) 2015-11-09
JP6322029B2 JP6322029B2 (en) 2018-05-09

Family

ID=54547383

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014074178A Active JP6322029B2 (en) 2014-03-31 2014-03-31 Gesture detection device, operation method of gesture detection device, and control program

Country Status (1)

Country Link
JP (1) JP6322029B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017104525A1 (en) * 2015-12-17 2017-06-22 コニカミノルタ株式会社 Input device, electronic device, and head-mounted display

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11149563A (en) * 1997-11-19 1999-06-02 Sharp Corp Information processor, its method and storage medium for recording information processing program
JP2000200151A (en) * 1999-01-07 2000-07-18 Nec Corp Cursor controller and control method
JP2003178259A (en) * 2001-09-19 2003-06-27 Ricoh Co Ltd Information processor, control method for information processor and program for executing this method by computer
JP2006331210A (en) * 2005-05-27 2006-12-07 Mitsubishi Electric Corp User interface device and user interface method
JP2007172577A (en) * 2005-11-25 2007-07-05 Victor Co Of Japan Ltd Operation information input apparatus
JP2007316882A (en) * 2006-05-25 2007-12-06 Mitsubishi Electric Corp Remotely-controlled device and method
US20090289905A1 (en) * 2008-05-22 2009-11-26 Ktf Technologies, Inc. Touch input recognition methods and apparatuses
WO2011092746A1 (en) * 2010-01-29 2011-08-04 三菱電機株式会社 Map information processing device
JP2011166409A (en) * 2010-02-09 2011-08-25 Panasonic Corp Motion-recognizing remote-control receiving device, and motion-recognizing remote-control control method
JP2012123608A (en) * 2010-12-08 2012-06-28 Nippon Syst Wear Kk Gesture recognition device, method, program and computer readable medium storing program
JP2012203737A (en) * 2011-03-25 2012-10-22 Kyocera Corp Electronic device, control method and control program
JP2012203563A (en) * 2011-03-24 2012-10-22 Dainippon Printing Co Ltd Operation input detection device using touch panel
WO2013191450A1 (en) * 2012-06-20 2013-12-27 Samsung Electronics Co., Ltd. Information display apparatus and method of user device
JP2014026355A (en) * 2012-07-25 2014-02-06 Hitachi Consumer Electronics Co Ltd Image display device and image display method

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11149563A (en) * 1997-11-19 1999-06-02 Sharp Corp Information processor, its method and storage medium for recording information processing program
JP2000200151A (en) * 1999-01-07 2000-07-18 Nec Corp Cursor controller and control method
JP2003178259A (en) * 2001-09-19 2003-06-27 Ricoh Co Ltd Information processor, control method for information processor and program for executing this method by computer
JP2006331210A (en) * 2005-05-27 2006-12-07 Mitsubishi Electric Corp User interface device and user interface method
JP2007172577A (en) * 2005-11-25 2007-07-05 Victor Co Of Japan Ltd Operation information input apparatus
JP2007316882A (en) * 2006-05-25 2007-12-06 Mitsubishi Electric Corp Remotely-controlled device and method
US20090289905A1 (en) * 2008-05-22 2009-11-26 Ktf Technologies, Inc. Touch input recognition methods and apparatuses
WO2011092746A1 (en) * 2010-01-29 2011-08-04 三菱電機株式会社 Map information processing device
JP2011166409A (en) * 2010-02-09 2011-08-25 Panasonic Corp Motion-recognizing remote-control receiving device, and motion-recognizing remote-control control method
JP2012123608A (en) * 2010-12-08 2012-06-28 Nippon Syst Wear Kk Gesture recognition device, method, program and computer readable medium storing program
JP2012203563A (en) * 2011-03-24 2012-10-22 Dainippon Printing Co Ltd Operation input detection device using touch panel
JP2012203737A (en) * 2011-03-25 2012-10-22 Kyocera Corp Electronic device, control method and control program
WO2013191450A1 (en) * 2012-06-20 2013-12-27 Samsung Electronics Co., Ltd. Information display apparatus and method of user device
JP2014026355A (en) * 2012-07-25 2014-02-06 Hitachi Consumer Electronics Co Ltd Image display device and image display method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017104525A1 (en) * 2015-12-17 2017-06-22 コニカミノルタ株式会社 Input device, electronic device, and head-mounted display

Also Published As

Publication number Publication date
JP6322029B2 (en) 2018-05-09

Similar Documents

Publication Publication Date Title
JP5767464B2 (en) Information processing apparatus, information processing apparatus control method, and program
KR102297330B1 (en) Method for controlling display and an electronic device thereof
US20140351753A1 (en) Method and apparatus for user interface based on gesture
JP6052956B2 (en) Shape analysis method and shape analysis program
JP5738707B2 (en) Touch panel
JP2013178636A5 (en)
US20150212698A1 (en) Virtual mouse for a touch screen device
CN111159800B (en) Method and device for automatically generating 3D model based on CAD file
KR20150091365A (en) Multi-touch symbol recognition
US20160155248A1 (en) System and Method for Interactive Sketch Recognition Based on Geometric Contraints
JP2013122625A (en) Information processing device, input device, input device module, program, and input processing method
JP2017506399A (en) System and method for improved touch screen accuracy
JP6322029B2 (en) Gesture detection device, operation method of gesture detection device, and control program
JP6212201B2 (en) Pan and scaling detection during multi-finger touch interaction
JP2015215701A5 (en) Information processing apparatus, information processing method, and program
JP2015230693A5 (en) Information processing apparatus, information processing method, and computer program
US20210141442A1 (en) Image processing apparatus, image processing method, and program
JP2017148481A5 (en)
CN111385813B (en) System and method for loop duration measurement in repeated activity sequences
Kim et al. Pointing gesture interface for large display environments based on the kinect skeleton model
US9811926B2 (en) Touch screen gesture for perfect simple line drawings
JP2015084173A5 (en)
JP2013196030A (en) Information processing device, information processing method, and information processing program
JP2021124485A (en) Shape detection method, shape detection system, and program
JP6542389B2 (en) System and method for estimating drawing objects

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170223

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20171128

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20171130

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180112

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180406

R150 Certificate of patent or registration of utility model

Ref document number: 6322029

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150