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
13
votes
4 answers

How to Implement Swipe In Android Game Without View

I'm trying to make a Snake game on Android in which the snake moves with swipe gestures. I've tried a lot of ways to get this done but none of them seem to work for me. I haven't implemented a view - will that be a problem? This is a sample I tried…
Caife
  • 415
  • 1
  • 5
  • 16
12
votes
1 answer

Finger tracking / counting using OpenCV convex hull and Convexity Defect functions

I have been working on a basic hand/finger tracking code using OpenCV and the ConvexHull and ConvexityDefects method. Basically I am able to create a contour of the hand. I now need to be able to count the number of fingers. I know that the start…
user1061512
  • 121
  • 1
  • 1
  • 4
12
votes
2 answers

Detect user's gesture such as swipe

I am using phonegap for build android apps. I would like to detect user's gesture such as a user's swipe. Is there an event i can call from javascript? Thanks!
Dayzza
  • 1,561
  • 7
  • 18
  • 29
11
votes
3 answers

How do I implement a wave gesture in kinect?

I would like to use a gesture, so the kinect can select the person with the gesture as the main player. After this he can control the PC. Selecting the person and giving them control is done. Now i have to implement a gesture, but i dont know how to…
Letoir
  • 395
  • 7
  • 15
11
votes
4 answers

Flutter: How to implement Rotate and Pan/Move gesture for any container?

I have implemented the Scale gesture for the container. Also, I have added onHorizontalDragUpdate and onVerticalDragUpdate. But when I try to add both, I get an exception saying can't implement both with Scale gesture. Even for Pan gesture, it…
Ankur Prakash
  • 1,417
  • 4
  • 18
  • 31
11
votes
3 answers

How to recognize continuous touch in Swift?

How can I recognize continuous user touch in Swift code? By continuous I mean that the user has her finger on the screen. I would like to move a sprite kit node to the direction of user's touch for as long as the user is touching screen.
user3673836
  • 591
  • 1
  • 9
  • 23
11
votes
1 answer

GestureDetector.SimpleOnGestureListener and GestureDetectorCompat don't work. What's wrong with my code?

I'm following Detecting common gestures guide. I have linked to android-support-v4.jar library to get GestureDetectorCompat, and my code seems exactly the same as in the guide, except I'm detecting gestures in my custom view rather than in…
Violet Giraffe
  • 32,368
  • 48
  • 194
  • 335
11
votes
4 answers

How to do pinch gestures on the iPhone?

How does one implement pinch gestures on the iPhone? I'm familiar with using touch events on the iPhone but I'm extremely lazy and don't want to re-invent the wheel for something as widespread as PINCH gestures...Source code or links thereto would…
RexOnRoids
  • 14,002
  • 33
  • 96
  • 136
10
votes
1 answer

Android - swipe left|right . gesture detection

was trying to add this "gesture" function to my first program, and almost every search I did came to this thread: Fling gesture detection on grid layout I was able to get it working.. but in my case, I am not sure if it's 100 % correct. In my…
cornelyus
  • 139
  • 1
  • 2
  • 12
10
votes
3 answers

How to zoom image inside ListView in flutter

I'm writing a Flutter app and I'd like to know how to use/implement a zoomable image inside a ListView. I have used below plugins in my app. flutter_advanced_networkimage GitHub - DartPackages flutter_zoomable_image GitHub - DartPackages Neither…
Erfan Jazeb Nikoo
  • 978
  • 3
  • 12
  • 36
10
votes
1 answer

Embedding a UICollectionView in a UIScrollView works almost perfectly

Background I embedded a UICollectionView inside of a UIScrollView and it works almost perfectly. Goal The scrollable elements should pass off the scroll seamlessly once they've reached the end of their contentViews. When I swipe down on the…
10
votes
1 answer

How do I chain two UIGestureRecognizers together?

What I would like to do is to detect a swipe gesture followed by a pan gesture as part of the same touch sequence. So the user first swipes an object to carry out an action, then, while keeping their finger on the screen, moves up/down to propagate…
oldbeamer
  • 1,285
  • 2
  • 15
  • 24
10
votes
1 answer

Gestures not working when using DrawerLayout in Android app

I have an Android app with a single Activity. This activity uses this layout:
David Moreno García
  • 4,423
  • 8
  • 49
  • 82
10
votes
1 answer

Using GestureLibrary with ScrollView

As I mentioned on title, app has a ScrollView and a GestureDetector too. Outside of ScrollView's touch events, GestureDetector handling swipe actions like left to right and right to left. They're all working well. Now I want to add a GestureLibrary…
Ogulcan Orhan
  • 5,170
  • 6
  • 33
  • 49
9
votes
1 answer

How to track ONE person with Kinect (trackingID)

I would like to track the first person, and use this person's right hand to navigate in the application that I made. I can take over the cursor, now I just want only one person being tracked. So basically when one person is navigating in the…
Letoir
  • 395
  • 7
  • 15
1 2
3
39 40