interactive_shape_recognition 1.0.1 copy "interactive_shape_recognition: ^1.0.1" to clipboard
interactive_shape_recognition: ^1.0.1 copied to clipboard

discontinuedreplaced by: one_dollar_unistroke_recognizer
outdated

Dart port of inkandswitch/interactive-shape-recognition, an implementation of "A Simple Approach to Recognise Geometric Shapes Interactively".

This is a port of inkandswitch/interactive-shape-recognition, an implementation of "A Simple Approach to Recognise Geometric Shapes Interactively" by Joaquim A. Jorge and Manuel J. Fonseca.

See the online demo to see this plugin in action.

Usage #

final List<Offset> points = [
  // your points here, e.g.
  Offset(0, 0),
  Offset(0, 1),
  Offset(0, 2),
];

final DetectedShape detectedShape = detectShape(points);

switch (detectedShape.shape) {
  case Shape.line:
    print('Detected a line');
  case Shape.circle:
    print('Detected a circle');
  case Shape.rectangle:
    print('Detected a rectangle');
  case Shape.unknown:
    print('Detected an unknown shape');
}
0
likes
0
points
22
downloads

Publisher

verified publisheradil.hanney.org

Weekly Downloads

Dart port of inkandswitch/interactive-shape-recognition, an implementation of "A Simple Approach to Recognise Geometric Shapes Interactively".

Homepage
Repository (GitHub)
View/report issues

Topics

#math #shape-recognition #polygons #js-port

License

unknown (license)

Dependencies

area_polygon, convex_hull, flutter

More

Packages that depend on interactive_shape_recognition