gesture-recognition

Android onClick blocking onFling

独自空忆成欢 提交于 2019-12-10 13:33:43
问题 I have an Activity that implements a Gesture Detector to catch the user fling input for navigation to other screens. That was working fine - but - I recently updated a class that derives from BaseActivity to add an onClick function and now that click event seems to block the onFling from being hit. The onClick is tied to a TextView area (in a LinearLayout) I have on my screen. The resultsClick method is wired to the TextView using its onClick property in the XML layout. I've tried changing

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

社会主义新天地 提交于 2019-12-09 13:46:18
问题 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. 回答1: I've tested a lot

Using webcam to track hand gestures

我是研究僧i 提交于 2019-12-09 11:46:08
问题 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.

iOS - detect when more than one finger is on the screen

我只是一个虾纸丫 提交于 2019-12-08 16:18:34
问题 I'm looking for the best way to detect more than one finger on the screen at time. I'm not detecting taps or pinching, just the fact that more than one touch is happening. There don't seem to be any gesture recognizers for that. What's the best way? 回答1: In the touchesBegan, touchesMoved, and touchesEnded methods, one parameter is event, which is a UIEvent object. The number of fingers on the screen is [[event allTouches]count]. [EDITED because Josh Hinman pointed out that I had it wrong

Blackberry Storm Emulator - TouchGesture events not firing, how to get a Swipe to work?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-07 14:00:04
问题 Been playing with the Storm Emulator and the 4.7 JDE, for the life of me I can't figure out how to fire gesture events in the emulator. Below is the touch event code for the RIM sample app EmbeddedMapDemo. It seems straightforward enough, but touchGesture.getEvent() == TouchGesture.SWIPE never seems to register to true. How can I register swipes in the Emulator? With my mouse I try doing left-click and drag but that does not seem to work. /** * @see Field#touchEvent(TouchEvent) */ protected

How to track ONE person with Kinect (trackingID)

家住魔仙堡 提交于 2019-12-06 21:10:54
问题 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 program, and there are people walking behind him or are looking with this guy, if they move, the kinect shouldn't recognise anyone else. How can I implement this, I know it's something with the trackingId but what? :s foreach (SkeletonData s in

How to calculate the diameter of the TouchPoint on an iPhone,iPad and Android Device?

只谈情不闲聊 提交于 2019-12-06 14:02:40
Now i understand we can have 5 touch points by default in iPhone and have varied touch points enabled onto the different SDKs. However i have accomplished registering the touch points and getting distances, actual number of touch points. I would want to know if there's a way to accomplish and get the Diameter of a particular touch point for e.g. calculating the thumb touch in comparison with the index finger, Any ideas? I think Apple makes it fairly clear that they don't intend to give third-party developers access to low-level multi-touch information. From Apple's documentation on Event

iOS - Advancing an Animation in Realtime While Panning with UIPanGestureRecognizer

亡梦爱人 提交于 2019-12-06 11:50:01
Basically I want to replicate the spinning of a globe. In the real world you'd put your finger on the globe and and move it to the right and while you are moving your finger the globe spins to the right. On an iPhone it's not that simple... It could be something as simple as a finger comes down on the screen and point X is grabbed and then when the finger moves one pixel to the right the globe spines one frame to the right and the origin changes to the new spot. Then if the finger moves back to the original spot the globe spin one frame to the left. All with out picking up your finger... So

Swipe detection in any angle

烂漫一生 提交于 2019-12-06 03:23:30
问题 Is there any way I can detect swipe in iPhone in any angle? UISwipeGestureRecognizer seems to have only 4 directions. If I swipe like this: \ \ \ X I want it to give me something like 60 degrees and not just down like the UISwipeGestureRecognizer . How can I do this? 回答1: You can use a UIPanGestureRecognizer . When you detect the Ended state you can get the velocity. The velocity is broken into x and y components. You can use the x and y components to calculate the slope, m. m = ∆y / ∆x The

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

你。 提交于 2019-12-05 23:50:19
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . 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