Implementation of the $N 2D gesture recognizer
Project description
dollarN
Python implementation of $N, the 2D multistrokes recognizer
http://depts.washington.edu/acelab/proj/dollar/ndollar.html
The $N Multistroke Recognizer is a 2-D multistroke recognizer designed for rapid prototyping of gesture-based user interfaces. $N is built upon the $1 Unistroke Recognizer. $N automatically generalizes examples of multistrokes to encompass all possible stroke orders and directions, meaning you can make and define multistrokes using any stroke order and direction you wish, provided you begin at either endpoint of each component stroke, and $N will generalize so as to recognize other ways to articulate that same multistroke. A version of $N utilizing Protractor, optional here, improves $N's speed.
Features
Example of use (simple.py):
import dollarN as dN
r = dN,recognizer()
#Adding gestures: multistrokes with names
r.add_gesture('X', [ [[0.,0.], [5.,5.]], [[0.,5.], [5.,0.]] ])
r.add_gesture('T', [ [[0.,5.], [5.,5.]], [[2.5,0.], [2.5,5.]] ])
#Launching a recognition
test = [[[0, 5.2], [5.,5.]], [[2.5, 0.], [2.5,5.]]]
print( r.recognize(test) )
{'name': 'T', 'value': 0.9484976300936439, 'time': 0.006083965301513672}
Demo
A demo is available with tkDollarN.py here
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dollarN-1.2.tar.gz
.
File metadata
- Download URL: dollarN-1.2.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 341d0bfa72e2c266938c851eea184993917b2abe8655aa8a324c9a629132bd9f |
|
MD5 | 0e03773aa028466aaaceb2c30419d152 |
|
BLAKE2b-256 | a883ec0141e0184a5254a8010affe54261b78e0641a948aeb6d7c55782109065 |
File details
Details for the file dollarN-1.2-py3-none-any.whl
.
File metadata
- Download URL: dollarN-1.2-py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65a28bb0b9ffb01ba9188d73d75d3a8b561c7960d97bcdc9e141515f531b092e |
|
MD5 | 6db1695b8d3a7373538593a56dfd09f9 |
|
BLAKE2b-256 | f7752debb420067f46273e0c3b5408516a205eb85cf68ef7386873f592c079e9 |