青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

Gesture recognition

LINK: http://wiki.nuigroup.com/Gesture_recognition

Contents

[hide]

Background

Touchlib does a fine job of picking out contacts within the input surface. At the moment, there is no formal way of defining how those blob contacts are translated into intended user actions. Some of this requires application assistance to provide context, but some of it is down to pattern matching the appearance, movement and loss of individual blobs or combined blobs.

What I'm attempting to describe here, and for others to contribute to, is a way of


  1. Describing a standard library of gestures suitable for the majority of applications
  2. A library of code that supports the defined gestures, and generates events to the application layer


By using an XML dialect to describe gestures, it means that individual applications can specify their range of supported gestures to the Gesture Engine. Custom gestures can be supported.

By loosely coupling gesture recognition to the application, we can allow people to build different types of input device and plug them all into the same applications where appropriate.

In the early stages of development, we are all doing our own thing with minimal overlap. Over time we will realise the benefits of various approaches, and by using some standardised interfaces, we can mix and match to take advantage of the tools that work best for our applications. Hard coded interfaces or internal gesture recognition will tie you down and potentially make your application obsolete as things move on.

I'd really appreciate some feedback on this - this is just my take on how to move this forward a little at this stage.

Gesture Definition Markup Langauge

GDML is a proposed XML dialect that describes how events on the input surface are built up to create distinct gestures.

Tap Gesture

<gdml>
<gesture name="tap">
<comment>
A 'tap' is considered to be equivalent to the single click event in a
normal windows/mouse environment.
</comment>
<sequence>
<acquisition type="blob"/>
<update>
<range max="10" />
<size maxDiameter="10" />
<duration max="250" />
</update>
<loss>
<event name="tap">
<var name="x" />
<var name="y" />
<var name="size" />
</event>
</loss>
</sequence>
</gesture>
</gdml>

The gesture element defines the start of a gesture, and in this case gives it the name 'tap'.

The sequence element defines the start of a sequence of events that will be tracked. This gesture is considered valid whilst the events sequence remains valid.

The acquisition element defines that an acquisition event should be seen (fingerDown in Touchlib). This tag is designed to be extensible to input events other than blob, such as fiduciary markers, real world objects or perhaps facial recognition for input systems that are able to distinguish such features.

The update element defines the allowed parameters for the object once acquired. If the defined parameters become invalid during tracking of the gesture, the gesture is no longer valid.

The range element validates that the current X and Y coordinates of the object are within the specified distance of the original X and Y coordinates. range should ultimately support other validations, such as 'min'.

The size element validates that the object diameter is within the specified range. Again, min and other validations of size could be defined. Size allows you to distinguish between finger and palm sized touch events for example.

The duration element defines that the object should only exist for the specified time period (milliseconds). If the touch remains longer than this period, its not a 'tap', but perhaps a 'move' or 'hold' gesture.

The loss element defines what should occur when the object is lost from the input device.

The event element defines that the gesture library should generate a 'tap' event to the application layer, providing the x, y, and size variables.

Double Tap Gesture

<gesture name="doubleTap">
<comment>
A 'doubleTap' gesture is equivalent to the double click event in a normal
windows/mouse environment.
</comment>
<sequence>
<gestureRef id="A" name="tap" />
<duration max="250" />
<gestureRef id="B" name="tap">
<onEvent name="acquisition">
<range objects="A,B" max="10" />
</onEvent>
<onEvent name="tap">
<range objects="A,B" max="10" />
<event name="doubleTap">
<var name="x" />
<var name="y" />
<var name="size" />
</event>
</onEvent>
</gestureRef>
</sequence>
</gesture>

This example shows how more complex gestures can be built from simple gestures. A double tap gesture is in effect, two single taps with a short space between. The taps should be within a defined range of each other, so that they are not confused with taps in different regions of the display.

Note that the gesture is not considered invalid if a tap is generated in another area of the display. GestureLib will discard it and another tap within the permitted range will complete the sequence.

In the case of double tap, an initial tap gesture is captured. A timer is then evaluated, such that the gesture is no longer valid if the specified duration expires. However, if a second tap is initiated, it is checked to make sure that it is within range of the first. range is provided with references to the objects that need comparing (allowing for other more complex gestures to validate subcomponents of the gesture). This is done at the point of acquisition of the second object.

Once the second tap is complete and the event raised, range is again validated, and an event generated to inform the application of the gesture.

Move Gesture

<gesture name="move">
<comment>
A 'move' is considered to be a sustained finger down incorporating
movement away from the point of origin (with potential return during
the transition).
</comment>
<sequence>
<aquisition type="blob" />
<update>
<range min="5" />
<event name="move">
<var name="x" />
<var name="y" />
<var name="size" />
</event>
</update>
<loss>
<event name="moveComplete">
<var name="x" />
<var name="y" />
<var name="size" />
</event>
</loss>
</sequence>
</gesture>

Zoom Gesture

<gesture name="zoom">
<comment>
A 'zoom' is considered to be two objects that move towards or away from
each other in the same plane.
</comment>
<sequence>
<compound>
<gestureRef id="A" name="move">
<gestureRef id="B" name="move">
</compound>
<onEvent name="move">
<plane objects="A,B" maxVariance="5" />
<event name="zoom">
<var name="plane.distance" />
<var name="plane.centre" />
</event>
</onEvent>
<onEvent name="moveComplete">
<plane objects="A,B" maxVariance="5" />
<event name="zoomComplete">
<var name="plane.distance" />
<var name="plane.centre" />
</event>
</onEvent>
</sequence>
</gesture>

A zoom gesture is a compound of two move gestures.

The compound element defines that the events occur in parallel rather than series.

The plane element calculates the line between the two objects, and checks the maximum variance in the angle from its initial (so you can distinguish between a zoom and a rotate, for example).

'move' events from either object are translated into zoom events to the application.

Rotate Gesture

<gesture name="rotate">
<comment>
A 'rotate' is considered to be two objects moving around a central axis
</comment>
<sequence>
<compound>
<gestureRef id="A" name="move">
<gestureRef id="B" name="move">
</compound>
<onEvent name="move">
<axis objects="A,B" range="5" />
<event name="rotate">
<var name="axis.avgX" />
<var name="axis.avgY" />
<var name="axis.angleMax" />
</event>
</onEvent>
<onEvent name="moveComplete">
<axis objects="A,B" range="5" />
<event name="rotateComplete">
<var name="axis.avgX" />
<var name="axis.avgY" />
<var name="axis.angleMax" />
</event>
</onEvent>
</sequence>
</gesture>

The axis element calculates the midpoint between two objects and compares current position against the initial.

GestureLib - A Gesture Recognition Engine

GestureLib does not currently exist!

The purpose of GestureLib is to provide an interface between Touchlib (or any other blob/object tracking software), and the application layer. GestureLib analyses object events generated by Touchlib, and creates Gesture related events to the application for processing.

GestureLib reads gesture definitions defined in GDML, and the operates a pattern matching principle to those gestures to determine which gestures are in progress.

Why GestureLib?

My feeling is that this functionality should be separated from Touchlib, a) for the sake of clarity, and b) because its quite likely that working solutions for a high performance multi-touch environment will require distributed processing. i.e. one system doing blob tracking, another doing gesture recognition, and a further system for the application. If you can get all of your components within the same machine, then excellent, but modularity gives a great deal of flexibility and scalability.

Proposed Processing

When a object is acquired, GestureLib sends an event to the application layer providing the basic details of the acquired object, such as coordinates and size. The application can then provide context to GestureLib about the gestures that are allowed in this context.

For example, take a photo light table type application. This will have a background canvas (which might support zoom and pan/move gestures), and image objects arranged on the canvas. When the user touches a single photo, the application can inform GestureLib that the applicable gestures for this object are 'tap', 'move' and 'zoom'.

GestureLib now starts tracking further incoming events knowing that for this particular object, only three gestures are possible. Based on the allowable parameters for the defined gestures, GestureLib is then able to determine over time which unique gesture is valid. For example if a finger appears, it could be a tap, move or potentially a zoom if another finger appears. If the finger is quickly released, only a tap gesture is possible (assuming that a move must contain a minimum time or distance parameter). If the finger moves outside the permitted range for a tap, tap can be excluded, and matching continues with only move or zoom. Zoom is invalid until another finger appears, but would have an internal timeout that means the introduction of another finger later in the sequence can be treated as a separate gesture (perhaps another user, or the same user interacting with another part of the application).

Again, the application can be continually advised of touch events so that it can continue to provide context, without needing to do the math to figure out the exact gesture.

posted on 2009-05-12 14:41 zmj 閱讀(1437) 評論(0)  編輯 收藏 引用


只有注冊用戶登錄后才能發(fā)表評論。
網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            欧美日韩在线观看视频| 一区二区三区成人| 久久精品一区四区| 久久激情五月激情| 亚洲精选在线观看| 亚洲欧美成人网| 在线日韩精品视频| 一区二区三区 在线观看视频 | 午夜在线电影亚洲一区| 欧美在线免费视屏| 一区二区三区精品久久久| 亚洲字幕在线观看| 亚洲欧洲在线观看| 欧美一级二区| 亚洲最黄网站| 久久精品国产免费看久久精品| 亚洲肉体裸体xxxx137| 亚洲欧美激情一区二区| 亚洲精品美女91| 久久成人精品| 亚洲一区二区三区乱码aⅴ蜜桃女| 欧美中文字幕在线播放| 99热在这里有精品免费| 久久免费视频在线观看| 午夜精品亚洲| 欧美高清在线观看| 久久亚洲私人国产精品va| 欧美性猛片xxxx免费看久爱| 欧美成人官网二区| 国产专区精品视频| 亚洲图片在线| 99re热这里只有精品视频| 久久久综合网站| 久久激情综合| 国产精品欧美精品| 一卡二卡3卡四卡高清精品视频| 精品成人一区二区三区四区| 亚洲欧美日韩直播| 亚洲欧美大片| 欧美日韩国产999| 一区二区av| 麻豆精品91| 精品成人一区| 久久久久久久一区二区| 亚洲综合精品一区二区| 欧美日韩国产欧| 在线亚洲欧美专区二区| 国产精品久久婷婷六月丁香| 亚洲一线二线三线久久久| 亚洲美女91| 欧美精品在线视频| 在线天堂一区av电影| 亚洲精品女av网站| 欧美中文字幕在线观看| 在线电影国产精品| 久久亚洲国产成人| 狠狠色综合网| 亚洲国产视频一区| 欧美特黄视频| 一本色道久久综合亚洲精品按摩| 欧美视频一区二区| 亚洲一区二区3| 亚洲视频日本| 国产一区二区三区精品久久久| 亚洲免费av电影| 亚洲精品一区二| 亚洲一级一区| 9色国产精品| 夜夜嗨av一区二区三区网站四季av| 欧美日韩在线视频一区二区| 亚洲尤物在线| 久久精品伊人| 一本色道久久99精品综合 | 久久夜色精品国产| 亚洲精品欧美一区二区三区| 亚洲天堂av在线免费| 国产日本精品| 亚洲人成网站999久久久综合| 欧美日韩综合| 老司机午夜精品| 欧美片网站免费| 翔田千里一区二区| 免费中文日韩| 久久精品综合一区| 欧美日韩不卡一区| 欧美99在线视频观看| 国产精品久久看| 亚洲人成人一区二区在线观看| 国产一区二区三区久久| 亚洲精品日韩综合观看成人91| 国产精品一区免费视频| 亚洲福利视频二区| 国产片一区二区| 亚洲精品视频一区二区三区| 国产一区二区无遮挡| 99精品国产在热久久下载| 国产在线视频不卡二| 一区二区三区久久精品| 91久久精品一区二区三区| 午夜精品一区二区三区在线视 | 亚洲一区综合| 在线视频精品一区| 久久综合九色综合欧美就去吻| 欧美一区网站| 欧美亚日韩国产aⅴ精品中极品| 欧美激情欧美狂野欧美精品| 国产一区视频在线看| 亚洲欧美在线免费| 亚洲私人黄色宅男| 欧美日产在线观看| 亚洲第一在线综合网站| 亚洲电影成人| 久久亚洲一区二区| 久久人人九九| 国产视频一区二区在线观看| 中文国产一区| 亚洲欧美日韩网| 激情六月婷婷久久| 欧美成人精品在线观看| 国产欧美精品国产国产专区| 亚洲一区二区三区久久| 在线亚洲一区二区| 欧美精品亚洲一区二区在线播放| 亚洲福利一区| 亚洲精品免费一区二区三区| 美女网站在线免费欧美精品| 免费黄网站欧美| 亚洲高清免费| 欧美黄色免费网站| 亚洲日本成人| 亚洲一区二区在线观看视频| 国产精品v日韩精品v欧美精品网站| 在线视频日韩| 午夜精品久久久久99热蜜桃导演| 欧美三级精品| 久久国产精品久久久久久久久久 | 性色av一区二区三区在线观看| 欧美天堂亚洲电影院在线观看 | 亚洲人成啪啪网站| 欧美久久影院| 一区二区电影免费观看| 先锋亚洲精品| 在线播放日韩| 欧美精品一区二区三区蜜臀| 一本不卡影院| 香蕉久久夜色精品国产| 欧美主播一区二区三区| 国产视频一区在线观看一区免费 | 亚洲人精品午夜在线观看| 欧美片第一页| 亚洲欧美日韩在线高清直播| 免费日韩成人| 在线亚洲一区二区| 国产一区二区三区免费在线观看| 久久蜜桃精品| 日韩一区二区精品视频| 欧美在线免费观看| 亚洲国产精品久久久久久女王| 欧美片第一页| 久久精品二区亚洲w码| 亚洲国产精品久久久久婷婷老年| 亚洲一区影音先锋| 精品不卡在线| 欧美性淫爽ww久久久久无| 久久精品国产综合| 亚洲美女中出| 美女免费视频一区| 亚洲视频高清| 精品白丝av| 国产精品高潮久久| 免费亚洲婷婷| 欧美亚洲免费在线| 亚洲精品系列| 久久久午夜精品| 亚洲性感激情| 91久久精品美女高潮| 国产一区二区三区在线免费观看 | 亚洲欧美不卡| 在线日本欧美| 国产精品一区二区三区观看| 欧美电影打屁股sp| 午夜亚洲性色福利视频| 欧美激情一区二区三区| 久久国产精品久久久久久| 亚洲精品一区二区网址| 国产日韩亚洲欧美精品| 欧美日韩一区二区在线| 久久在线视频在线| 午夜一级在线看亚洲| 一二三区精品福利视频| 欧美高清在线精品一区| 久久久国产午夜精品| 亚洲欧美美女| 亚洲最新在线视频| 亚洲欧洲日本一区二区三区| 激情综合色综合久久| 国产日韩欧美a| 国产精品永久| 国产精品久久毛片a| 国产精品久久久久天堂|