Skip to content

MictlanStudios/PDollar-Unity

 
 

Repository files navigation

This fork use LeanTouch extension for Inputs

Example 2D

You can create the regonizer easy:

PDollar Recognizer Recognizer Inspector

You can create your own patterns and save it in a manager:

Pattern Manager Patter Manager Values

$P Point-Cloud Recognizer

Original article. Unity Web demo.

This is an adaptation of the original C# code for Unity.

In the demo, only one point-cloud template is loaded for each of the 16 gesture types. You can add additional templates as you wish, and even define your own custom gesture templates.

About

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.

License

BSD-3

About

PDollar algorithm Unity friendly + LeanTouch (free)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 48.5%
  • C# 42.2%
  • ShaderLab 8.0%
  • HLSL 1.3%