Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by michellejean · Mar 14, 2013 at 09:33 PM · inputrecognitiongestures

Need advice on custom finger gesture recognition

hi, im fairly new to unity and need some advice. I am creating a program where I need the to create custom finger gestures. I looked at fingergestures in the asset store, however it seems to be for making regular gestures (swipe, pinch etc) easier to deal with. I want to make my program reconize specific one finger gestures assigned by me. for example I want my program to be able to tell if a user used their finger to input a circle or a small letter e. any help would be appreciated. Thanks

Comment
Add comment · Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image AlucardJay · Mar 14, 2013 at 11:17 PM 1
Share

I really hope you get an answer, but unfortunately there is little to no information on this. I have been working on my own custom gestures, and this was the only thing I found. I didn't download the zip as I assume it's for xCode (iOS), but ins$$anonymous$$d followed the basic description of the algorithm, well the touch position logging stuff then I jumped straight to 3 (check total number of points, if < 12, not a circle) : http://iphonedevelopment.blogspot.com.au/2009/04/detecting-circle-gesture.html

So far I can detect a circle and a straight line. $$anonymous$$y square is getting there, but at the moment it has to be drawn parallel to the screen. Basically for the type of gestures you are looking for, you have to work out the logic and code it yourself.

One last thing I recently saw and bookmarked was for a 2-finger scroll : http://answers.unity3d.com/questions/406598/two-finger-scroll-gesture-recognizing-on-iphone.html

avatar image Philipp · Mar 14, 2013 at 11:32 PM 2
Share

I haven't tried working with it myself, but there's a liberally licensed c# library called "$1 Recognizer" that might be what you're looking for: http://depts.washington.edu/aimgroup/proj/dollar/

It has a pretty impressive browser-based demo as well!

avatar image hoy_smallfry · Mar 14, 2013 at 11:36 PM 1
Share

Perhaps this tutorial/course may be helpful, if you interested in learning how to make a pattern recognizer from scratch but don't know where to start:

http://www.cedar.buffalo.edu/~srihari/CSE555/

avatar image MountDoomTeam · Mar 15, 2013 at 01:40 AM 0
Share

http://programmers.stackexchange.com/questions/185683/gesture-recognition-and-management-paradigms

...

http://www.google.co.uk/#hl=en≻lient=psy-ab&q=gesture+recognition+points+compare+2D&oq=gesture+recognition+points+compare+2D&gs_l=serp.3...6183.6183.6.6239.1.1.0.0.0.0.0.0..0.0.les%3B..0.0...1c.1.5.serp.Zq0WSWURrB0&psj=1&bav=on.2,or.r_qf.&fp=c4123f922dd4a43&biw=1620&bih=996

avatar image AlucardJay · Mar 15, 2013 at 07:07 AM 0
Share

ZoomDomain I got excited when I saw these links, however your first one is just an unanswered question (by Heisenbug, who we are very happy to have as a member here too!). But you have shown some search strings which I didn't think of, so that's handy, thankyou. The links provided by Philipp and jbarba_ballytech look very interesting, so glad that all of you could share some resources to help learn the secrets of the algorythms for detecting complex gestures. Oo, I havn't searched that one either! .... Ok so now that search string has revealed $recognizer which I hadn't heard of until Philipps comment. Looks like that's the place to start, thanks.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by michellejean · Mar 27, 2013 at 04:01 PM

Hi everyone. thanks for your all your help and advice. I went through all of the links given and I ended up using $P recognizer which is a more recent version of $dollar recognizer. I was able to implement this into my program and it is working quite well. Here is the link http://depts.washington.edu/aimgroup/proj/dollar/pdollar.html

I was able to take the sample c# script provided and adapt it to my program without too much trouble. It says the code is for .net 4.0 however the only parts of the code requiring .net 4.0 are the parts of the sample program which does user input/forms/gui ect. The actual part of the program which does calculations works fine with unity. I just had to make my gesture templates and user input into classes $p could work with.

So in short, this is possible using $p and the results have been good for the project I am making :)

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image devain · Apr 07, 2013 at 09:59 AM 0
Share

Any chance you could share a bare-bones version of this implementation? I'm in a similar situation myself.

avatar image Griever_GF · Jun 26, 2015 at 07:36 AM 0
Share

link text

Check this source code files (InputGestures.cs for reading current gesture points (touch/mouse) & DataGestures.cs for reading prevously saved gestures X$$anonymous$$L files (need to put it to "Assets/Resources/TextData/GestureSet") & analyzing current gesture. For using PDollar library just copy 4 files (Geometry.cs, Gesture.cs, Point.cs & PointCloudRecognizer.cs) to project, no need in DLLs.

pdollar-unity.zip (2.6 kB)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

18 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Kinect - Gesture Recognition 1 Answer

Help In Making a SphereCast for 3D Tire! Working RayCast Script included! 0 Answers

Horizontal Scrolling on a Trackpad (MacOS X) 2 Answers

Wand Gesture Recognition 0 Answers

Gesture Recognition (e.g. circle, numbers) from many x, y coordination system values (Google Daydream) 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges