Questions tagged [gesture-recognition]

Anything related to gesture recognition, i.e. the process of recognizing the gestures of a human user by a machine.

Anything related to gesture recognition, i.e. the process of recognizing the gestures of a human user by a machine.

590 questions
25
votes
4 answers

how detect swipe gesture direction?

i need to detect direction of my swipe gesture and i've got problem with it. gesture is working, but i don't know how to detect direction. ... swipeGesture = [[UISwipeGestureRecognizer alloc] initWithTarget:self…
23
votes
1 answer

Do I need to release a gesture recognizer?

If I add a gesture recognizer to a table cell called cell, e.g.: UILongPressGestureRecognizer *_longPressRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self…
22
votes
2 answers

Store orientation to an array - and compare

I want to achieve the following: I want the user to be able to "record" the movement of the iPhone using the gyroscope. And after that, the user should be able to replicate the same movement. I extract the pitch, roll and yaw using: …
Mikael
  • 3,572
  • 1
  • 30
  • 43
22
votes
1 answer

Implementing pinch zoom and drag using Android's build in gesture listener and scale listener

I am trying to implement pinch zoom and drag using Android's gesture listener and scale listener. The problem is that when I perform pinch zoom, the image (which I am trying to zoom) bounces to a particular location. Also the zoom position is not…
20
votes
2 answers

Why doesn't SwiftUI onTapGesture always work

The onTapGesture in SWiftUI doesn't work reliably. This example shows the problem, which is that sometimes when you tap on a cell, the background changes to grey as it should, and another time an adjacent cell changes and at other time nothing…
Jmcg
  • 239
  • 2
  • 9
20
votes
4 answers

How to do Gesture Recognition using Accelerometers

My goal is to recognize simple gestures from accelerometers mounted on a sun spot. A gesture could be as simple as rotating the device or moving the device in several different motions. The device currently only has accelerometers but we are…
smaclell
  • 4,568
  • 7
  • 41
  • 49
19
votes
6 answers

What methods/algorithms are used for gesture recognition in a multi-touch environment?

In a multi-touch environment, how does gesture recognition work? What mathematical methods or algorithms are utilized to recognize or reject data for possible gestures? I've created some retro-reflective gloves and an IR LED array, coupled with a…
mmcdole
  • 91,488
  • 60
  • 186
  • 222
19
votes
1 answer

Using android gesture on top of menu buttons

What I want is to have an options menu where the user can choose to navigate the menu between: Touching a button and then pressing down on the trackball to select it Drawing predefined gestures from Gestures Builder As it stands now, I have…
user264427
  • 221
  • 1
  • 3
17
votes
1 answer

How to detect doubletap on a View?

Possible Duplicate: Android - basic gesture detection I'm trying to have a View sensitive to double taps on an Android. So far, I learned to set up the double tap and know what place to handle the event for action: API:…
Johnson Tey
  • 209
  • 1
  • 2
  • 8
17
votes
5 answers

Simple circular gesture detection

I'm looking at a simple, programmatic way of detecting whether or not the user has drawn a circular shape. I'm working in C, but am happy to work from pseudo-code. A bit of Googling brings up a number of (hopefully) overly-complex methods. I'm…
ndg
  • 2,585
  • 2
  • 33
  • 58
16
votes
1 answer

How to access Letter Recognizer API in Android?

I am creating a gesture application. In the Gesture class docs http://developer.android.com/reference/android/gesture/Gesture.html) it reads: "A user-defined gesture can be recognized by a GestureLibrary and a built-in alphabet gesture can be…
Navigatron
  • 2,065
  • 6
  • 32
  • 61
15
votes
2 answers

Current state of OpenCV hand gesture recognition?

What is the current state of hand gesture recognition in OpenCV? I have seen great examples of being able to detect hand gestures (e.g. https://www.andol.me/1661/) but recognising gestures and performing some action (e.g. manipulating on-screen…
Danny King
  • 1,941
  • 6
  • 24
  • 37
15
votes
1 answer

OpenCV - approxPolyDP for edge maps (not contours)

I have successfully applied the method cv::approxPolyDP on contours (cv::findContours), in order to represent a contour with a simpler polygon and implicitly do some denoising. I would like to do the same thing on an edge map acquired from an RGBD…
dim_tz
  • 1,451
  • 5
  • 20
  • 37
14
votes
1 answer

Does having variations of gestures in gesture library improve recognition?

I'm working on implementing gesture recognition in my app, using the Gestures Builder to create a library of gestures. I'm wondering if having multiple variations of a gesture will help or hinder recognition (or performance). For example, I want…
Andy Dennie
  • 6,012
  • 2
  • 32
  • 51
13
votes
1 answer

UIPanGestureRecognizer does not switch to state "End" or "Cancel" if user panned x and y in negative direction

I've got a little problem with the UIPanGestureRecognizer. The Recognizer does not report the UIGestureRecognizerStateEnded state if the user panned to the top left (means negative x and y directions) The state changes to…
Dunkelstern
  • 1,624
  • 12
  • 18
1
2
3
39 40