gesture-recognition

Whether multiple points make up for a circle? [closed]

假如想象 提交于 2019-12-04 04:14:06
If I have e.g. 20 points, how can i check to see if those points make up for a circle? It doesnt have to be a perfect circle. For example if I store the coordinates of my mouse every 200ms (as the user moves the mouse), I want to see if the user makes a circle gesture. And I cant expect the user to make a perfect circle. I'd do the following; Compute a best fit circle through the points Calculate a residual for each point (the join distance from the centre to the point minus the best fit circle radius) Accept the result if a large enough percentage of the residuals were below a certain value

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

﹥>﹥吖頭↗ 提交于 2019-12-04 03:06:56
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 activity: public class MyGlView extends GLSurfaceView { private GestureDetectorCompat m_gestureDetector = null; public MyGlView(Context context, AttributeSet attrs) { super(context, attrs); init(context); } public MyGlView(Context context) { super(context); init(context); } private void init(Context context) { if (m_gestureDetector == null) m

Disable gesture recognizer iOS

*爱你&永不变心* 提交于 2019-12-04 02:00:25
问题 i'm developing a application for gestures recognizer for iPad and i want to disable the default gesture recognizer of the iOS. When i ask a way do disable the gestures recognizer is using my own application, so i need a way using some functions of the api and not using the settings way. 回答1: The four- and five- finger gestures are not officially part of iOS, and may never be. Though it would be best to figure out an alternative, you should be able to use these gestures for now and not fear

How does handwriting recognition apps for the iOS recognize my handwriting? [duplicate]

陌路散爱 提交于 2019-12-03 20:56:32
This question already has answers here : Closed 8 years ago . Possible Duplicate: Is there an handwriting recognition library for IOS? I'm building an app for the iPad that can recognize handwriting and I was wandering if there is library/framework for doing that? Does someone knows how does the other apps do that? do they use OCR or Gesture recognition? I know that there are many questions here about that subject but I haven't came across a satisfying answer. Thanks. I've tested a lot of HWR/OCR libs. Here are great handwriting-recognition libs: http://www.hanvon.com/en/products/index.html

Gesture to text recognition, OCR or Gesture based, native .NET library

混江龙づ霸主 提交于 2019-12-03 17:33:57
I'm working on a project for Windows Phone 7 and what I need is a library for recognizing shapes into text. The current task is very simple. I have a canvas, and I use Touch.FrameReported event to detect the points and just add them to a Polyline inside the canvas. Next I need this Polyline (which I can convert to bitmap, shape, whatever) to be recognized as a letter, closest match. I don't want service based library. Everything I've found so far are wrappers around COM functions. It appears there's not any good OCR library written entirely in managed code that could be used in a WP7

Using webcam to track hand gestures

老子叫甜甜 提交于 2019-12-03 16:08:05
I wanted to develop a program which uses the webcam to track four colours and which are going to be on my index finger and thumb of both my hands and according to the gestures of my hand the computer will interpret these gestures and carry out a command. For example if I have a website open, all I have to do is pinch with my fingers and the webpage will zoom. I wanted the advice of the stackoverflow community as to where to start and whether anyone has any advice for me. Thanks in advance. You could look at Johnny Chung Lee's work with the Wii Remote: http://www.youtube.com/watch?v=0awjPUkBXOU

How do I chain two UIGestureRecognizers together?

流过昼夜 提交于 2019-12-03 12:35:33
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 the action to surrounding objects. I have a swipe gesture recognizer and a pan gesture recognizer. It seems to me that the ideal way to make them behave the way I want is to do this: [myPanGestureRecognizer requireGestureRecognizerToSucceed:mySwipeGestureRecognizer]; But although I was sure that I hadn't just imagined

Gestures not working when using DrawerLayout in Android app

旧城冷巷雨未停 提交于 2019-12-03 12:16:55
I have an Android app with a single Activity. This activity uses this layout: <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent"> <!-- The main content view --> <FrameLayout android:id="@+id/content_frame" android:layout_width="match_parent" android:layout_height="match_parent" /> <!-- The navigation drawer --> <ListView android:id="@+id/left_drawer" android:layout_width="240dp" android:layout_height="match_parent" android:layout_gravity=

Detect user's gesture such as swipe

本小妞迷上赌 提交于 2019-12-03 11:06:59
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! fil maj I use a JavaScript framework called xui ( homepage ) that has a similar API to jQuery. You can use this framework coupled with the swipe plugin to get access to easy gesture events. See the swipe/ directory under that repository for the code and example (specifically under index.html). A brief example: x$('body').swipe(function(e, data) { console.log('type:' + data.type + ' deltaX:' + data.deltaX + ' deltaY:' + data.deltaY + '

How to recognize continuous touch in Swift?

巧了我就是萌 提交于 2019-12-03 09:47:23
问题 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. 回答1: The most difficult thing about this process is tracking single touches within a multitouch environment. The issue with the "simple" solution to this (i.e., turn "istouched" on in touchesBegan and turn it off in touchesEnded ) is that if the user touches