Example of simple algorithm to recognize shape from array of points.
Clone repository and start following command:
mvn package assembly:single
Start application using following command:
java -jar target/recognize-shape-1.0-jar-with-dependencies.jar
You can draw any shape using left mouse button. After shape is drawn algorithm will recognize the shape. Algorithm recognizes only polygons with 3-5 points and circles.