chrismiles / cmunistrokegesturerecognizer Goto Github PK
View Code? Open in Web Editor NEWA port of the $1 Unistroke Recognizer (aka Dollar Gesture Recognizer) to iOS as a UIGestureRecognizer.
A port of the $1 Unistroke Recognizer (aka Dollar Gesture Recognizer) to iOS as a UIGestureRecognizer.
I'm using your project to detect if user draws a circle. The detection is fine. However, I'd like to know if it's a circle detected, then what is it's center and radius.
Can you help me with this?
Hi,
Thanks for the great code! Anyway, do you think how hard it'll be to make this code recognize multi-stroke?
I am thinking of recognizing the first stroke, filter the 3 templates with highest percentage and wait for the second and....
Any suggestion is much appreciated!
It fails to recognise straight lines. unistrokeRecognizerPathDistance
uses GLKVector2Distance
and GLKVector2Distance
can return nan. I guess you should check for that
I found the following crash while adding a new template.
I am using IOS 5.0 simulator.
2012-12-28 03:14:44.447 CMUnistrokeDemo[1402:c07] -[CMUnistrokeGestureRecognizer isUnistrokeRecognized] Recognized: result->score = 0.648028 result->name = 'Check'
2012-12-28 03:14:46.406 CMUnistrokeDemo[1402:c07] -[CMUnistrokeGestureRecognizer isUnistrokeRecognized] NOT Recognized
2012-12-28 03:14:51.599 CMUnistrokeDemo[1402:c07] -[CMUnistrokeGestureRecognizer isUnistrokeRecognized] Recognized: result->score = 0.678593 result->name = 'Delete'
2012-12-28 03:14:59.601 CMUnistrokeDemo[1402:c07] -[CMUnistrokeGestureRecognizer isUnistrokeRecognized] Recognized: result->score = 0.852226 result->name = 'Star'
2012-12-28 03:16:12.941 CMUnistrokeDemo[1402:c07] -[CMUnistrokeGestureRecognizer isUnistrokeRecognized] Recognized: result->score = 0.754231 result->name = 'Right Curly Brace'
2012-12-28 03:16:21.794 CMUnistrokeDemo[1402:c07] -[UITableView dequeueReusableCellWithIdentifier:forIndexPath:]: unrecognized selector sent to instance 0x7b63400
2012-12-28 03:16:21.857 CMUnistrokeDemo[1402:c07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITableView dequeueReusableCellWithIdentifier:forIndexPath:]: unrecognized selector sent to instance 0x7b63400'
*** First throw call stack:
(0x1376052 0x106cd0a 0x1377ced 0x12dcf00 0x12dcce2 0x7638 0x275e0f 0x276589 0x261dfd 0x270851 0x21b301 0x1377e72 0xfb92d 0x105827 0x8bfa7 0x8dea6 0x8d580 0x134a9ce 0x12e1670 0x12ad4f6 0x12acdb4 0x12acccb 0x217b879 0x217b93e 0x1dca9b 0x64cd 0x1c45 0x1)
terminate called throwing an exception(lldb)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.