I would like to make an image recognition program that will track the mouse and record its location every 1/2 second. How could I use these points to find a rough polygon? In other words, if you just draw a shape that resembles a triangle or square, most likely it will be a 50-100-gon, how can I simplify it to get the shape that I was trying to draw? I know that you can make a genetic algorithm, but you donβt know exactly how this will work, and I would like to know any alternatives.
edit: convex hulls will not work, it is necessary to preserve concavity.
source share