b-log – betriebsraum weblog

Software Development, Human-Computer Interaction, Projects…

Advanced Gesture Recognition in iOS

November 30, 2012

DollarP-ObjC is an Objective-C port of the $P gesture recognizer to be used in iOS applications.

$P Demo iPhone App

What is $P?
From the $P website:

The $P Point-Cloud Recognizer is a 2-D gesture recognizer designed for rapid prototyping of gesture-based user interfaces. In machine learning terms, $P is an instance-based nearest-neighbor classifier with a Euclidean scoring function, i.e., a geometric template matcher. $P is the latest in the dollar family of recognizers that includes $1 for unistrokes and $N for multistrokes. Although about half of $P’s code is from $1, unlike both $1 and $N, $P does not represent gestures as ordered series of points (i.e., strokes), but as unordered point-clouds. By representing gestures as point-clouds, $P can handle both unistrokes and multistrokes equivalently and without the combinatoric overhead of $N. When comparing two point-clouds, $P solves the classic assignment problem between two bipartite graphs using an approximation of the Hungarian algorithm. The $P recognizer is distributed under the New BSD License agreement.

More on my Github page.

Filed under: HCI, iOS / Objective-C / Swift

Add a comment

You must be logged in to post a comment.