PackageTrack
Sign in Get early access

one_dollar_unistroke_recognizer

The $1 Unistroke Recognizer, a 2D single-stroke recognizer, plus features like straight line recognition, the Protractor enhancement, a way to correct user's shapes, and more.

1.3.5 2.9K downloads/mo #4719 most downloaded on pub.dev adil192/one_dollar_unistroke_recognizer

What this package is like to depend on

Last release 10 days ago

13 Aug 2026

Release timing varies

gaps range from 8 days to 11 months

Most releases are documented

notes for 17 of 23 stable releases

Nothing withdrawn

no release was ever pulled

3 years old

23 releases · first in 2023

2 releases in the last 12 months

see the full history below

Release timeline

23 releases · Oct 2023 to Aug 2026
2024 2025 2026
Release Pre-release

Releases

latest 23
  1. 1.3.5 13 Aug 2026

    Nothing published for this version

  2. 1.3.4 09 Sep 2025

    Nothing published for this version

  3. 1.3.3 14 Dec 2024

    Nothing published for this version

  4. 1.3.2 08 Jul 2024

    Nothing published for this version

  5. 1.3.1 08 Jul 2024

    Nothing published for this version

  6. 1.3.0 08 Jul 2024

    Nothing published for this version

  7. 1.2.0 12 Apr 2024
    Release notes
    • Fixed the 'spikes' in convertToCanonicalPolygon for lines.
    • If you're using custom unistrokes, you no longer need to specify straightLineName in recognizeCustomUnistroke(..., straightLineName: ...). Just make sure your straight line unistroke template has exactly 2 distinct points and the recognizer will pick it up automatically.
    Open source →
  8. 1.1.2 15 Mar 2024
    Release notes
    • Better recognition of wide/tall rectangles, thanks to @QubaB
    Open source →
  9. 1.1.1 09 Mar 2024
    Release notes
    • Fixes RecognizedUnistroke.score always being close to 1.0 when the stroke is recognized as a straight line.
    Open source →
  10. 1.1.0 06 Mar 2024
    Release notes
    • Separated the logic for straight lines and for other shapes to fix the issue where arbitrary strokes would often be incorrectly detected as a line.
    Open source →
  11. 1.0.0 09 Jan 2024
    Release notes
    • Used a better algorithm (MAE) for detecting straight lines (#3). This fixes the issue where lines would often be incorrectly detected as a circle (saber-notes/saber#1039).
    Open source →
  12. 0.7.0 02 Dec 2023
    Release notes
    • Removed the type parameter from RecognizedUnistroke. Custom types will now use the RecognizedCustomUnistroke<K> type.
    • recognizeUnistrokeOfType has been renamed to recognizeCustomUnistroke.
    Open source →
  13. 0.6.1 30 Nov 2023
    Release notes
    • Improved line detection.
    • Improved the rotation of the recognized shape.
    Open source →
  14. 0.6.0 30 Nov 2023
    Release notes
    • Added a line template, and the corresponding RecognizedUnistroke.convertToLine() method.
    Open source →
  15. 0.5.0 30 Nov 2023
    Release notes
    • 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).
    Open source →
  16. 0.4.2 28 Nov 2023
    Release notes
    • Removed colored text from README since it doesn't work on pub.dev.
    Open source →
  17. 0.4.1 28 Nov 2023
    Release notes
    • Fixed images in the README on pub.dev.
    • Added a RecognizedUnistroke.convertToOval() method.
    Open source →
  18. 0.4.0 28 Nov 2023
    Release notes
    • 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.
    Open source →
  19. 0.3.1 19 Nov 2023
    Release notes
    • 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.
    Open source →
  20. 0.3.0 19 Nov 2023
    Release notes
    • Added functions to RecognizedUnistroke to get a "perfect" shape from the user's stroke: see RecognizedUnistroke.convertToCanonicalPolygon and RecognizedUnistroke.convertToCircle.
    Open source →
  21. 0.2.0 16 Nov 2023
    Release notes
    • Recognize custom unistrokes by setting the referenceUnistrokes variable, or by passing the overrideReferenceUnistrokes parameter to recognizeUnistroke.
    Open source →
  22. 0.1.1 28 Oct 2023
    Release notes
    • 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.
    Open source →
  23. 0.1.0 28 Oct 2023
    Release notes
    • Initial release.
    • TODO: Allow adding custom unistrokes.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive