one_dollar_unistroke_recognizer 0.6.0 copy "one_dollar_unistroke_recognizer: ^0.6.0" to clipboard
one_dollar_unistroke_recognizer: ^0.6.0 copied to clipboard

The $1 Unistroke Recognizer, a 2D single-stroke recognizer. This is a Dart port of the original JavaScript implementation.

0.6.0 #

  • Added a line template, and the corresponding RecognizedUnistroke.convertToLine() method.

0.5.0 #

  • RecognizedUnistroke.name is now using an enum instead of a string, e.g. DefaultUnistrokeNames.circle instead of 'circle'. If you're using custom unistrokes, see the README for how to use the recognizeUnistrokeOfType method.
  • convertToCanonicalPolygon() now returns a correctly rotated shape (https://github.com/adil192/one_dollar_unistroke_recognizer/issues/2).

0.4.2 #

  • Removed colored text from README since it doesn't work on pub.dev.

0.4.1 #

  • Fixed images in the README on pub.dev.
  • Added a RecognizedUnistroke.convertToOval() method.

0.4.0 #

  • This release has changed the default set of templates to contain better shapes. The old templates are still available in example$1Unistrokes. The new templates are only a circle, rectangle, and triangle, where the old templates were more varied but were also sketched by hand and were not very pretty.
  • Inputs are now recognized even if they are drawn in the opposite direction of the template. For example, a clockwise circle will be recognized as a circle, even if the template is a counter-clockwise circle. This wasn't the case in previous releases.
  • Like previous releases, convertToCanonicalPolygon() is still returning incorrectly rotated shapes. See https://github.com/adil192/one_dollar_unistroke_recognizer/issues/2 to track progress on this issue.

0.3.1 #

  • Scores can now only be between 0 and 1. Would-be negative scores are interpreted to mean that the stroke is not recognized, so null is returned.

0.3.0 #

  • Added functions to RecognizedUnistroke to get a "perfect" shape from the user's stroke: see RecognizedUnistroke.convertToCanonicalPolygon and RecognizedUnistroke.convertToCircle.

0.2.0 #

  • Recognize custom unistrokes by setting the referenceUnistrokes variable, or by passing the overrideReferenceUnistrokes parameter to recognizeUnistroke.

0.1.1 #

0.1.0 #

  • Initial release.
  • TODO: Allow adding custom unistrokes.
2
likes
0
pub points
84%
popularity

Publisher

verified publisheradil.hanney.org

The $1 Unistroke Recognizer, a 2D single-stroke recognizer. This is a Dart port of the original JavaScript implementation.

Homepage
Repository (GitHub)
View/report issues

Topics

#one-dollar #unistrokes #shape-recognition #gesture-recognition

License

unknown (license)

Dependencies

flutter, vector_math

More

Packages that depend on one_dollar_unistroke_recognizer