one_dollar_unistroke_recognizer 0.4.2 one_dollar_unistroke_recognizer: ^0.4.2 copied to clipboard
The $1 Unistroke Recognizer, a 2D single-stroke recognizer. This is a Dart port of the original JavaScript implementation.
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: seeRecognizedUnistroke.convertToCanonicalPolygon
andRecognizedUnistroke.convertToCircle
.
0.2.0 #
- Recognize custom unistrokes by setting the
referenceUnistrokes
variable, or by passing theoverrideReferenceUnistrokes
parameter torecognizeUnistroke
.
0.1.1 #
- feat: Added a web demo here: https://adil192.github.io/one_dollar_unistroke_recognizer.
- feat: You can see the list of possible outputs in
knownUnistrokesNames
. - fix: Strokes that are too short are ignored.
0.1.0 #
- Initial release.
- TODO: Allow adding custom unistrokes.