Created
November 2, 2015 09:02
-
-
Save gocreating/ead63ff0fa30113e4c69 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Usage | |
var _r = new DollarRecognizer(); | |
if (_points.length >= 10) { | |
var isUseProtractor = false; | |
var result = _r.Recognize(_points, isUseProtractor); | |
console.log("Result: " + result.Name + " (" + round(result.Score,2) + ")."); | |
} else { | |
console.log("Too few points made. Please try again."); | |
} | |
// Mouse Move Event | |
function mouseMoveEvent(x, y) { | |
if (_isDown) { | |
_points[_points.length] = new Point(x, y); // append | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment