You are hereBlogs / marv's blog / Video: iPhone Shape Drawing

Video: iPhone Shape Drawing


By marv - Posted on 08 December 2008

Here is another little demo I want to show you guys. It's an app for the iPhone / iPod Touch I hacked up a few weeks ago, and allows you to draw shapes using the multi-touch screen. The app recognizes the shape you are attempting to draw, and replaces your squiggle with a nice clean version. Check out the video after the jump and please let me know what you think!

I must admit I have no clue how this application works internally, but the shape recognition is really accurate! Are there easy and straightforward algorithms behind this? And btw. how is programming for the iPhone? Cocoa/Objective-C?

Yes, programming for the iPhone is done using Obj-C and a variant of Cocoa. The algorithms used here are very simple machine learning algorithms: The shape is represented by a few features and then classified using a decision tree.