dollarx
Npm port for dollar gesture 1, N and P
Offical site: http://depts.washington.edu/madlab/proj/dollar/index.html
Attention
- Only support dollar 1 yet.
Install
npm install dollarx
Usage
1. Recognize with builtIn gestures
const dollarx = // Require it!const points = x: 307 y: 216 x: 333 y: 186 x: 356 y: 215 x: 375 y: 186 x: 399 y: 216 x: 418 y: 186 // Get points// Use dollar 1 to recognize it, with built in gesturesconsole // { name: 'zig-zag', score: 0.9988244237768706 }
2. Recognize with user define gesture
const dollarx = const dollar = dollarx // Class for dollar 1const points = x: 1 y: 1 ...dollar // Add user define pointsdollar // Recognize!dollar // Remove all user gestures
API
1. createDollar
Create dollar 1 recognizer
1.1 recoginize
1.2 addGesture
1.3 deleteUserGestures
2. dollarRecognize
Recognize with built in gestures for dollar 1
Release
0.2.0
- Support dollar 1 recognize
License
Copyright (c) 2018-present, Tyler Hu